@portabletext/editor 1.33.6 → 1.34.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
@@ -714,7 +714,10 @@ declare const editorMachine: StateMachine<
714
714
  | {
715
715
  type: 'decorator.add'
716
716
  decorator: string
717
- selection?: NonNullable<EditorSelection>
717
+ offsets?: {
718
+ anchor: BlockOffset_2
719
+ focus: BlockOffset_2
720
+ }
718
721
  }
719
722
  | {
720
723
  type: 'decorator.remove'
@@ -1133,7 +1136,10 @@ declare const editorMachine: StateMachine<
1133
1136
  | {
1134
1137
  type: 'decorator.add'
1135
1138
  decorator: string
1136
- selection?: NonNullable<EditorSelection>
1139
+ offsets?: {
1140
+ anchor: BlockOffset_2
1141
+ focus: BlockOffset_2
1142
+ }
1137
1143
  }
1138
1144
  | {
1139
1145
  type: 'decorator.remove'
@@ -1452,7 +1458,10 @@ declare const editorMachine: StateMachine<
1452
1458
  | {
1453
1459
  type: 'decorator.add'
1454
1460
  decorator: string
1455
- selection?: NonNullable<EditorSelection>
1461
+ offsets?: {
1462
+ anchor: BlockOffset_2
1463
+ focus: BlockOffset_2
1464
+ }
1456
1465
  }
1457
1466
  | {
1458
1467
  type: 'decorator.remove'
@@ -1796,7 +1805,10 @@ declare const editorMachine: StateMachine<
1796
1805
  | {
1797
1806
  type: 'decorator.add'
1798
1807
  decorator: string
1799
- selection?: NonNullable<EditorSelection>
1808
+ offsets?: {
1809
+ anchor: BlockOffset_2
1810
+ focus: BlockOffset_2
1811
+ }
1800
1812
  }
1801
1813
  | {
1802
1814
  type: 'decorator.remove'
@@ -2164,7 +2176,10 @@ declare const editorMachine: StateMachine<
2164
2176
  | {
2165
2177
  type: 'decorator.add'
2166
2178
  decorator: string
2167
- selection?: NonNullable<EditorSelection>
2179
+ offsets?: {
2180
+ anchor: BlockOffset_2
2181
+ focus: BlockOffset_2
2182
+ }
2168
2183
  }
2169
2184
  | {
2170
2185
  type: 'decorator.remove'
@@ -2506,7 +2521,10 @@ declare const editorMachine: StateMachine<
2506
2521
  | {
2507
2522
  type: 'decorator.add'
2508
2523
  decorator: string
2509
- selection?: NonNullable<EditorSelection>
2524
+ offsets?: {
2525
+ anchor: BlockOffset_2
2526
+ focus: BlockOffset_2
2527
+ }
2510
2528
  }
2511
2529
  | {
2512
2530
  type: 'decorator.remove'
@@ -2793,7 +2811,10 @@ declare const editorMachine: StateMachine<
2793
2811
  | {
2794
2812
  type: 'decorator.add'
2795
2813
  decorator: string
2796
- selection?: NonNullable<EditorSelection>
2814
+ offsets?: {
2815
+ anchor: BlockOffset_2
2816
+ focus: BlockOffset_2
2817
+ }
2797
2818
  }
2798
2819
  | {
2799
2820
  type: 'decorator.remove'
@@ -3135,7 +3156,10 @@ declare const editorMachine: StateMachine<
3135
3156
  | {
3136
3157
  type: 'decorator.add'
3137
3158
  decorator: string
3138
- selection?: NonNullable<EditorSelection>
3159
+ offsets?: {
3160
+ anchor: BlockOffset_2
3161
+ focus: BlockOffset_2
3162
+ }
3139
3163
  }
3140
3164
  | {
3141
3165
  type: 'decorator.remove'
@@ -3425,7 +3449,10 @@ declare const editorMachine: StateMachine<
3425
3449
  | {
3426
3450
  type: 'decorator.add'
3427
3451
  decorator: string
3428
- selection?: NonNullable<EditorSelection>
3452
+ offsets?: {
3453
+ anchor: BlockOffset_2
3454
+ focus: BlockOffset_2
3455
+ }
3429
3456
  }
3430
3457
  | {
3431
3458
  type: 'decorator.remove'
@@ -3767,7 +3794,10 @@ declare const editorMachine: StateMachine<
3767
3794
  | {
3768
3795
  type: 'decorator.add'
3769
3796
  decorator: string
3770
- selection?: NonNullable<EditorSelection>
3797
+ offsets?: {
3798
+ anchor: BlockOffset_2
3799
+ focus: BlockOffset_2
3800
+ }
3771
3801
  }
3772
3802
  | {
3773
3803
  type: 'decorator.remove'
@@ -4056,7 +4086,10 @@ declare const editorMachine: StateMachine<
4056
4086
  | {
4057
4087
  type: 'decorator.add'
4058
4088
  decorator: string
4059
- selection?: NonNullable<EditorSelection>
4089
+ offsets?: {
4090
+ anchor: BlockOffset_2
4091
+ focus: BlockOffset_2
4092
+ }
4060
4093
  }
4061
4094
  | {
4062
4095
  type: 'decorator.remove'
@@ -4398,7 +4431,10 @@ declare const editorMachine: StateMachine<
4398
4431
  | {
4399
4432
  type: 'decorator.add'
4400
4433
  decorator: string
4401
- selection?: NonNullable<EditorSelection>
4434
+ offsets?: {
4435
+ anchor: BlockOffset_2
4436
+ focus: BlockOffset_2
4437
+ }
4402
4438
  }
4403
4439
  | {
4404
4440
  type: 'decorator.remove'
@@ -4686,7 +4722,10 @@ declare const editorMachine: StateMachine<
4686
4722
  | {
4687
4723
  type: 'decorator.add'
4688
4724
  decorator: string
4689
- selection?: NonNullable<EditorSelection>
4725
+ offsets?: {
4726
+ anchor: BlockOffset_2
4727
+ focus: BlockOffset_2
4728
+ }
4690
4729
  }
4691
4730
  | {
4692
4731
  type: 'decorator.remove'
@@ -5028,7 +5067,10 @@ declare const editorMachine: StateMachine<
5028
5067
  | {
5029
5068
  type: 'decorator.add'
5030
5069
  decorator: string
5031
- selection?: NonNullable<EditorSelection>
5070
+ offsets?: {
5071
+ anchor: BlockOffset_2
5072
+ focus: BlockOffset_2
5073
+ }
5032
5074
  }
5033
5075
  | {
5034
5076
  type: 'decorator.remove'
@@ -5317,7 +5359,10 @@ declare const editorMachine: StateMachine<
5317
5359
  | {
5318
5360
  type: 'decorator.add'
5319
5361
  decorator: string
5320
- selection?: NonNullable<EditorSelection>
5362
+ offsets?: {
5363
+ anchor: BlockOffset_2
5364
+ focus: BlockOffset_2
5365
+ }
5321
5366
  }
5322
5367
  | {
5323
5368
  type: 'decorator.remove'
@@ -5677,7 +5722,10 @@ declare const editorMachine: StateMachine<
5677
5722
  | {
5678
5723
  type: 'decorator.add'
5679
5724
  decorator: string
5680
- selection?: NonNullable<EditorSelection>
5725
+ offsets?: {
5726
+ anchor: BlockOffset_2
5727
+ focus: BlockOffset_2
5728
+ }
5681
5729
  }
5682
5730
  | {
5683
5731
  type: 'decorator.remove'
@@ -6019,7 +6067,10 @@ declare const editorMachine: StateMachine<
6019
6067
  | {
6020
6068
  type: 'decorator.add'
6021
6069
  decorator: string
6022
- selection?: NonNullable<EditorSelection>
6070
+ offsets?: {
6071
+ anchor: BlockOffset_2
6072
+ focus: BlockOffset_2
6073
+ }
6023
6074
  }
6024
6075
  | {
6025
6076
  type: 'decorator.remove'
@@ -6308,7 +6359,10 @@ declare const editorMachine: StateMachine<
6308
6359
  | {
6309
6360
  type: 'decorator.add'
6310
6361
  decorator: string
6311
- selection?: NonNullable<EditorSelection>
6362
+ offsets?: {
6363
+ anchor: BlockOffset_2
6364
+ focus: BlockOffset_2
6365
+ }
6312
6366
  }
6313
6367
  | {
6314
6368
  type: 'decorator.remove'
@@ -6650,7 +6704,10 @@ declare const editorMachine: StateMachine<
6650
6704
  | {
6651
6705
  type: 'decorator.add'
6652
6706
  decorator: string
6653
- selection?: NonNullable<EditorSelection>
6707
+ offsets?: {
6708
+ anchor: BlockOffset_2
6709
+ focus: BlockOffset_2
6710
+ }
6654
6711
  }
6655
6712
  | {
6656
6713
  type: 'decorator.remove'
@@ -6937,7 +6994,10 @@ declare const editorMachine: StateMachine<
6937
6994
  | {
6938
6995
  type: 'decorator.add'
6939
6996
  decorator: string
6940
- selection?: NonNullable<EditorSelection>
6997
+ offsets?: {
6998
+ anchor: BlockOffset_2
6999
+ focus: BlockOffset_2
7000
+ }
6941
7001
  }
6942
7002
  | {
6943
7003
  type: 'decorator.remove'
@@ -7279,7 +7339,10 @@ declare const editorMachine: StateMachine<
7279
7339
  | {
7280
7340
  type: 'decorator.add'
7281
7341
  decorator: string
7282
- selection?: NonNullable<EditorSelection>
7342
+ offsets?: {
7343
+ anchor: BlockOffset_2
7344
+ focus: BlockOffset_2
7345
+ }
7283
7346
  }
7284
7347
  | {
7285
7348
  type: 'decorator.remove'
@@ -7567,7 +7630,10 @@ declare const editorMachine: StateMachine<
7567
7630
  | {
7568
7631
  type: 'decorator.add'
7569
7632
  decorator: string
7570
- selection?: NonNullable<EditorSelection>
7633
+ offsets?: {
7634
+ anchor: BlockOffset_2
7635
+ focus: BlockOffset_2
7636
+ }
7571
7637
  }
7572
7638
  | {
7573
7639
  type: 'decorator.remove'
@@ -7909,7 +7975,10 @@ declare const editorMachine: StateMachine<
7909
7975
  | {
7910
7976
  type: 'decorator.add'
7911
7977
  decorator: string
7912
- selection?: NonNullable<EditorSelection>
7978
+ offsets?: {
7979
+ anchor: BlockOffset_2
7980
+ focus: BlockOffset_2
7981
+ }
7913
7982
  }
7914
7983
  | {
7915
7984
  type: 'decorator.remove'
@@ -8200,7 +8269,10 @@ declare const editorMachine: StateMachine<
8200
8269
  | {
8201
8270
  type: 'decorator.add'
8202
8271
  decorator: string
8203
- selection?: NonNullable<EditorSelection>
8272
+ offsets?: {
8273
+ anchor: BlockOffset_2
8274
+ focus: BlockOffset_2
8275
+ }
8204
8276
  }
8205
8277
  | {
8206
8278
  type: 'decorator.remove'
@@ -8542,7 +8614,10 @@ declare const editorMachine: StateMachine<
8542
8614
  | {
8543
8615
  type: 'decorator.add'
8544
8616
  decorator: string
8545
- selection?: NonNullable<EditorSelection>
8617
+ offsets?: {
8618
+ anchor: BlockOffset_2
8619
+ focus: BlockOffset_2
8620
+ }
8546
8621
  }
8547
8622
  | {
8548
8623
  type: 'decorator.remove'
@@ -8833,7 +8908,10 @@ declare const editorMachine: StateMachine<
8833
8908
  | {
8834
8909
  type: 'decorator.add'
8835
8910
  decorator: string
8836
- selection?: NonNullable<EditorSelection>
8911
+ offsets?: {
8912
+ anchor: BlockOffset_2
8913
+ focus: BlockOffset_2
8914
+ }
8837
8915
  }
8838
8916
  | {
8839
8917
  type: 'decorator.remove'
@@ -9198,7 +9276,10 @@ declare const editorMachine: StateMachine<
9198
9276
  | {
9199
9277
  type: 'decorator.add'
9200
9278
  decorator: string
9201
- selection?: NonNullable<EditorSelection>
9279
+ offsets?: {
9280
+ anchor: BlockOffset_2
9281
+ focus: BlockOffset_2
9282
+ }
9202
9283
  }
9203
9284
  | {
9204
9285
  type: 'decorator.remove'
@@ -9560,7 +9641,10 @@ declare const editorMachine: StateMachine<
9560
9641
  | {
9561
9642
  type: 'decorator.add'
9562
9643
  decorator: string
9563
- selection?: NonNullable<EditorSelection>
9644
+ offsets?: {
9645
+ anchor: BlockOffset_2
9646
+ focus: BlockOffset_2
9647
+ }
9564
9648
  }
9565
9649
  | {
9566
9650
  type: 'decorator.remove'
@@ -10070,7 +10154,10 @@ declare const editorMachine: StateMachine<
10070
10154
  | {
10071
10155
  type: 'decorator.add'
10072
10156
  decorator: string
10073
- selection?: NonNullable<EditorSelection>
10157
+ offsets?: {
10158
+ anchor: BlockOffset_2
10159
+ focus: BlockOffset_2
10160
+ }
10074
10161
  }
10075
10162
  | {
10076
10163
  type: 'decorator.remove'
@@ -10414,7 +10501,10 @@ declare const editorMachine: StateMachine<
10414
10501
  | {
10415
10502
  type: 'decorator.add'
10416
10503
  decorator: string
10417
- selection?: NonNullable<EditorSelection>
10504
+ offsets?: {
10505
+ anchor: BlockOffset_2
10506
+ focus: BlockOffset_2
10507
+ }
10418
10508
  }
10419
10509
  | {
10420
10510
  type: 'decorator.remove'
@@ -10708,7 +10798,10 @@ declare const editorMachine: StateMachine<
10708
10798
  | {
10709
10799
  type: 'decorator.add'
10710
10800
  decorator: string
10711
- selection?: NonNullable<EditorSelection>
10801
+ offsets?: {
10802
+ anchor: BlockOffset_2
10803
+ focus: BlockOffset_2
10804
+ }
10712
10805
  }
10713
10806
  | {
10714
10807
  type: 'decorator.remove'
@@ -11052,7 +11145,10 @@ declare const editorMachine: StateMachine<
11052
11145
  | {
11053
11146
  type: 'decorator.add'
11054
11147
  decorator: string
11055
- selection?: NonNullable<EditorSelection>
11148
+ offsets?: {
11149
+ anchor: BlockOffset_2
11150
+ focus: BlockOffset_2
11151
+ }
11056
11152
  }
11057
11153
  | {
11058
11154
  type: 'decorator.remove'
@@ -11339,7 +11435,10 @@ declare const editorMachine: StateMachine<
11339
11435
  | {
11340
11436
  type: 'decorator.add'
11341
11437
  decorator: string
11342
- selection?: NonNullable<EditorSelection>
11438
+ offsets?: {
11439
+ anchor: BlockOffset_2
11440
+ focus: BlockOffset_2
11441
+ }
11343
11442
  }
11344
11443
  | {
11345
11444
  type: 'decorator.remove'
@@ -11683,7 +11782,10 @@ declare const editorMachine: StateMachine<
11683
11782
  | {
11684
11783
  type: 'decorator.add'
11685
11784
  decorator: string
11686
- selection?: NonNullable<EditorSelection>
11785
+ offsets?: {
11786
+ anchor: BlockOffset_2
11787
+ focus: BlockOffset_2
11788
+ }
11687
11789
  }
11688
11790
  | {
11689
11791
  type: 'decorator.remove'
@@ -11970,7 +12072,10 @@ declare const editorMachine: StateMachine<
11970
12072
  | {
11971
12073
  type: 'decorator.add'
11972
12074
  decorator: string
11973
- selection?: NonNullable<EditorSelection>
12075
+ offsets?: {
12076
+ anchor: BlockOffset_2
12077
+ focus: BlockOffset_2
12078
+ }
11974
12079
  }
11975
12080
  | {
11976
12081
  type: 'decorator.remove'
@@ -12314,7 +12419,10 @@ declare const editorMachine: StateMachine<
12314
12419
  | {
12315
12420
  type: 'decorator.add'
12316
12421
  decorator: string
12317
- selection?: NonNullable<EditorSelection>
12422
+ offsets?: {
12423
+ anchor: BlockOffset_2
12424
+ focus: BlockOffset_2
12425
+ }
12318
12426
  }
12319
12427
  | {
12320
12428
  type: 'decorator.remove'
@@ -12555,7 +12663,10 @@ declare const editorMachine: StateMachine<
12555
12663
  | {
12556
12664
  type: 'decorator.add'
12557
12665
  decorator: string
12558
- selection?: NonNullable<EditorSelection>
12666
+ offsets?: {
12667
+ anchor: BlockOffset_2
12668
+ focus: BlockOffset_2
12669
+ }
12559
12670
  }
12560
12671
  | {
12561
12672
  type: 'decorator.remove'
@@ -12611,7 +12722,10 @@ declare const editorMachine: StateMachine<
12611
12722
  | {
12612
12723
  type: 'decorator.add'
12613
12724
  decorator: string
12614
- selection?: NonNullable<EditorSelection>
12725
+ offsets?: {
12726
+ anchor: BlockOffset_2
12727
+ focus: BlockOffset_2
12728
+ }
12615
12729
  }
12616
12730
  | {
12617
12731
  type: 'decorator.remove'
@@ -12955,7 +13069,10 @@ declare const editorMachine: StateMachine<
12955
13069
  | {
12956
13070
  type: 'decorator.add'
12957
13071
  decorator: string
12958
- selection?: NonNullable<EditorSelection>
13072
+ offsets?: {
13073
+ anchor: BlockOffset_2
13074
+ focus: BlockOffset_2
13075
+ }
12959
13076
  }
12960
13077
  | {
12961
13078
  type: 'decorator.remove'
@@ -13256,7 +13373,10 @@ declare const editorMachine: StateMachine<
13256
13373
  | {
13257
13374
  type: 'decorator.add'
13258
13375
  decorator: string
13259
- selection?: NonNullable<EditorSelection>
13376
+ offsets?: {
13377
+ anchor: BlockOffset_2
13378
+ focus: BlockOffset_2
13379
+ }
13260
13380
  }
13261
13381
  | {
13262
13382
  type: 'decorator.remove'
@@ -13600,7 +13720,10 @@ declare const editorMachine: StateMachine<
13600
13720
  | {
13601
13721
  type: 'decorator.add'
13602
13722
  decorator: string
13603
- selection?: NonNullable<EditorSelection>
13723
+ offsets?: {
13724
+ anchor: BlockOffset_2
13725
+ focus: BlockOffset_2
13726
+ }
13604
13727
  }
13605
13728
  | {
13606
13729
  type: 'decorator.remove'
@@ -13887,7 +14010,10 @@ declare const editorMachine: StateMachine<
13887
14010
  | {
13888
14011
  type: 'decorator.add'
13889
14012
  decorator: string
13890
- selection?: NonNullable<EditorSelection>
14013
+ offsets?: {
14014
+ anchor: BlockOffset_2
14015
+ focus: BlockOffset_2
14016
+ }
13891
14017
  }
13892
14018
  | {
13893
14019
  type: 'decorator.remove'
@@ -14231,7 +14357,10 @@ declare const editorMachine: StateMachine<
14231
14357
  | {
14232
14358
  type: 'decorator.add'
14233
14359
  decorator: string
14234
- selection?: NonNullable<EditorSelection>
14360
+ offsets?: {
14361
+ anchor: BlockOffset_2
14362
+ focus: BlockOffset_2
14363
+ }
14235
14364
  }
14236
14365
  | {
14237
14366
  type: 'decorator.remove'
@@ -14521,7 +14650,10 @@ declare const editorMachine: StateMachine<
14521
14650
  | {
14522
14651
  type: 'decorator.add'
14523
14652
  decorator: string
14524
- selection?: NonNullable<EditorSelection>
14653
+ offsets?: {
14654
+ anchor: BlockOffset_2
14655
+ focus: BlockOffset_2
14656
+ }
14525
14657
  }
14526
14658
  | {
14527
14659
  type: 'decorator.remove'
@@ -14865,7 +14997,10 @@ declare const editorMachine: StateMachine<
14865
14997
  | {
14866
14998
  type: 'decorator.add'
14867
14999
  decorator: string
14868
- selection?: NonNullable<EditorSelection>
15000
+ offsets?: {
15001
+ anchor: BlockOffset_2
15002
+ focus: BlockOffset_2
15003
+ }
14869
15004
  }
14870
15005
  | {
14871
15006
  type: 'decorator.remove'
@@ -15206,7 +15341,10 @@ declare const editorMachine: StateMachine<
15206
15341
  | {
15207
15342
  type: 'decorator.add'
15208
15343
  decorator: string
15209
- selection?: NonNullable<EditorSelection>
15344
+ offsets?: {
15345
+ anchor: BlockOffset_2
15346
+ focus: BlockOffset_2
15347
+ }
15210
15348
  }
15211
15349
  | {
15212
15350
  type: 'decorator.remove'
@@ -15550,7 +15688,10 @@ declare const editorMachine: StateMachine<
15550
15688
  | {
15551
15689
  type: 'decorator.add'
15552
15690
  decorator: string
15553
- selection?: NonNullable<EditorSelection>
15691
+ offsets?: {
15692
+ anchor: BlockOffset_2
15693
+ focus: BlockOffset_2
15694
+ }
15554
15695
  }
15555
15696
  | {
15556
15697
  type: 'decorator.remove'
@@ -15846,7 +15987,10 @@ declare const editorMachine: StateMachine<
15846
15987
  | {
15847
15988
  type: 'decorator.add'
15848
15989
  decorator: string
15849
- selection?: NonNullable<EditorSelection>
15990
+ offsets?: {
15991
+ anchor: BlockOffset_2
15992
+ focus: BlockOffset_2
15993
+ }
15850
15994
  }
15851
15995
  | {
15852
15996
  type: 'decorator.remove'
@@ -16190,7 +16334,10 @@ declare const editorMachine: StateMachine<
16190
16334
  | {
16191
16335
  type: 'decorator.add'
16192
16336
  decorator: string
16193
- selection?: NonNullable<EditorSelection>
16337
+ offsets?: {
16338
+ anchor: BlockOffset_2
16339
+ focus: BlockOffset_2
16340
+ }
16194
16341
  }
16195
16342
  | {
16196
16343
  type: 'decorator.remove'
@@ -16487,7 +16634,10 @@ declare const editorMachine: StateMachine<
16487
16634
  | {
16488
16635
  type: 'decorator.add'
16489
16636
  decorator: string
16490
- selection?: NonNullable<EditorSelection>
16637
+ offsets?: {
16638
+ anchor: BlockOffset_2
16639
+ focus: BlockOffset_2
16640
+ }
16491
16641
  }
16492
16642
  | {
16493
16643
  type: 'decorator.remove'
@@ -16831,7 +16981,10 @@ declare const editorMachine: StateMachine<
16831
16981
  | {
16832
16982
  type: 'decorator.add'
16833
16983
  decorator: string
16834
- selection?: NonNullable<EditorSelection>
16984
+ offsets?: {
16985
+ anchor: BlockOffset_2
16986
+ focus: BlockOffset_2
16987
+ }
16835
16988
  }
16836
16989
  | {
16837
16990
  type: 'decorator.remove'
@@ -17119,7 +17272,10 @@ declare const editorMachine: StateMachine<
17119
17272
  | {
17120
17273
  type: 'decorator.add'
17121
17274
  decorator: string
17122
- selection?: NonNullable<EditorSelection>
17275
+ offsets?: {
17276
+ anchor: BlockOffset_2
17277
+ focus: BlockOffset_2
17278
+ }
17123
17279
  }
17124
17280
  | {
17125
17281
  type: 'decorator.remove'
@@ -17463,7 +17619,10 @@ declare const editorMachine: StateMachine<
17463
17619
  | {
17464
17620
  type: 'decorator.add'
17465
17621
  decorator: string
17466
- selection?: NonNullable<EditorSelection>
17622
+ offsets?: {
17623
+ anchor: BlockOffset_2
17624
+ focus: BlockOffset_2
17625
+ }
17467
17626
  }
17468
17627
  | {
17469
17628
  type: 'decorator.remove'
@@ -17753,7 +17912,10 @@ declare const editorMachine: StateMachine<
17753
17912
  | {
17754
17913
  type: 'decorator.add'
17755
17914
  decorator: string
17756
- selection?: NonNullable<EditorSelection>
17915
+ offsets?: {
17916
+ anchor: BlockOffset_2
17917
+ focus: BlockOffset_2
17918
+ }
17757
17919
  }
17758
17920
  | {
17759
17921
  type: 'decorator.remove'
@@ -18097,7 +18259,10 @@ declare const editorMachine: StateMachine<
18097
18259
  | {
18098
18260
  type: 'decorator.add'
18099
18261
  decorator: string
18100
- selection?: NonNullable<EditorSelection>
18262
+ offsets?: {
18263
+ anchor: BlockOffset_2
18264
+ focus: BlockOffset_2
18265
+ }
18101
18266
  }
18102
18267
  | {
18103
18268
  type: 'decorator.remove'
@@ -18393,7 +18558,10 @@ declare const editorMachine: StateMachine<
18393
18558
  | {
18394
18559
  type: 'decorator.add'
18395
18560
  decorator: string
18396
- selection?: NonNullable<EditorSelection>
18561
+ offsets?: {
18562
+ anchor: BlockOffset_2
18563
+ focus: BlockOffset_2
18564
+ }
18397
18565
  }
18398
18566
  | {
18399
18567
  type: 'decorator.remove'
@@ -18737,7 +18905,10 @@ declare const editorMachine: StateMachine<
18737
18905
  | {
18738
18906
  type: 'decorator.add'
18739
18907
  decorator: string
18740
- selection?: NonNullable<EditorSelection>
18908
+ offsets?: {
18909
+ anchor: BlockOffset_2
18910
+ focus: BlockOffset_2
18911
+ }
18741
18912
  }
18742
18913
  | {
18743
18914
  type: 'decorator.remove'
@@ -20161,7 +20332,10 @@ export declare type SyntheticBehaviorEvent =
20161
20332
  | {
20162
20333
  type: 'decorator.add'
20163
20334
  decorator: string
20164
- selection?: NonNullable<EditorSelection>
20335
+ offsets?: {
20336
+ anchor: BlockOffset
20337
+ focus: BlockOffset
20338
+ }
20165
20339
  }
20166
20340
  | {
20167
20341
  type: 'decorator.remove'