@portabletext/editor 1.31.2 → 1.32.0

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.d.cts CHANGED
@@ -748,6 +748,12 @@ declare const editorMachine: StateMachine<
748
748
  | {
749
749
  type: 'focus'
750
750
  }
751
+ | {
752
+ type: 'history.redo'
753
+ }
754
+ | {
755
+ type: 'history.undo'
756
+ }
751
757
  | {
752
758
  type: 'insert.blocks'
753
759
  blocks: Array<PortableTextBlock>
@@ -1172,6 +1178,12 @@ declare const editorMachine: StateMachine<
1172
1178
  | {
1173
1179
  type: 'focus'
1174
1180
  }
1181
+ | {
1182
+ type: 'history.redo'
1183
+ }
1184
+ | {
1185
+ type: 'history.undo'
1186
+ }
1175
1187
  | {
1176
1188
  type: 'insert.blocks'
1177
1189
  blocks: Array<PortableTextBlock>
@@ -1496,6 +1508,12 @@ declare const editorMachine: StateMachine<
1496
1508
  | {
1497
1509
  type: 'focus'
1498
1510
  }
1511
+ | {
1512
+ type: 'history.redo'
1513
+ }
1514
+ | {
1515
+ type: 'history.undo'
1516
+ }
1499
1517
  | {
1500
1518
  type: 'insert.blocks'
1501
1519
  blocks: Array<PortableTextBlock>
@@ -1845,6 +1863,12 @@ declare const editorMachine: StateMachine<
1845
1863
  | {
1846
1864
  type: 'focus'
1847
1865
  }
1866
+ | {
1867
+ type: 'history.redo'
1868
+ }
1869
+ | {
1870
+ type: 'history.undo'
1871
+ }
1848
1872
  | {
1849
1873
  type: 'insert.blocks'
1850
1874
  blocks: Array<PortableTextBlock>
@@ -2137,6 +2161,8 @@ declare const editorMachine: StateMachine<
2137
2161
  | 'delete.block'
2138
2162
  | 'delete.forward'
2139
2163
  | 'delete.text'
2164
+ | 'history.redo'
2165
+ | 'history.undo'
2140
2166
  | 'insert.blocks'
2141
2167
  | 'insert.block object'
2142
2168
  | 'insert.inline object'
@@ -2191,6 +2217,8 @@ declare const editorMachine: StateMachine<
2191
2217
  | 'delete.block'
2192
2218
  | 'delete.forward'
2193
2219
  | 'delete.text'
2220
+ | 'history.redo'
2221
+ | 'history.undo'
2194
2222
  | 'insert.blocks'
2195
2223
  | 'insert.block object'
2196
2224
  | 'insert.inline object'
@@ -2326,6 +2354,12 @@ declare const editorMachine: StateMachine<
2326
2354
  | {
2327
2355
  type: 'focus'
2328
2356
  }
2357
+ | {
2358
+ type: 'history.redo'
2359
+ }
2360
+ | {
2361
+ type: 'history.undo'
2362
+ }
2329
2363
  | {
2330
2364
  type: 'insert.blocks'
2331
2365
  blocks: Array<PortableTextBlock>
@@ -2673,6 +2707,12 @@ declare const editorMachine: StateMachine<
2673
2707
  | {
2674
2708
  type: 'focus'
2675
2709
  }
2710
+ | {
2711
+ type: 'history.redo'
2712
+ }
2713
+ | {
2714
+ type: 'history.undo'
2715
+ }
2676
2716
  | {
2677
2717
  type: 'insert.blocks'
2678
2718
  blocks: Array<PortableTextBlock>
@@ -2965,6 +3005,12 @@ declare const editorMachine: StateMachine<
2965
3005
  | {
2966
3006
  type: 'focus'
2967
3007
  }
3008
+ | {
3009
+ type: 'history.redo'
3010
+ }
3011
+ | {
3012
+ type: 'history.undo'
3013
+ }
2968
3014
  | {
2969
3015
  type: 'insert.blocks'
2970
3016
  blocks: Array<PortableTextBlock>
@@ -3312,6 +3358,12 @@ declare const editorMachine: StateMachine<
3312
3358
  | {
3313
3359
  type: 'focus'
3314
3360
  }
3361
+ | {
3362
+ type: 'history.redo'
3363
+ }
3364
+ | {
3365
+ type: 'history.undo'
3366
+ }
3315
3367
  | {
3316
3368
  type: 'insert.blocks'
3317
3369
  blocks: Array<PortableTextBlock>
@@ -3607,6 +3659,12 @@ declare const editorMachine: StateMachine<
3607
3659
  | {
3608
3660
  type: 'focus'
3609
3661
  }
3662
+ | {
3663
+ type: 'history.redo'
3664
+ }
3665
+ | {
3666
+ type: 'history.undo'
3667
+ }
3610
3668
  | {
3611
3669
  type: 'insert.blocks'
3612
3670
  blocks: Array<PortableTextBlock>
@@ -3954,6 +4012,12 @@ declare const editorMachine: StateMachine<
3954
4012
  | {
3955
4013
  type: 'focus'
3956
4014
  }
4015
+ | {
4016
+ type: 'history.redo'
4017
+ }
4018
+ | {
4019
+ type: 'history.undo'
4020
+ }
3957
4021
  | {
3958
4022
  type: 'insert.blocks'
3959
4023
  blocks: Array<PortableTextBlock>
@@ -4248,6 +4312,12 @@ declare const editorMachine: StateMachine<
4248
4312
  | {
4249
4313
  type: 'focus'
4250
4314
  }
4315
+ | {
4316
+ type: 'history.redo'
4317
+ }
4318
+ | {
4319
+ type: 'history.undo'
4320
+ }
4251
4321
  | {
4252
4322
  type: 'insert.blocks'
4253
4323
  blocks: Array<PortableTextBlock>
@@ -4595,6 +4665,12 @@ declare const editorMachine: StateMachine<
4595
4665
  | {
4596
4666
  type: 'focus'
4597
4667
  }
4668
+ | {
4669
+ type: 'history.redo'
4670
+ }
4671
+ | {
4672
+ type: 'history.undo'
4673
+ }
4598
4674
  | {
4599
4675
  type: 'insert.blocks'
4600
4676
  blocks: Array<PortableTextBlock>
@@ -4888,6 +4964,12 @@ declare const editorMachine: StateMachine<
4888
4964
  | {
4889
4965
  type: 'focus'
4890
4966
  }
4967
+ | {
4968
+ type: 'history.redo'
4969
+ }
4970
+ | {
4971
+ type: 'history.undo'
4972
+ }
4891
4973
  | {
4892
4974
  type: 'insert.blocks'
4893
4975
  blocks: Array<PortableTextBlock>
@@ -5235,6 +5317,12 @@ declare const editorMachine: StateMachine<
5235
5317
  | {
5236
5318
  type: 'focus'
5237
5319
  }
5320
+ | {
5321
+ type: 'history.redo'
5322
+ }
5323
+ | {
5324
+ type: 'history.undo'
5325
+ }
5238
5326
  | {
5239
5327
  type: 'insert.blocks'
5240
5328
  blocks: Array<PortableTextBlock>
@@ -5529,6 +5617,12 @@ declare const editorMachine: StateMachine<
5529
5617
  | {
5530
5618
  type: 'focus'
5531
5619
  }
5620
+ | {
5621
+ type: 'history.redo'
5622
+ }
5623
+ | {
5624
+ type: 'history.undo'
5625
+ }
5532
5626
  | {
5533
5627
  type: 'insert.blocks'
5534
5628
  blocks: Array<PortableTextBlock>
@@ -5894,6 +5988,12 @@ declare const editorMachine: StateMachine<
5894
5988
  | {
5895
5989
  type: 'focus'
5896
5990
  }
5991
+ | {
5992
+ type: 'history.redo'
5993
+ }
5994
+ | {
5995
+ type: 'history.undo'
5996
+ }
5897
5997
  | {
5898
5998
  type: 'insert.blocks'
5899
5999
  blocks: Array<PortableTextBlock>
@@ -6241,6 +6341,12 @@ declare const editorMachine: StateMachine<
6241
6341
  | {
6242
6342
  type: 'focus'
6243
6343
  }
6344
+ | {
6345
+ type: 'history.redo'
6346
+ }
6347
+ | {
6348
+ type: 'history.undo'
6349
+ }
6244
6350
  | {
6245
6351
  type: 'insert.blocks'
6246
6352
  blocks: Array<PortableTextBlock>
@@ -6535,6 +6641,12 @@ declare const editorMachine: StateMachine<
6535
6641
  | {
6536
6642
  type: 'focus'
6537
6643
  }
6644
+ | {
6645
+ type: 'history.redo'
6646
+ }
6647
+ | {
6648
+ type: 'history.undo'
6649
+ }
6538
6650
  | {
6539
6651
  type: 'insert.blocks'
6540
6652
  blocks: Array<PortableTextBlock>
@@ -6882,6 +6994,12 @@ declare const editorMachine: StateMachine<
6882
6994
  | {
6883
6995
  type: 'focus'
6884
6996
  }
6997
+ | {
6998
+ type: 'history.redo'
6999
+ }
7000
+ | {
7001
+ type: 'history.undo'
7002
+ }
6885
7003
  | {
6886
7004
  type: 'insert.blocks'
6887
7005
  blocks: Array<PortableTextBlock>
@@ -7174,6 +7292,12 @@ declare const editorMachine: StateMachine<
7174
7292
  | {
7175
7293
  type: 'focus'
7176
7294
  }
7295
+ | {
7296
+ type: 'history.redo'
7297
+ }
7298
+ | {
7299
+ type: 'history.undo'
7300
+ }
7177
7301
  | {
7178
7302
  type: 'insert.blocks'
7179
7303
  blocks: Array<PortableTextBlock>
@@ -7521,6 +7645,12 @@ declare const editorMachine: StateMachine<
7521
7645
  | {
7522
7646
  type: 'focus'
7523
7647
  }
7648
+ | {
7649
+ type: 'history.redo'
7650
+ }
7651
+ | {
7652
+ type: 'history.undo'
7653
+ }
7524
7654
  | {
7525
7655
  type: 'insert.blocks'
7526
7656
  blocks: Array<PortableTextBlock>
@@ -7814,6 +7944,12 @@ declare const editorMachine: StateMachine<
7814
7944
  | {
7815
7945
  type: 'focus'
7816
7946
  }
7947
+ | {
7948
+ type: 'history.redo'
7949
+ }
7950
+ | {
7951
+ type: 'history.undo'
7952
+ }
7817
7953
  | {
7818
7954
  type: 'insert.blocks'
7819
7955
  blocks: Array<PortableTextBlock>
@@ -8161,6 +8297,12 @@ declare const editorMachine: StateMachine<
8161
8297
  | {
8162
8298
  type: 'focus'
8163
8299
  }
8300
+ | {
8301
+ type: 'history.redo'
8302
+ }
8303
+ | {
8304
+ type: 'history.undo'
8305
+ }
8164
8306
  | {
8165
8307
  type: 'insert.blocks'
8166
8308
  blocks: Array<PortableTextBlock>
@@ -8457,6 +8599,12 @@ declare const editorMachine: StateMachine<
8457
8599
  | {
8458
8600
  type: 'focus'
8459
8601
  }
8602
+ | {
8603
+ type: 'history.redo'
8604
+ }
8605
+ | {
8606
+ type: 'history.undo'
8607
+ }
8460
8608
  | {
8461
8609
  type: 'insert.blocks'
8462
8610
  blocks: Array<PortableTextBlock>
@@ -8804,6 +8952,12 @@ declare const editorMachine: StateMachine<
8804
8952
  | {
8805
8953
  type: 'focus'
8806
8954
  }
8955
+ | {
8956
+ type: 'history.redo'
8957
+ }
8958
+ | {
8959
+ type: 'history.undo'
8960
+ }
8807
8961
  | {
8808
8962
  type: 'insert.blocks'
8809
8963
  blocks: Array<PortableTextBlock>
@@ -9100,6 +9254,12 @@ declare const editorMachine: StateMachine<
9100
9254
  | {
9101
9255
  type: 'focus'
9102
9256
  }
9257
+ | {
9258
+ type: 'history.redo'
9259
+ }
9260
+ | {
9261
+ type: 'history.undo'
9262
+ }
9103
9263
  | {
9104
9264
  type: 'insert.blocks'
9105
9265
  blocks: Array<PortableTextBlock>
@@ -9470,6 +9630,12 @@ declare const editorMachine: StateMachine<
9470
9630
  | {
9471
9631
  type: 'focus'
9472
9632
  }
9633
+ | {
9634
+ type: 'history.redo'
9635
+ }
9636
+ | {
9637
+ type: 'history.undo'
9638
+ }
9473
9639
  | {
9474
9640
  type: 'insert.blocks'
9475
9641
  blocks: Array<PortableTextBlock>
@@ -9837,6 +10003,12 @@ declare const editorMachine: StateMachine<
9837
10003
  | {
9838
10004
  type: 'focus'
9839
10005
  }
10006
+ | {
10007
+ type: 'history.redo'
10008
+ }
10009
+ | {
10010
+ type: 'history.undo'
10011
+ }
9840
10012
  | {
9841
10013
  type: 'insert.blocks'
9842
10014
  blocks: Array<PortableTextBlock>
@@ -10352,6 +10524,12 @@ declare const editorMachine: StateMachine<
10352
10524
  | {
10353
10525
  type: 'focus'
10354
10526
  }
10527
+ | {
10528
+ type: 'history.redo'
10529
+ }
10530
+ | {
10531
+ type: 'history.undo'
10532
+ }
10355
10533
  | {
10356
10534
  type: 'insert.blocks'
10357
10535
  blocks: Array<PortableTextBlock>
@@ -10701,6 +10879,12 @@ declare const editorMachine: StateMachine<
10701
10879
  | {
10702
10880
  type: 'focus'
10703
10881
  }
10882
+ | {
10883
+ type: 'history.redo'
10884
+ }
10885
+ | {
10886
+ type: 'history.undo'
10887
+ }
10704
10888
  | {
10705
10889
  type: 'insert.blocks'
10706
10890
  blocks: Array<PortableTextBlock>
@@ -11000,6 +11184,12 @@ declare const editorMachine: StateMachine<
11000
11184
  | {
11001
11185
  type: 'focus'
11002
11186
  }
11187
+ | {
11188
+ type: 'history.redo'
11189
+ }
11190
+ | {
11191
+ type: 'history.undo'
11192
+ }
11003
11193
  | {
11004
11194
  type: 'insert.blocks'
11005
11195
  blocks: Array<PortableTextBlock>
@@ -11349,6 +11539,12 @@ declare const editorMachine: StateMachine<
11349
11539
  | {
11350
11540
  type: 'focus'
11351
11541
  }
11542
+ | {
11543
+ type: 'history.redo'
11544
+ }
11545
+ | {
11546
+ type: 'history.undo'
11547
+ }
11352
11548
  | {
11353
11549
  type: 'insert.blocks'
11354
11550
  blocks: Array<PortableTextBlock>
@@ -11641,6 +11837,12 @@ declare const editorMachine: StateMachine<
11641
11837
  | {
11642
11838
  type: 'focus'
11643
11839
  }
11840
+ | {
11841
+ type: 'history.redo'
11842
+ }
11843
+ | {
11844
+ type: 'history.undo'
11845
+ }
11644
11846
  | {
11645
11847
  type: 'insert.blocks'
11646
11848
  blocks: Array<PortableTextBlock>
@@ -11990,6 +12192,12 @@ declare const editorMachine: StateMachine<
11990
12192
  | {
11991
12193
  type: 'focus'
11992
12194
  }
12195
+ | {
12196
+ type: 'history.redo'
12197
+ }
12198
+ | {
12199
+ type: 'history.undo'
12200
+ }
11993
12201
  | {
11994
12202
  type: 'insert.blocks'
11995
12203
  blocks: Array<PortableTextBlock>
@@ -12282,6 +12490,12 @@ declare const editorMachine: StateMachine<
12282
12490
  | {
12283
12491
  type: 'focus'
12284
12492
  }
12493
+ | {
12494
+ type: 'history.redo'
12495
+ }
12496
+ | {
12497
+ type: 'history.undo'
12498
+ }
12285
12499
  | {
12286
12500
  type: 'insert.blocks'
12287
12501
  blocks: Array<PortableTextBlock>
@@ -12631,6 +12845,12 @@ declare const editorMachine: StateMachine<
12631
12845
  | {
12632
12846
  type: 'focus'
12633
12847
  }
12848
+ | {
12849
+ type: 'history.redo'
12850
+ }
12851
+ | {
12852
+ type: 'history.undo'
12853
+ }
12634
12854
  | {
12635
12855
  type: 'insert.blocks'
12636
12856
  blocks: Array<PortableTextBlock>
@@ -12932,6 +13152,12 @@ declare const editorMachine: StateMachine<
12932
13152
  | {
12933
13153
  type: 'focus'
12934
13154
  }
13155
+ | {
13156
+ type: 'history.redo'
13157
+ }
13158
+ | {
13159
+ type: 'history.undo'
13160
+ }
12935
13161
  | {
12936
13162
  type: 'insert.blocks'
12937
13163
  blocks: Array<PortableTextBlock>
@@ -13281,6 +13507,12 @@ declare const editorMachine: StateMachine<
13281
13507
  | {
13282
13508
  type: 'focus'
13283
13509
  }
13510
+ | {
13511
+ type: 'history.redo'
13512
+ }
13513
+ | {
13514
+ type: 'history.undo'
13515
+ }
13284
13516
  | {
13285
13517
  type: 'insert.blocks'
13286
13518
  blocks: Array<PortableTextBlock>
@@ -13587,6 +13819,12 @@ declare const editorMachine: StateMachine<
13587
13819
  | {
13588
13820
  type: 'focus'
13589
13821
  }
13822
+ | {
13823
+ type: 'history.redo'
13824
+ }
13825
+ | {
13826
+ type: 'history.undo'
13827
+ }
13590
13828
  | {
13591
13829
  type: 'insert.blocks'
13592
13830
  blocks: Array<PortableTextBlock>
@@ -13936,6 +14174,12 @@ declare const editorMachine: StateMachine<
13936
14174
  | {
13937
14175
  type: 'focus'
13938
14176
  }
14177
+ | {
14178
+ type: 'history.redo'
14179
+ }
14180
+ | {
14181
+ type: 'history.undo'
14182
+ }
13939
14183
  | {
13940
14184
  type: 'insert.blocks'
13941
14185
  blocks: Array<PortableTextBlock>
@@ -14228,6 +14472,12 @@ declare const editorMachine: StateMachine<
14228
14472
  | {
14229
14473
  type: 'focus'
14230
14474
  }
14475
+ | {
14476
+ type: 'history.redo'
14477
+ }
14478
+ | {
14479
+ type: 'history.undo'
14480
+ }
14231
14481
  | {
14232
14482
  type: 'insert.blocks'
14233
14483
  blocks: Array<PortableTextBlock>
@@ -14577,6 +14827,12 @@ declare const editorMachine: StateMachine<
14577
14827
  | {
14578
14828
  type: 'focus'
14579
14829
  }
14830
+ | {
14831
+ type: 'history.redo'
14832
+ }
14833
+ | {
14834
+ type: 'history.undo'
14835
+ }
14580
14836
  | {
14581
14837
  type: 'insert.blocks'
14582
14838
  blocks: Array<PortableTextBlock>
@@ -14774,7 +15030,7 @@ declare const editorMachine: StateMachine<
14774
15030
  }
14775
15031
  >
14776
15032
  }
14777
- readonly 'insert.*': {
15033
+ readonly 'history.*': {
14778
15034
  readonly actions: ActionFunction<
14779
15035
  {
14780
15036
  behaviors: Set<Behavior>
@@ -14788,61 +15044,10 @@ declare const editorMachine: StateMachine<
14788
15044
  value: Array<PortableTextBlock> | undefined
14789
15045
  },
14790
15046
  | {
14791
- type: 'insert.blocks'
14792
- blocks: Array<PortableTextBlock>
14793
- }
14794
- | {
14795
- type: 'insert.block object'
14796
- placement: 'auto' | 'after' | 'before'
14797
- blockObject: {
14798
- name: string
14799
- value?: {
14800
- [prop: string]: unknown
14801
- }
14802
- }
14803
- }
14804
- | {
14805
- type: 'insert.inline object'
14806
- inlineObject: {
14807
- name: string
14808
- value?: {
14809
- [prop: string]: unknown
14810
- }
14811
- }
14812
- }
14813
- | {
14814
- type: 'insert.break'
14815
- }
14816
- | {
14817
- type: 'insert.soft break'
14818
- }
14819
- | {
14820
- type: 'insert.block'
14821
- block: PortableTextBlock
14822
- placement: 'auto' | 'after' | 'before'
14823
- }
14824
- | {
14825
- type: 'insert.span'
14826
- text: string
14827
- annotations?: Array<{
14828
- name: string
14829
- value: {
14830
- [prop: string]: unknown
14831
- }
14832
- }>
14833
- decorators?: Array<string>
14834
- }
14835
- | {
14836
- type: 'insert.text'
14837
- text: string
14838
- options?: TextInsertTextOptions
15047
+ type: 'history.redo'
14839
15048
  }
14840
15049
  | {
14841
- type: 'insert.text block'
14842
- placement: 'auto' | 'after' | 'before'
14843
- textBlock?: {
14844
- children?: PortableTextTextBlock['children']
14845
- }
15050
+ type: 'history.undo'
14846
15051
  },
14847
15052
  | {
14848
15053
  type: 'annotation.add'
@@ -14923,6 +15128,12 @@ declare const editorMachine: StateMachine<
14923
15128
  | {
14924
15129
  type: 'focus'
14925
15130
  }
15131
+ | {
15132
+ type: 'history.redo'
15133
+ }
15134
+ | {
15135
+ type: 'history.undo'
15136
+ }
14926
15137
  | {
14927
15138
  type: 'insert.blocks'
14928
15139
  blocks: Array<PortableTextBlock>
@@ -15272,6 +15483,12 @@ declare const editorMachine: StateMachine<
15272
15483
  | {
15273
15484
  type: 'focus'
15274
15485
  }
15486
+ | {
15487
+ type: 'history.redo'
15488
+ }
15489
+ | {
15490
+ type: 'history.undo'
15491
+ }
15275
15492
  | {
15276
15493
  type: 'insert.blocks'
15277
15494
  blocks: Array<PortableTextBlock>
@@ -15469,7 +15686,7 @@ declare const editorMachine: StateMachine<
15469
15686
  }
15470
15687
  >
15471
15688
  }
15472
- readonly 'list item.*': {
15689
+ readonly 'insert.*': {
15473
15690
  readonly actions: ActionFunction<
15474
15691
  {
15475
15692
  behaviors: Set<Behavior>
@@ -15483,22 +15700,729 @@ declare const editorMachine: StateMachine<
15483
15700
  value: Array<PortableTextBlock> | undefined
15484
15701
  },
15485
15702
  | {
15486
- type: 'list item.add'
15487
- listItem: string
15703
+ type: 'insert.blocks'
15704
+ blocks: Array<PortableTextBlock>
15488
15705
  }
15489
15706
  | {
15490
- type: 'list item.remove'
15491
- listItem: string
15707
+ type: 'insert.block object'
15708
+ placement: 'auto' | 'after' | 'before'
15709
+ blockObject: {
15710
+ name: string
15711
+ value?: {
15712
+ [prop: string]: unknown
15713
+ }
15714
+ }
15492
15715
  }
15493
15716
  | {
15494
- type: 'list item.toggle'
15495
- listItem: string
15496
- },
15497
- | {
15498
- type: 'annotation.add'
15499
- annotation: {
15717
+ type: 'insert.inline object'
15718
+ inlineObject: {
15500
15719
  name: string
15501
- value: {
15720
+ value?: {
15721
+ [prop: string]: unknown
15722
+ }
15723
+ }
15724
+ }
15725
+ | {
15726
+ type: 'insert.break'
15727
+ }
15728
+ | {
15729
+ type: 'insert.soft break'
15730
+ }
15731
+ | {
15732
+ type: 'insert.block'
15733
+ block: PortableTextBlock
15734
+ placement: 'auto' | 'after' | 'before'
15735
+ }
15736
+ | {
15737
+ type: 'insert.span'
15738
+ text: string
15739
+ annotations?: Array<{
15740
+ name: string
15741
+ value: {
15742
+ [prop: string]: unknown
15743
+ }
15744
+ }>
15745
+ decorators?: Array<string>
15746
+ }
15747
+ | {
15748
+ type: 'insert.text'
15749
+ text: string
15750
+ options?: TextInsertTextOptions
15751
+ }
15752
+ | {
15753
+ type: 'insert.text block'
15754
+ placement: 'auto' | 'after' | 'before'
15755
+ textBlock?: {
15756
+ children?: PortableTextTextBlock['children']
15757
+ }
15758
+ },
15759
+ | {
15760
+ type: 'annotation.add'
15761
+ annotation: {
15762
+ name: string
15763
+ value: {
15764
+ [prop: string]: unknown
15765
+ }
15766
+ }
15767
+ }
15768
+ | {
15769
+ type: 'annotation.remove'
15770
+ annotation: {
15771
+ name: string
15772
+ }
15773
+ }
15774
+ | {
15775
+ type: 'annotation.toggle'
15776
+ annotation: {
15777
+ name: string
15778
+ value: {
15779
+ [prop: string]: unknown
15780
+ }
15781
+ }
15782
+ }
15783
+ | {
15784
+ [props: string]: unknown
15785
+ type: 'block.set'
15786
+ at: [KeyedSegment]
15787
+ }
15788
+ | {
15789
+ type: 'block.unset'
15790
+ at: [KeyedSegment]
15791
+ props: Array<string>
15792
+ }
15793
+ | {
15794
+ type: 'blur'
15795
+ }
15796
+ | {
15797
+ type: 'data transfer.set'
15798
+ data: string
15799
+ dataTransfer: DataTransfer
15800
+ mimeType: MIMEType_2
15801
+ }
15802
+ | {
15803
+ type: 'decorator.add'
15804
+ decorator: string
15805
+ }
15806
+ | {
15807
+ type: 'decorator.remove'
15808
+ decorator: string
15809
+ }
15810
+ | {
15811
+ type: 'decorator.toggle'
15812
+ decorator: string
15813
+ }
15814
+ | {
15815
+ type: 'delete'
15816
+ selection: NonNullable<EditorSelection>
15817
+ }
15818
+ | {
15819
+ type: 'delete.backward'
15820
+ unit: TextUnit
15821
+ }
15822
+ | {
15823
+ type: 'delete.block'
15824
+ blockPath: [KeyedSegment]
15825
+ }
15826
+ | {
15827
+ type: 'delete.forward'
15828
+ unit: TextUnit
15829
+ }
15830
+ | {
15831
+ type: 'delete.text'
15832
+ anchor: BlockOffset_2
15833
+ focus: BlockOffset_2
15834
+ }
15835
+ | {
15836
+ type: 'focus'
15837
+ }
15838
+ | {
15839
+ type: 'history.redo'
15840
+ }
15841
+ | {
15842
+ type: 'history.undo'
15843
+ }
15844
+ | {
15845
+ type: 'insert.blocks'
15846
+ blocks: Array<PortableTextBlock>
15847
+ }
15848
+ | {
15849
+ type: 'insert.block object'
15850
+ placement: 'auto' | 'after' | 'before'
15851
+ blockObject: {
15852
+ name: string
15853
+ value?: {
15854
+ [prop: string]: unknown
15855
+ }
15856
+ }
15857
+ }
15858
+ | {
15859
+ type: 'insert.inline object'
15860
+ inlineObject: {
15861
+ name: string
15862
+ value?: {
15863
+ [prop: string]: unknown
15864
+ }
15865
+ }
15866
+ }
15867
+ | {
15868
+ type: 'insert.break'
15869
+ }
15870
+ | {
15871
+ type: 'insert.soft break'
15872
+ }
15873
+ | {
15874
+ type: 'insert.block'
15875
+ block: PortableTextBlock
15876
+ placement: 'auto' | 'after' | 'before'
15877
+ }
15878
+ | {
15879
+ type: 'insert.span'
15880
+ text: string
15881
+ annotations?: Array<{
15882
+ name: string
15883
+ value: {
15884
+ [prop: string]: unknown
15885
+ }
15886
+ }>
15887
+ decorators?: Array<string>
15888
+ }
15889
+ | {
15890
+ type: 'insert.text'
15891
+ text: string
15892
+ options?: TextInsertTextOptions
15893
+ }
15894
+ | {
15895
+ type: 'insert.text block'
15896
+ placement: 'auto' | 'after' | 'before'
15897
+ textBlock?: {
15898
+ children?: PortableTextTextBlock['children']
15899
+ }
15900
+ }
15901
+ | {
15902
+ type: 'list item.add'
15903
+ listItem: string
15904
+ }
15905
+ | {
15906
+ type: 'list item.remove'
15907
+ listItem: string
15908
+ }
15909
+ | {
15910
+ type: 'list item.toggle'
15911
+ listItem: string
15912
+ }
15913
+ | {
15914
+ type: 'move.block'
15915
+ at: [KeyedSegment]
15916
+ to: [KeyedSegment]
15917
+ }
15918
+ | {
15919
+ type: 'move.block down'
15920
+ at: [KeyedSegment]
15921
+ }
15922
+ | {
15923
+ type: 'move.block up'
15924
+ at: [KeyedSegment]
15925
+ }
15926
+ | {
15927
+ type: 'select'
15928
+ selection: EditorSelection
15929
+ }
15930
+ | {
15931
+ type: 'select.previous block'
15932
+ }
15933
+ | {
15934
+ type: 'select.next block'
15935
+ }
15936
+ | {
15937
+ type: 'style.add'
15938
+ style: string
15939
+ }
15940
+ | {
15941
+ type: 'style.remove'
15942
+ style: string
15943
+ }
15944
+ | {
15945
+ type: 'style.toggle'
15946
+ style: string
15947
+ }
15948
+ | {
15949
+ type: 'text block.set'
15950
+ at: [KeyedSegment]
15951
+ level?: number
15952
+ listItem?: string
15953
+ style?: string
15954
+ }
15955
+ | {
15956
+ type: 'text block.unset'
15957
+ at: [KeyedSegment]
15958
+ props: Array<'level' | 'listItem' | 'style'>
15959
+ }
15960
+ | ({
15961
+ type: 'serialization.failure'
15962
+ mimeType: `${string}/${string}`
15963
+ reason: string
15964
+ } & {
15965
+ dataTransfer: DataTransfer
15966
+ })
15967
+ | ({
15968
+ type: 'serialization.success'
15969
+ data: string
15970
+ mimeType: `${string}/${string}`
15971
+ originEvent: 'copy' | 'cut' | 'unknown'
15972
+ } & {
15973
+ dataTransfer: DataTransfer
15974
+ })
15975
+ | ({
15976
+ type: 'deserialization.failure'
15977
+ mimeType: `${string}/${string}`
15978
+ reason: string
15979
+ } & {
15980
+ dataTransfer: DataTransfer
15981
+ })
15982
+ | ({
15983
+ type: 'deserialization.success'
15984
+ data: Array<PortableTextBlock>
15985
+ mimeType: `${string}/${string}`
15986
+ } & {
15987
+ dataTransfer: DataTransfer
15988
+ })
15989
+ | PatchEvent
15990
+ | MutationEvent
15991
+ | {
15992
+ type: 'normalizing'
15993
+ }
15994
+ | {
15995
+ type: 'done normalizing'
15996
+ }
15997
+ | {
15998
+ type: 'done syncing initial value'
15999
+ }
16000
+ | {
16001
+ type: 'behavior event'
16002
+ behaviorEvent:
16003
+ | SyntheticBehaviorEvent
16004
+ | NativeBehaviorEvent
16005
+ editor: PortableTextSlateEditor
16006
+ defaultActionCallback?: () => void
16007
+ nativeEvent?: {
16008
+ preventDefault: () => void
16009
+ }
16010
+ }
16011
+ | {
16012
+ type: 'custom behavior event'
16013
+ behaviorEvent: CustomBehaviorEvent
16014
+ editor: PortableTextSlateEditor
16015
+ nativeEvent?: {
16016
+ preventDefault: () => void
16017
+ }
16018
+ }
16019
+ | CustomBehaviorEvent
16020
+ | {
16021
+ type: 'add behavior'
16022
+ behavior: Behavior
16023
+ }
16024
+ | {
16025
+ type: 'remove behavior'
16026
+ behavior: Behavior
16027
+ }
16028
+ | {
16029
+ type: 'update readOnly'
16030
+ readOnly: boolean
16031
+ }
16032
+ | {
16033
+ type: 'update schema'
16034
+ schema: EditorSchema
16035
+ }
16036
+ | {
16037
+ type: 'update behaviors'
16038
+ behaviors: Array<Behavior>
16039
+ }
16040
+ | {
16041
+ type: 'update key generator'
16042
+ keyGenerator: () => string
16043
+ }
16044
+ | {
16045
+ type: 'update value'
16046
+ value: Array<PortableTextBlock> | undefined
16047
+ }
16048
+ | {
16049
+ type: 'update maxBlocks'
16050
+ maxBlocks: number | undefined
16051
+ }
16052
+ | PatchesEvent
16053
+ | {
16054
+ type: 'notify.patch'
16055
+ patch: Patch
16056
+ }
16057
+ | {
16058
+ type: 'notify.mutation'
16059
+ patches: Array<Patch>
16060
+ snapshot: Array<PortableTextBlock> | undefined
16061
+ value: Array<PortableTextBlock> | undefined
16062
+ }
16063
+ | {
16064
+ type: 'notify.blurred'
16065
+ event: FocusEvent_2<HTMLDivElement, Element>
16066
+ }
16067
+ | {
16068
+ type: 'notify.done loading'
16069
+ }
16070
+ | {
16071
+ type: 'notify.editable'
16072
+ }
16073
+ | {
16074
+ type: 'notify.error'
16075
+ name: string
16076
+ description: string
16077
+ data: unknown
16078
+ }
16079
+ | {
16080
+ type: 'notify.focused'
16081
+ event: FocusEvent_2<HTMLDivElement, Element>
16082
+ }
16083
+ | {
16084
+ type: 'notify.invalid value'
16085
+ resolution: InvalidValueResolution | null
16086
+ value: Array<PortableTextBlock> | undefined
16087
+ }
16088
+ | {
16089
+ type: 'notify.loading'
16090
+ }
16091
+ | {
16092
+ type: 'notify.read only'
16093
+ }
16094
+ | {
16095
+ type: 'notify.ready'
16096
+ }
16097
+ | {
16098
+ type: 'notify.selection'
16099
+ selection: EditorSelection
16100
+ }
16101
+ | {
16102
+ type: 'notify.value changed'
16103
+ value: Array<PortableTextBlock> | undefined
16104
+ }
16105
+ | {
16106
+ type: 'notify.unset'
16107
+ previousValue: Array<PortableTextBlock>
16108
+ },
16109
+ undefined,
16110
+ never,
16111
+ never,
16112
+ never,
16113
+ never,
16114
+ | {
16115
+ type: 'annotation.add'
16116
+ annotation: {
16117
+ name: string
16118
+ value: {
16119
+ [prop: string]: unknown
16120
+ }
16121
+ }
16122
+ }
16123
+ | {
16124
+ type: 'annotation.remove'
16125
+ annotation: {
16126
+ name: string
16127
+ }
16128
+ }
16129
+ | {
16130
+ type: 'annotation.toggle'
16131
+ annotation: {
16132
+ name: string
16133
+ value: {
16134
+ [prop: string]: unknown
16135
+ }
16136
+ }
16137
+ }
16138
+ | {
16139
+ [props: string]: unknown
16140
+ type: 'block.set'
16141
+ at: [KeyedSegment]
16142
+ }
16143
+ | {
16144
+ type: 'block.unset'
16145
+ at: [KeyedSegment]
16146
+ props: Array<string>
16147
+ }
16148
+ | {
16149
+ type: 'blur'
16150
+ }
16151
+ | {
16152
+ type: 'data transfer.set'
16153
+ data: string
16154
+ dataTransfer: DataTransfer
16155
+ mimeType: MIMEType_2
16156
+ }
16157
+ | {
16158
+ type: 'decorator.add'
16159
+ decorator: string
16160
+ }
16161
+ | {
16162
+ type: 'decorator.remove'
16163
+ decorator: string
16164
+ }
16165
+ | {
16166
+ type: 'decorator.toggle'
16167
+ decorator: string
16168
+ }
16169
+ | {
16170
+ type: 'delete'
16171
+ selection: NonNullable<EditorSelection>
16172
+ }
16173
+ | {
16174
+ type: 'delete.backward'
16175
+ unit: TextUnit
16176
+ }
16177
+ | {
16178
+ type: 'delete.block'
16179
+ blockPath: [KeyedSegment]
16180
+ }
16181
+ | {
16182
+ type: 'delete.forward'
16183
+ unit: TextUnit
16184
+ }
16185
+ | {
16186
+ type: 'delete.text'
16187
+ anchor: BlockOffset_2
16188
+ focus: BlockOffset_2
16189
+ }
16190
+ | {
16191
+ type: 'focus'
16192
+ }
16193
+ | {
16194
+ type: 'history.redo'
16195
+ }
16196
+ | {
16197
+ type: 'history.undo'
16198
+ }
16199
+ | {
16200
+ type: 'insert.blocks'
16201
+ blocks: Array<PortableTextBlock>
16202
+ }
16203
+ | {
16204
+ type: 'insert.block object'
16205
+ placement: 'auto' | 'after' | 'before'
16206
+ blockObject: {
16207
+ name: string
16208
+ value?: {
16209
+ [prop: string]: unknown
16210
+ }
16211
+ }
16212
+ }
16213
+ | {
16214
+ type: 'insert.inline object'
16215
+ inlineObject: {
16216
+ name: string
16217
+ value?: {
16218
+ [prop: string]: unknown
16219
+ }
16220
+ }
16221
+ }
16222
+ | {
16223
+ type: 'insert.break'
16224
+ }
16225
+ | {
16226
+ type: 'insert.soft break'
16227
+ }
16228
+ | {
16229
+ type: 'insert.block'
16230
+ block: PortableTextBlock
16231
+ placement: 'auto' | 'after' | 'before'
16232
+ }
16233
+ | {
16234
+ type: 'insert.span'
16235
+ text: string
16236
+ annotations?: Array<{
16237
+ name: string
16238
+ value: {
16239
+ [prop: string]: unknown
16240
+ }
16241
+ }>
16242
+ decorators?: Array<string>
16243
+ }
16244
+ | {
16245
+ type: 'insert.text'
16246
+ text: string
16247
+ options?: TextInsertTextOptions
16248
+ }
16249
+ | {
16250
+ type: 'insert.text block'
16251
+ placement: 'auto' | 'after' | 'before'
16252
+ textBlock?: {
16253
+ children?: PortableTextTextBlock['children']
16254
+ }
16255
+ }
16256
+ | {
16257
+ type: 'list item.add'
16258
+ listItem: string
16259
+ }
16260
+ | {
16261
+ type: 'list item.remove'
16262
+ listItem: string
16263
+ }
16264
+ | {
16265
+ type: 'list item.toggle'
16266
+ listItem: string
16267
+ }
16268
+ | {
16269
+ type: 'move.block'
16270
+ at: [KeyedSegment]
16271
+ to: [KeyedSegment]
16272
+ }
16273
+ | {
16274
+ type: 'move.block down'
16275
+ at: [KeyedSegment]
16276
+ }
16277
+ | {
16278
+ type: 'move.block up'
16279
+ at: [KeyedSegment]
16280
+ }
16281
+ | {
16282
+ type: 'select'
16283
+ selection: EditorSelection
16284
+ }
16285
+ | {
16286
+ type: 'select.previous block'
16287
+ }
16288
+ | {
16289
+ type: 'select.next block'
16290
+ }
16291
+ | {
16292
+ type: 'style.add'
16293
+ style: string
16294
+ }
16295
+ | {
16296
+ type: 'style.remove'
16297
+ style: string
16298
+ }
16299
+ | {
16300
+ type: 'style.toggle'
16301
+ style: string
16302
+ }
16303
+ | {
16304
+ type: 'text block.set'
16305
+ at: [KeyedSegment]
16306
+ level?: number
16307
+ listItem?: string
16308
+ style?: string
16309
+ }
16310
+ | {
16311
+ type: 'text block.unset'
16312
+ at: [KeyedSegment]
16313
+ props: Array<'level' | 'listItem' | 'style'>
16314
+ }
16315
+ | ({
16316
+ type: 'serialization.failure'
16317
+ mimeType: `${string}/${string}`
16318
+ reason: string
16319
+ } & {
16320
+ dataTransfer: DataTransfer
16321
+ })
16322
+ | ({
16323
+ type: 'serialization.success'
16324
+ data: string
16325
+ mimeType: `${string}/${string}`
16326
+ originEvent: 'copy' | 'cut' | 'unknown'
16327
+ } & {
16328
+ dataTransfer: DataTransfer
16329
+ })
16330
+ | ({
16331
+ type: 'deserialization.failure'
16332
+ mimeType: `${string}/${string}`
16333
+ reason: string
16334
+ } & {
16335
+ dataTransfer: DataTransfer
16336
+ })
16337
+ | ({
16338
+ type: 'deserialization.success'
16339
+ data: Array<PortableTextBlock>
16340
+ mimeType: `${string}/${string}`
16341
+ } & {
16342
+ dataTransfer: DataTransfer
16343
+ })
16344
+ | PatchEvent
16345
+ | MutationEvent
16346
+ | PatchesEvent
16347
+ | {
16348
+ type: 'blurred'
16349
+ event: FocusEvent_2<HTMLDivElement, Element>
16350
+ }
16351
+ | {
16352
+ type: 'done loading'
16353
+ }
16354
+ | {
16355
+ type: 'editable'
16356
+ }
16357
+ | {
16358
+ type: 'error'
16359
+ name: string
16360
+ description: string
16361
+ data: unknown
16362
+ }
16363
+ | {
16364
+ type: 'focused'
16365
+ event: FocusEvent_2<HTMLDivElement, Element>
16366
+ }
16367
+ | {
16368
+ type: 'invalid value'
16369
+ resolution: InvalidValueResolution | null
16370
+ value: Array<PortableTextBlock> | undefined
16371
+ }
16372
+ | {
16373
+ type: 'loading'
16374
+ }
16375
+ | {
16376
+ type: 'read only'
16377
+ }
16378
+ | {
16379
+ type: 'ready'
16380
+ }
16381
+ | {
16382
+ type: 'selection'
16383
+ selection: EditorSelection
16384
+ }
16385
+ | {
16386
+ type: 'value changed'
16387
+ value: Array<PortableTextBlock> | undefined
16388
+ }
16389
+ | UnsetEvent
16390
+ | {
16391
+ type: 'custom.*'
16392
+ event: CustomBehaviorEvent
16393
+ }
16394
+ >
16395
+ }
16396
+ readonly 'list item.*': {
16397
+ readonly actions: ActionFunction<
16398
+ {
16399
+ behaviors: Set<Behavior>
16400
+ converters: Set<Converter>
16401
+ keyGenerator: () => string
16402
+ pendingEvents: Array<PatchEvent | MutationEvent>
16403
+ schema: EditorSchema
16404
+ initialReadOnly: boolean
16405
+ maxBlocks: number | undefined
16406
+ selection: EditorSelection
16407
+ value: Array<PortableTextBlock> | undefined
16408
+ },
16409
+ | {
16410
+ type: 'list item.add'
16411
+ listItem: string
16412
+ }
16413
+ | {
16414
+ type: 'list item.remove'
16415
+ listItem: string
16416
+ }
16417
+ | {
16418
+ type: 'list item.toggle'
16419
+ listItem: string
16420
+ },
16421
+ | {
16422
+ type: 'annotation.add'
16423
+ annotation: {
16424
+ name: string
16425
+ value: {
15502
16426
  [prop: string]: unknown
15503
16427
  }
15504
16428
  }
@@ -15573,6 +16497,12 @@ declare const editorMachine: StateMachine<
15573
16497
  | {
15574
16498
  type: 'focus'
15575
16499
  }
16500
+ | {
16501
+ type: 'history.redo'
16502
+ }
16503
+ | {
16504
+ type: 'history.undo'
16505
+ }
15576
16506
  | {
15577
16507
  type: 'insert.blocks'
15578
16508
  blocks: Array<PortableTextBlock>
@@ -15922,6 +16852,12 @@ declare const editorMachine: StateMachine<
15922
16852
  | {
15923
16853
  type: 'focus'
15924
16854
  }
16855
+ | {
16856
+ type: 'history.redo'
16857
+ }
16858
+ | {
16859
+ type: 'history.undo'
16860
+ }
15925
16861
  | {
15926
16862
  type: 'insert.blocks'
15927
16863
  blocks: Array<PortableTextBlock>
@@ -16224,6 +17160,12 @@ declare const editorMachine: StateMachine<
16224
17160
  | {
16225
17161
  type: 'focus'
16226
17162
  }
17163
+ | {
17164
+ type: 'history.redo'
17165
+ }
17166
+ | {
17167
+ type: 'history.undo'
17168
+ }
16227
17169
  | {
16228
17170
  type: 'insert.blocks'
16229
17171
  blocks: Array<PortableTextBlock>
@@ -16573,6 +17515,12 @@ declare const editorMachine: StateMachine<
16573
17515
  | {
16574
17516
  type: 'focus'
16575
17517
  }
17518
+ | {
17519
+ type: 'history.redo'
17520
+ }
17521
+ | {
17522
+ type: 'history.undo'
17523
+ }
16576
17524
  | {
16577
17525
  type: 'insert.blocks'
16578
17526
  blocks: Array<PortableTextBlock>
@@ -16866,6 +17814,12 @@ declare const editorMachine: StateMachine<
16866
17814
  | {
16867
17815
  type: 'focus'
16868
17816
  }
17817
+ | {
17818
+ type: 'history.redo'
17819
+ }
17820
+ | {
17821
+ type: 'history.undo'
17822
+ }
16869
17823
  | {
16870
17824
  type: 'insert.blocks'
16871
17825
  blocks: Array<PortableTextBlock>
@@ -17215,6 +18169,12 @@ declare const editorMachine: StateMachine<
17215
18169
  | {
17216
18170
  type: 'focus'
17217
18171
  }
18172
+ | {
18173
+ type: 'history.redo'
18174
+ }
18175
+ | {
18176
+ type: 'history.undo'
18177
+ }
17218
18178
  | {
17219
18179
  type: 'insert.blocks'
17220
18180
  blocks: Array<PortableTextBlock>
@@ -17510,6 +18470,12 @@ declare const editorMachine: StateMachine<
17510
18470
  | {
17511
18471
  type: 'focus'
17512
18472
  }
18473
+ | {
18474
+ type: 'history.redo'
18475
+ }
18476
+ | {
18477
+ type: 'history.undo'
18478
+ }
17513
18479
  | {
17514
18480
  type: 'insert.blocks'
17515
18481
  blocks: Array<PortableTextBlock>
@@ -17859,6 +18825,12 @@ declare const editorMachine: StateMachine<
17859
18825
  | {
17860
18826
  type: 'focus'
17861
18827
  }
18828
+ | {
18829
+ type: 'history.redo'
18830
+ }
18831
+ | {
18832
+ type: 'history.undo'
18833
+ }
17862
18834
  | {
17863
18835
  type: 'insert.blocks'
17864
18836
  blocks: Array<PortableTextBlock>
@@ -18160,6 +19132,12 @@ declare const editorMachine: StateMachine<
18160
19132
  | {
18161
19133
  type: 'focus'
18162
19134
  }
19135
+ | {
19136
+ type: 'history.redo'
19137
+ }
19138
+ | {
19139
+ type: 'history.undo'
19140
+ }
18163
19141
  | {
18164
19142
  type: 'insert.blocks'
18165
19143
  blocks: Array<PortableTextBlock>
@@ -18509,6 +19487,12 @@ declare const editorMachine: StateMachine<
18509
19487
  | {
18510
19488
  type: 'focus'
18511
19489
  }
19490
+ | {
19491
+ type: 'history.redo'
19492
+ }
19493
+ | {
19494
+ type: 'history.undo'
19495
+ }
18512
19496
  | {
18513
19497
  type: 'insert.blocks'
18514
19498
  blocks: Array<PortableTextBlock>
@@ -18810,6 +19794,12 @@ declare const editorMachine: StateMachine<
18810
19794
  | {
18811
19795
  type: 'focus'
18812
19796
  }
19797
+ | {
19798
+ type: 'history.redo'
19799
+ }
19800
+ | {
19801
+ type: 'history.undo'
19802
+ }
18813
19803
  | {
18814
19804
  type: 'insert.blocks'
18815
19805
  blocks: Array<PortableTextBlock>
@@ -19159,6 +20149,12 @@ declare const editorMachine: StateMachine<
19159
20149
  | {
19160
20150
  type: 'focus'
19161
20151
  }
20152
+ | {
20153
+ type: 'history.redo'
20154
+ }
20155
+ | {
20156
+ type: 'history.undo'
20157
+ }
19162
20158
  | {
19163
20159
  type: 'insert.blocks'
19164
20160
  blocks: Array<PortableTextBlock>
@@ -20575,6 +21571,12 @@ export declare type SyntheticBehaviorEvent =
20575
21571
  | {
20576
21572
  type: 'focus'
20577
21573
  }
21574
+ | {
21575
+ type: 'history.redo'
21576
+ }
21577
+ | {
21578
+ type: 'history.undo'
21579
+ }
20578
21580
  | {
20579
21581
  type: 'insert.blocks'
20580
21582
  blocks: Array<PortableTextBlock>