@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/plugins/index.d.cts
CHANGED
|
@@ -674,6 +674,7 @@ declare const editorMachine: StateMachine<
|
|
|
674
674
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
675
675
|
keyGenerator: () => string
|
|
676
676
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
677
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
677
678
|
schema: EditorSchema
|
|
678
679
|
initialReadOnly: boolean
|
|
679
680
|
maxBlocks: number | undefined
|
|
@@ -687,6 +688,7 @@ declare const editorMachine: StateMachine<
|
|
|
687
688
|
},
|
|
688
689
|
| InternalPatchEvent
|
|
689
690
|
| MutationEvent
|
|
691
|
+
| PatchesEvent
|
|
690
692
|
| {
|
|
691
693
|
type: 'add behavior'
|
|
692
694
|
behavior: Behavior
|
|
@@ -719,7 +721,6 @@ declare const editorMachine: StateMachine<
|
|
|
719
721
|
type: 'update maxBlocks'
|
|
720
722
|
maxBlocks: number | undefined
|
|
721
723
|
}
|
|
722
|
-
| PatchesEvent
|
|
723
724
|
| {
|
|
724
725
|
type: 'blur'
|
|
725
726
|
editor: PortableTextSlateEditor
|
|
@@ -735,7 +736,10 @@ declare const editorMachine: StateMachine<
|
|
|
735
736
|
type: 'done normalizing'
|
|
736
737
|
}
|
|
737
738
|
| {
|
|
738
|
-
type: 'done syncing
|
|
739
|
+
type: 'done syncing value'
|
|
740
|
+
}
|
|
741
|
+
| {
|
|
742
|
+
type: 'syncing value'
|
|
739
743
|
}
|
|
740
744
|
| {
|
|
741
745
|
type: 'behavior event'
|
|
@@ -863,6 +867,18 @@ declare const editorMachine: StateMachine<
|
|
|
863
867
|
type: 'clear pending events'
|
|
864
868
|
params: NonReducibleUnknown
|
|
865
869
|
}
|
|
870
|
+
'defer incoming patches': {
|
|
871
|
+
type: 'defer incoming patches'
|
|
872
|
+
params: NonReducibleUnknown
|
|
873
|
+
}
|
|
874
|
+
'emit pending incoming patches': {
|
|
875
|
+
type: 'emit pending incoming patches'
|
|
876
|
+
params: NonReducibleUnknown
|
|
877
|
+
}
|
|
878
|
+
'clear pending incoming patches': {
|
|
879
|
+
type: 'clear pending incoming patches'
|
|
880
|
+
params: NonReducibleUnknown
|
|
881
|
+
}
|
|
866
882
|
'handle blur': {
|
|
867
883
|
type: 'handle blur'
|
|
868
884
|
params: unknown
|
|
@@ -896,9 +912,15 @@ declare const editorMachine: StateMachine<
|
|
|
896
912
|
}
|
|
897
913
|
'setup':
|
|
898
914
|
| 'setting up'
|
|
899
|
-
| 'dirty'
|
|
900
915
|
| {
|
|
901
|
-
|
|
916
|
+
'set up': {
|
|
917
|
+
'value sync': 'syncing value' | 'idle'
|
|
918
|
+
'writing':
|
|
919
|
+
| 'dirty'
|
|
920
|
+
| {
|
|
921
|
+
pristine: 'normalizing' | 'idle'
|
|
922
|
+
}
|
|
923
|
+
}
|
|
902
924
|
}
|
|
903
925
|
},
|
|
904
926
|
'dragging internally',
|
|
@@ -1006,6 +1028,7 @@ declare const editorMachine: StateMachine<
|
|
|
1006
1028
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1007
1029
|
keyGenerator: () => string
|
|
1008
1030
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1031
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1009
1032
|
schema: EditorSchema
|
|
1010
1033
|
initialReadOnly: boolean
|
|
1011
1034
|
maxBlocks: number | undefined
|
|
@@ -1019,6 +1042,7 @@ declare const editorMachine: StateMachine<
|
|
|
1019
1042
|
},
|
|
1020
1043
|
| InternalPatchEvent
|
|
1021
1044
|
| MutationEvent
|
|
1045
|
+
| PatchesEvent
|
|
1022
1046
|
| {
|
|
1023
1047
|
type: 'add behavior'
|
|
1024
1048
|
behavior: Behavior
|
|
@@ -1051,7 +1075,6 @@ declare const editorMachine: StateMachine<
|
|
|
1051
1075
|
type: 'update maxBlocks'
|
|
1052
1076
|
maxBlocks: number | undefined
|
|
1053
1077
|
}
|
|
1054
|
-
| PatchesEvent
|
|
1055
1078
|
| {
|
|
1056
1079
|
type: 'blur'
|
|
1057
1080
|
editor: PortableTextSlateEditor
|
|
@@ -1067,7 +1090,10 @@ declare const editorMachine: StateMachine<
|
|
|
1067
1090
|
type: 'done normalizing'
|
|
1068
1091
|
}
|
|
1069
1092
|
| {
|
|
1070
|
-
type: 'done syncing
|
|
1093
|
+
type: 'done syncing value'
|
|
1094
|
+
}
|
|
1095
|
+
| {
|
|
1096
|
+
type: 'syncing value'
|
|
1071
1097
|
}
|
|
1072
1098
|
| {
|
|
1073
1099
|
type: 'behavior event'
|
|
@@ -1153,6 +1179,7 @@ declare const editorMachine: StateMachine<
|
|
|
1153
1179
|
>,
|
|
1154
1180
|
| InternalPatchEvent
|
|
1155
1181
|
| MutationEvent
|
|
1182
|
+
| PatchesEvent
|
|
1156
1183
|
| {
|
|
1157
1184
|
type: 'add behavior'
|
|
1158
1185
|
behavior: Behavior
|
|
@@ -1185,7 +1212,6 @@ declare const editorMachine: StateMachine<
|
|
|
1185
1212
|
type: 'update maxBlocks'
|
|
1186
1213
|
maxBlocks: number | undefined
|
|
1187
1214
|
}
|
|
1188
|
-
| PatchesEvent
|
|
1189
1215
|
| {
|
|
1190
1216
|
type: 'blur'
|
|
1191
1217
|
editor: PortableTextSlateEditor
|
|
@@ -1201,7 +1227,10 @@ declare const editorMachine: StateMachine<
|
|
|
1201
1227
|
type: 'done normalizing'
|
|
1202
1228
|
}
|
|
1203
1229
|
| {
|
|
1204
|
-
type: 'done syncing
|
|
1230
|
+
type: 'done syncing value'
|
|
1231
|
+
}
|
|
1232
|
+
| {
|
|
1233
|
+
type: 'syncing value'
|
|
1205
1234
|
}
|
|
1206
1235
|
| {
|
|
1207
1236
|
type: 'behavior event'
|
|
@@ -1286,6 +1315,7 @@ declare const editorMachine: StateMachine<
|
|
|
1286
1315
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1287
1316
|
keyGenerator: () => string
|
|
1288
1317
|
pendingEvents: never[]
|
|
1318
|
+
pendingIncomingPatchesEvents: never[]
|
|
1289
1319
|
schema: EditorSchema
|
|
1290
1320
|
selection: null
|
|
1291
1321
|
initialReadOnly: boolean
|
|
@@ -1301,6 +1331,7 @@ declare const editorMachine: StateMachine<
|
|
|
1301
1331
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1302
1332
|
keyGenerator: () => string
|
|
1303
1333
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1334
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1304
1335
|
schema: EditorSchema
|
|
1305
1336
|
initialReadOnly: boolean
|
|
1306
1337
|
maxBlocks: number | undefined
|
|
@@ -1318,6 +1349,7 @@ declare const editorMachine: StateMachine<
|
|
|
1318
1349
|
},
|
|
1319
1350
|
| InternalPatchEvent
|
|
1320
1351
|
| MutationEvent
|
|
1352
|
+
| PatchesEvent
|
|
1321
1353
|
| {
|
|
1322
1354
|
type: 'add behavior'
|
|
1323
1355
|
behavior: Behavior
|
|
@@ -1350,7 +1382,6 @@ declare const editorMachine: StateMachine<
|
|
|
1350
1382
|
type: 'update maxBlocks'
|
|
1351
1383
|
maxBlocks: number | undefined
|
|
1352
1384
|
}
|
|
1353
|
-
| PatchesEvent
|
|
1354
1385
|
| {
|
|
1355
1386
|
type: 'blur'
|
|
1356
1387
|
editor: PortableTextSlateEditor
|
|
@@ -1366,7 +1397,10 @@ declare const editorMachine: StateMachine<
|
|
|
1366
1397
|
type: 'done normalizing'
|
|
1367
1398
|
}
|
|
1368
1399
|
| {
|
|
1369
|
-
type: 'done syncing
|
|
1400
|
+
type: 'done syncing value'
|
|
1401
|
+
}
|
|
1402
|
+
| {
|
|
1403
|
+
type: 'syncing value'
|
|
1370
1404
|
}
|
|
1371
1405
|
| {
|
|
1372
1406
|
type: 'behavior event'
|
|
@@ -1505,6 +1539,7 @@ declare const editorMachine: StateMachine<
|
|
|
1505
1539
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1506
1540
|
keyGenerator: () => string
|
|
1507
1541
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1542
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1508
1543
|
schema: EditorSchema
|
|
1509
1544
|
initialReadOnly: boolean
|
|
1510
1545
|
maxBlocks: number | undefined
|
|
@@ -1521,6 +1556,7 @@ declare const editorMachine: StateMachine<
|
|
|
1521
1556
|
},
|
|
1522
1557
|
| InternalPatchEvent
|
|
1523
1558
|
| MutationEvent
|
|
1559
|
+
| PatchesEvent
|
|
1524
1560
|
| {
|
|
1525
1561
|
type: 'add behavior'
|
|
1526
1562
|
behavior: Behavior
|
|
@@ -1553,7 +1589,6 @@ declare const editorMachine: StateMachine<
|
|
|
1553
1589
|
type: 'update maxBlocks'
|
|
1554
1590
|
maxBlocks: number | undefined
|
|
1555
1591
|
}
|
|
1556
|
-
| PatchesEvent
|
|
1557
1592
|
| {
|
|
1558
1593
|
type: 'blur'
|
|
1559
1594
|
editor: PortableTextSlateEditor
|
|
@@ -1569,7 +1604,10 @@ declare const editorMachine: StateMachine<
|
|
|
1569
1604
|
type: 'done normalizing'
|
|
1570
1605
|
}
|
|
1571
1606
|
| {
|
|
1572
|
-
type: 'done syncing
|
|
1607
|
+
type: 'done syncing value'
|
|
1608
|
+
}
|
|
1609
|
+
| {
|
|
1610
|
+
type: 'syncing value'
|
|
1573
1611
|
}
|
|
1574
1612
|
| {
|
|
1575
1613
|
type: 'behavior event'
|
|
@@ -1708,6 +1746,7 @@ declare const editorMachine: StateMachine<
|
|
|
1708
1746
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1709
1747
|
keyGenerator: () => string
|
|
1710
1748
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1749
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1711
1750
|
schema: EditorSchema
|
|
1712
1751
|
initialReadOnly: boolean
|
|
1713
1752
|
maxBlocks: number | undefined
|
|
@@ -1727,6 +1766,7 @@ declare const editorMachine: StateMachine<
|
|
|
1727
1766
|
},
|
|
1728
1767
|
| InternalPatchEvent
|
|
1729
1768
|
| MutationEvent
|
|
1769
|
+
| PatchesEvent
|
|
1730
1770
|
| {
|
|
1731
1771
|
type: 'add behavior'
|
|
1732
1772
|
behavior: Behavior
|
|
@@ -1759,7 +1799,6 @@ declare const editorMachine: StateMachine<
|
|
|
1759
1799
|
type: 'update maxBlocks'
|
|
1760
1800
|
maxBlocks: number | undefined
|
|
1761
1801
|
}
|
|
1762
|
-
| PatchesEvent
|
|
1763
1802
|
| {
|
|
1764
1803
|
type: 'blur'
|
|
1765
1804
|
editor: PortableTextSlateEditor
|
|
@@ -1775,7 +1814,10 @@ declare const editorMachine: StateMachine<
|
|
|
1775
1814
|
type: 'done normalizing'
|
|
1776
1815
|
}
|
|
1777
1816
|
| {
|
|
1778
|
-
type: 'done syncing
|
|
1817
|
+
type: 'done syncing value'
|
|
1818
|
+
}
|
|
1819
|
+
| {
|
|
1820
|
+
type: 'syncing value'
|
|
1779
1821
|
}
|
|
1780
1822
|
| {
|
|
1781
1823
|
type: 'behavior event'
|
|
@@ -1914,6 +1956,7 @@ declare const editorMachine: StateMachine<
|
|
|
1914
1956
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1915
1957
|
keyGenerator: () => string
|
|
1916
1958
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1959
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1917
1960
|
schema: EditorSchema
|
|
1918
1961
|
initialReadOnly: boolean
|
|
1919
1962
|
maxBlocks: number | undefined
|
|
@@ -1932,6 +1975,7 @@ declare const editorMachine: StateMachine<
|
|
|
1932
1975
|
},
|
|
1933
1976
|
| InternalPatchEvent
|
|
1934
1977
|
| MutationEvent
|
|
1978
|
+
| PatchesEvent
|
|
1935
1979
|
| {
|
|
1936
1980
|
type: 'add behavior'
|
|
1937
1981
|
behavior: Behavior
|
|
@@ -1964,7 +2008,6 @@ declare const editorMachine: StateMachine<
|
|
|
1964
2008
|
type: 'update maxBlocks'
|
|
1965
2009
|
maxBlocks: number | undefined
|
|
1966
2010
|
}
|
|
1967
|
-
| PatchesEvent
|
|
1968
2011
|
| {
|
|
1969
2012
|
type: 'blur'
|
|
1970
2013
|
editor: PortableTextSlateEditor
|
|
@@ -1980,7 +2023,10 @@ declare const editorMachine: StateMachine<
|
|
|
1980
2023
|
type: 'done normalizing'
|
|
1981
2024
|
}
|
|
1982
2025
|
| {
|
|
1983
|
-
type: 'done syncing
|
|
2026
|
+
type: 'done syncing value'
|
|
2027
|
+
}
|
|
2028
|
+
| {
|
|
2029
|
+
type: 'syncing value'
|
|
1984
2030
|
}
|
|
1985
2031
|
| {
|
|
1986
2032
|
type: 'behavior event'
|
|
@@ -2119,6 +2165,7 @@ declare const editorMachine: StateMachine<
|
|
|
2119
2165
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2120
2166
|
keyGenerator: () => string
|
|
2121
2167
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2168
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2122
2169
|
schema: EditorSchema
|
|
2123
2170
|
initialReadOnly: boolean
|
|
2124
2171
|
maxBlocks: number | undefined
|
|
@@ -2136,6 +2183,7 @@ declare const editorMachine: StateMachine<
|
|
|
2136
2183
|
},
|
|
2137
2184
|
| InternalPatchEvent
|
|
2138
2185
|
| MutationEvent
|
|
2186
|
+
| PatchesEvent
|
|
2139
2187
|
| {
|
|
2140
2188
|
type: 'add behavior'
|
|
2141
2189
|
behavior: Behavior
|
|
@@ -2168,7 +2216,6 @@ declare const editorMachine: StateMachine<
|
|
|
2168
2216
|
type: 'update maxBlocks'
|
|
2169
2217
|
maxBlocks: number | undefined
|
|
2170
2218
|
}
|
|
2171
|
-
| PatchesEvent
|
|
2172
2219
|
| {
|
|
2173
2220
|
type: 'blur'
|
|
2174
2221
|
editor: PortableTextSlateEditor
|
|
@@ -2184,7 +2231,10 @@ declare const editorMachine: StateMachine<
|
|
|
2184
2231
|
type: 'done normalizing'
|
|
2185
2232
|
}
|
|
2186
2233
|
| {
|
|
2187
|
-
type: 'done syncing
|
|
2234
|
+
type: 'done syncing value'
|
|
2235
|
+
}
|
|
2236
|
+
| {
|
|
2237
|
+
type: 'syncing value'
|
|
2188
2238
|
}
|
|
2189
2239
|
| {
|
|
2190
2240
|
type: 'behavior event'
|
|
@@ -2324,6 +2374,7 @@ declare const editorMachine: StateMachine<
|
|
|
2324
2374
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2325
2375
|
keyGenerator: () => string
|
|
2326
2376
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2377
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2327
2378
|
schema: EditorSchema
|
|
2328
2379
|
initialReadOnly: boolean
|
|
2329
2380
|
maxBlocks: number | undefined
|
|
@@ -2341,6 +2392,7 @@ declare const editorMachine: StateMachine<
|
|
|
2341
2392
|
},
|
|
2342
2393
|
| InternalPatchEvent
|
|
2343
2394
|
| MutationEvent
|
|
2395
|
+
| PatchesEvent
|
|
2344
2396
|
| {
|
|
2345
2397
|
type: 'add behavior'
|
|
2346
2398
|
behavior: Behavior
|
|
@@ -2373,7 +2425,6 @@ declare const editorMachine: StateMachine<
|
|
|
2373
2425
|
type: 'update maxBlocks'
|
|
2374
2426
|
maxBlocks: number | undefined
|
|
2375
2427
|
}
|
|
2376
|
-
| PatchesEvent
|
|
2377
2428
|
| {
|
|
2378
2429
|
type: 'blur'
|
|
2379
2430
|
editor: PortableTextSlateEditor
|
|
@@ -2389,7 +2440,10 @@ declare const editorMachine: StateMachine<
|
|
|
2389
2440
|
type: 'done normalizing'
|
|
2390
2441
|
}
|
|
2391
2442
|
| {
|
|
2392
|
-
type: 'done syncing
|
|
2443
|
+
type: 'done syncing value'
|
|
2444
|
+
}
|
|
2445
|
+
| {
|
|
2446
|
+
type: 'syncing value'
|
|
2393
2447
|
}
|
|
2394
2448
|
| {
|
|
2395
2449
|
type: 'behavior event'
|
|
@@ -2480,6 +2534,7 @@ declare const editorMachine: StateMachine<
|
|
|
2480
2534
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2481
2535
|
keyGenerator: () => string
|
|
2482
2536
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2537
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2483
2538
|
schema: EditorSchema
|
|
2484
2539
|
initialReadOnly: boolean
|
|
2485
2540
|
maxBlocks: number | undefined
|
|
@@ -2497,6 +2552,7 @@ declare const editorMachine: StateMachine<
|
|
|
2497
2552
|
},
|
|
2498
2553
|
| InternalPatchEvent
|
|
2499
2554
|
| MutationEvent
|
|
2555
|
+
| PatchesEvent
|
|
2500
2556
|
| {
|
|
2501
2557
|
type: 'add behavior'
|
|
2502
2558
|
behavior: Behavior
|
|
@@ -2529,7 +2585,6 @@ declare const editorMachine: StateMachine<
|
|
|
2529
2585
|
type: 'update maxBlocks'
|
|
2530
2586
|
maxBlocks: number | undefined
|
|
2531
2587
|
}
|
|
2532
|
-
| PatchesEvent
|
|
2533
2588
|
| {
|
|
2534
2589
|
type: 'blur'
|
|
2535
2590
|
editor: PortableTextSlateEditor
|
|
@@ -2545,7 +2600,10 @@ declare const editorMachine: StateMachine<
|
|
|
2545
2600
|
type: 'done normalizing'
|
|
2546
2601
|
}
|
|
2547
2602
|
| {
|
|
2548
|
-
type: 'done syncing
|
|
2603
|
+
type: 'done syncing value'
|
|
2604
|
+
}
|
|
2605
|
+
| {
|
|
2606
|
+
type: 'syncing value'
|
|
2549
2607
|
}
|
|
2550
2608
|
| {
|
|
2551
2609
|
type: 'behavior event'
|
|
@@ -2685,6 +2743,7 @@ declare const editorMachine: StateMachine<
|
|
|
2685
2743
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2686
2744
|
keyGenerator: () => string
|
|
2687
2745
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2746
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2688
2747
|
schema: EditorSchema
|
|
2689
2748
|
initialReadOnly: boolean
|
|
2690
2749
|
maxBlocks: number | undefined
|
|
@@ -2702,6 +2761,7 @@ declare const editorMachine: StateMachine<
|
|
|
2702
2761
|
},
|
|
2703
2762
|
| InternalPatchEvent
|
|
2704
2763
|
| MutationEvent
|
|
2764
|
+
| PatchesEvent
|
|
2705
2765
|
| {
|
|
2706
2766
|
type: 'add behavior'
|
|
2707
2767
|
behavior: Behavior
|
|
@@ -2734,7 +2794,6 @@ declare const editorMachine: StateMachine<
|
|
|
2734
2794
|
type: 'update maxBlocks'
|
|
2735
2795
|
maxBlocks: number | undefined
|
|
2736
2796
|
}
|
|
2737
|
-
| PatchesEvent
|
|
2738
2797
|
| {
|
|
2739
2798
|
type: 'blur'
|
|
2740
2799
|
editor: PortableTextSlateEditor
|
|
@@ -2750,7 +2809,10 @@ declare const editorMachine: StateMachine<
|
|
|
2750
2809
|
type: 'done normalizing'
|
|
2751
2810
|
}
|
|
2752
2811
|
| {
|
|
2753
|
-
type: 'done syncing
|
|
2812
|
+
type: 'done syncing value'
|
|
2813
|
+
}
|
|
2814
|
+
| {
|
|
2815
|
+
type: 'syncing value'
|
|
2754
2816
|
}
|
|
2755
2817
|
| {
|
|
2756
2818
|
type: 'behavior event'
|
|
@@ -2889,6 +2951,7 @@ declare const editorMachine: StateMachine<
|
|
|
2889
2951
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2890
2952
|
keyGenerator: () => string
|
|
2891
2953
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2954
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2892
2955
|
schema: EditorSchema
|
|
2893
2956
|
initialReadOnly: boolean
|
|
2894
2957
|
maxBlocks: number | undefined
|
|
@@ -2905,6 +2968,7 @@ declare const editorMachine: StateMachine<
|
|
|
2905
2968
|
},
|
|
2906
2969
|
| InternalPatchEvent
|
|
2907
2970
|
| MutationEvent
|
|
2971
|
+
| PatchesEvent
|
|
2908
2972
|
| {
|
|
2909
2973
|
type: 'add behavior'
|
|
2910
2974
|
behavior: Behavior
|
|
@@ -2937,7 +3001,6 @@ declare const editorMachine: StateMachine<
|
|
|
2937
3001
|
type: 'update maxBlocks'
|
|
2938
3002
|
maxBlocks: number | undefined
|
|
2939
3003
|
}
|
|
2940
|
-
| PatchesEvent
|
|
2941
3004
|
| {
|
|
2942
3005
|
type: 'blur'
|
|
2943
3006
|
editor: PortableTextSlateEditor
|
|
@@ -2953,7 +3016,10 @@ declare const editorMachine: StateMachine<
|
|
|
2953
3016
|
type: 'done normalizing'
|
|
2954
3017
|
}
|
|
2955
3018
|
| {
|
|
2956
|
-
type: 'done syncing
|
|
3019
|
+
type: 'done syncing value'
|
|
3020
|
+
}
|
|
3021
|
+
| {
|
|
3022
|
+
type: 'syncing value'
|
|
2957
3023
|
}
|
|
2958
3024
|
| {
|
|
2959
3025
|
type: 'behavior event'
|
|
@@ -3092,6 +3158,7 @@ declare const editorMachine: StateMachine<
|
|
|
3092
3158
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3093
3159
|
keyGenerator: () => string
|
|
3094
3160
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3161
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3095
3162
|
schema: EditorSchema
|
|
3096
3163
|
initialReadOnly: boolean
|
|
3097
3164
|
maxBlocks: number | undefined
|
|
@@ -3109,6 +3176,7 @@ declare const editorMachine: StateMachine<
|
|
|
3109
3176
|
},
|
|
3110
3177
|
| InternalPatchEvent
|
|
3111
3178
|
| MutationEvent
|
|
3179
|
+
| PatchesEvent
|
|
3112
3180
|
| {
|
|
3113
3181
|
type: 'add behavior'
|
|
3114
3182
|
behavior: Behavior
|
|
@@ -3141,7 +3209,6 @@ declare const editorMachine: StateMachine<
|
|
|
3141
3209
|
type: 'update maxBlocks'
|
|
3142
3210
|
maxBlocks: number | undefined
|
|
3143
3211
|
}
|
|
3144
|
-
| PatchesEvent
|
|
3145
3212
|
| {
|
|
3146
3213
|
type: 'blur'
|
|
3147
3214
|
editor: PortableTextSlateEditor
|
|
@@ -3157,7 +3224,10 @@ declare const editorMachine: StateMachine<
|
|
|
3157
3224
|
type: 'done normalizing'
|
|
3158
3225
|
}
|
|
3159
3226
|
| {
|
|
3160
|
-
type: 'done syncing
|
|
3227
|
+
type: 'done syncing value'
|
|
3228
|
+
}
|
|
3229
|
+
| {
|
|
3230
|
+
type: 'syncing value'
|
|
3161
3231
|
}
|
|
3162
3232
|
| {
|
|
3163
3233
|
type: 'behavior event'
|
|
@@ -3294,207 +3364,6 @@ declare const editorMachine: StateMachine<
|
|
|
3294
3364
|
readonly 'remove behavior': {
|
|
3295
3365
|
readonly actions: 'remove behavior from context'
|
|
3296
3366
|
}
|
|
3297
|
-
readonly 'patches': {
|
|
3298
|
-
readonly actions: ActionFunction<
|
|
3299
|
-
{
|
|
3300
|
-
behaviors: Set<Behavior>
|
|
3301
|
-
converters: Set<Converter>
|
|
3302
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3303
|
-
keyGenerator: () => string
|
|
3304
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3305
|
-
schema: EditorSchema
|
|
3306
|
-
initialReadOnly: boolean
|
|
3307
|
-
maxBlocks: number | undefined
|
|
3308
|
-
selection: EditorSelection
|
|
3309
|
-
incomingValue: Array<PortableTextBlock> | undefined
|
|
3310
|
-
internalDrag?: {
|
|
3311
|
-
ghost?: HTMLElement
|
|
3312
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3313
|
-
}
|
|
3314
|
-
slateEditor?: PortableTextSlateEditor
|
|
3315
|
-
},
|
|
3316
|
-
PatchesEvent,
|
|
3317
|
-
| InternalPatchEvent
|
|
3318
|
-
| MutationEvent
|
|
3319
|
-
| {
|
|
3320
|
-
type: 'add behavior'
|
|
3321
|
-
behavior: Behavior
|
|
3322
|
-
}
|
|
3323
|
-
| {
|
|
3324
|
-
type: 'remove behavior'
|
|
3325
|
-
behavior: Behavior
|
|
3326
|
-
}
|
|
3327
|
-
| {
|
|
3328
|
-
type: 'update readOnly'
|
|
3329
|
-
readOnly: boolean
|
|
3330
|
-
}
|
|
3331
|
-
| {
|
|
3332
|
-
type: 'update schema'
|
|
3333
|
-
schema: EditorSchema
|
|
3334
|
-
}
|
|
3335
|
-
| {
|
|
3336
|
-
type: 'update behaviors'
|
|
3337
|
-
behaviors: Array<Behavior>
|
|
3338
|
-
}
|
|
3339
|
-
| {
|
|
3340
|
-
type: 'update key generator'
|
|
3341
|
-
keyGenerator: () => string
|
|
3342
|
-
}
|
|
3343
|
-
| {
|
|
3344
|
-
type: 'update value'
|
|
3345
|
-
value: Array<PortableTextBlock> | undefined
|
|
3346
|
-
}
|
|
3347
|
-
| {
|
|
3348
|
-
type: 'update maxBlocks'
|
|
3349
|
-
maxBlocks: number | undefined
|
|
3350
|
-
}
|
|
3351
|
-
| PatchesEvent
|
|
3352
|
-
| {
|
|
3353
|
-
type: 'blur'
|
|
3354
|
-
editor: PortableTextSlateEditor
|
|
3355
|
-
}
|
|
3356
|
-
| {
|
|
3357
|
-
type: 'focus'
|
|
3358
|
-
editor: PortableTextSlateEditor
|
|
3359
|
-
}
|
|
3360
|
-
| {
|
|
3361
|
-
type: 'normalizing'
|
|
3362
|
-
}
|
|
3363
|
-
| {
|
|
3364
|
-
type: 'done normalizing'
|
|
3365
|
-
}
|
|
3366
|
-
| {
|
|
3367
|
-
type: 'done syncing initial value'
|
|
3368
|
-
}
|
|
3369
|
-
| {
|
|
3370
|
-
type: 'behavior event'
|
|
3371
|
-
behaviorEvent: BehaviorEvent
|
|
3372
|
-
editor: PortableTextSlateEditor
|
|
3373
|
-
nativeEvent?: {
|
|
3374
|
-
preventDefault: () => void
|
|
3375
|
-
}
|
|
3376
|
-
}
|
|
3377
|
-
| {
|
|
3378
|
-
type: 'notify.patch'
|
|
3379
|
-
patch: Patch
|
|
3380
|
-
}
|
|
3381
|
-
| {
|
|
3382
|
-
type: 'notify.mutation'
|
|
3383
|
-
patches: Array<Patch>
|
|
3384
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3385
|
-
value: Array<PortableTextBlock> | undefined
|
|
3386
|
-
}
|
|
3387
|
-
| {
|
|
3388
|
-
type: 'notify.blurred'
|
|
3389
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3390
|
-
}
|
|
3391
|
-
| {
|
|
3392
|
-
type: 'notify.done loading'
|
|
3393
|
-
}
|
|
3394
|
-
| {
|
|
3395
|
-
type: 'notify.editable'
|
|
3396
|
-
}
|
|
3397
|
-
| {
|
|
3398
|
-
type: 'notify.error'
|
|
3399
|
-
name: string
|
|
3400
|
-
description: string
|
|
3401
|
-
data: unknown
|
|
3402
|
-
}
|
|
3403
|
-
| {
|
|
3404
|
-
type: 'notify.focused'
|
|
3405
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3406
|
-
}
|
|
3407
|
-
| {
|
|
3408
|
-
type: 'notify.invalid value'
|
|
3409
|
-
resolution: InvalidValueResolution | null
|
|
3410
|
-
value: Array<PortableTextBlock> | undefined
|
|
3411
|
-
}
|
|
3412
|
-
| {
|
|
3413
|
-
type: 'notify.loading'
|
|
3414
|
-
}
|
|
3415
|
-
| {
|
|
3416
|
-
type: 'notify.read only'
|
|
3417
|
-
}
|
|
3418
|
-
| {
|
|
3419
|
-
type: 'notify.ready'
|
|
3420
|
-
}
|
|
3421
|
-
| {
|
|
3422
|
-
type: 'notify.selection'
|
|
3423
|
-
selection: EditorSelection
|
|
3424
|
-
}
|
|
3425
|
-
| {
|
|
3426
|
-
type: 'notify.value changed'
|
|
3427
|
-
value: Array<PortableTextBlock> | undefined
|
|
3428
|
-
}
|
|
3429
|
-
| {
|
|
3430
|
-
type: 'notify.unset'
|
|
3431
|
-
previousValue: Array<PortableTextBlock>
|
|
3432
|
-
}
|
|
3433
|
-
| {
|
|
3434
|
-
type: 'dragstart'
|
|
3435
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3436
|
-
ghost?: HTMLElement
|
|
3437
|
-
}
|
|
3438
|
-
| {
|
|
3439
|
-
type: 'dragend'
|
|
3440
|
-
}
|
|
3441
|
-
| {
|
|
3442
|
-
type: 'drop'
|
|
3443
|
-
},
|
|
3444
|
-
undefined,
|
|
3445
|
-
never,
|
|
3446
|
-
never,
|
|
3447
|
-
never,
|
|
3448
|
-
never,
|
|
3449
|
-
| PatchEvent
|
|
3450
|
-
| InternalPatchEvent
|
|
3451
|
-
| MutationEvent
|
|
3452
|
-
| PatchesEvent
|
|
3453
|
-
| {
|
|
3454
|
-
type: 'blurred'
|
|
3455
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3456
|
-
}
|
|
3457
|
-
| {
|
|
3458
|
-
type: 'done loading'
|
|
3459
|
-
}
|
|
3460
|
-
| {
|
|
3461
|
-
type: 'editable'
|
|
3462
|
-
}
|
|
3463
|
-
| {
|
|
3464
|
-
type: 'error'
|
|
3465
|
-
name: string
|
|
3466
|
-
description: string
|
|
3467
|
-
data: unknown
|
|
3468
|
-
}
|
|
3469
|
-
| {
|
|
3470
|
-
type: 'focused'
|
|
3471
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3472
|
-
}
|
|
3473
|
-
| {
|
|
3474
|
-
type: 'invalid value'
|
|
3475
|
-
resolution: InvalidValueResolution | null
|
|
3476
|
-
value: Array<PortableTextBlock> | undefined
|
|
3477
|
-
}
|
|
3478
|
-
| {
|
|
3479
|
-
type: 'loading'
|
|
3480
|
-
}
|
|
3481
|
-
| {
|
|
3482
|
-
type: 'read only'
|
|
3483
|
-
}
|
|
3484
|
-
| {
|
|
3485
|
-
type: 'ready'
|
|
3486
|
-
}
|
|
3487
|
-
| {
|
|
3488
|
-
type: 'selection'
|
|
3489
|
-
selection: EditorSelection
|
|
3490
|
-
}
|
|
3491
|
-
| {
|
|
3492
|
-
type: 'value changed'
|
|
3493
|
-
value: Array<PortableTextBlock> | undefined
|
|
3494
|
-
}
|
|
3495
|
-
| UnsetEvent
|
|
3496
|
-
>
|
|
3497
|
-
}
|
|
3498
3367
|
readonly 'update behaviors': {
|
|
3499
3368
|
readonly actions: 'assign behaviors'
|
|
3500
3369
|
}
|
|
@@ -3506,6 +3375,7 @@ declare const editorMachine: StateMachine<
|
|
|
3506
3375
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3507
3376
|
keyGenerator: () => string
|
|
3508
3377
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3378
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3509
3379
|
schema: EditorSchema
|
|
3510
3380
|
initialReadOnly: boolean
|
|
3511
3381
|
maxBlocks: number | undefined
|
|
@@ -3523,6 +3393,7 @@ declare const editorMachine: StateMachine<
|
|
|
3523
3393
|
},
|
|
3524
3394
|
| InternalPatchEvent
|
|
3525
3395
|
| MutationEvent
|
|
3396
|
+
| PatchesEvent
|
|
3526
3397
|
| {
|
|
3527
3398
|
type: 'add behavior'
|
|
3528
3399
|
behavior: Behavior
|
|
@@ -3555,7 +3426,6 @@ declare const editorMachine: StateMachine<
|
|
|
3555
3426
|
type: 'update maxBlocks'
|
|
3556
3427
|
maxBlocks: number | undefined
|
|
3557
3428
|
}
|
|
3558
|
-
| PatchesEvent
|
|
3559
3429
|
| {
|
|
3560
3430
|
type: 'blur'
|
|
3561
3431
|
editor: PortableTextSlateEditor
|
|
@@ -3571,7 +3441,10 @@ declare const editorMachine: StateMachine<
|
|
|
3571
3441
|
type: 'done normalizing'
|
|
3572
3442
|
}
|
|
3573
3443
|
| {
|
|
3574
|
-
type: 'done syncing
|
|
3444
|
+
type: 'done syncing value'
|
|
3445
|
+
}
|
|
3446
|
+
| {
|
|
3447
|
+
type: 'syncing value'
|
|
3575
3448
|
}
|
|
3576
3449
|
| {
|
|
3577
3450
|
type: 'behavior event'
|
|
@@ -3667,6 +3540,7 @@ declare const editorMachine: StateMachine<
|
|
|
3667
3540
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3668
3541
|
keyGenerator: () => string
|
|
3669
3542
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3543
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3670
3544
|
schema: EditorSchema
|
|
3671
3545
|
initialReadOnly: boolean
|
|
3672
3546
|
maxBlocks: number | undefined
|
|
@@ -3684,6 +3558,7 @@ declare const editorMachine: StateMachine<
|
|
|
3684
3558
|
},
|
|
3685
3559
|
| InternalPatchEvent
|
|
3686
3560
|
| MutationEvent
|
|
3561
|
+
| PatchesEvent
|
|
3687
3562
|
| {
|
|
3688
3563
|
type: 'add behavior'
|
|
3689
3564
|
behavior: Behavior
|
|
@@ -3716,7 +3591,6 @@ declare const editorMachine: StateMachine<
|
|
|
3716
3591
|
type: 'update maxBlocks'
|
|
3717
3592
|
maxBlocks: number | undefined
|
|
3718
3593
|
}
|
|
3719
|
-
| PatchesEvent
|
|
3720
3594
|
| {
|
|
3721
3595
|
type: 'blur'
|
|
3722
3596
|
editor: PortableTextSlateEditor
|
|
@@ -3732,7 +3606,10 @@ declare const editorMachine: StateMachine<
|
|
|
3732
3606
|
type: 'done normalizing'
|
|
3733
3607
|
}
|
|
3734
3608
|
| {
|
|
3735
|
-
type: 'done syncing
|
|
3609
|
+
type: 'done syncing value'
|
|
3610
|
+
}
|
|
3611
|
+
| {
|
|
3612
|
+
type: 'syncing value'
|
|
3736
3613
|
}
|
|
3737
3614
|
| {
|
|
3738
3615
|
type: 'behavior event'
|
|
@@ -3825,6 +3702,7 @@ declare const editorMachine: StateMachine<
|
|
|
3825
3702
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3826
3703
|
keyGenerator: () => string
|
|
3827
3704
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3705
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3828
3706
|
schema: EditorSchema
|
|
3829
3707
|
initialReadOnly: boolean
|
|
3830
3708
|
maxBlocks: number | undefined
|
|
@@ -3842,6 +3720,7 @@ declare const editorMachine: StateMachine<
|
|
|
3842
3720
|
},
|
|
3843
3721
|
| InternalPatchEvent
|
|
3844
3722
|
| MutationEvent
|
|
3723
|
+
| PatchesEvent
|
|
3845
3724
|
| {
|
|
3846
3725
|
type: 'add behavior'
|
|
3847
3726
|
behavior: Behavior
|
|
@@ -3874,7 +3753,6 @@ declare const editorMachine: StateMachine<
|
|
|
3874
3753
|
type: 'update maxBlocks'
|
|
3875
3754
|
maxBlocks: number | undefined
|
|
3876
3755
|
}
|
|
3877
|
-
| PatchesEvent
|
|
3878
3756
|
| {
|
|
3879
3757
|
type: 'blur'
|
|
3880
3758
|
editor: PortableTextSlateEditor
|
|
@@ -3890,7 +3768,10 @@ declare const editorMachine: StateMachine<
|
|
|
3890
3768
|
type: 'done normalizing'
|
|
3891
3769
|
}
|
|
3892
3770
|
| {
|
|
3893
|
-
type: 'done syncing
|
|
3771
|
+
type: 'done syncing value'
|
|
3772
|
+
}
|
|
3773
|
+
| {
|
|
3774
|
+
type: 'syncing value'
|
|
3894
3775
|
}
|
|
3895
3776
|
| {
|
|
3896
3777
|
type: 'behavior event'
|
|
@@ -3995,6 +3876,7 @@ declare const editorMachine: StateMachine<
|
|
|
3995
3876
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3996
3877
|
keyGenerator: () => string
|
|
3997
3878
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3879
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3998
3880
|
schema: EditorSchema
|
|
3999
3881
|
initialReadOnly: boolean
|
|
4000
3882
|
maxBlocks: number | undefined
|
|
@@ -4020,7 +3902,7 @@ declare const editorMachine: StateMachine<
|
|
|
4020
3902
|
readonly states: {
|
|
4021
3903
|
readonly 'determine initial edit mode': {
|
|
4022
3904
|
readonly on: {
|
|
4023
|
-
readonly 'done syncing
|
|
3905
|
+
readonly 'done syncing value': readonly [
|
|
4024
3906
|
{
|
|
4025
3907
|
readonly target: '#editor.edit mode.read only.read only'
|
|
4026
3908
|
readonly guard: ({
|
|
@@ -4034,6 +3916,7 @@ declare const editorMachine: StateMachine<
|
|
|
4034
3916
|
pendingEvents: Array<
|
|
4035
3917
|
InternalPatchEvent | MutationEvent
|
|
4036
3918
|
>
|
|
3919
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4037
3920
|
schema: EditorSchema
|
|
4038
3921
|
initialReadOnly: boolean
|
|
4039
3922
|
maxBlocks: number | undefined
|
|
@@ -4046,7 +3929,7 @@ declare const editorMachine: StateMachine<
|
|
|
4046
3929
|
slateEditor?: PortableTextSlateEditor
|
|
4047
3930
|
},
|
|
4048
3931
|
{
|
|
4049
|
-
type: 'done syncing
|
|
3932
|
+
type: 'done syncing value'
|
|
4050
3933
|
}
|
|
4051
3934
|
>) => boolean
|
|
4052
3935
|
},
|
|
@@ -4068,6 +3951,7 @@ declare const editorMachine: StateMachine<
|
|
|
4068
3951
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4069
3952
|
keyGenerator: () => string
|
|
4070
3953
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3954
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4071
3955
|
schema: EditorSchema
|
|
4072
3956
|
initialReadOnly: boolean
|
|
4073
3957
|
maxBlocks: number | undefined
|
|
@@ -4103,6 +3987,7 @@ declare const editorMachine: StateMachine<
|
|
|
4103
3987
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4104
3988
|
keyGenerator: () => string
|
|
4105
3989
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3990
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4106
3991
|
schema: EditorSchema
|
|
4107
3992
|
initialReadOnly: boolean
|
|
4108
3993
|
maxBlocks: number | undefined
|
|
@@ -4138,6 +4023,7 @@ declare const editorMachine: StateMachine<
|
|
|
4138
4023
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4139
4024
|
keyGenerator: () => string
|
|
4140
4025
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4026
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4141
4027
|
schema: EditorSchema
|
|
4142
4028
|
initialReadOnly: boolean
|
|
4143
4029
|
maxBlocks: number | undefined
|
|
@@ -4155,6 +4041,7 @@ declare const editorMachine: StateMachine<
|
|
|
4155
4041
|
},
|
|
4156
4042
|
| InternalPatchEvent
|
|
4157
4043
|
| MutationEvent
|
|
4044
|
+
| PatchesEvent
|
|
4158
4045
|
| {
|
|
4159
4046
|
type: 'add behavior'
|
|
4160
4047
|
behavior: Behavior
|
|
@@ -4187,7 +4074,6 @@ declare const editorMachine: StateMachine<
|
|
|
4187
4074
|
type: 'update maxBlocks'
|
|
4188
4075
|
maxBlocks: number | undefined
|
|
4189
4076
|
}
|
|
4190
|
-
| PatchesEvent
|
|
4191
4077
|
| {
|
|
4192
4078
|
type: 'blur'
|
|
4193
4079
|
editor: PortableTextSlateEditor
|
|
@@ -4203,7 +4089,10 @@ declare const editorMachine: StateMachine<
|
|
|
4203
4089
|
type: 'done normalizing'
|
|
4204
4090
|
}
|
|
4205
4091
|
| {
|
|
4206
|
-
type: 'done syncing
|
|
4092
|
+
type: 'done syncing value'
|
|
4093
|
+
}
|
|
4094
|
+
| {
|
|
4095
|
+
type: 'syncing value'
|
|
4207
4096
|
}
|
|
4208
4097
|
| {
|
|
4209
4098
|
type: 'behavior event'
|
|
@@ -4305,6 +4194,7 @@ declare const editorMachine: StateMachine<
|
|
|
4305
4194
|
pendingEvents: Array<
|
|
4306
4195
|
InternalPatchEvent | MutationEvent
|
|
4307
4196
|
>
|
|
4197
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4308
4198
|
schema: EditorSchema
|
|
4309
4199
|
initialReadOnly: boolean
|
|
4310
4200
|
maxBlocks: number | undefined
|
|
@@ -4323,6 +4213,7 @@ declare const editorMachine: StateMachine<
|
|
|
4323
4213
|
},
|
|
4324
4214
|
| InternalPatchEvent
|
|
4325
4215
|
| MutationEvent
|
|
4216
|
+
| PatchesEvent
|
|
4326
4217
|
| {
|
|
4327
4218
|
type: 'add behavior'
|
|
4328
4219
|
behavior: Behavior
|
|
@@ -4355,7 +4246,6 @@ declare const editorMachine: StateMachine<
|
|
|
4355
4246
|
type: 'update maxBlocks'
|
|
4356
4247
|
maxBlocks: number | undefined
|
|
4357
4248
|
}
|
|
4358
|
-
| PatchesEvent
|
|
4359
4249
|
| {
|
|
4360
4250
|
type: 'blur'
|
|
4361
4251
|
editor: PortableTextSlateEditor
|
|
@@ -4371,7 +4261,10 @@ declare const editorMachine: StateMachine<
|
|
|
4371
4261
|
type: 'done normalizing'
|
|
4372
4262
|
}
|
|
4373
4263
|
| {
|
|
4374
|
-
type: 'done syncing
|
|
4264
|
+
type: 'done syncing value'
|
|
4265
|
+
}
|
|
4266
|
+
| {
|
|
4267
|
+
type: 'syncing value'
|
|
4375
4268
|
}
|
|
4376
4269
|
| {
|
|
4377
4270
|
type: 'behavior event'
|
|
@@ -4495,6 +4388,7 @@ declare const editorMachine: StateMachine<
|
|
|
4495
4388
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4496
4389
|
keyGenerator: () => string
|
|
4497
4390
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4391
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4498
4392
|
schema: EditorSchema
|
|
4499
4393
|
initialReadOnly: boolean
|
|
4500
4394
|
maxBlocks: number | undefined
|
|
@@ -4508,6 +4402,7 @@ declare const editorMachine: StateMachine<
|
|
|
4508
4402
|
},
|
|
4509
4403
|
| InternalPatchEvent
|
|
4510
4404
|
| MutationEvent
|
|
4405
|
+
| PatchesEvent
|
|
4511
4406
|
| {
|
|
4512
4407
|
type: 'add behavior'
|
|
4513
4408
|
behavior: Behavior
|
|
@@ -4540,7 +4435,6 @@ declare const editorMachine: StateMachine<
|
|
|
4540
4435
|
type: 'update maxBlocks'
|
|
4541
4436
|
maxBlocks: number | undefined
|
|
4542
4437
|
}
|
|
4543
|
-
| PatchesEvent
|
|
4544
4438
|
| {
|
|
4545
4439
|
type: 'blur'
|
|
4546
4440
|
editor: PortableTextSlateEditor
|
|
@@ -4556,7 +4450,10 @@ declare const editorMachine: StateMachine<
|
|
|
4556
4450
|
type: 'done normalizing'
|
|
4557
4451
|
}
|
|
4558
4452
|
| {
|
|
4559
|
-
type: 'done syncing
|
|
4453
|
+
type: 'done syncing value'
|
|
4454
|
+
}
|
|
4455
|
+
| {
|
|
4456
|
+
type: 'syncing value'
|
|
4560
4457
|
}
|
|
4561
4458
|
| {
|
|
4562
4459
|
type: 'behavior event'
|
|
@@ -4635,6 +4532,7 @@ declare const editorMachine: StateMachine<
|
|
|
4635
4532
|
},
|
|
4636
4533
|
| InternalPatchEvent
|
|
4637
4534
|
| MutationEvent
|
|
4535
|
+
| PatchesEvent
|
|
4638
4536
|
| {
|
|
4639
4537
|
type: 'add behavior'
|
|
4640
4538
|
behavior: Behavior
|
|
@@ -4667,7 +4565,6 @@ declare const editorMachine: StateMachine<
|
|
|
4667
4565
|
type: 'update maxBlocks'
|
|
4668
4566
|
maxBlocks: number | undefined
|
|
4669
4567
|
}
|
|
4670
|
-
| PatchesEvent
|
|
4671
4568
|
| {
|
|
4672
4569
|
type: 'blur'
|
|
4673
4570
|
editor: PortableTextSlateEditor
|
|
@@ -4683,7 +4580,10 @@ declare const editorMachine: StateMachine<
|
|
|
4683
4580
|
type: 'done normalizing'
|
|
4684
4581
|
}
|
|
4685
4582
|
| {
|
|
4686
|
-
type: 'done syncing
|
|
4583
|
+
type: 'done syncing value'
|
|
4584
|
+
}
|
|
4585
|
+
| {
|
|
4586
|
+
type: 'syncing value'
|
|
4687
4587
|
}
|
|
4688
4588
|
| {
|
|
4689
4589
|
type: 'behavior event'
|
|
@@ -4768,6 +4668,7 @@ declare const editorMachine: StateMachine<
|
|
|
4768
4668
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4769
4669
|
keyGenerator: () => string
|
|
4770
4670
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4671
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4771
4672
|
schema: EditorSchema
|
|
4772
4673
|
initialReadOnly: boolean
|
|
4773
4674
|
maxBlocks: number | undefined
|
|
@@ -4781,6 +4682,7 @@ declare const editorMachine: StateMachine<
|
|
|
4781
4682
|
},
|
|
4782
4683
|
| InternalPatchEvent
|
|
4783
4684
|
| MutationEvent
|
|
4685
|
+
| PatchesEvent
|
|
4784
4686
|
| {
|
|
4785
4687
|
type: 'add behavior'
|
|
4786
4688
|
behavior: Behavior
|
|
@@ -4813,7 +4715,6 @@ declare const editorMachine: StateMachine<
|
|
|
4813
4715
|
type: 'update maxBlocks'
|
|
4814
4716
|
maxBlocks: number | undefined
|
|
4815
4717
|
}
|
|
4816
|
-
| PatchesEvent
|
|
4817
4718
|
| {
|
|
4818
4719
|
type: 'blur'
|
|
4819
4720
|
editor: PortableTextSlateEditor
|
|
@@ -4829,7 +4730,10 @@ declare const editorMachine: StateMachine<
|
|
|
4829
4730
|
type: 'done normalizing'
|
|
4830
4731
|
}
|
|
4831
4732
|
| {
|
|
4832
|
-
type: 'done syncing
|
|
4733
|
+
type: 'done syncing value'
|
|
4734
|
+
}
|
|
4735
|
+
| {
|
|
4736
|
+
type: 'syncing value'
|
|
4833
4737
|
}
|
|
4834
4738
|
| {
|
|
4835
4739
|
type: 'behavior event'
|
|
@@ -4908,6 +4812,7 @@ declare const editorMachine: StateMachine<
|
|
|
4908
4812
|
},
|
|
4909
4813
|
| InternalPatchEvent
|
|
4910
4814
|
| MutationEvent
|
|
4815
|
+
| PatchesEvent
|
|
4911
4816
|
| {
|
|
4912
4817
|
type: 'add behavior'
|
|
4913
4818
|
behavior: Behavior
|
|
@@ -4940,7 +4845,6 @@ declare const editorMachine: StateMachine<
|
|
|
4940
4845
|
type: 'update maxBlocks'
|
|
4941
4846
|
maxBlocks: number | undefined
|
|
4942
4847
|
}
|
|
4943
|
-
| PatchesEvent
|
|
4944
4848
|
| {
|
|
4945
4849
|
type: 'blur'
|
|
4946
4850
|
editor: PortableTextSlateEditor
|
|
@@ -4956,7 +4860,10 @@ declare const editorMachine: StateMachine<
|
|
|
4956
4860
|
type: 'done normalizing'
|
|
4957
4861
|
}
|
|
4958
4862
|
| {
|
|
4959
|
-
type: 'done syncing
|
|
4863
|
+
type: 'done syncing value'
|
|
4864
|
+
}
|
|
4865
|
+
| {
|
|
4866
|
+
type: 'syncing value'
|
|
4960
4867
|
}
|
|
4961
4868
|
| {
|
|
4962
4869
|
type: 'behavior event'
|
|
@@ -5059,7 +4966,11 @@ declare const editorMachine: StateMachine<
|
|
|
5059
4966
|
readonly initial: 'setting up'
|
|
5060
4967
|
readonly states: {
|
|
5061
4968
|
readonly 'setting up': {
|
|
5062
|
-
readonly exit: readonly [
|
|
4969
|
+
readonly exit: readonly [
|
|
4970
|
+
'emit ready',
|
|
4971
|
+
'emit pending incoming patches',
|
|
4972
|
+
'clear pending incoming patches',
|
|
4973
|
+
]
|
|
5063
4974
|
readonly on: {
|
|
5064
4975
|
readonly 'internal.patch': {
|
|
5065
4976
|
readonly actions: 'defer event'
|
|
@@ -5067,58 +4978,308 @@ declare const editorMachine: StateMachine<
|
|
|
5067
4978
|
readonly 'mutation': {
|
|
5068
4979
|
readonly actions: 'defer event'
|
|
5069
4980
|
}
|
|
5070
|
-
readonly 'done syncing
|
|
5071
|
-
readonly target: '
|
|
4981
|
+
readonly 'done syncing value': {
|
|
4982
|
+
readonly target: 'set up'
|
|
4983
|
+
}
|
|
4984
|
+
readonly 'patches': {
|
|
4985
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5072
4986
|
}
|
|
5073
4987
|
}
|
|
5074
4988
|
}
|
|
5075
|
-
readonly '
|
|
5076
|
-
readonly
|
|
4989
|
+
readonly 'set up': {
|
|
4990
|
+
readonly type: 'parallel'
|
|
5077
4991
|
readonly states: {
|
|
5078
|
-
readonly
|
|
5079
|
-
readonly
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
4992
|
+
readonly 'value sync': {
|
|
4993
|
+
readonly initial: 'idle'
|
|
4994
|
+
readonly states: {
|
|
4995
|
+
readonly 'idle': {
|
|
4996
|
+
readonly on: {
|
|
4997
|
+
readonly 'patches': {
|
|
4998
|
+
readonly actions: readonly [
|
|
4999
|
+
ActionFunction<
|
|
5000
|
+
{
|
|
5001
|
+
behaviors: Set<Behavior>
|
|
5002
|
+
converters: Set<Converter>
|
|
5003
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
5004
|
+
keyGenerator: () => string
|
|
5005
|
+
pendingEvents: Array<
|
|
5006
|
+
InternalPatchEvent | MutationEvent
|
|
5007
|
+
>
|
|
5008
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
5009
|
+
schema: EditorSchema
|
|
5010
|
+
initialReadOnly: boolean
|
|
5011
|
+
maxBlocks: number | undefined
|
|
5012
|
+
selection: EditorSelection
|
|
5013
|
+
incomingValue:
|
|
5014
|
+
| Array<PortableTextBlock>
|
|
5015
|
+
| undefined
|
|
5016
|
+
internalDrag?: {
|
|
5017
|
+
ghost?: HTMLElement
|
|
5018
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5019
|
+
}
|
|
5020
|
+
slateEditor?: PortableTextSlateEditor
|
|
5021
|
+
},
|
|
5022
|
+
PatchesEvent,
|
|
5023
|
+
| InternalPatchEvent
|
|
5024
|
+
| MutationEvent
|
|
5025
|
+
| PatchesEvent
|
|
5026
|
+
| {
|
|
5027
|
+
type: 'add behavior'
|
|
5028
|
+
behavior: Behavior
|
|
5029
|
+
}
|
|
5030
|
+
| {
|
|
5031
|
+
type: 'remove behavior'
|
|
5032
|
+
behavior: Behavior
|
|
5033
|
+
}
|
|
5034
|
+
| {
|
|
5035
|
+
type: 'update readOnly'
|
|
5036
|
+
readOnly: boolean
|
|
5037
|
+
}
|
|
5038
|
+
| {
|
|
5039
|
+
type: 'update schema'
|
|
5040
|
+
schema: EditorSchema
|
|
5041
|
+
}
|
|
5042
|
+
| {
|
|
5043
|
+
type: 'update behaviors'
|
|
5044
|
+
behaviors: Array<Behavior>
|
|
5045
|
+
}
|
|
5046
|
+
| {
|
|
5047
|
+
type: 'update key generator'
|
|
5048
|
+
keyGenerator: () => string
|
|
5049
|
+
}
|
|
5050
|
+
| {
|
|
5051
|
+
type: 'update value'
|
|
5052
|
+
value: Array<PortableTextBlock> | undefined
|
|
5053
|
+
}
|
|
5054
|
+
| {
|
|
5055
|
+
type: 'update maxBlocks'
|
|
5056
|
+
maxBlocks: number | undefined
|
|
5057
|
+
}
|
|
5058
|
+
| {
|
|
5059
|
+
type: 'blur'
|
|
5060
|
+
editor: PortableTextSlateEditor
|
|
5061
|
+
}
|
|
5062
|
+
| {
|
|
5063
|
+
type: 'focus'
|
|
5064
|
+
editor: PortableTextSlateEditor
|
|
5065
|
+
}
|
|
5066
|
+
| {
|
|
5067
|
+
type: 'normalizing'
|
|
5068
|
+
}
|
|
5069
|
+
| {
|
|
5070
|
+
type: 'done normalizing'
|
|
5071
|
+
}
|
|
5072
|
+
| {
|
|
5073
|
+
type: 'done syncing value'
|
|
5074
|
+
}
|
|
5075
|
+
| {
|
|
5076
|
+
type: 'syncing value'
|
|
5077
|
+
}
|
|
5078
|
+
| {
|
|
5079
|
+
type: 'behavior event'
|
|
5080
|
+
behaviorEvent: BehaviorEvent
|
|
5081
|
+
editor: PortableTextSlateEditor
|
|
5082
|
+
nativeEvent?: {
|
|
5083
|
+
preventDefault: () => void
|
|
5084
|
+
}
|
|
5085
|
+
}
|
|
5086
|
+
| {
|
|
5087
|
+
type: 'notify.patch'
|
|
5088
|
+
patch: Patch
|
|
5089
|
+
}
|
|
5090
|
+
| {
|
|
5091
|
+
type: 'notify.mutation'
|
|
5092
|
+
patches: Array<Patch>
|
|
5093
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
5094
|
+
value: Array<PortableTextBlock> | undefined
|
|
5095
|
+
}
|
|
5096
|
+
| {
|
|
5097
|
+
type: 'notify.blurred'
|
|
5098
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5099
|
+
}
|
|
5100
|
+
| {
|
|
5101
|
+
type: 'notify.done loading'
|
|
5102
|
+
}
|
|
5103
|
+
| {
|
|
5104
|
+
type: 'notify.editable'
|
|
5105
|
+
}
|
|
5106
|
+
| {
|
|
5107
|
+
type: 'notify.error'
|
|
5108
|
+
name: string
|
|
5109
|
+
description: string
|
|
5110
|
+
data: unknown
|
|
5111
|
+
}
|
|
5112
|
+
| {
|
|
5113
|
+
type: 'notify.focused'
|
|
5114
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5115
|
+
}
|
|
5116
|
+
| {
|
|
5117
|
+
type: 'notify.invalid value'
|
|
5118
|
+
resolution: InvalidValueResolution | null
|
|
5119
|
+
value: Array<PortableTextBlock> | undefined
|
|
5120
|
+
}
|
|
5121
|
+
| {
|
|
5122
|
+
type: 'notify.loading'
|
|
5123
|
+
}
|
|
5124
|
+
| {
|
|
5125
|
+
type: 'notify.read only'
|
|
5126
|
+
}
|
|
5127
|
+
| {
|
|
5128
|
+
type: 'notify.ready'
|
|
5129
|
+
}
|
|
5130
|
+
| {
|
|
5131
|
+
type: 'notify.selection'
|
|
5132
|
+
selection: EditorSelection
|
|
5133
|
+
}
|
|
5134
|
+
| {
|
|
5135
|
+
type: 'notify.value changed'
|
|
5136
|
+
value: Array<PortableTextBlock> | undefined
|
|
5137
|
+
}
|
|
5138
|
+
| {
|
|
5139
|
+
type: 'notify.unset'
|
|
5140
|
+
previousValue: Array<PortableTextBlock>
|
|
5141
|
+
}
|
|
5142
|
+
| {
|
|
5143
|
+
type: 'dragstart'
|
|
5144
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5145
|
+
ghost?: HTMLElement
|
|
5146
|
+
}
|
|
5147
|
+
| {
|
|
5148
|
+
type: 'dragend'
|
|
5149
|
+
}
|
|
5150
|
+
| {
|
|
5151
|
+
type: 'drop'
|
|
5152
|
+
},
|
|
5153
|
+
undefined,
|
|
5154
|
+
never,
|
|
5155
|
+
never,
|
|
5156
|
+
never,
|
|
5157
|
+
never,
|
|
5158
|
+
| PatchEvent
|
|
5159
|
+
| InternalPatchEvent
|
|
5160
|
+
| MutationEvent
|
|
5161
|
+
| PatchesEvent
|
|
5162
|
+
| {
|
|
5163
|
+
type: 'blurred'
|
|
5164
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5165
|
+
}
|
|
5166
|
+
| {
|
|
5167
|
+
type: 'done loading'
|
|
5168
|
+
}
|
|
5169
|
+
| {
|
|
5170
|
+
type: 'editable'
|
|
5171
|
+
}
|
|
5172
|
+
| {
|
|
5173
|
+
type: 'error'
|
|
5174
|
+
name: string
|
|
5175
|
+
description: string
|
|
5176
|
+
data: unknown
|
|
5177
|
+
}
|
|
5178
|
+
| {
|
|
5179
|
+
type: 'focused'
|
|
5180
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5181
|
+
}
|
|
5182
|
+
| {
|
|
5183
|
+
type: 'invalid value'
|
|
5184
|
+
resolution: InvalidValueResolution | null
|
|
5185
|
+
value: Array<PortableTextBlock> | undefined
|
|
5186
|
+
}
|
|
5187
|
+
| {
|
|
5188
|
+
type: 'loading'
|
|
5189
|
+
}
|
|
5190
|
+
| {
|
|
5191
|
+
type: 'read only'
|
|
5192
|
+
}
|
|
5193
|
+
| {
|
|
5194
|
+
type: 'ready'
|
|
5195
|
+
}
|
|
5196
|
+
| {
|
|
5197
|
+
type: 'selection'
|
|
5198
|
+
selection: EditorSelection
|
|
5199
|
+
}
|
|
5200
|
+
| {
|
|
5201
|
+
type: 'value changed'
|
|
5202
|
+
value: Array<PortableTextBlock> | undefined
|
|
5203
|
+
}
|
|
5204
|
+
| UnsetEvent
|
|
5205
|
+
>,
|
|
5206
|
+
]
|
|
5207
|
+
}
|
|
5208
|
+
readonly 'syncing value': {
|
|
5209
|
+
readonly target: 'syncing value'
|
|
5210
|
+
}
|
|
5211
|
+
}
|
|
5086
5212
|
}
|
|
5087
|
-
readonly '
|
|
5088
|
-
readonly
|
|
5089
|
-
|
|
5213
|
+
readonly 'syncing value': {
|
|
5214
|
+
readonly exit: readonly [
|
|
5215
|
+
'emit pending incoming patches',
|
|
5216
|
+
'clear pending incoming patches',
|
|
5217
|
+
]
|
|
5218
|
+
readonly on: {
|
|
5219
|
+
readonly 'patches': {
|
|
5220
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5221
|
+
}
|
|
5222
|
+
readonly 'done syncing value': {
|
|
5223
|
+
readonly target: 'idle'
|
|
5224
|
+
}
|
|
5225
|
+
}
|
|
5090
5226
|
}
|
|
5091
5227
|
}
|
|
5092
5228
|
}
|
|
5093
|
-
readonly
|
|
5094
|
-
readonly
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5229
|
+
readonly 'writing': {
|
|
5230
|
+
readonly initial: 'pristine'
|
|
5231
|
+
readonly states: {
|
|
5232
|
+
readonly pristine: {
|
|
5233
|
+
readonly initial: 'idle'
|
|
5234
|
+
readonly states: {
|
|
5235
|
+
readonly idle: {
|
|
5236
|
+
readonly on: {
|
|
5237
|
+
readonly 'normalizing': {
|
|
5238
|
+
readonly target: 'normalizing'
|
|
5239
|
+
}
|
|
5240
|
+
readonly 'internal.patch': {
|
|
5241
|
+
readonly actions: 'defer event'
|
|
5242
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
5243
|
+
}
|
|
5244
|
+
readonly 'mutation': {
|
|
5245
|
+
readonly actions: 'defer event'
|
|
5246
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
5247
|
+
}
|
|
5248
|
+
}
|
|
5249
|
+
}
|
|
5250
|
+
readonly normalizing: {
|
|
5251
|
+
readonly on: {
|
|
5252
|
+
readonly 'done normalizing': {
|
|
5253
|
+
readonly target: 'idle'
|
|
5254
|
+
}
|
|
5255
|
+
readonly 'internal.patch': {
|
|
5256
|
+
readonly actions: 'defer event'
|
|
5257
|
+
}
|
|
5258
|
+
readonly 'mutation': {
|
|
5259
|
+
readonly actions: 'defer event'
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5100
5264
|
}
|
|
5101
|
-
readonly
|
|
5102
|
-
readonly
|
|
5265
|
+
readonly dirty: {
|
|
5266
|
+
readonly entry: readonly [
|
|
5267
|
+
'emit pending events',
|
|
5268
|
+
'clear pending events',
|
|
5269
|
+
]
|
|
5270
|
+
readonly on: {
|
|
5271
|
+
readonly 'internal.patch': {
|
|
5272
|
+
readonly actions: 'emit patch event'
|
|
5273
|
+
}
|
|
5274
|
+
readonly 'mutation': {
|
|
5275
|
+
readonly actions: 'emit mutation event'
|
|
5276
|
+
}
|
|
5277
|
+
}
|
|
5103
5278
|
}
|
|
5104
5279
|
}
|
|
5105
5280
|
}
|
|
5106
5281
|
}
|
|
5107
5282
|
}
|
|
5108
|
-
readonly 'dirty': {
|
|
5109
|
-
readonly entry: readonly [
|
|
5110
|
-
'emit pending events',
|
|
5111
|
-
'clear pending events',
|
|
5112
|
-
]
|
|
5113
|
-
readonly on: {
|
|
5114
|
-
readonly 'internal.patch': {
|
|
5115
|
-
readonly actions: 'emit patch event'
|
|
5116
|
-
}
|
|
5117
|
-
readonly 'mutation': {
|
|
5118
|
-
readonly actions: 'emit mutation event'
|
|
5119
|
-
}
|
|
5120
|
-
}
|
|
5121
|
-
}
|
|
5122
5283
|
}
|
|
5123
5284
|
}
|
|
5124
5285
|
}
|