@portabletext/editor 1.44.0 → 1.44.1

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.
@@ -281,12 +281,10 @@ export declare const coreBehaviors: Behavior_2<
281
281
  | `custom.${string}`
282
282
  | 'annotation.add'
283
283
  | 'annotation.remove'
284
- | 'annotation.toggle'
285
284
  | 'block.set'
286
285
  | 'block.unset'
287
286
  | 'decorator.add'
288
287
  | 'decorator.remove'
289
- | 'decorator.toggle'
290
288
  | 'delete.backward'
291
289
  | 'delete.block'
292
290
  | 'delete.forward'
@@ -302,6 +300,8 @@ export declare const coreBehaviors: Behavior_2<
302
300
  | 'move.block'
303
301
  | 'move.block down'
304
302
  | 'move.block up'
303
+ | 'annotation.toggle'
304
+ | 'decorator.toggle'
305
305
  | 'insert.blocks'
306
306
  | 'list item.add'
307
307
  | 'list item.remove'
@@ -337,15 +337,6 @@ export declare const coreBehaviors: Behavior_2<
337
337
  name: string
338
338
  }
339
339
  }
340
- | {
341
- type: 'annotation.toggle'
342
- annotation: {
343
- name: string
344
- value: {
345
- [prop: string]: unknown
346
- }
347
- }
348
- }
349
340
  | {
350
341
  type: 'block.set'
351
342
  at: [KeyedSegment]
@@ -371,14 +362,6 @@ export declare const coreBehaviors: Behavior_2<
371
362
  type: 'decorator.remove'
372
363
  decorator: string
373
364
  }
374
- | {
375
- type: 'decorator.toggle'
376
- decorator: string
377
- offsets?: {
378
- anchor: BlockOffset
379
- focus: BlockOffset
380
- }
381
- }
382
365
  | {
383
366
  type: 'delete'
384
367
  selection: NonNullable<EditorSelection>
@@ -462,6 +445,23 @@ export declare const coreBehaviors: Behavior_2<
462
445
  type: 'select'
463
446
  selection: EditorSelection
464
447
  }
448
+ | {
449
+ type: 'annotation.toggle'
450
+ annotation: {
451
+ name: string
452
+ value: {
453
+ [prop: string]: unknown
454
+ }
455
+ }
456
+ }
457
+ | {
458
+ type: 'decorator.toggle'
459
+ decorator: string
460
+ offsets?: {
461
+ anchor: BlockOffset
462
+ focus: BlockOffset
463
+ }
464
+ }
465
465
  | {
466
466
  type: 'deserialize'
467
467
  originEvent:
@@ -691,12 +691,10 @@ export declare function createCodeEditorBehaviors(
691
691
  | `custom.${string}`
692
692
  | 'annotation.add'
693
693
  | 'annotation.remove'
694
- | 'annotation.toggle'
695
694
  | 'block.set'
696
695
  | 'block.unset'
697
696
  | 'decorator.add'
698
697
  | 'decorator.remove'
699
- | 'decorator.toggle'
700
698
  | 'delete.backward'
701
699
  | 'delete.block'
702
700
  | 'delete.forward'
@@ -712,6 +710,8 @@ export declare function createCodeEditorBehaviors(
712
710
  | 'move.block'
713
711
  | 'move.block down'
714
712
  | 'move.block up'
713
+ | 'annotation.toggle'
714
+ | 'decorator.toggle'
715
715
  | 'insert.blocks'
716
716
  | 'list item.add'
717
717
  | 'list item.remove'
@@ -747,15 +747,6 @@ export declare function createCodeEditorBehaviors(
747
747
  name: string
748
748
  }
749
749
  }
750
- | {
751
- type: 'annotation.toggle'
752
- annotation: {
753
- name: string
754
- value: {
755
- [prop: string]: unknown
756
- }
757
- }
758
- }
759
750
  | {
760
751
  type: 'block.set'
761
752
  at: [KeyedSegment]
@@ -781,14 +772,6 @@ export declare function createCodeEditorBehaviors(
781
772
  type: 'decorator.remove'
782
773
  decorator: string
783
774
  }
784
- | {
785
- type: 'decorator.toggle'
786
- decorator: string
787
- offsets?: {
788
- anchor: BlockOffset
789
- focus: BlockOffset
790
- }
791
- }
792
775
  | {
793
776
  type: 'delete'
794
777
  selection: NonNullable<EditorSelection>
@@ -872,6 +855,23 @@ export declare function createCodeEditorBehaviors(
872
855
  type: 'select'
873
856
  selection: EditorSelection
874
857
  }
858
+ | {
859
+ type: 'annotation.toggle'
860
+ annotation: {
861
+ name: string
862
+ value: {
863
+ [prop: string]: unknown
864
+ }
865
+ }
866
+ }
867
+ | {
868
+ type: 'decorator.toggle'
869
+ decorator: string
870
+ offsets?: {
871
+ anchor: BlockOffset
872
+ focus: BlockOffset
873
+ }
874
+ }
875
875
  | {
876
876
  type: 'deserialize'
877
877
  originEvent:
@@ -1101,12 +1101,10 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
1101
1101
  | `custom.${string}`
1102
1102
  | 'annotation.add'
1103
1103
  | 'annotation.remove'
1104
- | 'annotation.toggle'
1105
1104
  | 'block.set'
1106
1105
  | 'block.unset'
1107
1106
  | 'decorator.add'
1108
1107
  | 'decorator.remove'
1109
- | 'decorator.toggle'
1110
1108
  | 'delete.backward'
1111
1109
  | 'delete.block'
1112
1110
  | 'delete.forward'
@@ -1122,6 +1120,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
1122
1120
  | 'move.block'
1123
1121
  | 'move.block down'
1124
1122
  | 'move.block up'
1123
+ | 'annotation.toggle'
1124
+ | 'decorator.toggle'
1125
1125
  | 'insert.blocks'
1126
1126
  | 'list item.add'
1127
1127
  | 'list item.remove'
@@ -1157,15 +1157,6 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
1157
1157
  name: string
1158
1158
  }
1159
1159
  }
1160
- | {
1161
- type: 'annotation.toggle'
1162
- annotation: {
1163
- name: string
1164
- value: {
1165
- [prop: string]: unknown
1166
- }
1167
- }
1168
- }
1169
1160
  | {
1170
1161
  type: 'block.set'
1171
1162
  at: [KeyedSegment]
@@ -1191,14 +1182,6 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
1191
1182
  type: 'decorator.remove'
1192
1183
  decorator: string
1193
1184
  }
1194
- | {
1195
- type: 'decorator.toggle'
1196
- decorator: string
1197
- offsets?: {
1198
- anchor: BlockOffset
1199
- focus: BlockOffset
1200
- }
1201
- }
1202
1185
  | {
1203
1186
  type: 'delete'
1204
1187
  selection: NonNullable<EditorSelection>
@@ -1282,6 +1265,23 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
1282
1265
  type: 'select'
1283
1266
  selection: EditorSelection
1284
1267
  }
1268
+ | {
1269
+ type: 'annotation.toggle'
1270
+ annotation: {
1271
+ name: string
1272
+ value: {
1273
+ [prop: string]: unknown
1274
+ }
1275
+ }
1276
+ }
1277
+ | {
1278
+ type: 'decorator.toggle'
1279
+ decorator: string
1280
+ offsets?: {
1281
+ anchor: BlockOffset
1282
+ focus: BlockOffset
1283
+ }
1284
+ }
1285
1285
  | {
1286
1286
  type: 'deserialize'
1287
1287
  originEvent:
@@ -1511,12 +1511,10 @@ export declare function createLinkBehaviors(
1511
1511
  | `custom.${string}`
1512
1512
  | 'annotation.add'
1513
1513
  | 'annotation.remove'
1514
- | 'annotation.toggle'
1515
1514
  | 'block.set'
1516
1515
  | 'block.unset'
1517
1516
  | 'decorator.add'
1518
1517
  | 'decorator.remove'
1519
- | 'decorator.toggle'
1520
1518
  | 'delete.backward'
1521
1519
  | 'delete.block'
1522
1520
  | 'delete.forward'
@@ -1532,6 +1530,8 @@ export declare function createLinkBehaviors(
1532
1530
  | 'move.block'
1533
1531
  | 'move.block down'
1534
1532
  | 'move.block up'
1533
+ | 'annotation.toggle'
1534
+ | 'decorator.toggle'
1535
1535
  | 'insert.blocks'
1536
1536
  | 'list item.add'
1537
1537
  | 'list item.remove'
@@ -1567,15 +1567,6 @@ export declare function createLinkBehaviors(
1567
1567
  name: string
1568
1568
  }
1569
1569
  }
1570
- | {
1571
- type: 'annotation.toggle'
1572
- annotation: {
1573
- name: string
1574
- value: {
1575
- [prop: string]: unknown
1576
- }
1577
- }
1578
- }
1579
1570
  | {
1580
1571
  type: 'block.set'
1581
1572
  at: [KeyedSegment]
@@ -1601,14 +1592,6 @@ export declare function createLinkBehaviors(
1601
1592
  type: 'decorator.remove'
1602
1593
  decorator: string
1603
1594
  }
1604
- | {
1605
- type: 'decorator.toggle'
1606
- decorator: string
1607
- offsets?: {
1608
- anchor: BlockOffset
1609
- focus: BlockOffset
1610
- }
1611
- }
1612
1595
  | {
1613
1596
  type: 'delete'
1614
1597
  selection: NonNullable<EditorSelection>
@@ -1692,6 +1675,23 @@ export declare function createLinkBehaviors(
1692
1675
  type: 'select'
1693
1676
  selection: EditorSelection
1694
1677
  }
1678
+ | {
1679
+ type: 'annotation.toggle'
1680
+ annotation: {
1681
+ name: string
1682
+ value: {
1683
+ [prop: string]: unknown
1684
+ }
1685
+ }
1686
+ }
1687
+ | {
1688
+ type: 'decorator.toggle'
1689
+ decorator: string
1690
+ offsets?: {
1691
+ anchor: BlockOffset
1692
+ focus: BlockOffset
1693
+ }
1694
+ }
1695
1695
  | {
1696
1696
  type: 'deserialize'
1697
1697
  originEvent:
@@ -1963,12 +1963,10 @@ export declare function createMarkdownBehaviors(
1963
1963
  | `custom.${string}`
1964
1964
  | 'annotation.add'
1965
1965
  | 'annotation.remove'
1966
- | 'annotation.toggle'
1967
1966
  | 'block.set'
1968
1967
  | 'block.unset'
1969
1968
  | 'decorator.add'
1970
1969
  | 'decorator.remove'
1971
- | 'decorator.toggle'
1972
1970
  | 'delete.backward'
1973
1971
  | 'delete.block'
1974
1972
  | 'delete.forward'
@@ -1984,6 +1982,8 @@ export declare function createMarkdownBehaviors(
1984
1982
  | 'move.block'
1985
1983
  | 'move.block down'
1986
1984
  | 'move.block up'
1985
+ | 'annotation.toggle'
1986
+ | 'decorator.toggle'
1987
1987
  | 'insert.blocks'
1988
1988
  | 'list item.add'
1989
1989
  | 'list item.remove'
@@ -2019,15 +2019,6 @@ export declare function createMarkdownBehaviors(
2019
2019
  name: string
2020
2020
  }
2021
2021
  }
2022
- | {
2023
- type: 'annotation.toggle'
2024
- annotation: {
2025
- name: string
2026
- value: {
2027
- [prop: string]: unknown
2028
- }
2029
- }
2030
- }
2031
2022
  | {
2032
2023
  type: 'block.set'
2033
2024
  at: [KeyedSegment]
@@ -2053,14 +2044,6 @@ export declare function createMarkdownBehaviors(
2053
2044
  type: 'decorator.remove'
2054
2045
  decorator: string
2055
2046
  }
2056
- | {
2057
- type: 'decorator.toggle'
2058
- decorator: string
2059
- offsets?: {
2060
- anchor: BlockOffset
2061
- focus: BlockOffset
2062
- }
2063
- }
2064
2047
  | {
2065
2048
  type: 'delete'
2066
2049
  selection: NonNullable<EditorSelection>
@@ -2144,6 +2127,23 @@ export declare function createMarkdownBehaviors(
2144
2127
  type: 'select'
2145
2128
  selection: EditorSelection
2146
2129
  }
2130
+ | {
2131
+ type: 'annotation.toggle'
2132
+ annotation: {
2133
+ name: string
2134
+ value: {
2135
+ [prop: string]: unknown
2136
+ }
2137
+ }
2138
+ }
2139
+ | {
2140
+ type: 'decorator.toggle'
2141
+ decorator: string
2142
+ offsets?: {
2143
+ anchor: BlockOffset
2144
+ focus: BlockOffset
2145
+ }
2146
+ }
2147
2147
  | {
2148
2148
  type: 'deserialize'
2149
2149
  originEvent:
@@ -2583,15 +2583,6 @@ declare const editorMachine: StateMachine<
2583
2583
  name: string
2584
2584
  }
2585
2585
  }
2586
- | {
2587
- type: 'annotation.toggle'
2588
- annotation: {
2589
- name: string
2590
- value: {
2591
- [prop: string]: unknown
2592
- }
2593
- }
2594
- }
2595
2586
  | {
2596
2587
  type: 'block.set'
2597
2588
  at: [KeyedSegment]
@@ -2617,14 +2608,6 @@ declare const editorMachine: StateMachine<
2617
2608
  type: 'decorator.remove'
2618
2609
  decorator: string
2619
2610
  }
2620
- | {
2621
- type: 'decorator.toggle'
2622
- decorator: string
2623
- offsets?: {
2624
- anchor: BlockOffset
2625
- focus: BlockOffset
2626
- }
2627
- }
2628
2611
  | {
2629
2612
  type: 'delete'
2630
2613
  selection: NonNullable<EditorSelection_2>
@@ -2708,6 +2691,23 @@ declare const editorMachine: StateMachine<
2708
2691
  type: 'select'
2709
2692
  selection: EditorSelection_2
2710
2693
  }
2694
+ | {
2695
+ type: 'annotation.toggle'
2696
+ annotation: {
2697
+ name: string
2698
+ value: {
2699
+ [prop: string]: unknown
2700
+ }
2701
+ }
2702
+ }
2703
+ | {
2704
+ type: 'decorator.toggle'
2705
+ decorator: string
2706
+ offsets?: {
2707
+ anchor: BlockOffset
2708
+ focus: BlockOffset
2709
+ }
2710
+ }
2711
2711
  | {
2712
2712
  type: 'insert.blocks'
2713
2713
  blocks: Array<PortableTextBlock>
@@ -2978,15 +2978,6 @@ declare const editorMachine: StateMachine<
2978
2978
  name: string
2979
2979
  }
2980
2980
  }
2981
- | {
2982
- type: 'annotation.toggle'
2983
- annotation: {
2984
- name: string
2985
- value: {
2986
- [prop: string]: unknown
2987
- }
2988
- }
2989
- }
2990
2981
  | {
2991
2982
  type: 'block.set'
2992
2983
  at: [KeyedSegment]
@@ -3012,14 +3003,6 @@ declare const editorMachine: StateMachine<
3012
3003
  type: 'decorator.remove'
3013
3004
  decorator: string
3014
3005
  }
3015
- | {
3016
- type: 'decorator.toggle'
3017
- decorator: string
3018
- offsets?: {
3019
- anchor: BlockOffset
3020
- focus: BlockOffset
3021
- }
3022
- }
3023
3006
  | {
3024
3007
  type: 'delete'
3025
3008
  selection: NonNullable<EditorSelection_2>
@@ -3104,16 +3087,33 @@ declare const editorMachine: StateMachine<
3104
3087
  selection: EditorSelection_2
3105
3088
  }
3106
3089
  | {
3107
- type: 'insert.blocks'
3108
- blocks: Array<PortableTextBlock>
3109
- placement: InsertPlacement_3
3110
- }
3111
- | {
3112
- type: 'list item.add'
3113
- listItem: string
3090
+ type: 'annotation.toggle'
3091
+ annotation: {
3092
+ name: string
3093
+ value: {
3094
+ [prop: string]: unknown
3095
+ }
3096
+ }
3114
3097
  }
3115
3098
  | {
3116
- type: 'list item.remove'
3099
+ type: 'decorator.toggle'
3100
+ decorator: string
3101
+ offsets?: {
3102
+ anchor: BlockOffset
3103
+ focus: BlockOffset
3104
+ }
3105
+ }
3106
+ | {
3107
+ type: 'insert.blocks'
3108
+ blocks: Array<PortableTextBlock>
3109
+ placement: InsertPlacement_3
3110
+ }
3111
+ | {
3112
+ type: 'list item.add'
3113
+ listItem: string
3114
+ }
3115
+ | {
3116
+ type: 'list item.remove'
3117
3117
  listItem: string
3118
3118
  }
3119
3119
  | {
@@ -3262,15 +3262,6 @@ declare const editorMachine: StateMachine<
3262
3262
  name: string
3263
3263
  }
3264
3264
  }
3265
- | {
3266
- type: 'annotation.toggle'
3267
- annotation: {
3268
- name: string
3269
- value: {
3270
- [prop: string]: unknown
3271
- }
3272
- }
3273
- }
3274
3265
  | {
3275
3266
  type: 'block.set'
3276
3267
  at: [KeyedSegment]
@@ -3296,14 +3287,6 @@ declare const editorMachine: StateMachine<
3296
3287
  type: 'decorator.remove'
3297
3288
  decorator: string
3298
3289
  }
3299
- | {
3300
- type: 'decorator.toggle'
3301
- decorator: string
3302
- offsets?: {
3303
- anchor: BlockOffset
3304
- focus: BlockOffset
3305
- }
3306
- }
3307
3290
  | {
3308
3291
  type: 'delete'
3309
3292
  selection: NonNullable<EditorSelection_2>
@@ -3387,6 +3370,23 @@ declare const editorMachine: StateMachine<
3387
3370
  type: 'select'
3388
3371
  selection: EditorSelection_2
3389
3372
  }
3373
+ | {
3374
+ type: 'annotation.toggle'
3375
+ annotation: {
3376
+ name: string
3377
+ value: {
3378
+ [prop: string]: unknown
3379
+ }
3380
+ }
3381
+ }
3382
+ | {
3383
+ type: 'decorator.toggle'
3384
+ decorator: string
3385
+ offsets?: {
3386
+ anchor: BlockOffset
3387
+ focus: BlockOffset
3388
+ }
3389
+ }
3390
3390
  | {
3391
3391
  type: 'insert.blocks'
3392
3392
  blocks: Array<PortableTextBlock>
@@ -3580,15 +3580,6 @@ declare const editorMachine: StateMachine<
3580
3580
  name: string
3581
3581
  }
3582
3582
  }
3583
- | {
3584
- type: 'annotation.toggle'
3585
- annotation: {
3586
- name: string
3587
- value: {
3588
- [prop: string]: unknown
3589
- }
3590
- }
3591
- }
3592
3583
  | {
3593
3584
  type: 'block.set'
3594
3585
  at: [KeyedSegment]
@@ -3614,14 +3605,6 @@ declare const editorMachine: StateMachine<
3614
3605
  type: 'decorator.remove'
3615
3606
  decorator: string
3616
3607
  }
3617
- | {
3618
- type: 'decorator.toggle'
3619
- decorator: string
3620
- offsets?: {
3621
- anchor: BlockOffset
3622
- focus: BlockOffset
3623
- }
3624
- }
3625
3608
  | {
3626
3609
  type: 'delete'
3627
3610
  selection: NonNullable<EditorSelection_2>
@@ -3705,6 +3688,23 @@ declare const editorMachine: StateMachine<
3705
3688
  type: 'select'
3706
3689
  selection: EditorSelection_2
3707
3690
  }
3691
+ | {
3692
+ type: 'annotation.toggle'
3693
+ annotation: {
3694
+ name: string
3695
+ value: {
3696
+ [prop: string]: unknown
3697
+ }
3698
+ }
3699
+ }
3700
+ | {
3701
+ type: 'decorator.toggle'
3702
+ decorator: string
3703
+ offsets?: {
3704
+ anchor: BlockOffset
3705
+ focus: BlockOffset
3706
+ }
3707
+ }
3708
3708
  | {
3709
3709
  type: 'insert.blocks'
3710
3710
  blocks: Array<PortableTextBlock>
@@ -3926,15 +3926,6 @@ declare const editorMachine: StateMachine<
3926
3926
  name: string
3927
3927
  }
3928
3928
  }
3929
- | {
3930
- type: 'annotation.toggle'
3931
- annotation: {
3932
- name: string
3933
- value: {
3934
- [prop: string]: unknown
3935
- }
3936
- }
3937
- }
3938
3929
  | {
3939
3930
  type: 'block.set'
3940
3931
  at: [KeyedSegment]
@@ -3960,14 +3951,6 @@ declare const editorMachine: StateMachine<
3960
3951
  type: 'decorator.remove'
3961
3952
  decorator: string
3962
3953
  }
3963
- | {
3964
- type: 'decorator.toggle'
3965
- decorator: string
3966
- offsets?: {
3967
- anchor: BlockOffset
3968
- focus: BlockOffset
3969
- }
3970
- }
3971
3954
  | {
3972
3955
  type: 'delete'
3973
3956
  selection: NonNullable<EditorSelection_2>
@@ -4051,6 +4034,23 @@ declare const editorMachine: StateMachine<
4051
4034
  type: 'select'
4052
4035
  selection: EditorSelection_2
4053
4036
  }
4037
+ | {
4038
+ type: 'annotation.toggle'
4039
+ annotation: {
4040
+ name: string
4041
+ value: {
4042
+ [prop: string]: unknown
4043
+ }
4044
+ }
4045
+ }
4046
+ | {
4047
+ type: 'decorator.toggle'
4048
+ decorator: string
4049
+ offsets?: {
4050
+ anchor: BlockOffset
4051
+ focus: BlockOffset
4052
+ }
4053
+ }
4054
4054
  | {
4055
4055
  type: 'insert.blocks'
4056
4056
  blocks: Array<PortableTextBlock>
@@ -4242,15 +4242,6 @@ declare const editorMachine: StateMachine<
4242
4242
  name: string
4243
4243
  }
4244
4244
  }
4245
- | {
4246
- type: 'annotation.toggle'
4247
- annotation: {
4248
- name: string
4249
- value: {
4250
- [prop: string]: unknown
4251
- }
4252
- }
4253
- }
4254
4245
  | {
4255
4246
  type: 'block.set'
4256
4247
  at: [KeyedSegment]
@@ -4276,14 +4267,6 @@ declare const editorMachine: StateMachine<
4276
4267
  type: 'decorator.remove'
4277
4268
  decorator: string
4278
4269
  }
4279
- | {
4280
- type: 'decorator.toggle'
4281
- decorator: string
4282
- offsets?: {
4283
- anchor: BlockOffset
4284
- focus: BlockOffset
4285
- }
4286
- }
4287
4270
  | {
4288
4271
  type: 'delete'
4289
4272
  selection: NonNullable<EditorSelection_2>
@@ -4367,6 +4350,23 @@ declare const editorMachine: StateMachine<
4367
4350
  type: 'select'
4368
4351
  selection: EditorSelection_2
4369
4352
  }
4353
+ | {
4354
+ type: 'annotation.toggle'
4355
+ annotation: {
4356
+ name: string
4357
+ value: {
4358
+ [prop: string]: unknown
4359
+ }
4360
+ }
4361
+ }
4362
+ | {
4363
+ type: 'decorator.toggle'
4364
+ decorator: string
4365
+ offsets?: {
4366
+ anchor: BlockOffset
4367
+ focus: BlockOffset
4368
+ }
4369
+ }
4370
4370
  | {
4371
4371
  type: 'insert.blocks'
4372
4372
  blocks: Array<PortableTextBlock>
@@ -4494,15 +4494,6 @@ declare const editorMachine: StateMachine<
4494
4494
  name: string
4495
4495
  }
4496
4496
  }
4497
- | {
4498
- type: 'annotation.toggle'
4499
- annotation: {
4500
- name: string
4501
- value: {
4502
- [prop: string]: unknown
4503
- }
4504
- }
4505
- }
4506
4497
  | {
4507
4498
  type: 'block.set'
4508
4499
  at: [KeyedSegment]
@@ -4528,14 +4519,6 @@ declare const editorMachine: StateMachine<
4528
4519
  type: 'decorator.remove'
4529
4520
  decorator: string
4530
4521
  }
4531
- | {
4532
- type: 'decorator.toggle'
4533
- decorator: string
4534
- offsets?: {
4535
- anchor: BlockOffset
4536
- focus: BlockOffset
4537
- }
4538
- }
4539
4522
  | {
4540
4523
  type: 'delete'
4541
4524
  selection: NonNullable<EditorSelection_2>
@@ -4619,6 +4602,23 @@ declare const editorMachine: StateMachine<
4619
4602
  type: 'select'
4620
4603
  selection: EditorSelection_2
4621
4604
  }
4605
+ | {
4606
+ type: 'annotation.toggle'
4607
+ annotation: {
4608
+ name: string
4609
+ value: {
4610
+ [prop: string]: unknown
4611
+ }
4612
+ }
4613
+ }
4614
+ | {
4615
+ type: 'decorator.toggle'
4616
+ decorator: string
4617
+ offsets?: {
4618
+ anchor: BlockOffset
4619
+ focus: BlockOffset
4620
+ }
4621
+ }
4622
4622
  | {
4623
4623
  type: 'insert.blocks'
4624
4624
  blocks: Array<PortableTextBlock>
@@ -4810,15 +4810,6 @@ declare const editorMachine: StateMachine<
4810
4810
  name: string
4811
4811
  }
4812
4812
  }
4813
- | {
4814
- type: 'annotation.toggle'
4815
- annotation: {
4816
- name: string
4817
- value: {
4818
- [prop: string]: unknown
4819
- }
4820
- }
4821
- }
4822
4813
  | {
4823
4814
  type: 'block.set'
4824
4815
  at: [KeyedSegment]
@@ -4844,14 +4835,6 @@ declare const editorMachine: StateMachine<
4844
4835
  type: 'decorator.remove'
4845
4836
  decorator: string
4846
4837
  }
4847
- | {
4848
- type: 'decorator.toggle'
4849
- decorator: string
4850
- offsets?: {
4851
- anchor: BlockOffset
4852
- focus: BlockOffset
4853
- }
4854
- }
4855
4838
  | {
4856
4839
  type: 'delete'
4857
4840
  selection: NonNullable<EditorSelection_2>
@@ -4935,6 +4918,23 @@ declare const editorMachine: StateMachine<
4935
4918
  type: 'select'
4936
4919
  selection: EditorSelection_2
4937
4920
  }
4921
+ | {
4922
+ type: 'annotation.toggle'
4923
+ annotation: {
4924
+ name: string
4925
+ value: {
4926
+ [prop: string]: unknown
4927
+ }
4928
+ }
4929
+ }
4930
+ | {
4931
+ type: 'decorator.toggle'
4932
+ decorator: string
4933
+ offsets?: {
4934
+ anchor: BlockOffset
4935
+ focus: BlockOffset
4936
+ }
4937
+ }
4938
4938
  | {
4939
4939
  type: 'insert.blocks'
4940
4940
  blocks: Array<PortableTextBlock>
@@ -5065,15 +5065,6 @@ declare const editorMachine: StateMachine<
5065
5065
  name: string
5066
5066
  }
5067
5067
  }
5068
- | {
5069
- type: 'annotation.toggle'
5070
- annotation: {
5071
- name: string
5072
- value: {
5073
- [prop: string]: unknown
5074
- }
5075
- }
5076
- }
5077
5068
  | {
5078
5069
  type: 'block.set'
5079
5070
  at: [KeyedSegment]
@@ -5099,14 +5090,6 @@ declare const editorMachine: StateMachine<
5099
5090
  type: 'decorator.remove'
5100
5091
  decorator: string
5101
5092
  }
5102
- | {
5103
- type: 'decorator.toggle'
5104
- decorator: string
5105
- offsets?: {
5106
- anchor: BlockOffset
5107
- focus: BlockOffset
5108
- }
5109
- }
5110
5093
  | {
5111
5094
  type: 'delete'
5112
5095
  selection: NonNullable<EditorSelection_2>
@@ -5190,6 +5173,23 @@ declare const editorMachine: StateMachine<
5190
5173
  type: 'select'
5191
5174
  selection: EditorSelection_2
5192
5175
  }
5176
+ | {
5177
+ type: 'annotation.toggle'
5178
+ annotation: {
5179
+ name: string
5180
+ value: {
5181
+ [prop: string]: unknown
5182
+ }
5183
+ }
5184
+ }
5185
+ | {
5186
+ type: 'decorator.toggle'
5187
+ decorator: string
5188
+ offsets?: {
5189
+ anchor: BlockOffset
5190
+ focus: BlockOffset
5191
+ }
5192
+ }
5193
5193
  | {
5194
5194
  type: 'insert.blocks'
5195
5195
  blocks: Array<PortableTextBlock>
@@ -5381,15 +5381,6 @@ declare const editorMachine: StateMachine<
5381
5381
  name: string
5382
5382
  }
5383
5383
  }
5384
- | {
5385
- type: 'annotation.toggle'
5386
- annotation: {
5387
- name: string
5388
- value: {
5389
- [prop: string]: unknown
5390
- }
5391
- }
5392
- }
5393
5384
  | {
5394
5385
  type: 'block.set'
5395
5386
  at: [KeyedSegment]
@@ -5415,14 +5406,6 @@ declare const editorMachine: StateMachine<
5415
5406
  type: 'decorator.remove'
5416
5407
  decorator: string
5417
5408
  }
5418
- | {
5419
- type: 'decorator.toggle'
5420
- decorator: string
5421
- offsets?: {
5422
- anchor: BlockOffset
5423
- focus: BlockOffset
5424
- }
5425
- }
5426
5409
  | {
5427
5410
  type: 'delete'
5428
5411
  selection: NonNullable<EditorSelection_2>
@@ -5506,6 +5489,23 @@ declare const editorMachine: StateMachine<
5506
5489
  type: 'select'
5507
5490
  selection: EditorSelection_2
5508
5491
  }
5492
+ | {
5493
+ type: 'annotation.toggle'
5494
+ annotation: {
5495
+ name: string
5496
+ value: {
5497
+ [prop: string]: unknown
5498
+ }
5499
+ }
5500
+ }
5501
+ | {
5502
+ type: 'decorator.toggle'
5503
+ decorator: string
5504
+ offsets?: {
5505
+ anchor: BlockOffset
5506
+ focus: BlockOffset
5507
+ }
5508
+ }
5509
5509
  | {
5510
5510
  type: 'insert.blocks'
5511
5511
  blocks: Array<PortableTextBlock>
@@ -5635,15 +5635,6 @@ declare const editorMachine: StateMachine<
5635
5635
  name: string
5636
5636
  }
5637
5637
  }
5638
- | {
5639
- type: 'annotation.toggle'
5640
- annotation: {
5641
- name: string
5642
- value: {
5643
- [prop: string]: unknown
5644
- }
5645
- }
5646
- }
5647
5638
  | {
5648
5639
  type: 'block.set'
5649
5640
  at: [KeyedSegment]
@@ -5669,14 +5660,6 @@ declare const editorMachine: StateMachine<
5669
5660
  type: 'decorator.remove'
5670
5661
  decorator: string
5671
5662
  }
5672
- | {
5673
- type: 'decorator.toggle'
5674
- decorator: string
5675
- offsets?: {
5676
- anchor: BlockOffset
5677
- focus: BlockOffset
5678
- }
5679
- }
5680
5663
  | {
5681
5664
  type: 'delete'
5682
5665
  selection: NonNullable<EditorSelection_2>
@@ -5760,6 +5743,23 @@ declare const editorMachine: StateMachine<
5760
5743
  type: 'select'
5761
5744
  selection: EditorSelection_2
5762
5745
  }
5746
+ | {
5747
+ type: 'annotation.toggle'
5748
+ annotation: {
5749
+ name: string
5750
+ value: {
5751
+ [prop: string]: unknown
5752
+ }
5753
+ }
5754
+ }
5755
+ | {
5756
+ type: 'decorator.toggle'
5757
+ decorator: string
5758
+ offsets?: {
5759
+ anchor: BlockOffset
5760
+ focus: BlockOffset
5761
+ }
5762
+ }
5763
5763
  | {
5764
5764
  type: 'insert.blocks'
5765
5765
  blocks: Array<PortableTextBlock>
@@ -5951,15 +5951,6 @@ declare const editorMachine: StateMachine<
5951
5951
  name: string
5952
5952
  }
5953
5953
  }
5954
- | {
5955
- type: 'annotation.toggle'
5956
- annotation: {
5957
- name: string
5958
- value: {
5959
- [prop: string]: unknown
5960
- }
5961
- }
5962
- }
5963
5954
  | {
5964
5955
  type: 'block.set'
5965
5956
  at: [KeyedSegment]
@@ -5985,14 +5976,6 @@ declare const editorMachine: StateMachine<
5985
5976
  type: 'decorator.remove'
5986
5977
  decorator: string
5987
5978
  }
5988
- | {
5989
- type: 'decorator.toggle'
5990
- decorator: string
5991
- offsets?: {
5992
- anchor: BlockOffset
5993
- focus: BlockOffset
5994
- }
5995
- }
5996
5979
  | {
5997
5980
  type: 'delete'
5998
5981
  selection: NonNullable<EditorSelection_2>
@@ -6076,6 +6059,23 @@ declare const editorMachine: StateMachine<
6076
6059
  type: 'select'
6077
6060
  selection: EditorSelection_2
6078
6061
  }
6062
+ | {
6063
+ type: 'annotation.toggle'
6064
+ annotation: {
6065
+ name: string
6066
+ value: {
6067
+ [prop: string]: unknown
6068
+ }
6069
+ }
6070
+ }
6071
+ | {
6072
+ type: 'decorator.toggle'
6073
+ decorator: string
6074
+ offsets?: {
6075
+ anchor: BlockOffset
6076
+ focus: BlockOffset
6077
+ }
6078
+ }
6079
6079
  | {
6080
6080
  type: 'insert.blocks'
6081
6081
  blocks: Array<PortableTextBlock>
@@ -6204,15 +6204,6 @@ declare const editorMachine: StateMachine<
6204
6204
  name: string
6205
6205
  }
6206
6206
  }
6207
- | {
6208
- type: 'annotation.toggle'
6209
- annotation: {
6210
- name: string
6211
- value: {
6212
- [prop: string]: unknown
6213
- }
6214
- }
6215
- }
6216
6207
  | {
6217
6208
  type: 'block.set'
6218
6209
  at: [KeyedSegment]
@@ -6238,14 +6229,6 @@ declare const editorMachine: StateMachine<
6238
6229
  type: 'decorator.remove'
6239
6230
  decorator: string
6240
6231
  }
6241
- | {
6242
- type: 'decorator.toggle'
6243
- decorator: string
6244
- offsets?: {
6245
- anchor: BlockOffset
6246
- focus: BlockOffset
6247
- }
6248
- }
6249
6232
  | {
6250
6233
  type: 'delete'
6251
6234
  selection: NonNullable<EditorSelection_2>
@@ -6329,6 +6312,23 @@ declare const editorMachine: StateMachine<
6329
6312
  type: 'select'
6330
6313
  selection: EditorSelection_2
6331
6314
  }
6315
+ | {
6316
+ type: 'annotation.toggle'
6317
+ annotation: {
6318
+ name: string
6319
+ value: {
6320
+ [prop: string]: unknown
6321
+ }
6322
+ }
6323
+ }
6324
+ | {
6325
+ type: 'decorator.toggle'
6326
+ decorator: string
6327
+ offsets?: {
6328
+ anchor: BlockOffset
6329
+ focus: BlockOffset
6330
+ }
6331
+ }
6332
6332
  | {
6333
6333
  type: 'insert.blocks'
6334
6334
  blocks: Array<PortableTextBlock>
@@ -6520,15 +6520,6 @@ declare const editorMachine: StateMachine<
6520
6520
  name: string
6521
6521
  }
6522
6522
  }
6523
- | {
6524
- type: 'annotation.toggle'
6525
- annotation: {
6526
- name: string
6527
- value: {
6528
- [prop: string]: unknown
6529
- }
6530
- }
6531
- }
6532
6523
  | {
6533
6524
  type: 'block.set'
6534
6525
  at: [KeyedSegment]
@@ -6554,14 +6545,6 @@ declare const editorMachine: StateMachine<
6554
6545
  type: 'decorator.remove'
6555
6546
  decorator: string
6556
6547
  }
6557
- | {
6558
- type: 'decorator.toggle'
6559
- decorator: string
6560
- offsets?: {
6561
- anchor: BlockOffset
6562
- focus: BlockOffset
6563
- }
6564
- }
6565
6548
  | {
6566
6549
  type: 'delete'
6567
6550
  selection: NonNullable<EditorSelection_2>
@@ -6645,6 +6628,23 @@ declare const editorMachine: StateMachine<
6645
6628
  type: 'select'
6646
6629
  selection: EditorSelection_2
6647
6630
  }
6631
+ | {
6632
+ type: 'annotation.toggle'
6633
+ annotation: {
6634
+ name: string
6635
+ value: {
6636
+ [prop: string]: unknown
6637
+ }
6638
+ }
6639
+ }
6640
+ | {
6641
+ type: 'decorator.toggle'
6642
+ decorator: string
6643
+ offsets?: {
6644
+ anchor: BlockOffset
6645
+ focus: BlockOffset
6646
+ }
6647
+ }
6648
6648
  | {
6649
6649
  type: 'insert.blocks'
6650
6650
  blocks: Array<PortableTextBlock>
@@ -6774,15 +6774,6 @@ declare const editorMachine: StateMachine<
6774
6774
  name: string
6775
6775
  }
6776
6776
  }
6777
- | {
6778
- type: 'annotation.toggle'
6779
- annotation: {
6780
- name: string
6781
- value: {
6782
- [prop: string]: unknown
6783
- }
6784
- }
6785
- }
6786
6777
  | {
6787
6778
  type: 'block.set'
6788
6779
  at: [KeyedSegment]
@@ -6808,14 +6799,6 @@ declare const editorMachine: StateMachine<
6808
6799
  type: 'decorator.remove'
6809
6800
  decorator: string
6810
6801
  }
6811
- | {
6812
- type: 'decorator.toggle'
6813
- decorator: string
6814
- offsets?: {
6815
- anchor: BlockOffset
6816
- focus: BlockOffset
6817
- }
6818
- }
6819
6802
  | {
6820
6803
  type: 'delete'
6821
6804
  selection: NonNullable<EditorSelection_2>
@@ -6899,6 +6882,23 @@ declare const editorMachine: StateMachine<
6899
6882
  type: 'select'
6900
6883
  selection: EditorSelection_2
6901
6884
  }
6885
+ | {
6886
+ type: 'annotation.toggle'
6887
+ annotation: {
6888
+ name: string
6889
+ value: {
6890
+ [prop: string]: unknown
6891
+ }
6892
+ }
6893
+ }
6894
+ | {
6895
+ type: 'decorator.toggle'
6896
+ decorator: string
6897
+ offsets?: {
6898
+ anchor: BlockOffset
6899
+ focus: BlockOffset
6900
+ }
6901
+ }
6902
6902
  | {
6903
6903
  type: 'insert.blocks'
6904
6904
  blocks: Array<PortableTextBlock>
@@ -7112,15 +7112,6 @@ declare const editorMachine: StateMachine<
7112
7112
  name: string
7113
7113
  }
7114
7114
  }
7115
- | {
7116
- type: 'annotation.toggle'
7117
- annotation: {
7118
- name: string
7119
- value: {
7120
- [prop: string]: unknown
7121
- }
7122
- }
7123
- }
7124
7115
  | {
7125
7116
  type: 'block.set'
7126
7117
  at: [KeyedSegment]
@@ -7146,14 +7137,6 @@ declare const editorMachine: StateMachine<
7146
7137
  type: 'decorator.remove'
7147
7138
  decorator: string
7148
7139
  }
7149
- | {
7150
- type: 'decorator.toggle'
7151
- decorator: string
7152
- offsets?: {
7153
- anchor: BlockOffset
7154
- focus: BlockOffset
7155
- }
7156
- }
7157
7140
  | {
7158
7141
  type: 'delete'
7159
7142
  selection: NonNullable<EditorSelection_2>
@@ -7237,6 +7220,23 @@ declare const editorMachine: StateMachine<
7237
7220
  type: 'select'
7238
7221
  selection: EditorSelection_2
7239
7222
  }
7223
+ | {
7224
+ type: 'annotation.toggle'
7225
+ annotation: {
7226
+ name: string
7227
+ value: {
7228
+ [prop: string]: unknown
7229
+ }
7230
+ }
7231
+ }
7232
+ | {
7233
+ type: 'decorator.toggle'
7234
+ decorator: string
7235
+ offsets?: {
7236
+ anchor: BlockOffset
7237
+ focus: BlockOffset
7238
+ }
7239
+ }
7240
7240
  | {
7241
7241
  type: 'insert.blocks'
7242
7242
  blocks: Array<PortableTextBlock>
@@ -7428,15 +7428,6 @@ declare const editorMachine: StateMachine<
7428
7428
  name: string
7429
7429
  }
7430
7430
  }
7431
- | {
7432
- type: 'annotation.toggle'
7433
- annotation: {
7434
- name: string
7435
- value: {
7436
- [prop: string]: unknown
7437
- }
7438
- }
7439
- }
7440
7431
  | {
7441
7432
  type: 'block.set'
7442
7433
  at: [KeyedSegment]
@@ -7462,14 +7453,6 @@ declare const editorMachine: StateMachine<
7462
7453
  type: 'decorator.remove'
7463
7454
  decorator: string
7464
7455
  }
7465
- | {
7466
- type: 'decorator.toggle'
7467
- decorator: string
7468
- offsets?: {
7469
- anchor: BlockOffset
7470
- focus: BlockOffset
7471
- }
7472
- }
7473
7456
  | {
7474
7457
  type: 'delete'
7475
7458
  selection: NonNullable<EditorSelection_2>
@@ -7554,7 +7537,24 @@ declare const editorMachine: StateMachine<
7554
7537
  selection: EditorSelection_2
7555
7538
  }
7556
7539
  | {
7557
- type: 'insert.blocks'
7540
+ type: 'annotation.toggle'
7541
+ annotation: {
7542
+ name: string
7543
+ value: {
7544
+ [prop: string]: unknown
7545
+ }
7546
+ }
7547
+ }
7548
+ | {
7549
+ type: 'decorator.toggle'
7550
+ decorator: string
7551
+ offsets?: {
7552
+ anchor: BlockOffset
7553
+ focus: BlockOffset
7554
+ }
7555
+ }
7556
+ | {
7557
+ type: 'insert.blocks'
7558
7558
  blocks: Array<PortableTextBlock>
7559
7559
  placement: InsertPlacement_3
7560
7560
  }
@@ -7682,15 +7682,6 @@ declare const editorMachine: StateMachine<
7682
7682
  name: string
7683
7683
  }
7684
7684
  }
7685
- | {
7686
- type: 'annotation.toggle'
7687
- annotation: {
7688
- name: string
7689
- value: {
7690
- [prop: string]: unknown
7691
- }
7692
- }
7693
- }
7694
7685
  | {
7695
7686
  type: 'block.set'
7696
7687
  at: [KeyedSegment]
@@ -7716,14 +7707,6 @@ declare const editorMachine: StateMachine<
7716
7707
  type: 'decorator.remove'
7717
7708
  decorator: string
7718
7709
  }
7719
- | {
7720
- type: 'decorator.toggle'
7721
- decorator: string
7722
- offsets?: {
7723
- anchor: BlockOffset
7724
- focus: BlockOffset
7725
- }
7726
- }
7727
7710
  | {
7728
7711
  type: 'delete'
7729
7712
  selection: NonNullable<EditorSelection_2>
@@ -7807,6 +7790,23 @@ declare const editorMachine: StateMachine<
7807
7790
  type: 'select'
7808
7791
  selection: EditorSelection_2
7809
7792
  }
7793
+ | {
7794
+ type: 'annotation.toggle'
7795
+ annotation: {
7796
+ name: string
7797
+ value: {
7798
+ [prop: string]: unknown
7799
+ }
7800
+ }
7801
+ }
7802
+ | {
7803
+ type: 'decorator.toggle'
7804
+ decorator: string
7805
+ offsets?: {
7806
+ anchor: BlockOffset
7807
+ focus: BlockOffset
7808
+ }
7809
+ }
7810
7810
  | {
7811
7811
  type: 'insert.blocks'
7812
7812
  blocks: Array<PortableTextBlock>
@@ -7998,15 +7998,6 @@ declare const editorMachine: StateMachine<
7998
7998
  name: string
7999
7999
  }
8000
8000
  }
8001
- | {
8002
- type: 'annotation.toggle'
8003
- annotation: {
8004
- name: string
8005
- value: {
8006
- [prop: string]: unknown
8007
- }
8008
- }
8009
- }
8010
8001
  | {
8011
8002
  type: 'block.set'
8012
8003
  at: [KeyedSegment]
@@ -8032,14 +8023,6 @@ declare const editorMachine: StateMachine<
8032
8023
  type: 'decorator.remove'
8033
8024
  decorator: string
8034
8025
  }
8035
- | {
8036
- type: 'decorator.toggle'
8037
- decorator: string
8038
- offsets?: {
8039
- anchor: BlockOffset
8040
- focus: BlockOffset
8041
- }
8042
- }
8043
8026
  | {
8044
8027
  type: 'delete'
8045
8028
  selection: NonNullable<EditorSelection_2>
@@ -8123,6 +8106,23 @@ declare const editorMachine: StateMachine<
8123
8106
  type: 'select'
8124
8107
  selection: EditorSelection_2
8125
8108
  }
8109
+ | {
8110
+ type: 'annotation.toggle'
8111
+ annotation: {
8112
+ name: string
8113
+ value: {
8114
+ [prop: string]: unknown
8115
+ }
8116
+ }
8117
+ }
8118
+ | {
8119
+ type: 'decorator.toggle'
8120
+ decorator: string
8121
+ offsets?: {
8122
+ anchor: BlockOffset
8123
+ focus: BlockOffset
8124
+ }
8125
+ }
8126
8126
  | {
8127
8127
  type: 'insert.blocks'
8128
8128
  blocks: Array<PortableTextBlock>
@@ -8250,15 +8250,6 @@ declare const editorMachine: StateMachine<
8250
8250
  name: string
8251
8251
  }
8252
8252
  }
8253
- | {
8254
- type: 'annotation.toggle'
8255
- annotation: {
8256
- name: string
8257
- value: {
8258
- [prop: string]: unknown
8259
- }
8260
- }
8261
- }
8262
8253
  | {
8263
8254
  type: 'block.set'
8264
8255
  at: [KeyedSegment]
@@ -8284,14 +8275,6 @@ declare const editorMachine: StateMachine<
8284
8275
  type: 'decorator.remove'
8285
8276
  decorator: string
8286
8277
  }
8287
- | {
8288
- type: 'decorator.toggle'
8289
- decorator: string
8290
- offsets?: {
8291
- anchor: BlockOffset
8292
- focus: BlockOffset
8293
- }
8294
- }
8295
8278
  | {
8296
8279
  type: 'delete'
8297
8280
  selection: NonNullable<EditorSelection_2>
@@ -8375,6 +8358,23 @@ declare const editorMachine: StateMachine<
8375
8358
  type: 'select'
8376
8359
  selection: EditorSelection_2
8377
8360
  }
8361
+ | {
8362
+ type: 'annotation.toggle'
8363
+ annotation: {
8364
+ name: string
8365
+ value: {
8366
+ [prop: string]: unknown
8367
+ }
8368
+ }
8369
+ }
8370
+ | {
8371
+ type: 'decorator.toggle'
8372
+ decorator: string
8373
+ offsets?: {
8374
+ anchor: BlockOffset
8375
+ focus: BlockOffset
8376
+ }
8377
+ }
8378
8378
  | {
8379
8379
  type: 'insert.blocks'
8380
8380
  blocks: Array<PortableTextBlock>
@@ -8566,15 +8566,6 @@ declare const editorMachine: StateMachine<
8566
8566
  name: string
8567
8567
  }
8568
8568
  }
8569
- | {
8570
- type: 'annotation.toggle'
8571
- annotation: {
8572
- name: string
8573
- value: {
8574
- [prop: string]: unknown
8575
- }
8576
- }
8577
- }
8578
8569
  | {
8579
8570
  type: 'block.set'
8580
8571
  at: [KeyedSegment]
@@ -8600,14 +8591,6 @@ declare const editorMachine: StateMachine<
8600
8591
  type: 'decorator.remove'
8601
8592
  decorator: string
8602
8593
  }
8603
- | {
8604
- type: 'decorator.toggle'
8605
- decorator: string
8606
- offsets?: {
8607
- anchor: BlockOffset
8608
- focus: BlockOffset
8609
- }
8610
- }
8611
8594
  | {
8612
8595
  type: 'delete'
8613
8596
  selection: NonNullable<EditorSelection_2>
@@ -8691,6 +8674,23 @@ declare const editorMachine: StateMachine<
8691
8674
  type: 'select'
8692
8675
  selection: EditorSelection_2
8693
8676
  }
8677
+ | {
8678
+ type: 'annotation.toggle'
8679
+ annotation: {
8680
+ name: string
8681
+ value: {
8682
+ [prop: string]: unknown
8683
+ }
8684
+ }
8685
+ }
8686
+ | {
8687
+ type: 'decorator.toggle'
8688
+ decorator: string
8689
+ offsets?: {
8690
+ anchor: BlockOffset
8691
+ focus: BlockOffset
8692
+ }
8693
+ }
8694
8694
  | {
8695
8695
  type: 'insert.blocks'
8696
8696
  blocks: Array<PortableTextBlock>
@@ -8819,15 +8819,6 @@ declare const editorMachine: StateMachine<
8819
8819
  name: string
8820
8820
  }
8821
8821
  }
8822
- | {
8823
- type: 'annotation.toggle'
8824
- annotation: {
8825
- name: string
8826
- value: {
8827
- [prop: string]: unknown
8828
- }
8829
- }
8830
- }
8831
8822
  | {
8832
8823
  type: 'block.set'
8833
8824
  at: [KeyedSegment]
@@ -8853,14 +8844,6 @@ declare const editorMachine: StateMachine<
8853
8844
  type: 'decorator.remove'
8854
8845
  decorator: string
8855
8846
  }
8856
- | {
8857
- type: 'decorator.toggle'
8858
- decorator: string
8859
- offsets?: {
8860
- anchor: BlockOffset
8861
- focus: BlockOffset
8862
- }
8863
- }
8864
8847
  | {
8865
8848
  type: 'delete'
8866
8849
  selection: NonNullable<EditorSelection_2>
@@ -8944,6 +8927,23 @@ declare const editorMachine: StateMachine<
8944
8927
  type: 'select'
8945
8928
  selection: EditorSelection_2
8946
8929
  }
8930
+ | {
8931
+ type: 'annotation.toggle'
8932
+ annotation: {
8933
+ name: string
8934
+ value: {
8935
+ [prop: string]: unknown
8936
+ }
8937
+ }
8938
+ }
8939
+ | {
8940
+ type: 'decorator.toggle'
8941
+ decorator: string
8942
+ offsets?: {
8943
+ anchor: BlockOffset
8944
+ focus: BlockOffset
8945
+ }
8946
+ }
8947
8947
  | {
8948
8948
  type: 'insert.blocks'
8949
8949
  blocks: Array<PortableTextBlock>
@@ -9135,15 +9135,6 @@ declare const editorMachine: StateMachine<
9135
9135
  name: string
9136
9136
  }
9137
9137
  }
9138
- | {
9139
- type: 'annotation.toggle'
9140
- annotation: {
9141
- name: string
9142
- value: {
9143
- [prop: string]: unknown
9144
- }
9145
- }
9146
- }
9147
9138
  | {
9148
9139
  type: 'block.set'
9149
9140
  at: [KeyedSegment]
@@ -9169,14 +9160,6 @@ declare const editorMachine: StateMachine<
9169
9160
  type: 'decorator.remove'
9170
9161
  decorator: string
9171
9162
  }
9172
- | {
9173
- type: 'decorator.toggle'
9174
- decorator: string
9175
- offsets?: {
9176
- anchor: BlockOffset
9177
- focus: BlockOffset
9178
- }
9179
- }
9180
9163
  | {
9181
9164
  type: 'delete'
9182
9165
  selection: NonNullable<EditorSelection_2>
@@ -9260,6 +9243,23 @@ declare const editorMachine: StateMachine<
9260
9243
  type: 'select'
9261
9244
  selection: EditorSelection_2
9262
9245
  }
9246
+ | {
9247
+ type: 'annotation.toggle'
9248
+ annotation: {
9249
+ name: string
9250
+ value: {
9251
+ [prop: string]: unknown
9252
+ }
9253
+ }
9254
+ }
9255
+ | {
9256
+ type: 'decorator.toggle'
9257
+ decorator: string
9258
+ offsets?: {
9259
+ anchor: BlockOffset
9260
+ focus: BlockOffset
9261
+ }
9262
+ }
9263
9263
  | {
9264
9264
  type: 'insert.blocks'
9265
9265
  blocks: Array<PortableTextBlock>
@@ -9391,15 +9391,6 @@ declare const editorMachine: StateMachine<
9391
9391
  name: string
9392
9392
  }
9393
9393
  }
9394
- | {
9395
- type: 'annotation.toggle'
9396
- annotation: {
9397
- name: string
9398
- value: {
9399
- [prop: string]: unknown
9400
- }
9401
- }
9402
- }
9403
9394
  | {
9404
9395
  type: 'block.set'
9405
9396
  at: [KeyedSegment]
@@ -9425,14 +9416,6 @@ declare const editorMachine: StateMachine<
9425
9416
  type: 'decorator.remove'
9426
9417
  decorator: string
9427
9418
  }
9428
- | {
9429
- type: 'decorator.toggle'
9430
- decorator: string
9431
- offsets?: {
9432
- anchor: BlockOffset
9433
- focus: BlockOffset
9434
- }
9435
- }
9436
9419
  | {
9437
9420
  type: 'delete'
9438
9421
  selection: NonNullable<EditorSelection_2>
@@ -9516,6 +9499,23 @@ declare const editorMachine: StateMachine<
9516
9499
  type: 'select'
9517
9500
  selection: EditorSelection_2
9518
9501
  }
9502
+ | {
9503
+ type: 'annotation.toggle'
9504
+ annotation: {
9505
+ name: string
9506
+ value: {
9507
+ [prop: string]: unknown
9508
+ }
9509
+ }
9510
+ }
9511
+ | {
9512
+ type: 'decorator.toggle'
9513
+ decorator: string
9514
+ offsets?: {
9515
+ anchor: BlockOffset
9516
+ focus: BlockOffset
9517
+ }
9518
+ }
9519
9519
  | {
9520
9520
  type: 'insert.blocks'
9521
9521
  blocks: Array<PortableTextBlock>
@@ -9707,15 +9707,6 @@ declare const editorMachine: StateMachine<
9707
9707
  name: string
9708
9708
  }
9709
9709
  }
9710
- | {
9711
- type: 'annotation.toggle'
9712
- annotation: {
9713
- name: string
9714
- value: {
9715
- [prop: string]: unknown
9716
- }
9717
- }
9718
- }
9719
9710
  | {
9720
9711
  type: 'block.set'
9721
9712
  at: [KeyedSegment]
@@ -9741,14 +9732,6 @@ declare const editorMachine: StateMachine<
9741
9732
  type: 'decorator.remove'
9742
9733
  decorator: string
9743
9734
  }
9744
- | {
9745
- type: 'decorator.toggle'
9746
- decorator: string
9747
- offsets?: {
9748
- anchor: BlockOffset
9749
- focus: BlockOffset
9750
- }
9751
- }
9752
9735
  | {
9753
9736
  type: 'delete'
9754
9737
  selection: NonNullable<EditorSelection_2>
@@ -9832,6 +9815,23 @@ declare const editorMachine: StateMachine<
9832
9815
  type: 'select'
9833
9816
  selection: EditorSelection_2
9834
9817
  }
9818
+ | {
9819
+ type: 'annotation.toggle'
9820
+ annotation: {
9821
+ name: string
9822
+ value: {
9823
+ [prop: string]: unknown
9824
+ }
9825
+ }
9826
+ }
9827
+ | {
9828
+ type: 'decorator.toggle'
9829
+ decorator: string
9830
+ offsets?: {
9831
+ anchor: BlockOffset
9832
+ focus: BlockOffset
9833
+ }
9834
+ }
9835
9835
  | {
9836
9836
  type: 'insert.blocks'
9837
9837
  blocks: Array<PortableTextBlock>
@@ -9963,15 +9963,6 @@ declare const editorMachine: StateMachine<
9963
9963
  name: string
9964
9964
  }
9965
9965
  }
9966
- | {
9967
- type: 'annotation.toggle'
9968
- annotation: {
9969
- name: string
9970
- value: {
9971
- [prop: string]: unknown
9972
- }
9973
- }
9974
- }
9975
9966
  | {
9976
9967
  type: 'block.set'
9977
9968
  at: [KeyedSegment]
@@ -9997,14 +9988,6 @@ declare const editorMachine: StateMachine<
9997
9988
  type: 'decorator.remove'
9998
9989
  decorator: string
9999
9990
  }
10000
- | {
10001
- type: 'decorator.toggle'
10002
- decorator: string
10003
- offsets?: {
10004
- anchor: BlockOffset
10005
- focus: BlockOffset
10006
- }
10007
- }
10008
9991
  | {
10009
9992
  type: 'delete'
10010
9993
  selection: NonNullable<EditorSelection_2>
@@ -10088,6 +10071,23 @@ declare const editorMachine: StateMachine<
10088
10071
  type: 'select'
10089
10072
  selection: EditorSelection_2
10090
10073
  }
10074
+ | {
10075
+ type: 'annotation.toggle'
10076
+ annotation: {
10077
+ name: string
10078
+ value: {
10079
+ [prop: string]: unknown
10080
+ }
10081
+ }
10082
+ }
10083
+ | {
10084
+ type: 'decorator.toggle'
10085
+ decorator: string
10086
+ offsets?: {
10087
+ anchor: BlockOffset
10088
+ focus: BlockOffset
10089
+ }
10090
+ }
10091
10091
  | {
10092
10092
  type: 'insert.blocks'
10093
10093
  blocks: Array<PortableTextBlock>
@@ -10306,15 +10306,6 @@ declare const editorMachine: StateMachine<
10306
10306
  name: string
10307
10307
  }
10308
10308
  }
10309
- | {
10310
- type: 'annotation.toggle'
10311
- annotation: {
10312
- name: string
10313
- value: {
10314
- [prop: string]: unknown
10315
- }
10316
- }
10317
- }
10318
10309
  | {
10319
10310
  type: 'block.set'
10320
10311
  at: [KeyedSegment]
@@ -10340,14 +10331,6 @@ declare const editorMachine: StateMachine<
10340
10331
  type: 'decorator.remove'
10341
10332
  decorator: string
10342
10333
  }
10343
- | {
10344
- type: 'decorator.toggle'
10345
- decorator: string
10346
- offsets?: {
10347
- anchor: BlockOffset
10348
- focus: BlockOffset
10349
- }
10350
- }
10351
10334
  | {
10352
10335
  type: 'delete'
10353
10336
  selection: NonNullable<EditorSelection_2>
@@ -10431,6 +10414,23 @@ declare const editorMachine: StateMachine<
10431
10414
  type: 'select'
10432
10415
  selection: EditorSelection_2
10433
10416
  }
10417
+ | {
10418
+ type: 'annotation.toggle'
10419
+ annotation: {
10420
+ name: string
10421
+ value: {
10422
+ [prop: string]: unknown
10423
+ }
10424
+ }
10425
+ }
10426
+ | {
10427
+ type: 'decorator.toggle'
10428
+ decorator: string
10429
+ offsets?: {
10430
+ anchor: BlockOffset
10431
+ focus: BlockOffset
10432
+ }
10433
+ }
10434
10434
  | {
10435
10435
  type: 'insert.blocks'
10436
10436
  blocks: Array<PortableTextBlock>
@@ -10646,15 +10646,6 @@ declare const editorMachine: StateMachine<
10646
10646
  name: string
10647
10647
  }
10648
10648
  }
10649
- | {
10650
- type: 'annotation.toggle'
10651
- annotation: {
10652
- name: string
10653
- value: {
10654
- [prop: string]: unknown
10655
- }
10656
- }
10657
- }
10658
10649
  | {
10659
10650
  type: 'block.set'
10660
10651
  at: [KeyedSegment]
@@ -10680,14 +10671,6 @@ declare const editorMachine: StateMachine<
10680
10671
  type: 'decorator.remove'
10681
10672
  decorator: string
10682
10673
  }
10683
- | {
10684
- type: 'decorator.toggle'
10685
- decorator: string
10686
- offsets?: {
10687
- anchor: BlockOffset
10688
- focus: BlockOffset
10689
- }
10690
- }
10691
10674
  | {
10692
10675
  type: 'delete'
10693
10676
  selection: NonNullable<EditorSelection_2>
@@ -10771,6 +10754,23 @@ declare const editorMachine: StateMachine<
10771
10754
  type: 'select'
10772
10755
  selection: EditorSelection_2
10773
10756
  }
10757
+ | {
10758
+ type: 'annotation.toggle'
10759
+ annotation: {
10760
+ name: string
10761
+ value: {
10762
+ [prop: string]: unknown
10763
+ }
10764
+ }
10765
+ }
10766
+ | {
10767
+ type: 'decorator.toggle'
10768
+ decorator: string
10769
+ offsets?: {
10770
+ anchor: BlockOffset
10771
+ focus: BlockOffset
10772
+ }
10773
+ }
10774
10774
  | {
10775
10775
  type: 'insert.blocks'
10776
10776
  blocks: Array<PortableTextBlock>
@@ -11155,15 +11155,6 @@ declare const editorMachine: StateMachine<
11155
11155
  name: string
11156
11156
  }
11157
11157
  }
11158
- | {
11159
- type: 'annotation.toggle'
11160
- annotation: {
11161
- name: string
11162
- value: {
11163
- [prop: string]: unknown
11164
- }
11165
- }
11166
- }
11167
11158
  | {
11168
11159
  type: 'block.set'
11169
11160
  at: [KeyedSegment]
@@ -11189,14 +11180,6 @@ declare const editorMachine: StateMachine<
11189
11180
  type: 'decorator.remove'
11190
11181
  decorator: string
11191
11182
  }
11192
- | {
11193
- type: 'decorator.toggle'
11194
- decorator: string
11195
- offsets?: {
11196
- anchor: BlockOffset
11197
- focus: BlockOffset
11198
- }
11199
- }
11200
11183
  | {
11201
11184
  type: 'delete'
11202
11185
  selection: NonNullable<EditorSelection_2>
@@ -11280,6 +11263,23 @@ declare const editorMachine: StateMachine<
11280
11263
  type: 'select'
11281
11264
  selection: EditorSelection_2
11282
11265
  }
11266
+ | {
11267
+ type: 'annotation.toggle'
11268
+ annotation: {
11269
+ name: string
11270
+ value: {
11271
+ [prop: string]: unknown
11272
+ }
11273
+ }
11274
+ }
11275
+ | {
11276
+ type: 'decorator.toggle'
11277
+ decorator: string
11278
+ offsets?: {
11279
+ anchor: BlockOffset
11280
+ focus: BlockOffset
11281
+ }
11282
+ }
11283
11283
  | {
11284
11284
  type: 'insert.blocks'
11285
11285
  blocks: Array<PortableTextBlock>
@@ -11471,15 +11471,6 @@ declare const editorMachine: StateMachine<
11471
11471
  name: string
11472
11472
  }
11473
11473
  }
11474
- | {
11475
- type: 'annotation.toggle'
11476
- annotation: {
11477
- name: string
11478
- value: {
11479
- [prop: string]: unknown
11480
- }
11481
- }
11482
- }
11483
11474
  | {
11484
11475
  type: 'block.set'
11485
11476
  at: [KeyedSegment]
@@ -11505,14 +11496,6 @@ declare const editorMachine: StateMachine<
11505
11496
  type: 'decorator.remove'
11506
11497
  decorator: string
11507
11498
  }
11508
- | {
11509
- type: 'decorator.toggle'
11510
- decorator: string
11511
- offsets?: {
11512
- anchor: BlockOffset
11513
- focus: BlockOffset
11514
- }
11515
- }
11516
11499
  | {
11517
11500
  type: 'delete'
11518
11501
  selection: NonNullable<EditorSelection_2>
@@ -11596,6 +11579,23 @@ declare const editorMachine: StateMachine<
11596
11579
  type: 'select'
11597
11580
  selection: EditorSelection_2
11598
11581
  }
11582
+ | {
11583
+ type: 'annotation.toggle'
11584
+ annotation: {
11585
+ name: string
11586
+ value: {
11587
+ [prop: string]: unknown
11588
+ }
11589
+ }
11590
+ }
11591
+ | {
11592
+ type: 'decorator.toggle'
11593
+ decorator: string
11594
+ offsets?: {
11595
+ anchor: BlockOffset
11596
+ focus: BlockOffset
11597
+ }
11598
+ }
11599
11599
  | {
11600
11600
  type: 'insert.blocks'
11601
11601
  blocks: Array<PortableTextBlock>
@@ -11730,15 +11730,6 @@ declare const editorMachine: StateMachine<
11730
11730
  name: string
11731
11731
  }
11732
11732
  }
11733
- | {
11734
- type: 'annotation.toggle'
11735
- annotation: {
11736
- name: string
11737
- value: {
11738
- [prop: string]: unknown
11739
- }
11740
- }
11741
- }
11742
11733
  | {
11743
11734
  type: 'block.set'
11744
11735
  at: [KeyedSegment]
@@ -11764,14 +11755,6 @@ declare const editorMachine: StateMachine<
11764
11755
  type: 'decorator.remove'
11765
11756
  decorator: string
11766
11757
  }
11767
- | {
11768
- type: 'decorator.toggle'
11769
- decorator: string
11770
- offsets?: {
11771
- anchor: BlockOffset
11772
- focus: BlockOffset
11773
- }
11774
- }
11775
11758
  | {
11776
11759
  type: 'delete'
11777
11760
  selection: NonNullable<EditorSelection_2>
@@ -11855,6 +11838,23 @@ declare const editorMachine: StateMachine<
11855
11838
  type: 'select'
11856
11839
  selection: EditorSelection_2
11857
11840
  }
11841
+ | {
11842
+ type: 'annotation.toggle'
11843
+ annotation: {
11844
+ name: string
11845
+ value: {
11846
+ [prop: string]: unknown
11847
+ }
11848
+ }
11849
+ }
11850
+ | {
11851
+ type: 'decorator.toggle'
11852
+ decorator: string
11853
+ offsets?: {
11854
+ anchor: BlockOffset
11855
+ focus: BlockOffset
11856
+ }
11857
+ }
11858
11858
  | {
11859
11859
  type: 'insert.blocks'
11860
11860
  blocks: Array<PortableTextBlock>
@@ -12046,15 +12046,6 @@ declare const editorMachine: StateMachine<
12046
12046
  name: string
12047
12047
  }
12048
12048
  }
12049
- | {
12050
- type: 'annotation.toggle'
12051
- annotation: {
12052
- name: string
12053
- value: {
12054
- [prop: string]: unknown
12055
- }
12056
- }
12057
- }
12058
12049
  | {
12059
12050
  type: 'block.set'
12060
12051
  at: [KeyedSegment]
@@ -12080,14 +12071,6 @@ declare const editorMachine: StateMachine<
12080
12071
  type: 'decorator.remove'
12081
12072
  decorator: string
12082
12073
  }
12083
- | {
12084
- type: 'decorator.toggle'
12085
- decorator: string
12086
- offsets?: {
12087
- anchor: BlockOffset
12088
- focus: BlockOffset
12089
- }
12090
- }
12091
12074
  | {
12092
12075
  type: 'delete'
12093
12076
  selection: NonNullable<EditorSelection_2>
@@ -12172,7 +12155,24 @@ declare const editorMachine: StateMachine<
12172
12155
  selection: EditorSelection_2
12173
12156
  }
12174
12157
  | {
12175
- type: 'insert.blocks'
12158
+ type: 'annotation.toggle'
12159
+ annotation: {
12160
+ name: string
12161
+ value: {
12162
+ [prop: string]: unknown
12163
+ }
12164
+ }
12165
+ }
12166
+ | {
12167
+ type: 'decorator.toggle'
12168
+ decorator: string
12169
+ offsets?: {
12170
+ anchor: BlockOffset
12171
+ focus: BlockOffset
12172
+ }
12173
+ }
12174
+ | {
12175
+ type: 'insert.blocks'
12176
12176
  blocks: Array<PortableTextBlock>
12177
12177
  placement: InsertPlacement_3
12178
12178
  }
@@ -12298,15 +12298,6 @@ declare const editorMachine: StateMachine<
12298
12298
  name: string
12299
12299
  }
12300
12300
  }
12301
- | {
12302
- type: 'annotation.toggle'
12303
- annotation: {
12304
- name: string
12305
- value: {
12306
- [prop: string]: unknown
12307
- }
12308
- }
12309
- }
12310
12301
  | {
12311
12302
  type: 'block.set'
12312
12303
  at: [KeyedSegment]
@@ -12332,14 +12323,6 @@ declare const editorMachine: StateMachine<
12332
12323
  type: 'decorator.remove'
12333
12324
  decorator: string
12334
12325
  }
12335
- | {
12336
- type: 'decorator.toggle'
12337
- decorator: string
12338
- offsets?: {
12339
- anchor: BlockOffset
12340
- focus: BlockOffset
12341
- }
12342
- }
12343
12326
  | {
12344
12327
  type: 'delete'
12345
12328
  selection: NonNullable<EditorSelection_2>
@@ -12423,6 +12406,23 @@ declare const editorMachine: StateMachine<
12423
12406
  type: 'select'
12424
12407
  selection: EditorSelection_2
12425
12408
  }
12409
+ | {
12410
+ type: 'annotation.toggle'
12411
+ annotation: {
12412
+ name: string
12413
+ value: {
12414
+ [prop: string]: unknown
12415
+ }
12416
+ }
12417
+ }
12418
+ | {
12419
+ type: 'decorator.toggle'
12420
+ decorator: string
12421
+ offsets?: {
12422
+ anchor: BlockOffset
12423
+ focus: BlockOffset
12424
+ }
12425
+ }
12426
12426
  | {
12427
12427
  type: 'insert.blocks'
12428
12428
  blocks: Array<PortableTextBlock>
@@ -12614,15 +12614,6 @@ declare const editorMachine: StateMachine<
12614
12614
  name: string
12615
12615
  }
12616
12616
  }
12617
- | {
12618
- type: 'annotation.toggle'
12619
- annotation: {
12620
- name: string
12621
- value: {
12622
- [prop: string]: unknown
12623
- }
12624
- }
12625
- }
12626
12617
  | {
12627
12618
  type: 'block.set'
12628
12619
  at: [KeyedSegment]
@@ -12648,14 +12639,6 @@ declare const editorMachine: StateMachine<
12648
12639
  type: 'decorator.remove'
12649
12640
  decorator: string
12650
12641
  }
12651
- | {
12652
- type: 'decorator.toggle'
12653
- decorator: string
12654
- offsets?: {
12655
- anchor: BlockOffset
12656
- focus: BlockOffset
12657
- }
12658
- }
12659
12642
  | {
12660
12643
  type: 'delete'
12661
12644
  selection: NonNullable<EditorSelection_2>
@@ -12739,6 +12722,23 @@ declare const editorMachine: StateMachine<
12739
12722
  type: 'select'
12740
12723
  selection: EditorSelection_2
12741
12724
  }
12725
+ | {
12726
+ type: 'annotation.toggle'
12727
+ annotation: {
12728
+ name: string
12729
+ value: {
12730
+ [prop: string]: unknown
12731
+ }
12732
+ }
12733
+ }
12734
+ | {
12735
+ type: 'decorator.toggle'
12736
+ decorator: string
12737
+ offsets?: {
12738
+ anchor: BlockOffset
12739
+ focus: BlockOffset
12740
+ }
12741
+ }
12742
12742
  | {
12743
12743
  type: 'insert.blocks'
12744
12744
  blocks: Array<PortableTextBlock>
@@ -12866,15 +12866,6 @@ declare const editorMachine: StateMachine<
12866
12866
  name: string
12867
12867
  }
12868
12868
  }
12869
- | {
12870
- type: 'annotation.toggle'
12871
- annotation: {
12872
- name: string
12873
- value: {
12874
- [prop: string]: unknown
12875
- }
12876
- }
12877
- }
12878
12869
  | {
12879
12870
  type: 'block.set'
12880
12871
  at: [KeyedSegment]
@@ -12900,14 +12891,6 @@ declare const editorMachine: StateMachine<
12900
12891
  type: 'decorator.remove'
12901
12892
  decorator: string
12902
12893
  }
12903
- | {
12904
- type: 'decorator.toggle'
12905
- decorator: string
12906
- offsets?: {
12907
- anchor: BlockOffset
12908
- focus: BlockOffset
12909
- }
12910
- }
12911
12894
  | {
12912
12895
  type: 'delete'
12913
12896
  selection: NonNullable<EditorSelection_2>
@@ -12991,6 +12974,23 @@ declare const editorMachine: StateMachine<
12991
12974
  type: 'select'
12992
12975
  selection: EditorSelection_2
12993
12976
  }
12977
+ | {
12978
+ type: 'annotation.toggle'
12979
+ annotation: {
12980
+ name: string
12981
+ value: {
12982
+ [prop: string]: unknown
12983
+ }
12984
+ }
12985
+ }
12986
+ | {
12987
+ type: 'decorator.toggle'
12988
+ decorator: string
12989
+ offsets?: {
12990
+ anchor: BlockOffset
12991
+ focus: BlockOffset
12992
+ }
12993
+ }
12994
12994
  | {
12995
12995
  type: 'insert.blocks'
12996
12996
  blocks: Array<PortableTextBlock>
@@ -13182,15 +13182,6 @@ declare const editorMachine: StateMachine<
13182
13182
  name: string
13183
13183
  }
13184
13184
  }
13185
- | {
13186
- type: 'annotation.toggle'
13187
- annotation: {
13188
- name: string
13189
- value: {
13190
- [prop: string]: unknown
13191
- }
13192
- }
13193
- }
13194
13185
  | {
13195
13186
  type: 'block.set'
13196
13187
  at: [KeyedSegment]
@@ -13216,14 +13207,6 @@ declare const editorMachine: StateMachine<
13216
13207
  type: 'decorator.remove'
13217
13208
  decorator: string
13218
13209
  }
13219
- | {
13220
- type: 'decorator.toggle'
13221
- decorator: string
13222
- offsets?: {
13223
- anchor: BlockOffset
13224
- focus: BlockOffset
13225
- }
13226
- }
13227
13210
  | {
13228
13211
  type: 'delete'
13229
13212
  selection: NonNullable<EditorSelection_2>
@@ -13307,6 +13290,23 @@ declare const editorMachine: StateMachine<
13307
13290
  type: 'select'
13308
13291
  selection: EditorSelection_2
13309
13292
  }
13293
+ | {
13294
+ type: 'annotation.toggle'
13295
+ annotation: {
13296
+ name: string
13297
+ value: {
13298
+ [prop: string]: unknown
13299
+ }
13300
+ }
13301
+ }
13302
+ | {
13303
+ type: 'decorator.toggle'
13304
+ decorator: string
13305
+ offsets?: {
13306
+ anchor: BlockOffset
13307
+ focus: BlockOffset
13308
+ }
13309
+ }
13310
13310
  | {
13311
13311
  type: 'insert.blocks'
13312
13312
  blocks: Array<PortableTextBlock>
@@ -13451,15 +13451,6 @@ declare const editorMachine: StateMachine<
13451
13451
  name: string
13452
13452
  }
13453
13453
  }
13454
- | {
13455
- type: 'annotation.toggle'
13456
- annotation: {
13457
- name: string
13458
- value: {
13459
- [prop: string]: unknown
13460
- }
13461
- }
13462
- }
13463
13454
  | {
13464
13455
  type: 'block.set'
13465
13456
  at: [KeyedSegment]
@@ -13485,14 +13476,6 @@ declare const editorMachine: StateMachine<
13485
13476
  type: 'decorator.remove'
13486
13477
  decorator: string
13487
13478
  }
13488
- | {
13489
- type: 'decorator.toggle'
13490
- decorator: string
13491
- offsets?: {
13492
- anchor: BlockOffset
13493
- focus: BlockOffset
13494
- }
13495
- }
13496
13479
  | {
13497
13480
  type: 'delete'
13498
13481
  selection: NonNullable<EditorSelection_2>
@@ -13576,6 +13559,23 @@ declare const editorMachine: StateMachine<
13576
13559
  type: 'select'
13577
13560
  selection: EditorSelection_2
13578
13561
  }
13562
+ | {
13563
+ type: 'annotation.toggle'
13564
+ annotation: {
13565
+ name: string
13566
+ value: {
13567
+ [prop: string]: unknown
13568
+ }
13569
+ }
13570
+ }
13571
+ | {
13572
+ type: 'decorator.toggle'
13573
+ decorator: string
13574
+ offsets?: {
13575
+ anchor: BlockOffset
13576
+ focus: BlockOffset
13577
+ }
13578
+ }
13579
13579
  | {
13580
13580
  type: 'insert.blocks'
13581
13581
  blocks: Array<PortableTextBlock>
@@ -13767,15 +13767,6 @@ declare const editorMachine: StateMachine<
13767
13767
  name: string
13768
13768
  }
13769
13769
  }
13770
- | {
13771
- type: 'annotation.toggle'
13772
- annotation: {
13773
- name: string
13774
- value: {
13775
- [prop: string]: unknown
13776
- }
13777
- }
13778
- }
13779
13770
  | {
13780
13771
  type: 'block.set'
13781
13772
  at: [KeyedSegment]
@@ -13801,14 +13792,6 @@ declare const editorMachine: StateMachine<
13801
13792
  type: 'decorator.remove'
13802
13793
  decorator: string
13803
13794
  }
13804
- | {
13805
- type: 'decorator.toggle'
13806
- decorator: string
13807
- offsets?: {
13808
- anchor: BlockOffset
13809
- focus: BlockOffset
13810
- }
13811
- }
13812
13795
  | {
13813
13796
  type: 'delete'
13814
13797
  selection: NonNullable<EditorSelection_2>
@@ -13892,6 +13875,23 @@ declare const editorMachine: StateMachine<
13892
13875
  type: 'select'
13893
13876
  selection: EditorSelection_2
13894
13877
  }
13878
+ | {
13879
+ type: 'annotation.toggle'
13880
+ annotation: {
13881
+ name: string
13882
+ value: {
13883
+ [prop: string]: unknown
13884
+ }
13885
+ }
13886
+ }
13887
+ | {
13888
+ type: 'decorator.toggle'
13889
+ decorator: string
13890
+ offsets?: {
13891
+ anchor: BlockOffset
13892
+ focus: BlockOffset
13893
+ }
13894
+ }
13895
13895
  | {
13896
13896
  type: 'insert.blocks'
13897
13897
  blocks: Array<PortableTextBlock>
@@ -14033,15 +14033,6 @@ declare const editorMachine: StateMachine<
14033
14033
  name: string
14034
14034
  }
14035
14035
  }
14036
- | {
14037
- type: 'annotation.toggle'
14038
- annotation: {
14039
- name: string
14040
- value: {
14041
- [prop: string]: unknown
14042
- }
14043
- }
14044
- }
14045
14036
  | {
14046
14037
  type: 'block.set'
14047
14038
  at: [KeyedSegment]
@@ -14067,14 +14058,6 @@ declare const editorMachine: StateMachine<
14067
14058
  type: 'decorator.remove'
14068
14059
  decorator: string
14069
14060
  }
14070
- | {
14071
- type: 'decorator.toggle'
14072
- decorator: string
14073
- offsets?: {
14074
- anchor: BlockOffset
14075
- focus: BlockOffset
14076
- }
14077
- }
14078
14061
  | {
14079
14062
  type: 'delete'
14080
14063
  selection: NonNullable<EditorSelection_2>
@@ -14158,6 +14141,23 @@ declare const editorMachine: StateMachine<
14158
14141
  type: 'select'
14159
14142
  selection: EditorSelection_2
14160
14143
  }
14144
+ | {
14145
+ type: 'annotation.toggle'
14146
+ annotation: {
14147
+ name: string
14148
+ value: {
14149
+ [prop: string]: unknown
14150
+ }
14151
+ }
14152
+ }
14153
+ | {
14154
+ type: 'decorator.toggle'
14155
+ decorator: string
14156
+ offsets?: {
14157
+ anchor: BlockOffset
14158
+ focus: BlockOffset
14159
+ }
14160
+ }
14161
14161
  | {
14162
14162
  type: 'insert.blocks'
14163
14163
  blocks: Array<PortableTextBlock>
@@ -14349,15 +14349,6 @@ declare const editorMachine: StateMachine<
14349
14349
  name: string
14350
14350
  }
14351
14351
  }
14352
- | {
14353
- type: 'annotation.toggle'
14354
- annotation: {
14355
- name: string
14356
- value: {
14357
- [prop: string]: unknown
14358
- }
14359
- }
14360
- }
14361
14352
  | {
14362
14353
  type: 'block.set'
14363
14354
  at: [KeyedSegment]
@@ -14383,14 +14374,6 @@ declare const editorMachine: StateMachine<
14383
14374
  type: 'decorator.remove'
14384
14375
  decorator: string
14385
14376
  }
14386
- | {
14387
- type: 'decorator.toggle'
14388
- decorator: string
14389
- offsets?: {
14390
- anchor: BlockOffset
14391
- focus: BlockOffset
14392
- }
14393
- }
14394
14377
  | {
14395
14378
  type: 'delete'
14396
14379
  selection: NonNullable<EditorSelection_2>
@@ -14474,6 +14457,23 @@ declare const editorMachine: StateMachine<
14474
14457
  type: 'select'
14475
14458
  selection: EditorSelection_2
14476
14459
  }
14460
+ | {
14461
+ type: 'annotation.toggle'
14462
+ annotation: {
14463
+ name: string
14464
+ value: {
14465
+ [prop: string]: unknown
14466
+ }
14467
+ }
14468
+ }
14469
+ | {
14470
+ type: 'decorator.toggle'
14471
+ decorator: string
14472
+ offsets?: {
14473
+ anchor: BlockOffset
14474
+ focus: BlockOffset
14475
+ }
14476
+ }
14477
14477
  | {
14478
14478
  type: 'insert.blocks'
14479
14479
  blocks: Array<PortableTextBlock>
@@ -14601,15 +14601,6 @@ declare const editorMachine: StateMachine<
14601
14601
  name: string
14602
14602
  }
14603
14603
  }
14604
- | {
14605
- type: 'annotation.toggle'
14606
- annotation: {
14607
- name: string
14608
- value: {
14609
- [prop: string]: unknown
14610
- }
14611
- }
14612
- }
14613
14604
  | {
14614
14605
  type: 'block.set'
14615
14606
  at: [KeyedSegment]
@@ -14635,14 +14626,6 @@ declare const editorMachine: StateMachine<
14635
14626
  type: 'decorator.remove'
14636
14627
  decorator: string
14637
14628
  }
14638
- | {
14639
- type: 'decorator.toggle'
14640
- decorator: string
14641
- offsets?: {
14642
- anchor: BlockOffset
14643
- focus: BlockOffset
14644
- }
14645
- }
14646
14629
  | {
14647
14630
  type: 'delete'
14648
14631
  selection: NonNullable<EditorSelection_2>
@@ -14726,6 +14709,23 @@ declare const editorMachine: StateMachine<
14726
14709
  type: 'select'
14727
14710
  selection: EditorSelection_2
14728
14711
  }
14712
+ | {
14713
+ type: 'annotation.toggle'
14714
+ annotation: {
14715
+ name: string
14716
+ value: {
14717
+ [prop: string]: unknown
14718
+ }
14719
+ }
14720
+ }
14721
+ | {
14722
+ type: 'decorator.toggle'
14723
+ decorator: string
14724
+ offsets?: {
14725
+ anchor: BlockOffset
14726
+ focus: BlockOffset
14727
+ }
14728
+ }
14729
14729
  | {
14730
14730
  type: 'insert.blocks'
14731
14731
  blocks: Array<PortableTextBlock>
@@ -14917,15 +14917,6 @@ declare const editorMachine: StateMachine<
14917
14917
  name: string
14918
14918
  }
14919
14919
  }
14920
- | {
14921
- type: 'annotation.toggle'
14922
- annotation: {
14923
- name: string
14924
- value: {
14925
- [prop: string]: unknown
14926
- }
14927
- }
14928
- }
14929
14920
  | {
14930
14921
  type: 'block.set'
14931
14922
  at: [KeyedSegment]
@@ -14951,14 +14942,6 @@ declare const editorMachine: StateMachine<
14951
14942
  type: 'decorator.remove'
14952
14943
  decorator: string
14953
14944
  }
14954
- | {
14955
- type: 'decorator.toggle'
14956
- decorator: string
14957
- offsets?: {
14958
- anchor: BlockOffset
14959
- focus: BlockOffset
14960
- }
14961
- }
14962
14945
  | {
14963
14946
  type: 'delete'
14964
14947
  selection: NonNullable<EditorSelection_2>
@@ -15042,6 +15025,23 @@ declare const editorMachine: StateMachine<
15042
15025
  type: 'select'
15043
15026
  selection: EditorSelection_2
15044
15027
  }
15028
+ | {
15029
+ type: 'annotation.toggle'
15030
+ annotation: {
15031
+ name: string
15032
+ value: {
15033
+ [prop: string]: unknown
15034
+ }
15035
+ }
15036
+ }
15037
+ | {
15038
+ type: 'decorator.toggle'
15039
+ decorator: string
15040
+ offsets?: {
15041
+ anchor: BlockOffset
15042
+ focus: BlockOffset
15043
+ }
15044
+ }
15045
15045
  | {
15046
15046
  type: 'insert.blocks'
15047
15047
  blocks: Array<PortableTextBlock>
@@ -15172,15 +15172,6 @@ declare const editorMachine: StateMachine<
15172
15172
  name: string
15173
15173
  }
15174
15174
  }
15175
- | {
15176
- type: 'annotation.toggle'
15177
- annotation: {
15178
- name: string
15179
- value: {
15180
- [prop: string]: unknown
15181
- }
15182
- }
15183
- }
15184
15175
  | {
15185
15176
  type: 'block.set'
15186
15177
  at: [KeyedSegment]
@@ -15206,14 +15197,6 @@ declare const editorMachine: StateMachine<
15206
15197
  type: 'decorator.remove'
15207
15198
  decorator: string
15208
15199
  }
15209
- | {
15210
- type: 'decorator.toggle'
15211
- decorator: string
15212
- offsets?: {
15213
- anchor: BlockOffset
15214
- focus: BlockOffset
15215
- }
15216
- }
15217
15200
  | {
15218
15201
  type: 'delete'
15219
15202
  selection: NonNullable<EditorSelection_2>
@@ -15297,6 +15280,23 @@ declare const editorMachine: StateMachine<
15297
15280
  type: 'select'
15298
15281
  selection: EditorSelection_2
15299
15282
  }
15283
+ | {
15284
+ type: 'annotation.toggle'
15285
+ annotation: {
15286
+ name: string
15287
+ value: {
15288
+ [prop: string]: unknown
15289
+ }
15290
+ }
15291
+ }
15292
+ | {
15293
+ type: 'decorator.toggle'
15294
+ decorator: string
15295
+ offsets?: {
15296
+ anchor: BlockOffset
15297
+ focus: BlockOffset
15298
+ }
15299
+ }
15300
15300
  | {
15301
15301
  type: 'insert.blocks'
15302
15302
  blocks: Array<PortableTextBlock>
@@ -15488,15 +15488,6 @@ declare const editorMachine: StateMachine<
15488
15488
  name: string
15489
15489
  }
15490
15490
  }
15491
- | {
15492
- type: 'annotation.toggle'
15493
- annotation: {
15494
- name: string
15495
- value: {
15496
- [prop: string]: unknown
15497
- }
15498
- }
15499
- }
15500
15491
  | {
15501
15492
  type: 'block.set'
15502
15493
  at: [KeyedSegment]
@@ -15522,14 +15513,6 @@ declare const editorMachine: StateMachine<
15522
15513
  type: 'decorator.remove'
15523
15514
  decorator: string
15524
15515
  }
15525
- | {
15526
- type: 'decorator.toggle'
15527
- decorator: string
15528
- offsets?: {
15529
- anchor: BlockOffset
15530
- focus: BlockOffset
15531
- }
15532
- }
15533
15516
  | {
15534
15517
  type: 'delete'
15535
15518
  selection: NonNullable<EditorSelection_2>
@@ -15613,6 +15596,23 @@ declare const editorMachine: StateMachine<
15613
15596
  type: 'select'
15614
15597
  selection: EditorSelection_2
15615
15598
  }
15599
+ | {
15600
+ type: 'annotation.toggle'
15601
+ annotation: {
15602
+ name: string
15603
+ value: {
15604
+ [prop: string]: unknown
15605
+ }
15606
+ }
15607
+ }
15608
+ | {
15609
+ type: 'decorator.toggle'
15610
+ decorator: string
15611
+ offsets?: {
15612
+ anchor: BlockOffset
15613
+ focus: BlockOffset
15614
+ }
15615
+ }
15616
15616
  | {
15617
15617
  type: 'insert.blocks'
15618
15618
  blocks: Array<PortableTextBlock>
@@ -15788,15 +15788,6 @@ declare const editorMachine: StateMachine<
15788
15788
  name: string
15789
15789
  }
15790
15790
  }
15791
- | {
15792
- type: 'annotation.toggle'
15793
- annotation: {
15794
- name: string
15795
- value: {
15796
- [prop: string]: unknown
15797
- }
15798
- }
15799
- }
15800
15791
  | {
15801
15792
  type: 'block.set'
15802
15793
  at: [KeyedSegment]
@@ -15822,14 +15813,6 @@ declare const editorMachine: StateMachine<
15822
15813
  type: 'decorator.remove'
15823
15814
  decorator: string
15824
15815
  }
15825
- | {
15826
- type: 'decorator.toggle'
15827
- decorator: string
15828
- offsets?: {
15829
- anchor: BlockOffset
15830
- focus: BlockOffset
15831
- }
15832
- }
15833
15816
  | {
15834
15817
  type: 'delete'
15835
15818
  selection: NonNullable<EditorSelection_2>
@@ -15913,6 +15896,23 @@ declare const editorMachine: StateMachine<
15913
15896
  type: 'select'
15914
15897
  selection: EditorSelection_2
15915
15898
  }
15899
+ | {
15900
+ type: 'annotation.toggle'
15901
+ annotation: {
15902
+ name: string
15903
+ value: {
15904
+ [prop: string]: unknown
15905
+ }
15906
+ }
15907
+ }
15908
+ | {
15909
+ type: 'decorator.toggle'
15910
+ decorator: string
15911
+ offsets?: {
15912
+ anchor: BlockOffset
15913
+ focus: BlockOffset
15914
+ }
15915
+ }
15916
15916
  | {
15917
15917
  type: 'insert.blocks'
15918
15918
  blocks: Array<PortableTextBlock>
@@ -16104,15 +16104,6 @@ declare const editorMachine: StateMachine<
16104
16104
  name: string
16105
16105
  }
16106
16106
  }
16107
- | {
16108
- type: 'annotation.toggle'
16109
- annotation: {
16110
- name: string
16111
- value: {
16112
- [prop: string]: unknown
16113
- }
16114
- }
16115
- }
16116
16107
  | {
16117
16108
  type: 'block.set'
16118
16109
  at: [KeyedSegment]
@@ -16138,14 +16129,6 @@ declare const editorMachine: StateMachine<
16138
16129
  type: 'decorator.remove'
16139
16130
  decorator: string
16140
16131
  }
16141
- | {
16142
- type: 'decorator.toggle'
16143
- decorator: string
16144
- offsets?: {
16145
- anchor: BlockOffset
16146
- focus: BlockOffset
16147
- }
16148
- }
16149
16132
  | {
16150
16133
  type: 'delete'
16151
16134
  selection: NonNullable<EditorSelection_2>
@@ -16229,6 +16212,23 @@ declare const editorMachine: StateMachine<
16229
16212
  type: 'select'
16230
16213
  selection: EditorSelection_2
16231
16214
  }
16215
+ | {
16216
+ type: 'annotation.toggle'
16217
+ annotation: {
16218
+ name: string
16219
+ value: {
16220
+ [prop: string]: unknown
16221
+ }
16222
+ }
16223
+ }
16224
+ | {
16225
+ type: 'decorator.toggle'
16226
+ decorator: string
16227
+ offsets?: {
16228
+ anchor: BlockOffset
16229
+ focus: BlockOffset
16230
+ }
16231
+ }
16232
16232
  | {
16233
16233
  type: 'insert.blocks'
16234
16234
  blocks: Array<PortableTextBlock>
@@ -16365,15 +16365,6 @@ declare const editorMachine: StateMachine<
16365
16365
  name: string
16366
16366
  }
16367
16367
  }
16368
- | {
16369
- type: 'annotation.toggle'
16370
- annotation: {
16371
- name: string
16372
- value: {
16373
- [prop: string]: unknown
16374
- }
16375
- }
16376
- }
16377
16368
  | {
16378
16369
  type: 'block.set'
16379
16370
  at: [KeyedSegment]
@@ -16399,14 +16390,6 @@ declare const editorMachine: StateMachine<
16399
16390
  type: 'decorator.remove'
16400
16391
  decorator: string
16401
16392
  }
16402
- | {
16403
- type: 'decorator.toggle'
16404
- decorator: string
16405
- offsets?: {
16406
- anchor: BlockOffset
16407
- focus: BlockOffset
16408
- }
16409
- }
16410
16393
  | {
16411
16394
  type: 'delete'
16412
16395
  selection: NonNullable<EditorSelection_2>
@@ -16490,6 +16473,23 @@ declare const editorMachine: StateMachine<
16490
16473
  type: 'select'
16491
16474
  selection: EditorSelection_2
16492
16475
  }
16476
+ | {
16477
+ type: 'annotation.toggle'
16478
+ annotation: {
16479
+ name: string
16480
+ value: {
16481
+ [prop: string]: unknown
16482
+ }
16483
+ }
16484
+ }
16485
+ | {
16486
+ type: 'decorator.toggle'
16487
+ decorator: string
16488
+ offsets?: {
16489
+ anchor: BlockOffset
16490
+ focus: BlockOffset
16491
+ }
16492
+ }
16493
16493
  | {
16494
16494
  type: 'insert.blocks'
16495
16495
  blocks: Array<PortableTextBlock>
@@ -16681,15 +16681,6 @@ declare const editorMachine: StateMachine<
16681
16681
  name: string
16682
16682
  }
16683
16683
  }
16684
- | {
16685
- type: 'annotation.toggle'
16686
- annotation: {
16687
- name: string
16688
- value: {
16689
- [prop: string]: unknown
16690
- }
16691
- }
16692
- }
16693
16684
  | {
16694
16685
  type: 'block.set'
16695
16686
  at: [KeyedSegment]
@@ -16715,14 +16706,6 @@ declare const editorMachine: StateMachine<
16715
16706
  type: 'decorator.remove'
16716
16707
  decorator: string
16717
16708
  }
16718
- | {
16719
- type: 'decorator.toggle'
16720
- decorator: string
16721
- offsets?: {
16722
- anchor: BlockOffset
16723
- focus: BlockOffset
16724
- }
16725
- }
16726
16709
  | {
16727
16710
  type: 'delete'
16728
16711
  selection: NonNullable<EditorSelection_2>
@@ -16806,6 +16789,23 @@ declare const editorMachine: StateMachine<
16806
16789
  type: 'select'
16807
16790
  selection: EditorSelection_2
16808
16791
  }
16792
+ | {
16793
+ type: 'annotation.toggle'
16794
+ annotation: {
16795
+ name: string
16796
+ value: {
16797
+ [prop: string]: unknown
16798
+ }
16799
+ }
16800
+ }
16801
+ | {
16802
+ type: 'decorator.toggle'
16803
+ decorator: string
16804
+ offsets?: {
16805
+ anchor: BlockOffset
16806
+ focus: BlockOffset
16807
+ }
16808
+ }
16809
16809
  | {
16810
16810
  type: 'insert.blocks'
16811
16811
  blocks: Array<PortableTextBlock>
@@ -16943,15 +16943,6 @@ declare const editorMachine: StateMachine<
16943
16943
  name: string
16944
16944
  }
16945
16945
  }
16946
- | {
16947
- type: 'annotation.toggle'
16948
- annotation: {
16949
- name: string
16950
- value: {
16951
- [prop: string]: unknown
16952
- }
16953
- }
16954
- }
16955
16946
  | {
16956
16947
  type: 'block.set'
16957
16948
  at: [KeyedSegment]
@@ -16977,14 +16968,6 @@ declare const editorMachine: StateMachine<
16977
16968
  type: 'decorator.remove'
16978
16969
  decorator: string
16979
16970
  }
16980
- | {
16981
- type: 'decorator.toggle'
16982
- decorator: string
16983
- offsets?: {
16984
- anchor: BlockOffset
16985
- focus: BlockOffset
16986
- }
16987
- }
16988
16971
  | {
16989
16972
  type: 'delete'
16990
16973
  selection: NonNullable<EditorSelection_2>
@@ -17068,6 +17051,23 @@ declare const editorMachine: StateMachine<
17068
17051
  type: 'select'
17069
17052
  selection: EditorSelection_2
17070
17053
  }
17054
+ | {
17055
+ type: 'annotation.toggle'
17056
+ annotation: {
17057
+ name: string
17058
+ value: {
17059
+ [prop: string]: unknown
17060
+ }
17061
+ }
17062
+ }
17063
+ | {
17064
+ type: 'decorator.toggle'
17065
+ decorator: string
17066
+ offsets?: {
17067
+ anchor: BlockOffset
17068
+ focus: BlockOffset
17069
+ }
17070
+ }
17071
17071
  | {
17072
17072
  type: 'insert.blocks'
17073
17073
  blocks: Array<PortableTextBlock>
@@ -17259,15 +17259,6 @@ declare const editorMachine: StateMachine<
17259
17259
  name: string
17260
17260
  }
17261
17261
  }
17262
- | {
17263
- type: 'annotation.toggle'
17264
- annotation: {
17265
- name: string
17266
- value: {
17267
- [prop: string]: unknown
17268
- }
17269
- }
17270
- }
17271
17262
  | {
17272
17263
  type: 'block.set'
17273
17264
  at: [KeyedSegment]
@@ -17293,14 +17284,6 @@ declare const editorMachine: StateMachine<
17293
17284
  type: 'decorator.remove'
17294
17285
  decorator: string
17295
17286
  }
17296
- | {
17297
- type: 'decorator.toggle'
17298
- decorator: string
17299
- offsets?: {
17300
- anchor: BlockOffset
17301
- focus: BlockOffset
17302
- }
17303
- }
17304
17287
  | {
17305
17288
  type: 'delete'
17306
17289
  selection: NonNullable<EditorSelection_2>
@@ -17384,6 +17367,23 @@ declare const editorMachine: StateMachine<
17384
17367
  type: 'select'
17385
17368
  selection: EditorSelection_2
17386
17369
  }
17370
+ | {
17371
+ type: 'annotation.toggle'
17372
+ annotation: {
17373
+ name: string
17374
+ value: {
17375
+ [prop: string]: unknown
17376
+ }
17377
+ }
17378
+ }
17379
+ | {
17380
+ type: 'decorator.toggle'
17381
+ decorator: string
17382
+ offsets?: {
17383
+ anchor: BlockOffset
17384
+ focus: BlockOffset
17385
+ }
17386
+ }
17387
17387
  | {
17388
17388
  type: 'insert.blocks'
17389
17389
  blocks: Array<PortableTextBlock>
@@ -17512,15 +17512,6 @@ declare const editorMachine: StateMachine<
17512
17512
  name: string
17513
17513
  }
17514
17514
  }
17515
- | {
17516
- type: 'annotation.toggle'
17517
- annotation: {
17518
- name: string
17519
- value: {
17520
- [prop: string]: unknown
17521
- }
17522
- }
17523
- }
17524
17515
  | {
17525
17516
  type: 'block.set'
17526
17517
  at: [KeyedSegment]
@@ -17546,14 +17537,6 @@ declare const editorMachine: StateMachine<
17546
17537
  type: 'decorator.remove'
17547
17538
  decorator: string
17548
17539
  }
17549
- | {
17550
- type: 'decorator.toggle'
17551
- decorator: string
17552
- offsets?: {
17553
- anchor: BlockOffset
17554
- focus: BlockOffset
17555
- }
17556
- }
17557
17540
  | {
17558
17541
  type: 'delete'
17559
17542
  selection: NonNullable<EditorSelection_2>
@@ -17637,6 +17620,23 @@ declare const editorMachine: StateMachine<
17637
17620
  type: 'select'
17638
17621
  selection: EditorSelection_2
17639
17622
  }
17623
+ | {
17624
+ type: 'annotation.toggle'
17625
+ annotation: {
17626
+ name: string
17627
+ value: {
17628
+ [prop: string]: unknown
17629
+ }
17630
+ }
17631
+ }
17632
+ | {
17633
+ type: 'decorator.toggle'
17634
+ decorator: string
17635
+ offsets?: {
17636
+ anchor: BlockOffset
17637
+ focus: BlockOffset
17638
+ }
17639
+ }
17640
17640
  | {
17641
17641
  type: 'insert.blocks'
17642
17642
  blocks: Array<PortableTextBlock>
@@ -17828,15 +17828,6 @@ declare const editorMachine: StateMachine<
17828
17828
  name: string
17829
17829
  }
17830
17830
  }
17831
- | {
17832
- type: 'annotation.toggle'
17833
- annotation: {
17834
- name: string
17835
- value: {
17836
- [prop: string]: unknown
17837
- }
17838
- }
17839
- }
17840
17831
  | {
17841
17832
  type: 'block.set'
17842
17833
  at: [KeyedSegment]
@@ -17862,14 +17853,6 @@ declare const editorMachine: StateMachine<
17862
17853
  type: 'decorator.remove'
17863
17854
  decorator: string
17864
17855
  }
17865
- | {
17866
- type: 'decorator.toggle'
17867
- decorator: string
17868
- offsets?: {
17869
- anchor: BlockOffset
17870
- focus: BlockOffset
17871
- }
17872
- }
17873
17856
  | {
17874
17857
  type: 'delete'
17875
17858
  selection: NonNullable<EditorSelection_2>
@@ -17953,6 +17936,23 @@ declare const editorMachine: StateMachine<
17953
17936
  type: 'select'
17954
17937
  selection: EditorSelection_2
17955
17938
  }
17939
+ | {
17940
+ type: 'annotation.toggle'
17941
+ annotation: {
17942
+ name: string
17943
+ value: {
17944
+ [prop: string]: unknown
17945
+ }
17946
+ }
17947
+ }
17948
+ | {
17949
+ type: 'decorator.toggle'
17950
+ decorator: string
17951
+ offsets?: {
17952
+ anchor: BlockOffset
17953
+ focus: BlockOffset
17954
+ }
17955
+ }
17956
17956
  | {
17957
17957
  type: 'insert.blocks'
17958
17958
  blocks: Array<PortableTextBlock>
@@ -18102,15 +18102,6 @@ declare const editorMachine: StateMachine<
18102
18102
  name: string
18103
18103
  }
18104
18104
  }
18105
- | {
18106
- type: 'annotation.toggle'
18107
- annotation: {
18108
- name: string
18109
- value: {
18110
- [prop: string]: unknown
18111
- }
18112
- }
18113
- }
18114
18105
  | {
18115
18106
  type: 'block.set'
18116
18107
  at: [KeyedSegment]
@@ -18132,17 +18123,9 @@ declare const editorMachine: StateMachine<
18132
18123
  focus: BlockOffset
18133
18124
  }
18134
18125
  }
18135
- | {
18136
- type: 'decorator.remove'
18137
- decorator: string
18138
- }
18139
- | {
18140
- type: 'decorator.toggle'
18141
- decorator: string
18142
- offsets?: {
18143
- anchor: BlockOffset
18144
- focus: BlockOffset
18145
- }
18126
+ | {
18127
+ type: 'decorator.remove'
18128
+ decorator: string
18146
18129
  }
18147
18130
  | {
18148
18131
  type: 'delete'
@@ -18227,6 +18210,23 @@ declare const editorMachine: StateMachine<
18227
18210
  type: 'select'
18228
18211
  selection: EditorSelection_2
18229
18212
  }
18213
+ | {
18214
+ type: 'annotation.toggle'
18215
+ annotation: {
18216
+ name: string
18217
+ value: {
18218
+ [prop: string]: unknown
18219
+ }
18220
+ }
18221
+ }
18222
+ | {
18223
+ type: 'decorator.toggle'
18224
+ decorator: string
18225
+ offsets?: {
18226
+ anchor: BlockOffset
18227
+ focus: BlockOffset
18228
+ }
18229
+ }
18230
18230
  | {
18231
18231
  type: 'insert.blocks'
18232
18232
  blocks: Array<PortableTextBlock>
@@ -18418,15 +18418,6 @@ declare const editorMachine: StateMachine<
18418
18418
  name: string
18419
18419
  }
18420
18420
  }
18421
- | {
18422
- type: 'annotation.toggle'
18423
- annotation: {
18424
- name: string
18425
- value: {
18426
- [prop: string]: unknown
18427
- }
18428
- }
18429
- }
18430
18421
  | {
18431
18422
  type: 'block.set'
18432
18423
  at: [KeyedSegment]
@@ -18452,14 +18443,6 @@ declare const editorMachine: StateMachine<
18452
18443
  type: 'decorator.remove'
18453
18444
  decorator: string
18454
18445
  }
18455
- | {
18456
- type: 'decorator.toggle'
18457
- decorator: string
18458
- offsets?: {
18459
- anchor: BlockOffset
18460
- focus: BlockOffset
18461
- }
18462
- }
18463
18446
  | {
18464
18447
  type: 'delete'
18465
18448
  selection: NonNullable<EditorSelection_2>
@@ -18543,6 +18526,23 @@ declare const editorMachine: StateMachine<
18543
18526
  type: 'select'
18544
18527
  selection: EditorSelection_2
18545
18528
  }
18529
+ | {
18530
+ type: 'annotation.toggle'
18531
+ annotation: {
18532
+ name: string
18533
+ value: {
18534
+ [prop: string]: unknown
18535
+ }
18536
+ }
18537
+ }
18538
+ | {
18539
+ type: 'decorator.toggle'
18540
+ decorator: string
18541
+ offsets?: {
18542
+ anchor: BlockOffset
18543
+ focus: BlockOffset
18544
+ }
18545
+ }
18546
18546
  | {
18547
18547
  type: 'insert.blocks'
18548
18548
  blocks: Array<PortableTextBlock>
@@ -18693,15 +18693,6 @@ declare const editorMachine: StateMachine<
18693
18693
  name: string
18694
18694
  }
18695
18695
  }
18696
- | {
18697
- type: 'annotation.toggle'
18698
- annotation: {
18699
- name: string
18700
- value: {
18701
- [prop: string]: unknown
18702
- }
18703
- }
18704
- }
18705
18696
  | {
18706
18697
  type: 'block.set'
18707
18698
  at: [KeyedSegment]
@@ -18727,14 +18718,6 @@ declare const editorMachine: StateMachine<
18727
18718
  type: 'decorator.remove'
18728
18719
  decorator: string
18729
18720
  }
18730
- | {
18731
- type: 'decorator.toggle'
18732
- decorator: string
18733
- offsets?: {
18734
- anchor: BlockOffset
18735
- focus: BlockOffset
18736
- }
18737
- }
18738
18721
  | {
18739
18722
  type: 'delete'
18740
18723
  selection: NonNullable<EditorSelection_2>
@@ -18818,6 +18801,23 @@ declare const editorMachine: StateMachine<
18818
18801
  type: 'select'
18819
18802
  selection: EditorSelection_2
18820
18803
  }
18804
+ | {
18805
+ type: 'annotation.toggle'
18806
+ annotation: {
18807
+ name: string
18808
+ value: {
18809
+ [prop: string]: unknown
18810
+ }
18811
+ }
18812
+ }
18813
+ | {
18814
+ type: 'decorator.toggle'
18815
+ decorator: string
18816
+ offsets?: {
18817
+ anchor: BlockOffset
18818
+ focus: BlockOffset
18819
+ }
18820
+ }
18821
18821
  | {
18822
18822
  type: 'insert.blocks'
18823
18823
  blocks: Array<PortableTextBlock>
@@ -19036,15 +19036,6 @@ declare const editorMachine: StateMachine<
19036
19036
  name: string
19037
19037
  }
19038
19038
  }
19039
- | {
19040
- type: 'annotation.toggle'
19041
- annotation: {
19042
- name: string
19043
- value: {
19044
- [prop: string]: unknown
19045
- }
19046
- }
19047
- }
19048
19039
  | {
19049
19040
  type: 'block.set'
19050
19041
  at: [KeyedSegment]
@@ -19070,14 +19061,6 @@ declare const editorMachine: StateMachine<
19070
19061
  type: 'decorator.remove'
19071
19062
  decorator: string
19072
19063
  }
19073
- | {
19074
- type: 'decorator.toggle'
19075
- decorator: string
19076
- offsets?: {
19077
- anchor: BlockOffset
19078
- focus: BlockOffset
19079
- }
19080
- }
19081
19064
  | {
19082
19065
  type: 'delete'
19083
19066
  selection: NonNullable<EditorSelection_2>
@@ -19161,6 +19144,23 @@ declare const editorMachine: StateMachine<
19161
19144
  type: 'select'
19162
19145
  selection: EditorSelection_2
19163
19146
  }
19147
+ | {
19148
+ type: 'annotation.toggle'
19149
+ annotation: {
19150
+ name: string
19151
+ value: {
19152
+ [prop: string]: unknown
19153
+ }
19154
+ }
19155
+ }
19156
+ | {
19157
+ type: 'decorator.toggle'
19158
+ decorator: string
19159
+ offsets?: {
19160
+ anchor: BlockOffset
19161
+ focus: BlockOffset
19162
+ }
19163
+ }
19164
19164
  | {
19165
19165
  type: 'insert.blocks'
19166
19166
  blocks: Array<PortableTextBlock>
@@ -19347,15 +19347,6 @@ declare const editorMachine: StateMachine<
19347
19347
  name: string
19348
19348
  }
19349
19349
  }
19350
- | {
19351
- type: 'annotation.toggle'
19352
- annotation: {
19353
- name: string
19354
- value: {
19355
- [prop: string]: unknown
19356
- }
19357
- }
19358
- }
19359
19350
  | {
19360
19351
  type: 'block.set'
19361
19352
  at: [KeyedSegment]
@@ -19381,14 +19372,6 @@ declare const editorMachine: StateMachine<
19381
19372
  type: 'decorator.remove'
19382
19373
  decorator: string
19383
19374
  }
19384
- | {
19385
- type: 'decorator.toggle'
19386
- decorator: string
19387
- offsets?: {
19388
- anchor: BlockOffset
19389
- focus: BlockOffset
19390
- }
19391
- }
19392
19375
  | {
19393
19376
  type: 'delete'
19394
19377
  selection: NonNullable<EditorSelection_2>
@@ -19472,6 +19455,23 @@ declare const editorMachine: StateMachine<
19472
19455
  type: 'select'
19473
19456
  selection: EditorSelection_2
19474
19457
  }
19458
+ | {
19459
+ type: 'annotation.toggle'
19460
+ annotation: {
19461
+ name: string
19462
+ value: {
19463
+ [prop: string]: unknown
19464
+ }
19465
+ }
19466
+ }
19467
+ | {
19468
+ type: 'decorator.toggle'
19469
+ decorator: string
19470
+ offsets?: {
19471
+ anchor: BlockOffset
19472
+ focus: BlockOffset
19473
+ }
19474
+ }
19475
19475
  | {
19476
19476
  type: 'insert.blocks'
19477
19477
  blocks: Array<PortableTextBlock>
@@ -19675,15 +19675,6 @@ declare const editorMachine: StateMachine<
19675
19675
  name: string
19676
19676
  }
19677
19677
  }
19678
- | {
19679
- type: 'annotation.toggle'
19680
- annotation: {
19681
- name: string
19682
- value: {
19683
- [prop: string]: unknown
19684
- }
19685
- }
19686
- }
19687
19678
  | {
19688
19679
  type: 'block.set'
19689
19680
  at: [KeyedSegment]
@@ -19709,14 +19700,6 @@ declare const editorMachine: StateMachine<
19709
19700
  type: 'decorator.remove'
19710
19701
  decorator: string
19711
19702
  }
19712
- | {
19713
- type: 'decorator.toggle'
19714
- decorator: string
19715
- offsets?: {
19716
- anchor: BlockOffset
19717
- focus: BlockOffset
19718
- }
19719
- }
19720
19703
  | {
19721
19704
  type: 'delete'
19722
19705
  selection: NonNullable<EditorSelection_2>
@@ -19800,6 +19783,23 @@ declare const editorMachine: StateMachine<
19800
19783
  type: 'select'
19801
19784
  selection: EditorSelection_2
19802
19785
  }
19786
+ | {
19787
+ type: 'annotation.toggle'
19788
+ annotation: {
19789
+ name: string
19790
+ value: {
19791
+ [prop: string]: unknown
19792
+ }
19793
+ }
19794
+ }
19795
+ | {
19796
+ type: 'decorator.toggle'
19797
+ decorator: string
19798
+ offsets?: {
19799
+ anchor: BlockOffset
19800
+ focus: BlockOffset
19801
+ }
19802
+ }
19803
19803
  | {
19804
19804
  type: 'insert.blocks'
19805
19805
  blocks: Array<PortableTextBlock>
@@ -19986,15 +19986,6 @@ declare const editorMachine: StateMachine<
19986
19986
  name: string
19987
19987
  }
19988
19988
  }
19989
- | {
19990
- type: 'annotation.toggle'
19991
- annotation: {
19992
- name: string
19993
- value: {
19994
- [prop: string]: unknown
19995
- }
19996
- }
19997
- }
19998
19989
  | {
19999
19990
  type: 'block.set'
20000
19991
  at: [KeyedSegment]
@@ -20020,14 +20011,6 @@ declare const editorMachine: StateMachine<
20020
20011
  type: 'decorator.remove'
20021
20012
  decorator: string
20022
20013
  }
20023
- | {
20024
- type: 'decorator.toggle'
20025
- decorator: string
20026
- offsets?: {
20027
- anchor: BlockOffset
20028
- focus: BlockOffset
20029
- }
20030
- }
20031
20014
  | {
20032
20015
  type: 'delete'
20033
20016
  selection: NonNullable<EditorSelection_2>
@@ -20111,6 +20094,23 @@ declare const editorMachine: StateMachine<
20111
20094
  type: 'select'
20112
20095
  selection: EditorSelection_2
20113
20096
  }
20097
+ | {
20098
+ type: 'annotation.toggle'
20099
+ annotation: {
20100
+ name: string
20101
+ value: {
20102
+ [prop: string]: unknown
20103
+ }
20104
+ }
20105
+ }
20106
+ | {
20107
+ type: 'decorator.toggle'
20108
+ decorator: string
20109
+ offsets?: {
20110
+ anchor: BlockOffset
20111
+ focus: BlockOffset
20112
+ }
20113
+ }
20114
20114
  | {
20115
20115
  type: 'insert.blocks'
20116
20116
  blocks: Array<PortableTextBlock>
@@ -20469,6 +20469,23 @@ declare type InputBehaviorEvent_2 = {
20469
20469
  declare type InsertPlacement_2 = 'auto' | 'after' | 'before'
20470
20470
 
20471
20471
  declare type InternalBehaviorEvent =
20472
+ | {
20473
+ type: InternalBehaviorEventType<'annotation', 'toggle'>
20474
+ annotation: {
20475
+ name: string
20476
+ value: {
20477
+ [prop: string]: unknown
20478
+ }
20479
+ }
20480
+ }
20481
+ | {
20482
+ type: InternalBehaviorEventType<'decorator', 'toggle'>
20483
+ decorator: string
20484
+ offsets?: {
20485
+ anchor: BlockOffset_2
20486
+ focus: BlockOffset_2
20487
+ }
20488
+ }
20472
20489
  | {
20473
20490
  type: InternalBehaviorEventType<'deserialize'>
20474
20491
  originEvent:
@@ -20573,6 +20590,8 @@ declare type InternalBehaviorEvent =
20573
20590
  * Internal events
20574
20591
  **************************************/
20575
20592
  declare type InternalBehaviorEventNamespace =
20593
+ | 'annotation'
20594
+ | 'decorator'
20576
20595
  | 'deserialize'
20577
20596
  | 'deserialization'
20578
20597
  | 'list item'
@@ -20869,15 +20888,6 @@ export declare type SyntheticBehaviorEvent =
20869
20888
  name: string
20870
20889
  }
20871
20890
  }
20872
- | {
20873
- type: SyntheticBehaviorEventType<'annotation', 'toggle'>
20874
- annotation: {
20875
- name: string
20876
- value: {
20877
- [prop: string]: unknown
20878
- }
20879
- }
20880
- }
20881
20891
  | {
20882
20892
  type: SyntheticBehaviorEventType<'block', 'set'>
20883
20893
  at: [KeyedSegment]
@@ -20903,14 +20913,6 @@ export declare type SyntheticBehaviorEvent =
20903
20913
  type: SyntheticBehaviorEventType<'decorator', 'remove'>
20904
20914
  decorator: string
20905
20915
  }
20906
- | {
20907
- type: SyntheticBehaviorEventType<'decorator', 'toggle'>
20908
- decorator: string
20909
- offsets?: {
20910
- anchor: BlockOffset_2
20911
- focus: BlockOffset_2
20912
- }
20913
- }
20914
20916
  | {
20915
20917
  type: SyntheticBehaviorEventType<'delete'>
20916
20918
  selection: NonNullable<EditorSelection_2>