@portabletext/editor 1.16.2 → 1.16.3
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/index.cjs +106 -100
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +36 -113
- package/lib/index.d.ts +36 -113
- package/lib/index.js +107 -101
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
- package/src/behavior-actions/behavior.actions.ts +0 -3
- package/src/editor/editor-machine.ts +8 -7
- package/src/editor/sync-machine.ts +117 -107
package/lib/index.d.cts
CHANGED
|
@@ -667,7 +667,7 @@ export declare const editorMachine: StateMachine<
|
|
|
667
667
|
type: 'done normalizing'
|
|
668
668
|
}
|
|
669
669
|
| {
|
|
670
|
-
type: 'done syncing'
|
|
670
|
+
type: 'done syncing initial value'
|
|
671
671
|
}
|
|
672
672
|
| {
|
|
673
673
|
type: 'behavior event'
|
|
@@ -702,9 +702,6 @@ export declare const editorMachine: StateMachine<
|
|
|
702
702
|
type: 'update maxBlocks'
|
|
703
703
|
maxBlocks: number | undefined
|
|
704
704
|
}
|
|
705
|
-
| {
|
|
706
|
-
type: 'ready'
|
|
707
|
-
}
|
|
708
705
|
| PatchesEvent
|
|
709
706
|
| {
|
|
710
707
|
type: 'unset'
|
|
@@ -1055,7 +1052,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1055
1052
|
type: 'done normalizing'
|
|
1056
1053
|
}
|
|
1057
1054
|
| {
|
|
1058
|
-
type: 'done syncing'
|
|
1055
|
+
type: 'done syncing initial value'
|
|
1059
1056
|
}
|
|
1060
1057
|
| {
|
|
1061
1058
|
type: 'behavior event'
|
|
@@ -1090,9 +1087,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1090
1087
|
type: 'update maxBlocks'
|
|
1091
1088
|
maxBlocks: number | undefined
|
|
1092
1089
|
}
|
|
1093
|
-
| {
|
|
1094
|
-
type: 'ready'
|
|
1095
|
-
}
|
|
1096
1090
|
| PatchesEvent
|
|
1097
1091
|
| {
|
|
1098
1092
|
type: 'unset'
|
|
@@ -1216,7 +1210,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1216
1210
|
type: 'done normalizing'
|
|
1217
1211
|
}
|
|
1218
1212
|
| {
|
|
1219
|
-
type: 'done syncing'
|
|
1213
|
+
type: 'done syncing initial value'
|
|
1220
1214
|
}
|
|
1221
1215
|
| {
|
|
1222
1216
|
type: 'behavior event'
|
|
@@ -1251,9 +1245,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1251
1245
|
type: 'update maxBlocks'
|
|
1252
1246
|
maxBlocks: number | undefined
|
|
1253
1247
|
}
|
|
1254
|
-
| {
|
|
1255
|
-
type: 'ready'
|
|
1256
|
-
}
|
|
1257
1248
|
| PatchesEvent
|
|
1258
1249
|
| {
|
|
1259
1250
|
type: 'unset'
|
|
@@ -1399,7 +1390,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1399
1390
|
type: 'done normalizing'
|
|
1400
1391
|
}
|
|
1401
1392
|
| {
|
|
1402
|
-
type: 'done syncing'
|
|
1393
|
+
type: 'done syncing initial value'
|
|
1403
1394
|
}
|
|
1404
1395
|
| {
|
|
1405
1396
|
type: 'behavior event'
|
|
@@ -1434,9 +1425,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1434
1425
|
type: 'update maxBlocks'
|
|
1435
1426
|
maxBlocks: number | undefined
|
|
1436
1427
|
}
|
|
1437
|
-
| {
|
|
1438
|
-
type: 'ready'
|
|
1439
|
-
}
|
|
1440
1428
|
| PatchesEvent
|
|
1441
1429
|
| {
|
|
1442
1430
|
type: 'unset'
|
|
@@ -1694,7 +1682,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1694
1682
|
type: 'done normalizing'
|
|
1695
1683
|
}
|
|
1696
1684
|
| {
|
|
1697
|
-
type: 'done syncing'
|
|
1685
|
+
type: 'done syncing initial value'
|
|
1698
1686
|
}
|
|
1699
1687
|
| {
|
|
1700
1688
|
type: 'behavior event'
|
|
@@ -1729,9 +1717,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1729
1717
|
type: 'update maxBlocks'
|
|
1730
1718
|
maxBlocks: number | undefined
|
|
1731
1719
|
}
|
|
1732
|
-
| {
|
|
1733
|
-
type: 'ready'
|
|
1734
|
-
}
|
|
1735
1720
|
| PatchesEvent
|
|
1736
1721
|
| {
|
|
1737
1722
|
type: 'unset'
|
|
@@ -1990,7 +1975,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1990
1975
|
type: 'done normalizing'
|
|
1991
1976
|
}
|
|
1992
1977
|
| {
|
|
1993
|
-
type: 'done syncing'
|
|
1978
|
+
type: 'done syncing initial value'
|
|
1994
1979
|
}
|
|
1995
1980
|
| {
|
|
1996
1981
|
type: 'behavior event'
|
|
@@ -2025,9 +2010,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2025
2010
|
type: 'update maxBlocks'
|
|
2026
2011
|
maxBlocks: number | undefined
|
|
2027
2012
|
}
|
|
2028
|
-
| {
|
|
2029
|
-
type: 'ready'
|
|
2030
|
-
}
|
|
2031
2013
|
| PatchesEvent
|
|
2032
2014
|
| {
|
|
2033
2015
|
type: 'unset'
|
|
@@ -2287,7 +2269,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2287
2269
|
type: 'done normalizing'
|
|
2288
2270
|
}
|
|
2289
2271
|
| {
|
|
2290
|
-
type: 'done syncing'
|
|
2272
|
+
type: 'done syncing initial value'
|
|
2291
2273
|
}
|
|
2292
2274
|
| {
|
|
2293
2275
|
type: 'behavior event'
|
|
@@ -2322,9 +2304,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2322
2304
|
type: 'update maxBlocks'
|
|
2323
2305
|
maxBlocks: number | undefined
|
|
2324
2306
|
}
|
|
2325
|
-
| {
|
|
2326
|
-
type: 'ready'
|
|
2327
|
-
}
|
|
2328
2307
|
| PatchesEvent
|
|
2329
2308
|
| {
|
|
2330
2309
|
type: 'unset'
|
|
@@ -2583,7 +2562,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2583
2562
|
type: 'done normalizing'
|
|
2584
2563
|
}
|
|
2585
2564
|
| {
|
|
2586
|
-
type: 'done syncing'
|
|
2565
|
+
type: 'done syncing initial value'
|
|
2587
2566
|
}
|
|
2588
2567
|
| {
|
|
2589
2568
|
type: 'behavior event'
|
|
@@ -2618,9 +2597,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2618
2597
|
type: 'update maxBlocks'
|
|
2619
2598
|
maxBlocks: number | undefined
|
|
2620
2599
|
}
|
|
2621
|
-
| {
|
|
2622
|
-
type: 'ready'
|
|
2623
|
-
}
|
|
2624
2600
|
| PatchesEvent
|
|
2625
2601
|
| {
|
|
2626
2602
|
type: 'unset'
|
|
@@ -2759,7 +2735,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2759
2735
|
type: 'done normalizing'
|
|
2760
2736
|
}
|
|
2761
2737
|
| {
|
|
2762
|
-
type: 'done syncing'
|
|
2738
|
+
type: 'done syncing initial value'
|
|
2763
2739
|
}
|
|
2764
2740
|
| {
|
|
2765
2741
|
type: 'behavior event'
|
|
@@ -2794,9 +2770,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2794
2770
|
type: 'update maxBlocks'
|
|
2795
2771
|
maxBlocks: number | undefined
|
|
2796
2772
|
}
|
|
2797
|
-
| {
|
|
2798
|
-
type: 'ready'
|
|
2799
|
-
}
|
|
2800
2773
|
| PatchesEvent
|
|
2801
2774
|
| {
|
|
2802
2775
|
type: 'unset'
|
|
@@ -3055,7 +3028,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3055
3028
|
type: 'done normalizing'
|
|
3056
3029
|
}
|
|
3057
3030
|
| {
|
|
3058
|
-
type: 'done syncing'
|
|
3031
|
+
type: 'done syncing initial value'
|
|
3059
3032
|
}
|
|
3060
3033
|
| {
|
|
3061
3034
|
type: 'behavior event'
|
|
@@ -3090,9 +3063,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3090
3063
|
type: 'update maxBlocks'
|
|
3091
3064
|
maxBlocks: number | undefined
|
|
3092
3065
|
}
|
|
3093
|
-
| {
|
|
3094
|
-
type: 'ready'
|
|
3095
|
-
}
|
|
3096
3066
|
| PatchesEvent
|
|
3097
3067
|
| {
|
|
3098
3068
|
type: 'unset'
|
|
@@ -3350,7 +3320,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3350
3320
|
type: 'done normalizing'
|
|
3351
3321
|
}
|
|
3352
3322
|
| {
|
|
3353
|
-
type: 'done syncing'
|
|
3323
|
+
type: 'done syncing initial value'
|
|
3354
3324
|
}
|
|
3355
3325
|
| {
|
|
3356
3326
|
type: 'behavior event'
|
|
@@ -3385,9 +3355,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3385
3355
|
type: 'update maxBlocks'
|
|
3386
3356
|
maxBlocks: number | undefined
|
|
3387
3357
|
}
|
|
3388
|
-
| {
|
|
3389
|
-
type: 'ready'
|
|
3390
|
-
}
|
|
3391
3358
|
| PatchesEvent
|
|
3392
3359
|
| {
|
|
3393
3360
|
type: 'unset'
|
|
@@ -3644,7 +3611,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3644
3611
|
type: 'done normalizing'
|
|
3645
3612
|
}
|
|
3646
3613
|
| {
|
|
3647
|
-
type: 'done syncing'
|
|
3614
|
+
type: 'done syncing initial value'
|
|
3648
3615
|
}
|
|
3649
3616
|
| {
|
|
3650
3617
|
type: 'behavior event'
|
|
@@ -3679,9 +3646,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3679
3646
|
type: 'update maxBlocks'
|
|
3680
3647
|
maxBlocks: number | undefined
|
|
3681
3648
|
}
|
|
3682
|
-
| {
|
|
3683
|
-
type: 'ready'
|
|
3684
|
-
}
|
|
3685
3649
|
| PatchesEvent
|
|
3686
3650
|
| {
|
|
3687
3651
|
type: 'unset'
|
|
@@ -3936,7 +3900,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3936
3900
|
type: 'done normalizing'
|
|
3937
3901
|
}
|
|
3938
3902
|
| {
|
|
3939
|
-
type: 'done syncing'
|
|
3903
|
+
type: 'done syncing initial value'
|
|
3940
3904
|
}
|
|
3941
3905
|
| {
|
|
3942
3906
|
type: 'behavior event'
|
|
@@ -3971,9 +3935,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3971
3935
|
type: 'update maxBlocks'
|
|
3972
3936
|
maxBlocks: number | undefined
|
|
3973
3937
|
}
|
|
3974
|
-
| {
|
|
3975
|
-
type: 'ready'
|
|
3976
|
-
}
|
|
3977
3938
|
| PatchesEvent
|
|
3978
3939
|
| {
|
|
3979
3940
|
type: 'unset'
|
|
@@ -4230,7 +4191,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4230
4191
|
type: 'done normalizing'
|
|
4231
4192
|
}
|
|
4232
4193
|
| {
|
|
4233
|
-
type: 'done syncing'
|
|
4194
|
+
type: 'done syncing initial value'
|
|
4234
4195
|
}
|
|
4235
4196
|
| {
|
|
4236
4197
|
type: 'behavior event'
|
|
@@ -4265,9 +4226,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4265
4226
|
type: 'update maxBlocks'
|
|
4266
4227
|
maxBlocks: number | undefined
|
|
4267
4228
|
}
|
|
4268
|
-
| {
|
|
4269
|
-
type: 'ready'
|
|
4270
|
-
}
|
|
4271
4229
|
| PatchesEvent
|
|
4272
4230
|
| {
|
|
4273
4231
|
type: 'unset'
|
|
@@ -4531,7 +4489,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4531
4489
|
type: 'done normalizing'
|
|
4532
4490
|
}
|
|
4533
4491
|
| {
|
|
4534
|
-
type: 'done syncing'
|
|
4492
|
+
type: 'done syncing initial value'
|
|
4535
4493
|
}
|
|
4536
4494
|
| {
|
|
4537
4495
|
type: 'behavior event'
|
|
@@ -4566,9 +4524,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4566
4524
|
type: 'update maxBlocks'
|
|
4567
4525
|
maxBlocks: number | undefined
|
|
4568
4526
|
}
|
|
4569
|
-
| {
|
|
4570
|
-
type: 'ready'
|
|
4571
|
-
}
|
|
4572
4527
|
| PatchesEvent
|
|
4573
4528
|
| {
|
|
4574
4529
|
type: 'unset'
|
|
@@ -4709,7 +4664,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4709
4664
|
type: 'done normalizing'
|
|
4710
4665
|
}
|
|
4711
4666
|
| {
|
|
4712
|
-
type: 'done syncing'
|
|
4667
|
+
type: 'done syncing initial value'
|
|
4713
4668
|
}
|
|
4714
4669
|
| {
|
|
4715
4670
|
type: 'behavior event'
|
|
@@ -4744,9 +4699,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4744
4699
|
type: 'update maxBlocks'
|
|
4745
4700
|
maxBlocks: number | undefined
|
|
4746
4701
|
}
|
|
4747
|
-
| {
|
|
4748
|
-
type: 'ready'
|
|
4749
|
-
}
|
|
4750
4702
|
| PatchesEvent
|
|
4751
4703
|
| {
|
|
4752
4704
|
type: 'unset'
|
|
@@ -4892,7 +4844,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4892
4844
|
type: 'done normalizing'
|
|
4893
4845
|
}
|
|
4894
4846
|
| {
|
|
4895
|
-
type: 'done syncing'
|
|
4847
|
+
type: 'done syncing initial value'
|
|
4896
4848
|
}
|
|
4897
4849
|
| {
|
|
4898
4850
|
type: 'behavior event'
|
|
@@ -4927,9 +4879,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4927
4879
|
type: 'update maxBlocks'
|
|
4928
4880
|
maxBlocks: number | undefined
|
|
4929
4881
|
}
|
|
4930
|
-
| {
|
|
4931
|
-
type: 'ready'
|
|
4932
|
-
}
|
|
4933
4882
|
| PatchesEvent
|
|
4934
4883
|
| {
|
|
4935
4884
|
type: 'unset'
|
|
@@ -5063,7 +5012,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5063
5012
|
type: 'done normalizing'
|
|
5064
5013
|
}
|
|
5065
5014
|
| {
|
|
5066
|
-
type: 'done syncing'
|
|
5015
|
+
type: 'done syncing initial value'
|
|
5067
5016
|
}
|
|
5068
5017
|
| {
|
|
5069
5018
|
type: 'behavior event'
|
|
@@ -5098,9 +5047,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5098
5047
|
type: 'update maxBlocks'
|
|
5099
5048
|
maxBlocks: number | undefined
|
|
5100
5049
|
}
|
|
5101
|
-
| {
|
|
5102
|
-
type: 'ready'
|
|
5103
|
-
}
|
|
5104
5050
|
| PatchesEvent
|
|
5105
5051
|
| {
|
|
5106
5052
|
type: 'unset'
|
|
@@ -5321,7 +5267,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5321
5267
|
readonly states: {
|
|
5322
5268
|
readonly 'determine initial edit mode': {
|
|
5323
5269
|
readonly on: {
|
|
5324
|
-
readonly 'done syncing': readonly [
|
|
5270
|
+
readonly 'done syncing initial value': readonly [
|
|
5325
5271
|
{
|
|
5326
5272
|
readonly target: '#editor.edit mode.read only.read only'
|
|
5327
5273
|
readonly guard: ({
|
|
@@ -5338,7 +5284,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5338
5284
|
value: Array<PortableTextBlock> | undefined
|
|
5339
5285
|
},
|
|
5340
5286
|
{
|
|
5341
|
-
type: 'done syncing'
|
|
5287
|
+
type: 'done syncing initial value'
|
|
5342
5288
|
}
|
|
5343
5289
|
>) => boolean
|
|
5344
5290
|
},
|
|
@@ -5502,7 +5448,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5502
5448
|
type: 'done normalizing'
|
|
5503
5449
|
}
|
|
5504
5450
|
| {
|
|
5505
|
-
type: 'done syncing'
|
|
5451
|
+
type: 'done syncing initial value'
|
|
5506
5452
|
}
|
|
5507
5453
|
| {
|
|
5508
5454
|
type: 'behavior event'
|
|
@@ -5539,9 +5485,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5539
5485
|
type: 'update maxBlocks'
|
|
5540
5486
|
maxBlocks: number | undefined
|
|
5541
5487
|
}
|
|
5542
|
-
| {
|
|
5543
|
-
type: 'ready'
|
|
5544
|
-
}
|
|
5545
5488
|
| PatchesEvent
|
|
5546
5489
|
| {
|
|
5547
5490
|
type: 'unset'
|
|
@@ -5801,7 +5744,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5801
5744
|
type: 'done normalizing'
|
|
5802
5745
|
}
|
|
5803
5746
|
| {
|
|
5804
|
-
type: 'done syncing'
|
|
5747
|
+
type: 'done syncing initial value'
|
|
5805
5748
|
}
|
|
5806
5749
|
| {
|
|
5807
5750
|
type: 'behavior event'
|
|
@@ -5838,9 +5781,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5838
5781
|
type: 'update maxBlocks'
|
|
5839
5782
|
maxBlocks: number | undefined
|
|
5840
5783
|
}
|
|
5841
|
-
| {
|
|
5842
|
-
type: 'ready'
|
|
5843
|
-
}
|
|
5844
5784
|
| PatchesEvent
|
|
5845
5785
|
| {
|
|
5846
5786
|
type: 'unset'
|
|
@@ -6103,7 +6043,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6103
6043
|
type: 'done normalizing'
|
|
6104
6044
|
}
|
|
6105
6045
|
| {
|
|
6106
|
-
type: 'done syncing'
|
|
6046
|
+
type: 'done syncing initial value'
|
|
6107
6047
|
}
|
|
6108
6048
|
| {
|
|
6109
6049
|
type: 'behavior event'
|
|
@@ -6140,9 +6080,6 @@ export declare const editorMachine: StateMachine<
|
|
|
6140
6080
|
type: 'update maxBlocks'
|
|
6141
6081
|
maxBlocks: number | undefined
|
|
6142
6082
|
}
|
|
6143
|
-
| {
|
|
6144
|
-
type: 'ready'
|
|
6145
|
-
}
|
|
6146
6083
|
| PatchesEvent
|
|
6147
6084
|
| {
|
|
6148
6085
|
type: 'unset'
|
|
@@ -6399,7 +6336,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6399
6336
|
type: 'done normalizing'
|
|
6400
6337
|
}
|
|
6401
6338
|
| {
|
|
6402
|
-
type: 'done syncing'
|
|
6339
|
+
type: 'done syncing initial value'
|
|
6403
6340
|
}
|
|
6404
6341
|
| {
|
|
6405
6342
|
type: 'behavior event'
|
|
@@ -6436,9 +6373,6 @@ export declare const editorMachine: StateMachine<
|
|
|
6436
6373
|
type: 'update maxBlocks'
|
|
6437
6374
|
maxBlocks: number | undefined
|
|
6438
6375
|
}
|
|
6439
|
-
| {
|
|
6440
|
-
type: 'ready'
|
|
6441
|
-
}
|
|
6442
6376
|
| PatchesEvent
|
|
6443
6377
|
| {
|
|
6444
6378
|
type: 'unset'
|
|
@@ -6704,7 +6638,7 @@ export declare const editorMachine: StateMachine<
|
|
|
6704
6638
|
type: 'done normalizing'
|
|
6705
6639
|
}
|
|
6706
6640
|
| {
|
|
6707
|
-
type: 'done syncing'
|
|
6641
|
+
type: 'done syncing initial value'
|
|
6708
6642
|
}
|
|
6709
6643
|
| {
|
|
6710
6644
|
type: 'behavior event'
|
|
@@ -6741,9 +6675,6 @@ export declare const editorMachine: StateMachine<
|
|
|
6741
6675
|
type: 'update maxBlocks'
|
|
6742
6676
|
maxBlocks: number | undefined
|
|
6743
6677
|
}
|
|
6744
|
-
| {
|
|
6745
|
-
type: 'ready'
|
|
6746
|
-
}
|
|
6747
6678
|
| PatchesEvent
|
|
6748
6679
|
| {
|
|
6749
6680
|
type: 'unset'
|
|
@@ -7000,7 +6931,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7000
6931
|
type: 'done normalizing'
|
|
7001
6932
|
}
|
|
7002
6933
|
| {
|
|
7003
|
-
type: 'done syncing'
|
|
6934
|
+
type: 'done syncing initial value'
|
|
7004
6935
|
}
|
|
7005
6936
|
| {
|
|
7006
6937
|
type: 'behavior event'
|
|
@@ -7037,9 +6968,6 @@ export declare const editorMachine: StateMachine<
|
|
|
7037
6968
|
type: 'update maxBlocks'
|
|
7038
6969
|
maxBlocks: number | undefined
|
|
7039
6970
|
}
|
|
7040
|
-
| {
|
|
7041
|
-
type: 'ready'
|
|
7042
|
-
}
|
|
7043
6971
|
| PatchesEvent
|
|
7044
6972
|
| {
|
|
7045
6973
|
type: 'unset'
|
|
@@ -7312,7 +7240,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7312
7240
|
type: 'done normalizing'
|
|
7313
7241
|
}
|
|
7314
7242
|
| {
|
|
7315
|
-
type: 'done syncing'
|
|
7243
|
+
type: 'done syncing initial value'
|
|
7316
7244
|
}
|
|
7317
7245
|
| {
|
|
7318
7246
|
type: 'behavior event'
|
|
@@ -7349,9 +7277,6 @@ export declare const editorMachine: StateMachine<
|
|
|
7349
7277
|
type: 'update maxBlocks'
|
|
7350
7278
|
maxBlocks: number | undefined
|
|
7351
7279
|
}
|
|
7352
|
-
| {
|
|
7353
|
-
type: 'ready'
|
|
7354
|
-
}
|
|
7355
7280
|
| PatchesEvent
|
|
7356
7281
|
| {
|
|
7357
7282
|
type: 'unset'
|
|
@@ -7609,7 +7534,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7609
7534
|
type: 'done normalizing'
|
|
7610
7535
|
}
|
|
7611
7536
|
| {
|
|
7612
|
-
type: 'done syncing'
|
|
7537
|
+
type: 'done syncing initial value'
|
|
7613
7538
|
}
|
|
7614
7539
|
| {
|
|
7615
7540
|
type: 'behavior event'
|
|
@@ -7646,9 +7571,6 @@ export declare const editorMachine: StateMachine<
|
|
|
7646
7571
|
type: 'update maxBlocks'
|
|
7647
7572
|
maxBlocks: number | undefined
|
|
7648
7573
|
}
|
|
7649
|
-
| {
|
|
7650
|
-
type: 'ready'
|
|
7651
|
-
}
|
|
7652
7574
|
| PatchesEvent
|
|
7653
7575
|
| {
|
|
7654
7576
|
type: 'unset'
|
|
@@ -7906,7 +7828,7 @@ export declare const editorMachine: StateMachine<
|
|
|
7906
7828
|
type: 'done normalizing'
|
|
7907
7829
|
}
|
|
7908
7830
|
| {
|
|
7909
|
-
type: 'done syncing'
|
|
7831
|
+
type: 'done syncing initial value'
|
|
7910
7832
|
}
|
|
7911
7833
|
| {
|
|
7912
7834
|
type: 'behavior event'
|
|
@@ -7943,9 +7865,6 @@ export declare const editorMachine: StateMachine<
|
|
|
7943
7865
|
type: 'update maxBlocks'
|
|
7944
7866
|
maxBlocks: number | undefined
|
|
7945
7867
|
}
|
|
7946
|
-
| {
|
|
7947
|
-
type: 'ready'
|
|
7948
|
-
}
|
|
7949
7868
|
| PatchesEvent
|
|
7950
7869
|
| {
|
|
7951
7870
|
type: 'unset'
|
|
@@ -8125,7 +8044,7 @@ export declare const editorMachine: StateMachine<
|
|
|
8125
8044
|
readonly 'mutation': {
|
|
8126
8045
|
readonly actions: 'defer event'
|
|
8127
8046
|
}
|
|
8128
|
-
readonly 'done syncing': {
|
|
8047
|
+
readonly 'done syncing initial value': {
|
|
8129
8048
|
readonly target: 'pristine'
|
|
8130
8049
|
}
|
|
8131
8050
|
}
|
|
@@ -8360,7 +8279,7 @@ export declare type InternalEditorEvent =
|
|
|
8360
8279
|
type: 'done normalizing'
|
|
8361
8280
|
}
|
|
8362
8281
|
| {
|
|
8363
|
-
type: 'done syncing'
|
|
8282
|
+
type: 'done syncing initial value'
|
|
8364
8283
|
}
|
|
8365
8284
|
| {
|
|
8366
8285
|
type: 'behavior event'
|
|
@@ -8395,7 +8314,11 @@ export declare type InternalEditorEvent =
|
|
|
8395
8314
|
type: 'update maxBlocks'
|
|
8396
8315
|
maxBlocks: number | undefined
|
|
8397
8316
|
}
|
|
8398
|
-
| OmitFromUnion<
|
|
8317
|
+
| OmitFromUnion<
|
|
8318
|
+
InternalEditorEmittedEvent,
|
|
8319
|
+
'type',
|
|
8320
|
+
'ready' | 'read only' | 'editable'
|
|
8321
|
+
>
|
|
8399
8322
|
|
|
8400
8323
|
/**
|
|
8401
8324
|
* The editor has an invalid value
|