@portabletext/editor 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lib/_chunks-cjs/behavior.core.cjs +131 -36
  2. package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
  3. package/lib/_chunks-cjs/selector.get-text-before.cjs +8 -8
  4. package/lib/_chunks-cjs/selector.get-text-before.cjs.map +1 -1
  5. package/lib/_chunks-cjs/{selector.is-active-style.cjs → selector.is-at-the-start-of-block.cjs} +29 -3
  6. package/lib/_chunks-cjs/selector.is-at-the-start-of-block.cjs.map +1 -0
  7. package/lib/_chunks-cjs/util.is-empty-text-block.cjs +2 -2
  8. package/lib/_chunks-cjs/util.is-empty-text-block.cjs.map +1 -1
  9. package/lib/_chunks-cjs/util.is-equal-selection-points.cjs +46 -0
  10. package/lib/_chunks-cjs/util.is-equal-selection-points.cjs.map +1 -0
  11. package/lib/_chunks-cjs/util.reverse-selection.cjs +0 -16
  12. package/lib/_chunks-cjs/util.reverse-selection.cjs.map +1 -1
  13. package/lib/_chunks-es/behavior.core.js +99 -4
  14. package/lib/_chunks-es/behavior.core.js.map +1 -1
  15. package/lib/_chunks-es/selector.get-text-before.js +2 -2
  16. package/lib/_chunks-es/{selector.is-active-style.js → selector.is-at-the-start-of-block.js} +29 -2
  17. package/lib/_chunks-es/selector.is-at-the-start-of-block.js.map +1 -0
  18. package/lib/_chunks-es/util.is-empty-text-block.js +1 -1
  19. package/lib/_chunks-es/util.is-equal-selection-points.js +47 -0
  20. package/lib/_chunks-es/util.is-equal-selection-points.js.map +1 -0
  21. package/lib/_chunks-es/util.reverse-selection.js +0 -16
  22. package/lib/_chunks-es/util.reverse-selection.js.map +1 -1
  23. package/lib/behaviors/index.cjs +27 -27
  24. package/lib/behaviors/index.cjs.map +1 -1
  25. package/lib/behaviors/index.d.cts +413 -0
  26. package/lib/behaviors/index.d.ts +413 -0
  27. package/lib/behaviors/index.js +1 -1
  28. package/lib/index.cjs +147 -106
  29. package/lib/index.cjs.map +1 -1
  30. package/lib/index.d.cts +1653 -222
  31. package/lib/index.d.ts +1653 -222
  32. package/lib/index.js +143 -102
  33. package/lib/index.js.map +1 -1
  34. package/lib/selectors/index.cjs +25 -23
  35. package/lib/selectors/index.cjs.map +1 -1
  36. package/lib/selectors/index.d.cts +16 -0
  37. package/lib/selectors/index.d.ts +16 -0
  38. package/lib/selectors/index.js +3 -1
  39. package/lib/utils/index.cjs +5 -3
  40. package/lib/utils/index.cjs.map +1 -1
  41. package/lib/utils/index.d.cts +19 -0
  42. package/lib/utils/index.d.ts +19 -0
  43. package/lib/utils/index.js +4 -2
  44. package/package.json +1 -1
  45. package/src/behavior-actions/behavior.action-utils.insert-block.ts +3 -3
  46. package/src/behavior-actions/behavior.action.block.set.ts +23 -0
  47. package/src/behavior-actions/behavior.action.block.unset.ts +21 -0
  48. package/src/behavior-actions/behavior.action.insert-break.ts +2 -69
  49. package/src/behavior-actions/behavior.action.insert.block.ts +29 -0
  50. package/src/behavior-actions/behavior.actions.ts +28 -9
  51. package/src/behaviors/behavior.core.insert-break.ts +122 -0
  52. package/src/behaviors/behavior.core.ts +6 -2
  53. package/src/behaviors/behavior.types.ts +16 -1
  54. package/src/converters/converter.json.ts +4 -4
  55. package/src/converters/converter.portable-text.deserialize.test.ts +1 -1
  56. package/src/converters/converter.portable-text.ts +4 -4
  57. package/src/converters/converter.text-html.deserialize.test.ts +1 -1
  58. package/src/converters/converter.text-html.serialize.test.ts +1 -1
  59. package/src/converters/converter.text-html.ts +4 -4
  60. package/src/converters/converter.text-plain.test.ts +1 -1
  61. package/src/converters/converter.text-plain.ts +3 -3
  62. package/src/converters/{converter.ts → converter.types.ts} +6 -0
  63. package/src/editor/create-editor.ts +4 -1
  64. package/src/editor/editor-machine.ts +8 -2
  65. package/src/editor/editor-snapshot.ts +1 -1
  66. package/src/editor/plugins/__tests__/withPortableTextMarkModel.test.tsx +2 -2
  67. package/src/editor/plugins/create-with-event-listeners.ts +3 -0
  68. package/src/selectors/index.ts +2 -0
  69. package/src/selectors/selector.is-at-the-end-of-block.ts +22 -0
  70. package/src/selectors/selector.is-at-the-start-of-block.ts +25 -0
  71. package/src/selectors/selector.is-selection-collapsed.ts +6 -2
  72. package/src/utils/index.ts +2 -0
  73. package/src/utils/util.get-block-end-point.ts +34 -0
  74. package/src/utils/util.is-equal-selection-points.ts +13 -0
  75. package/lib/_chunks-cjs/selector.is-active-style.cjs.map +0 -1
  76. package/lib/_chunks-cjs/util.is-keyed-segment.cjs +0 -6
  77. package/lib/_chunks-cjs/util.is-keyed-segment.cjs.map +0 -1
  78. package/lib/_chunks-es/selector.is-active-style.js.map +0 -1
  79. package/lib/_chunks-es/util.is-keyed-segment.js +0 -7
  80. package/lib/_chunks-es/util.is-keyed-segment.js.map +0 -1
  81. /package/src/converters/{converters.ts → converters.core.ts} +0 -0
package/lib/index.d.cts CHANGED
@@ -573,6 +573,8 @@ export declare type EditorEvent =
573
573
  | 'annotation.add'
574
574
  | 'annotation.remove'
575
575
  | 'annotation.toggle'
576
+ | 'block.set'
577
+ | 'block.unset'
576
578
  | 'blur'
577
579
  | 'data transfer.set'
578
580
  | 'decorator.add'
@@ -583,6 +585,7 @@ export declare type EditorEvent =
583
585
  | 'deserialization.failure'
584
586
  | 'deserialization.success'
585
587
  | 'focus'
588
+ | 'insert.block'
586
589
  | 'insert.block object'
587
590
  | 'insert.inline object'
588
591
  | 'insert.span'
@@ -702,6 +705,16 @@ export declare const editorMachine: StateMachine<
702
705
  }
703
706
  }
704
707
  }
708
+ | {
709
+ [props: string]: unknown
710
+ type: 'block.set'
711
+ at: [KeyedSegment]
712
+ }
713
+ | {
714
+ type: 'block.unset'
715
+ at: [KeyedSegment]
716
+ props: Array<string>
717
+ }
705
718
  | {
706
719
  type: 'blur'
707
720
  }
@@ -762,6 +775,11 @@ export declare const editorMachine: StateMachine<
762
775
  }
763
776
  }
764
777
  }
778
+ | {
779
+ type: 'insert.block'
780
+ block: PortableTextBlock
781
+ placement: 'auto' | 'after' | 'before'
782
+ }
765
783
  | {
766
784
  type: 'insert.span'
767
785
  text: string
@@ -805,6 +823,10 @@ export declare const editorMachine: StateMachine<
805
823
  type: 'move.block up'
806
824
  at: [KeyedSegment]
807
825
  }
826
+ | {
827
+ type: 'select'
828
+ selection: EditorSelection
829
+ }
808
830
  | {
809
831
  type: 'select.previous block'
810
832
  }
@@ -945,10 +967,6 @@ export declare const editorMachine: StateMachine<
945
967
  description: string
946
968
  data: unknown
947
969
  }
948
- | {
949
- type: 'select'
950
- selection: EditorSelection
951
- }
952
970
  | {
953
971
  type: 'selection'
954
972
  selection: EditorSelection
@@ -1077,6 +1095,16 @@ export declare const editorMachine: StateMachine<
1077
1095
  }
1078
1096
  }
1079
1097
  }
1098
+ | {
1099
+ [props: string]: unknown
1100
+ type: 'block.set'
1101
+ at: [KeyedSegment]
1102
+ }
1103
+ | {
1104
+ type: 'block.unset'
1105
+ at: [KeyedSegment]
1106
+ props: Array<string>
1107
+ }
1080
1108
  | {
1081
1109
  type: 'blur'
1082
1110
  }
@@ -1137,6 +1165,11 @@ export declare const editorMachine: StateMachine<
1137
1165
  }
1138
1166
  }
1139
1167
  }
1168
+ | {
1169
+ type: 'insert.block'
1170
+ block: PortableTextBlock
1171
+ placement: 'auto' | 'after' | 'before'
1172
+ }
1140
1173
  | {
1141
1174
  type: 'insert.span'
1142
1175
  text: string
@@ -1180,6 +1213,10 @@ export declare const editorMachine: StateMachine<
1180
1213
  type: 'move.block up'
1181
1214
  at: [KeyedSegment]
1182
1215
  }
1216
+ | {
1217
+ type: 'select'
1218
+ selection: EditorSelection
1219
+ }
1183
1220
  | {
1184
1221
  type: 'select.previous block'
1185
1222
  }
@@ -1264,10 +1301,6 @@ export declare const editorMachine: StateMachine<
1264
1301
  description: string
1265
1302
  data: unknown
1266
1303
  }
1267
- | {
1268
- type: 'select'
1269
- selection: EditorSelection
1270
- }
1271
1304
  | {
1272
1305
  type: 'selection'
1273
1306
  selection: EditorSelection
@@ -1370,6 +1403,16 @@ export declare const editorMachine: StateMachine<
1370
1403
  }
1371
1404
  }
1372
1405
  }
1406
+ | {
1407
+ [props: string]: unknown
1408
+ type: 'block.set'
1409
+ at: [KeyedSegment]
1410
+ }
1411
+ | {
1412
+ type: 'block.unset'
1413
+ at: [KeyedSegment]
1414
+ props: Array<string>
1415
+ }
1373
1416
  | {
1374
1417
  type: 'blur'
1375
1418
  }
@@ -1430,6 +1473,11 @@ export declare const editorMachine: StateMachine<
1430
1473
  }
1431
1474
  }
1432
1475
  }
1476
+ | {
1477
+ type: 'insert.block'
1478
+ block: PortableTextBlock
1479
+ placement: 'auto' | 'after' | 'before'
1480
+ }
1433
1481
  | {
1434
1482
  type: 'insert.span'
1435
1483
  text: string
@@ -1473,6 +1521,10 @@ export declare const editorMachine: StateMachine<
1473
1521
  type: 'move.block up'
1474
1522
  at: [KeyedSegment]
1475
1523
  }
1524
+ | {
1525
+ type: 'select'
1526
+ selection: EditorSelection
1527
+ }
1476
1528
  | {
1477
1529
  type: 'select.previous block'
1478
1530
  }
@@ -1613,10 +1665,6 @@ export declare const editorMachine: StateMachine<
1613
1665
  description: string
1614
1666
  data: unknown
1615
1667
  }
1616
- | {
1617
- type: 'select'
1618
- selection: EditorSelection
1619
- }
1620
1668
  | {
1621
1669
  type: 'selection'
1622
1670
  selection: EditorSelection
@@ -1670,6 +1718,16 @@ export declare const editorMachine: StateMachine<
1670
1718
  }
1671
1719
  }
1672
1720
  }
1721
+ | {
1722
+ [props: string]: unknown
1723
+ type: 'block.set'
1724
+ at: [KeyedSegment]
1725
+ }
1726
+ | {
1727
+ type: 'block.unset'
1728
+ at: [KeyedSegment]
1729
+ props: Array<string>
1730
+ }
1673
1731
  | {
1674
1732
  type: 'blur'
1675
1733
  }
@@ -1730,6 +1788,11 @@ export declare const editorMachine: StateMachine<
1730
1788
  }
1731
1789
  }
1732
1790
  }
1791
+ | {
1792
+ type: 'insert.block'
1793
+ block: PortableTextBlock
1794
+ placement: 'auto' | 'after' | 'before'
1795
+ }
1733
1796
  | {
1734
1797
  type: 'insert.span'
1735
1798
  text: string
@@ -1773,6 +1836,10 @@ export declare const editorMachine: StateMachine<
1773
1836
  type: 'move.block up'
1774
1837
  at: [KeyedSegment]
1775
1838
  }
1839
+ | {
1840
+ type: 'select'
1841
+ selection: EditorSelection
1842
+ }
1776
1843
  | {
1777
1844
  type: 'select.previous block'
1778
1845
  }
@@ -1913,10 +1980,6 @@ export declare const editorMachine: StateMachine<
1913
1980
  description: string
1914
1981
  data: unknown
1915
1982
  }
1916
- | {
1917
- type: 'select'
1918
- selection: EditorSelection
1919
- }
1920
1983
  | {
1921
1984
  type: 'selection'
1922
1985
  selection: EditorSelection
@@ -2000,6 +2063,16 @@ export declare const editorMachine: StateMachine<
2000
2063
  }
2001
2064
  }
2002
2065
  }
2066
+ | {
2067
+ [props: string]: unknown
2068
+ type: 'block.set'
2069
+ at: [KeyedSegment]
2070
+ }
2071
+ | {
2072
+ type: 'block.unset'
2073
+ at: [KeyedSegment]
2074
+ props: Array<string>
2075
+ }
2003
2076
  | {
2004
2077
  type: 'blur'
2005
2078
  }
@@ -2060,6 +2133,11 @@ export declare const editorMachine: StateMachine<
2060
2133
  }
2061
2134
  }
2062
2135
  }
2136
+ | {
2137
+ type: 'insert.block'
2138
+ block: PortableTextBlock
2139
+ placement: 'auto' | 'after' | 'before'
2140
+ }
2063
2141
  | {
2064
2142
  type: 'insert.span'
2065
2143
  text: string
@@ -2103,6 +2181,10 @@ export declare const editorMachine: StateMachine<
2103
2181
  type: 'move.block up'
2104
2182
  at: [KeyedSegment]
2105
2183
  }
2184
+ | {
2185
+ type: 'select'
2186
+ selection: EditorSelection
2187
+ }
2106
2188
  | {
2107
2189
  type: 'select.previous block'
2108
2190
  }
@@ -2243,10 +2325,6 @@ export declare const editorMachine: StateMachine<
2243
2325
  description: string
2244
2326
  data: unknown
2245
2327
  }
2246
- | {
2247
- type: 'select'
2248
- selection: EditorSelection
2249
- }
2250
2328
  | {
2251
2329
  type: 'selection'
2252
2330
  selection: EditorSelection
@@ -2298,6 +2376,16 @@ export declare const editorMachine: StateMachine<
2298
2376
  }
2299
2377
  }
2300
2378
  }
2379
+ | {
2380
+ [props: string]: unknown
2381
+ type: 'block.set'
2382
+ at: [KeyedSegment]
2383
+ }
2384
+ | {
2385
+ type: 'block.unset'
2386
+ at: [KeyedSegment]
2387
+ props: Array<string>
2388
+ }
2301
2389
  | {
2302
2390
  type: 'blur'
2303
2391
  }
@@ -2358,6 +2446,11 @@ export declare const editorMachine: StateMachine<
2358
2446
  }
2359
2447
  }
2360
2448
  }
2449
+ | {
2450
+ type: 'insert.block'
2451
+ block: PortableTextBlock
2452
+ placement: 'auto' | 'after' | 'before'
2453
+ }
2361
2454
  | {
2362
2455
  type: 'insert.span'
2363
2456
  text: string
@@ -2401,6 +2494,10 @@ export declare const editorMachine: StateMachine<
2401
2494
  type: 'move.block up'
2402
2495
  at: [KeyedSegment]
2403
2496
  }
2497
+ | {
2498
+ type: 'select'
2499
+ selection: EditorSelection
2500
+ }
2404
2501
  | {
2405
2502
  type: 'select.previous block'
2406
2503
  }
@@ -2485,10 +2582,6 @@ export declare const editorMachine: StateMachine<
2485
2582
  description: string
2486
2583
  data: unknown
2487
2584
  }
2488
- | {
2489
- type: 'select'
2490
- selection: EditorSelection
2491
- }
2492
2585
  | {
2493
2586
  type: 'selection'
2494
2587
  selection: EditorSelection
@@ -2560,6 +2653,16 @@ export declare const editorMachine: StateMachine<
2560
2653
  }
2561
2654
  }
2562
2655
  }
2656
+ | {
2657
+ [props: string]: unknown
2658
+ type: 'block.set'
2659
+ at: [KeyedSegment]
2660
+ }
2661
+ | {
2662
+ type: 'block.unset'
2663
+ at: [KeyedSegment]
2664
+ props: Array<string>
2665
+ }
2563
2666
  | {
2564
2667
  type: 'blur'
2565
2668
  }
@@ -2620,6 +2723,11 @@ export declare const editorMachine: StateMachine<
2620
2723
  }
2621
2724
  }
2622
2725
  }
2726
+ | {
2727
+ type: 'insert.block'
2728
+ block: PortableTextBlock
2729
+ placement: 'auto' | 'after' | 'before'
2730
+ }
2623
2731
  | {
2624
2732
  type: 'insert.span'
2625
2733
  text: string
@@ -2663,6 +2771,10 @@ export declare const editorMachine: StateMachine<
2663
2771
  type: 'move.block up'
2664
2772
  at: [KeyedSegment]
2665
2773
  }
2774
+ | {
2775
+ type: 'select'
2776
+ selection: EditorSelection
2777
+ }
2666
2778
  | {
2667
2779
  type: 'select.previous block'
2668
2780
  }
@@ -2803,10 +2915,6 @@ export declare const editorMachine: StateMachine<
2803
2915
  description: string
2804
2916
  data: unknown
2805
2917
  }
2806
- | {
2807
- type: 'select'
2808
- selection: EditorSelection
2809
- }
2810
2918
  | {
2811
2919
  type: 'selection'
2812
2920
  selection: EditorSelection
@@ -2858,6 +2966,16 @@ export declare const editorMachine: StateMachine<
2858
2966
  }
2859
2967
  }
2860
2968
  }
2969
+ | {
2970
+ [props: string]: unknown
2971
+ type: 'block.set'
2972
+ at: [KeyedSegment]
2973
+ }
2974
+ | {
2975
+ type: 'block.unset'
2976
+ at: [KeyedSegment]
2977
+ props: Array<string>
2978
+ }
2861
2979
  | {
2862
2980
  type: 'blur'
2863
2981
  }
@@ -2918,6 +3036,11 @@ export declare const editorMachine: StateMachine<
2918
3036
  }
2919
3037
  }
2920
3038
  }
3039
+ | {
3040
+ type: 'insert.block'
3041
+ block: PortableTextBlock
3042
+ placement: 'auto' | 'after' | 'before'
3043
+ }
2921
3044
  | {
2922
3045
  type: 'insert.span'
2923
3046
  text: string
@@ -2961,6 +3084,10 @@ export declare const editorMachine: StateMachine<
2961
3084
  type: 'move.block up'
2962
3085
  at: [KeyedSegment]
2963
3086
  }
3087
+ | {
3088
+ type: 'select'
3089
+ selection: EditorSelection
3090
+ }
2964
3091
  | {
2965
3092
  type: 'select.previous block'
2966
3093
  }
@@ -3045,10 +3172,6 @@ export declare const editorMachine: StateMachine<
3045
3172
  description: string
3046
3173
  data: unknown
3047
3174
  }
3048
- | {
3049
- type: 'select'
3050
- selection: EditorSelection
3051
- }
3052
3175
  | {
3053
3176
  type: 'selection'
3054
3177
  selection: EditorSelection
@@ -3121,6 +3244,16 @@ export declare const editorMachine: StateMachine<
3121
3244
  }
3122
3245
  }
3123
3246
  }
3247
+ | {
3248
+ [props: string]: unknown
3249
+ type: 'block.set'
3250
+ at: [KeyedSegment]
3251
+ }
3252
+ | {
3253
+ type: 'block.unset'
3254
+ at: [KeyedSegment]
3255
+ props: Array<string>
3256
+ }
3124
3257
  | {
3125
3258
  type: 'blur'
3126
3259
  }
@@ -3181,6 +3314,11 @@ export declare const editorMachine: StateMachine<
3181
3314
  }
3182
3315
  }
3183
3316
  }
3317
+ | {
3318
+ type: 'insert.block'
3319
+ block: PortableTextBlock
3320
+ placement: 'auto' | 'after' | 'before'
3321
+ }
3184
3322
  | {
3185
3323
  type: 'insert.span'
3186
3324
  text: string
@@ -3224,6 +3362,10 @@ export declare const editorMachine: StateMachine<
3224
3362
  type: 'move.block up'
3225
3363
  at: [KeyedSegment]
3226
3364
  }
3365
+ | {
3366
+ type: 'select'
3367
+ selection: EditorSelection
3368
+ }
3227
3369
  | {
3228
3370
  type: 'select.previous block'
3229
3371
  }
@@ -3364,10 +3506,6 @@ export declare const editorMachine: StateMachine<
3364
3506
  description: string
3365
3507
  data: unknown
3366
3508
  }
3367
- | {
3368
- type: 'select'
3369
- selection: EditorSelection
3370
- }
3371
3509
  | {
3372
3510
  type: 'selection'
3373
3511
  selection: EditorSelection
@@ -3419,6 +3557,16 @@ export declare const editorMachine: StateMachine<
3419
3557
  }
3420
3558
  }
3421
3559
  }
3560
+ | {
3561
+ [props: string]: unknown
3562
+ type: 'block.set'
3563
+ at: [KeyedSegment]
3564
+ }
3565
+ | {
3566
+ type: 'block.unset'
3567
+ at: [KeyedSegment]
3568
+ props: Array<string>
3569
+ }
3422
3570
  | {
3423
3571
  type: 'blur'
3424
3572
  }
@@ -3479,6 +3627,11 @@ export declare const editorMachine: StateMachine<
3479
3627
  }
3480
3628
  }
3481
3629
  }
3630
+ | {
3631
+ type: 'insert.block'
3632
+ block: PortableTextBlock
3633
+ placement: 'auto' | 'after' | 'before'
3634
+ }
3482
3635
  | {
3483
3636
  type: 'insert.span'
3484
3637
  text: string
@@ -3522,6 +3675,10 @@ export declare const editorMachine: StateMachine<
3522
3675
  type: 'move.block up'
3523
3676
  at: [KeyedSegment]
3524
3677
  }
3678
+ | {
3679
+ type: 'select'
3680
+ selection: EditorSelection
3681
+ }
3525
3682
  | {
3526
3683
  type: 'select.previous block'
3527
3684
  }
@@ -3606,10 +3763,6 @@ export declare const editorMachine: StateMachine<
3606
3763
  description: string
3607
3764
  data: unknown
3608
3765
  }
3609
- | {
3610
- type: 'select'
3611
- selection: EditorSelection
3612
- }
3613
3766
  | {
3614
3767
  type: 'selection'
3615
3768
  selection: EditorSelection
@@ -3683,6 +3836,16 @@ export declare const editorMachine: StateMachine<
3683
3836
  }
3684
3837
  }
3685
3838
  }
3839
+ | {
3840
+ [props: string]: unknown
3841
+ type: 'block.set'
3842
+ at: [KeyedSegment]
3843
+ }
3844
+ | {
3845
+ type: 'block.unset'
3846
+ at: [KeyedSegment]
3847
+ props: Array<string>
3848
+ }
3686
3849
  | {
3687
3850
  type: 'blur'
3688
3851
  }
@@ -3743,6 +3906,11 @@ export declare const editorMachine: StateMachine<
3743
3906
  }
3744
3907
  }
3745
3908
  }
3909
+ | {
3910
+ type: 'insert.block'
3911
+ block: PortableTextBlock
3912
+ placement: 'auto' | 'after' | 'before'
3913
+ }
3746
3914
  | {
3747
3915
  type: 'insert.span'
3748
3916
  text: string
@@ -3786,6 +3954,10 @@ export declare const editorMachine: StateMachine<
3786
3954
  type: 'move.block up'
3787
3955
  at: [KeyedSegment]
3788
3956
  }
3957
+ | {
3958
+ type: 'select'
3959
+ selection: EditorSelection
3960
+ }
3789
3961
  | {
3790
3962
  type: 'select.previous block'
3791
3963
  }
@@ -3926,10 +4098,6 @@ export declare const editorMachine: StateMachine<
3926
4098
  description: string
3927
4099
  data: unknown
3928
4100
  }
3929
- | {
3930
- type: 'select'
3931
- selection: EditorSelection
3932
- }
3933
4101
  | {
3934
4102
  type: 'selection'
3935
4103
  selection: EditorSelection
@@ -3981,6 +4149,16 @@ export declare const editorMachine: StateMachine<
3981
4149
  }
3982
4150
  }
3983
4151
  }
4152
+ | {
4153
+ [props: string]: unknown
4154
+ type: 'block.set'
4155
+ at: [KeyedSegment]
4156
+ }
4157
+ | {
4158
+ type: 'block.unset'
4159
+ at: [KeyedSegment]
4160
+ props: Array<string>
4161
+ }
3984
4162
  | {
3985
4163
  type: 'blur'
3986
4164
  }
@@ -4041,6 +4219,11 @@ export declare const editorMachine: StateMachine<
4041
4219
  }
4042
4220
  }
4043
4221
  }
4222
+ | {
4223
+ type: 'insert.block'
4224
+ block: PortableTextBlock
4225
+ placement: 'auto' | 'after' | 'before'
4226
+ }
4044
4227
  | {
4045
4228
  type: 'insert.span'
4046
4229
  text: string
@@ -4084,6 +4267,10 @@ export declare const editorMachine: StateMachine<
4084
4267
  type: 'move.block up'
4085
4268
  at: [KeyedSegment]
4086
4269
  }
4270
+ | {
4271
+ type: 'select'
4272
+ selection: EditorSelection
4273
+ }
4087
4274
  | {
4088
4275
  type: 'select.previous block'
4089
4276
  }
@@ -4168,10 +4355,6 @@ export declare const editorMachine: StateMachine<
4168
4355
  description: string
4169
4356
  data: unknown
4170
4357
  }
4171
- | {
4172
- type: 'select'
4173
- selection: EditorSelection
4174
- }
4175
4358
  | {
4176
4359
  type: 'selection'
4177
4360
  selection: EditorSelection
@@ -4244,6 +4427,16 @@ export declare const editorMachine: StateMachine<
4244
4427
  }
4245
4428
  }
4246
4429
  }
4430
+ | {
4431
+ [props: string]: unknown
4432
+ type: 'block.set'
4433
+ at: [KeyedSegment]
4434
+ }
4435
+ | {
4436
+ type: 'block.unset'
4437
+ at: [KeyedSegment]
4438
+ props: Array<string>
4439
+ }
4247
4440
  | {
4248
4441
  type: 'blur'
4249
4442
  }
@@ -4304,6 +4497,11 @@ export declare const editorMachine: StateMachine<
4304
4497
  }
4305
4498
  }
4306
4499
  }
4500
+ | {
4501
+ type: 'insert.block'
4502
+ block: PortableTextBlock
4503
+ placement: 'auto' | 'after' | 'before'
4504
+ }
4307
4505
  | {
4308
4506
  type: 'insert.span'
4309
4507
  text: string
@@ -4347,6 +4545,10 @@ export declare const editorMachine: StateMachine<
4347
4545
  type: 'move.block up'
4348
4546
  at: [KeyedSegment]
4349
4547
  }
4548
+ | {
4549
+ type: 'select'
4550
+ selection: EditorSelection
4551
+ }
4350
4552
  | {
4351
4553
  type: 'select.previous block'
4352
4554
  }
@@ -4487,10 +4689,6 @@ export declare const editorMachine: StateMachine<
4487
4689
  description: string
4488
4690
  data: unknown
4489
4691
  }
4490
- | {
4491
- type: 'select'
4492
- selection: EditorSelection
4493
- }
4494
4692
  | {
4495
4693
  type: 'selection'
4496
4694
  selection: EditorSelection
@@ -4560,6 +4758,16 @@ export declare const editorMachine: StateMachine<
4560
4758
  }
4561
4759
  }
4562
4760
  }
4761
+ | {
4762
+ [props: string]: unknown
4763
+ type: 'block.set'
4764
+ at: [KeyedSegment]
4765
+ }
4766
+ | {
4767
+ type: 'block.unset'
4768
+ at: [KeyedSegment]
4769
+ props: Array<string>
4770
+ }
4563
4771
  | {
4564
4772
  type: 'blur'
4565
4773
  }
@@ -4620,6 +4828,11 @@ export declare const editorMachine: StateMachine<
4620
4828
  }
4621
4829
  }
4622
4830
  }
4831
+ | {
4832
+ type: 'insert.block'
4833
+ block: PortableTextBlock
4834
+ placement: 'auto' | 'after' | 'before'
4835
+ }
4623
4836
  | {
4624
4837
  type: 'insert.span'
4625
4838
  text: string
@@ -4663,6 +4876,10 @@ export declare const editorMachine: StateMachine<
4663
4876
  type: 'move.block up'
4664
4877
  at: [KeyedSegment]
4665
4878
  }
4879
+ | {
4880
+ type: 'select'
4881
+ selection: EditorSelection
4882
+ }
4666
4883
  | {
4667
4884
  type: 'select.previous block'
4668
4885
  }
@@ -4803,10 +5020,6 @@ export declare const editorMachine: StateMachine<
4803
5020
  description: string
4804
5021
  data: unknown
4805
5022
  }
4806
- | {
4807
- type: 'select'
4808
- selection: EditorSelection
4809
- }
4810
5023
  | {
4811
5024
  type: 'selection'
4812
5025
  selection: EditorSelection
@@ -4858,6 +5071,16 @@ export declare const editorMachine: StateMachine<
4858
5071
  }
4859
5072
  }
4860
5073
  }
5074
+ | {
5075
+ [props: string]: unknown
5076
+ type: 'block.set'
5077
+ at: [KeyedSegment]
5078
+ }
5079
+ | {
5080
+ type: 'block.unset'
5081
+ at: [KeyedSegment]
5082
+ props: Array<string>
5083
+ }
4861
5084
  | {
4862
5085
  type: 'blur'
4863
5086
  }
@@ -4918,6 +5141,11 @@ export declare const editorMachine: StateMachine<
4918
5141
  }
4919
5142
  }
4920
5143
  }
5144
+ | {
5145
+ type: 'insert.block'
5146
+ block: PortableTextBlock
5147
+ placement: 'auto' | 'after' | 'before'
5148
+ }
4921
5149
  | {
4922
5150
  type: 'insert.span'
4923
5151
  text: string
@@ -4961,6 +5189,10 @@ export declare const editorMachine: StateMachine<
4961
5189
  type: 'move.block up'
4962
5190
  at: [KeyedSegment]
4963
5191
  }
5192
+ | {
5193
+ type: 'select'
5194
+ selection: EditorSelection
5195
+ }
4964
5196
  | {
4965
5197
  type: 'select.previous block'
4966
5198
  }
@@ -5045,10 +5277,6 @@ export declare const editorMachine: StateMachine<
5045
5277
  description: string
5046
5278
  data: unknown
5047
5279
  }
5048
- | {
5049
- type: 'select'
5050
- selection: EditorSelection
5051
- }
5052
5280
  | {
5053
5281
  type: 'selection'
5054
5282
  selection: EditorSelection
@@ -5122,7 +5350,17 @@ export declare const editorMachine: StateMachine<
5122
5350
  }
5123
5351
  }
5124
5352
  | {
5125
- type: 'blur'
5353
+ [props: string]: unknown
5354
+ type: 'block.set'
5355
+ at: [KeyedSegment]
5356
+ }
5357
+ | {
5358
+ type: 'block.unset'
5359
+ at: [KeyedSegment]
5360
+ props: Array<string>
5361
+ }
5362
+ | {
5363
+ type: 'blur'
5126
5364
  }
5127
5365
  | {
5128
5366
  type: 'data transfer.set'
@@ -5181,6 +5419,11 @@ export declare const editorMachine: StateMachine<
5181
5419
  }
5182
5420
  }
5183
5421
  }
5422
+ | {
5423
+ type: 'insert.block'
5424
+ block: PortableTextBlock
5425
+ placement: 'auto' | 'after' | 'before'
5426
+ }
5184
5427
  | {
5185
5428
  type: 'insert.span'
5186
5429
  text: string
@@ -5224,6 +5467,10 @@ export declare const editorMachine: StateMachine<
5224
5467
  type: 'move.block up'
5225
5468
  at: [KeyedSegment]
5226
5469
  }
5470
+ | {
5471
+ type: 'select'
5472
+ selection: EditorSelection
5473
+ }
5227
5474
  | {
5228
5475
  type: 'select.previous block'
5229
5476
  }
@@ -5364,10 +5611,6 @@ export declare const editorMachine: StateMachine<
5364
5611
  description: string
5365
5612
  data: unknown
5366
5613
  }
5367
- | {
5368
- type: 'select'
5369
- selection: EditorSelection
5370
- }
5371
5614
  | {
5372
5615
  type: 'selection'
5373
5616
  selection: EditorSelection
@@ -5419,6 +5662,16 @@ export declare const editorMachine: StateMachine<
5419
5662
  }
5420
5663
  }
5421
5664
  }
5665
+ | {
5666
+ [props: string]: unknown
5667
+ type: 'block.set'
5668
+ at: [KeyedSegment]
5669
+ }
5670
+ | {
5671
+ type: 'block.unset'
5672
+ at: [KeyedSegment]
5673
+ props: Array<string>
5674
+ }
5422
5675
  | {
5423
5676
  type: 'blur'
5424
5677
  }
@@ -5479,6 +5732,11 @@ export declare const editorMachine: StateMachine<
5479
5732
  }
5480
5733
  }
5481
5734
  }
5735
+ | {
5736
+ type: 'insert.block'
5737
+ block: PortableTextBlock
5738
+ placement: 'auto' | 'after' | 'before'
5739
+ }
5482
5740
  | {
5483
5741
  type: 'insert.span'
5484
5742
  text: string
@@ -5522,6 +5780,10 @@ export declare const editorMachine: StateMachine<
5522
5780
  type: 'move.block up'
5523
5781
  at: [KeyedSegment]
5524
5782
  }
5783
+ | {
5784
+ type: 'select'
5785
+ selection: EditorSelection
5786
+ }
5525
5787
  | {
5526
5788
  type: 'select.previous block'
5527
5789
  }
@@ -5606,10 +5868,6 @@ export declare const editorMachine: StateMachine<
5606
5868
  description: string
5607
5869
  data: unknown
5608
5870
  }
5609
- | {
5610
- type: 'select'
5611
- selection: EditorSelection
5612
- }
5613
5871
  | {
5614
5872
  type: 'selection'
5615
5873
  selection: EditorSelection
@@ -5681,6 +5939,16 @@ export declare const editorMachine: StateMachine<
5681
5939
  }
5682
5940
  }
5683
5941
  }
5942
+ | {
5943
+ [props: string]: unknown
5944
+ type: 'block.set'
5945
+ at: [KeyedSegment]
5946
+ }
5947
+ | {
5948
+ type: 'block.unset'
5949
+ at: [KeyedSegment]
5950
+ props: Array<string>
5951
+ }
5684
5952
  | {
5685
5953
  type: 'blur'
5686
5954
  }
@@ -5741,6 +6009,11 @@ export declare const editorMachine: StateMachine<
5741
6009
  }
5742
6010
  }
5743
6011
  }
6012
+ | {
6013
+ type: 'insert.block'
6014
+ block: PortableTextBlock
6015
+ placement: 'auto' | 'after' | 'before'
6016
+ }
5744
6017
  | {
5745
6018
  type: 'insert.span'
5746
6019
  text: string
@@ -5784,6 +6057,10 @@ export declare const editorMachine: StateMachine<
5784
6057
  type: 'move.block up'
5785
6058
  at: [KeyedSegment]
5786
6059
  }
6060
+ | {
6061
+ type: 'select'
6062
+ selection: EditorSelection
6063
+ }
5787
6064
  | {
5788
6065
  type: 'select.previous block'
5789
6066
  }
@@ -5924,10 +6201,6 @@ export declare const editorMachine: StateMachine<
5924
6201
  description: string
5925
6202
  data: unknown
5926
6203
  }
5927
- | {
5928
- type: 'select'
5929
- selection: EditorSelection
5930
- }
5931
6204
  | {
5932
6205
  type: 'selection'
5933
6206
  selection: EditorSelection
@@ -5979,6 +6252,16 @@ export declare const editorMachine: StateMachine<
5979
6252
  }
5980
6253
  }
5981
6254
  }
6255
+ | {
6256
+ [props: string]: unknown
6257
+ type: 'block.set'
6258
+ at: [KeyedSegment]
6259
+ }
6260
+ | {
6261
+ type: 'block.unset'
6262
+ at: [KeyedSegment]
6263
+ props: Array<string>
6264
+ }
5982
6265
  | {
5983
6266
  type: 'blur'
5984
6267
  }
@@ -6039,6 +6322,11 @@ export declare const editorMachine: StateMachine<
6039
6322
  }
6040
6323
  }
6041
6324
  }
6325
+ | {
6326
+ type: 'insert.block'
6327
+ block: PortableTextBlock
6328
+ placement: 'auto' | 'after' | 'before'
6329
+ }
6042
6330
  | {
6043
6331
  type: 'insert.span'
6044
6332
  text: string
@@ -6082,6 +6370,10 @@ export declare const editorMachine: StateMachine<
6082
6370
  type: 'move.block up'
6083
6371
  at: [KeyedSegment]
6084
6372
  }
6373
+ | {
6374
+ type: 'select'
6375
+ selection: EditorSelection
6376
+ }
6085
6377
  | {
6086
6378
  type: 'select.previous block'
6087
6379
  }
@@ -6166,10 +6458,6 @@ export declare const editorMachine: StateMachine<
6166
6458
  description: string
6167
6459
  data: unknown
6168
6460
  }
6169
- | {
6170
- type: 'select'
6171
- selection: EditorSelection
6172
- }
6173
6461
  | {
6174
6462
  type: 'selection'
6175
6463
  selection: EditorSelection
@@ -6240,6 +6528,16 @@ export declare const editorMachine: StateMachine<
6240
6528
  }
6241
6529
  }
6242
6530
  }
6531
+ | {
6532
+ [props: string]: unknown
6533
+ type: 'block.set'
6534
+ at: [KeyedSegment]
6535
+ }
6536
+ | {
6537
+ type: 'block.unset'
6538
+ at: [KeyedSegment]
6539
+ props: Array<string>
6540
+ }
6243
6541
  | {
6244
6542
  type: 'blur'
6245
6543
  }
@@ -6300,6 +6598,11 @@ export declare const editorMachine: StateMachine<
6300
6598
  }
6301
6599
  }
6302
6600
  }
6601
+ | {
6602
+ type: 'insert.block'
6603
+ block: PortableTextBlock
6604
+ placement: 'auto' | 'after' | 'before'
6605
+ }
6303
6606
  | {
6304
6607
  type: 'insert.span'
6305
6608
  text: string
@@ -6343,6 +6646,10 @@ export declare const editorMachine: StateMachine<
6343
6646
  type: 'move.block up'
6344
6647
  at: [KeyedSegment]
6345
6648
  }
6649
+ | {
6650
+ type: 'select'
6651
+ selection: EditorSelection
6652
+ }
6346
6653
  | {
6347
6654
  type: 'select.previous block'
6348
6655
  }
@@ -6483,10 +6790,6 @@ export declare const editorMachine: StateMachine<
6483
6790
  description: string
6484
6791
  data: unknown
6485
6792
  }
6486
- | {
6487
- type: 'select'
6488
- selection: EditorSelection
6489
- }
6490
6793
  | {
6491
6794
  type: 'selection'
6492
6795
  selection: EditorSelection
@@ -6538,6 +6841,16 @@ export declare const editorMachine: StateMachine<
6538
6841
  }
6539
6842
  }
6540
6843
  }
6844
+ | {
6845
+ [props: string]: unknown
6846
+ type: 'block.set'
6847
+ at: [KeyedSegment]
6848
+ }
6849
+ | {
6850
+ type: 'block.unset'
6851
+ at: [KeyedSegment]
6852
+ props: Array<string>
6853
+ }
6541
6854
  | {
6542
6855
  type: 'blur'
6543
6856
  }
@@ -6598,6 +6911,11 @@ export declare const editorMachine: StateMachine<
6598
6911
  }
6599
6912
  }
6600
6913
  }
6914
+ | {
6915
+ type: 'insert.block'
6916
+ block: PortableTextBlock
6917
+ placement: 'auto' | 'after' | 'before'
6918
+ }
6601
6919
  | {
6602
6920
  type: 'insert.span'
6603
6921
  text: string
@@ -6641,6 +6959,10 @@ export declare const editorMachine: StateMachine<
6641
6959
  type: 'move.block up'
6642
6960
  at: [KeyedSegment]
6643
6961
  }
6962
+ | {
6963
+ type: 'select'
6964
+ selection: EditorSelection
6965
+ }
6644
6966
  | {
6645
6967
  type: 'select.previous block'
6646
6968
  }
@@ -6725,10 +7047,6 @@ export declare const editorMachine: StateMachine<
6725
7047
  description: string
6726
7048
  data: unknown
6727
7049
  }
6728
- | {
6729
- type: 'select'
6730
- selection: EditorSelection
6731
- }
6732
7050
  | {
6733
7051
  type: 'selection'
6734
7052
  selection: EditorSelection
@@ -6797,6 +7115,16 @@ export declare const editorMachine: StateMachine<
6797
7115
  }
6798
7116
  }
6799
7117
  }
7118
+ | {
7119
+ [props: string]: unknown
7120
+ type: 'block.set'
7121
+ at: [KeyedSegment]
7122
+ }
7123
+ | {
7124
+ type: 'block.unset'
7125
+ at: [KeyedSegment]
7126
+ props: Array<string>
7127
+ }
6800
7128
  | {
6801
7129
  type: 'blur'
6802
7130
  }
@@ -6857,6 +7185,11 @@ export declare const editorMachine: StateMachine<
6857
7185
  }
6858
7186
  }
6859
7187
  }
7188
+ | {
7189
+ type: 'insert.block'
7190
+ block: PortableTextBlock
7191
+ placement: 'auto' | 'after' | 'before'
7192
+ }
6860
7193
  | {
6861
7194
  type: 'insert.span'
6862
7195
  text: string
@@ -6900,6 +7233,10 @@ export declare const editorMachine: StateMachine<
6900
7233
  type: 'move.block up'
6901
7234
  at: [KeyedSegment]
6902
7235
  }
7236
+ | {
7237
+ type: 'select'
7238
+ selection: EditorSelection
7239
+ }
6903
7240
  | {
6904
7241
  type: 'select.previous block'
6905
7242
  }
@@ -7040,10 +7377,6 @@ export declare const editorMachine: StateMachine<
7040
7377
  description: string
7041
7378
  data: unknown
7042
7379
  }
7043
- | {
7044
- type: 'select'
7045
- selection: EditorSelection
7046
- }
7047
7380
  | {
7048
7381
  type: 'selection'
7049
7382
  selection: EditorSelection
@@ -7095,6 +7428,16 @@ export declare const editorMachine: StateMachine<
7095
7428
  }
7096
7429
  }
7097
7430
  }
7431
+ | {
7432
+ [props: string]: unknown
7433
+ type: 'block.set'
7434
+ at: [KeyedSegment]
7435
+ }
7436
+ | {
7437
+ type: 'block.unset'
7438
+ at: [KeyedSegment]
7439
+ props: Array<string>
7440
+ }
7098
7441
  | {
7099
7442
  type: 'blur'
7100
7443
  }
@@ -7155,6 +7498,11 @@ export declare const editorMachine: StateMachine<
7155
7498
  }
7156
7499
  }
7157
7500
  }
7501
+ | {
7502
+ type: 'insert.block'
7503
+ block: PortableTextBlock
7504
+ placement: 'auto' | 'after' | 'before'
7505
+ }
7158
7506
  | {
7159
7507
  type: 'insert.span'
7160
7508
  text: string
@@ -7198,6 +7546,10 @@ export declare const editorMachine: StateMachine<
7198
7546
  type: 'move.block up'
7199
7547
  at: [KeyedSegment]
7200
7548
  }
7549
+ | {
7550
+ type: 'select'
7551
+ selection: EditorSelection
7552
+ }
7201
7553
  | {
7202
7554
  type: 'select.previous block'
7203
7555
  }
@@ -7282,10 +7634,6 @@ export declare const editorMachine: StateMachine<
7282
7634
  description: string
7283
7635
  data: unknown
7284
7636
  }
7285
- | {
7286
- type: 'select'
7287
- selection: EditorSelection
7288
- }
7289
7637
  | {
7290
7638
  type: 'selection'
7291
7639
  selection: EditorSelection
@@ -7356,6 +7704,16 @@ export declare const editorMachine: StateMachine<
7356
7704
  }
7357
7705
  }
7358
7706
  }
7707
+ | {
7708
+ [props: string]: unknown
7709
+ type: 'block.set'
7710
+ at: [KeyedSegment]
7711
+ }
7712
+ | {
7713
+ type: 'block.unset'
7714
+ at: [KeyedSegment]
7715
+ props: Array<string>
7716
+ }
7359
7717
  | {
7360
7718
  type: 'blur'
7361
7719
  }
@@ -7416,6 +7774,11 @@ export declare const editorMachine: StateMachine<
7416
7774
  }
7417
7775
  }
7418
7776
  }
7777
+ | {
7778
+ type: 'insert.block'
7779
+ block: PortableTextBlock
7780
+ placement: 'auto' | 'after' | 'before'
7781
+ }
7419
7782
  | {
7420
7783
  type: 'insert.span'
7421
7784
  text: string
@@ -7459,6 +7822,10 @@ export declare const editorMachine: StateMachine<
7459
7822
  type: 'move.block up'
7460
7823
  at: [KeyedSegment]
7461
7824
  }
7825
+ | {
7826
+ type: 'select'
7827
+ selection: EditorSelection
7828
+ }
7462
7829
  | {
7463
7830
  type: 'select.previous block'
7464
7831
  }
@@ -7599,10 +7966,6 @@ export declare const editorMachine: StateMachine<
7599
7966
  description: string
7600
7967
  data: unknown
7601
7968
  }
7602
- | {
7603
- type: 'select'
7604
- selection: EditorSelection
7605
- }
7606
7969
  | {
7607
7970
  type: 'selection'
7608
7971
  selection: EditorSelection
@@ -7654,6 +8017,16 @@ export declare const editorMachine: StateMachine<
7654
8017
  }
7655
8018
  }
7656
8019
  }
8020
+ | {
8021
+ [props: string]: unknown
8022
+ type: 'block.set'
8023
+ at: [KeyedSegment]
8024
+ }
8025
+ | {
8026
+ type: 'block.unset'
8027
+ at: [KeyedSegment]
8028
+ props: Array<string>
8029
+ }
7657
8030
  | {
7658
8031
  type: 'blur'
7659
8032
  }
@@ -7714,6 +8087,11 @@ export declare const editorMachine: StateMachine<
7714
8087
  }
7715
8088
  }
7716
8089
  }
8090
+ | {
8091
+ type: 'insert.block'
8092
+ block: PortableTextBlock
8093
+ placement: 'auto' | 'after' | 'before'
8094
+ }
7717
8095
  | {
7718
8096
  type: 'insert.span'
7719
8097
  text: string
@@ -7757,6 +8135,10 @@ export declare const editorMachine: StateMachine<
7757
8135
  type: 'move.block up'
7758
8136
  at: [KeyedSegment]
7759
8137
  }
8138
+ | {
8139
+ type: 'select'
8140
+ selection: EditorSelection
8141
+ }
7760
8142
  | {
7761
8143
  type: 'select.previous block'
7762
8144
  }
@@ -7841,10 +8223,6 @@ export declare const editorMachine: StateMachine<
7841
8223
  description: string
7842
8224
  data: unknown
7843
8225
  }
7844
- | {
7845
- type: 'select'
7846
- selection: EditorSelection
7847
- }
7848
8226
  | {
7849
8227
  type: 'selection'
7850
8228
  selection: EditorSelection
@@ -7919,6 +8297,16 @@ export declare const editorMachine: StateMachine<
7919
8297
  }
7920
8298
  }
7921
8299
  }
8300
+ | {
8301
+ [props: string]: unknown
8302
+ type: 'block.set'
8303
+ at: [KeyedSegment]
8304
+ }
8305
+ | {
8306
+ type: 'block.unset'
8307
+ at: [KeyedSegment]
8308
+ props: Array<string>
8309
+ }
7922
8310
  | {
7923
8311
  type: 'blur'
7924
8312
  }
@@ -7979,6 +8367,11 @@ export declare const editorMachine: StateMachine<
7979
8367
  }
7980
8368
  }
7981
8369
  }
8370
+ | {
8371
+ type: 'insert.block'
8372
+ block: PortableTextBlock
8373
+ placement: 'auto' | 'after' | 'before'
8374
+ }
7982
8375
  | {
7983
8376
  type: 'insert.span'
7984
8377
  text: string
@@ -8022,6 +8415,10 @@ export declare const editorMachine: StateMachine<
8022
8415
  type: 'move.block up'
8023
8416
  at: [KeyedSegment]
8024
8417
  }
8418
+ | {
8419
+ type: 'select'
8420
+ selection: EditorSelection
8421
+ }
8025
8422
  | {
8026
8423
  type: 'select.previous block'
8027
8424
  }
@@ -8162,10 +8559,6 @@ export declare const editorMachine: StateMachine<
8162
8559
  description: string
8163
8560
  data: unknown
8164
8561
  }
8165
- | {
8166
- type: 'select'
8167
- selection: EditorSelection
8168
- }
8169
8562
  | {
8170
8563
  type: 'selection'
8171
8564
  selection: EditorSelection
@@ -8240,6 +8633,16 @@ export declare const editorMachine: StateMachine<
8240
8633
  }
8241
8634
  }
8242
8635
  }
8636
+ | {
8637
+ [props: string]: unknown
8638
+ type: 'block.set'
8639
+ at: [KeyedSegment]
8640
+ }
8641
+ | {
8642
+ type: 'block.unset'
8643
+ at: [KeyedSegment]
8644
+ props: Array<string>
8645
+ }
8243
8646
  | {
8244
8647
  type: 'blur'
8245
8648
  }
@@ -8300,6 +8703,11 @@ export declare const editorMachine: StateMachine<
8300
8703
  }
8301
8704
  }
8302
8705
  }
8706
+ | {
8707
+ type: 'insert.block'
8708
+ block: PortableTextBlock
8709
+ placement: 'auto' | 'after' | 'before'
8710
+ }
8303
8711
  | {
8304
8712
  type: 'insert.span'
8305
8713
  text: string
@@ -8343,6 +8751,10 @@ export declare const editorMachine: StateMachine<
8343
8751
  type: 'move.block up'
8344
8752
  at: [KeyedSegment]
8345
8753
  }
8754
+ | {
8755
+ type: 'select'
8756
+ selection: EditorSelection
8757
+ }
8346
8758
  | {
8347
8759
  type: 'select.previous block'
8348
8760
  }
@@ -8483,10 +8895,6 @@ export declare const editorMachine: StateMachine<
8483
8895
  description: string
8484
8896
  data: unknown
8485
8897
  }
8486
- | {
8487
- type: 'select'
8488
- selection: EditorSelection
8489
- }
8490
8898
  | {
8491
8899
  type: 'selection'
8492
8900
  selection: EditorSelection
@@ -8558,6 +8966,16 @@ export declare const editorMachine: StateMachine<
8558
8966
  }
8559
8967
  }
8560
8968
  }
8969
+ | {
8970
+ [props: string]: unknown
8971
+ type: 'block.set'
8972
+ at: [KeyedSegment]
8973
+ }
8974
+ | {
8975
+ type: 'block.unset'
8976
+ at: [KeyedSegment]
8977
+ props: Array<string>
8978
+ }
8561
8979
  | {
8562
8980
  type: 'blur'
8563
8981
  }
@@ -8618,6 +9036,11 @@ export declare const editorMachine: StateMachine<
8618
9036
  }
8619
9037
  }
8620
9038
  }
9039
+ | {
9040
+ type: 'insert.block'
9041
+ block: PortableTextBlock
9042
+ placement: 'auto' | 'after' | 'before'
9043
+ }
8621
9044
  | {
8622
9045
  type: 'insert.span'
8623
9046
  text: string
@@ -8661,6 +9084,10 @@ export declare const editorMachine: StateMachine<
8661
9084
  type: 'move.block up'
8662
9085
  at: [KeyedSegment]
8663
9086
  }
9087
+ | {
9088
+ type: 'select'
9089
+ selection: EditorSelection
9090
+ }
8664
9091
  | {
8665
9092
  type: 'select.previous block'
8666
9093
  }
@@ -8801,10 +9228,6 @@ export declare const editorMachine: StateMachine<
8801
9228
  description: string
8802
9229
  data: unknown
8803
9230
  }
8804
- | {
8805
- type: 'select'
8806
- selection: EditorSelection
8807
- }
8808
9231
  | {
8809
9232
  type: 'selection'
8810
9233
  selection: EditorSelection
@@ -9024,6 +9447,16 @@ export declare const editorMachine: StateMachine<
9024
9447
  }
9025
9448
  }
9026
9449
  }
9450
+ | {
9451
+ [props: string]: unknown
9452
+ type: 'block.set'
9453
+ at: [KeyedSegment]
9454
+ }
9455
+ | {
9456
+ type: 'block.unset'
9457
+ at: [KeyedSegment]
9458
+ props: Array<string>
9459
+ }
9027
9460
  | {
9028
9461
  type: 'blur'
9029
9462
  }
@@ -9084,6 +9517,11 @@ export declare const editorMachine: StateMachine<
9084
9517
  }
9085
9518
  }
9086
9519
  }
9520
+ | {
9521
+ type: 'insert.block'
9522
+ block: PortableTextBlock
9523
+ placement: 'auto' | 'after' | 'before'
9524
+ }
9087
9525
  | {
9088
9526
  type: 'insert.span'
9089
9527
  text: string
@@ -9127,6 +9565,10 @@ export declare const editorMachine: StateMachine<
9127
9565
  type: 'move.block up'
9128
9566
  at: [KeyedSegment]
9129
9567
  }
9568
+ | {
9569
+ type: 'select'
9570
+ selection: EditorSelection
9571
+ }
9130
9572
  | {
9131
9573
  type: 'select.previous block'
9132
9574
  }
@@ -9269,10 +9711,6 @@ export declare const editorMachine: StateMachine<
9269
9711
  description: string
9270
9712
  data: unknown
9271
9713
  }
9272
- | {
9273
- type: 'select'
9274
- selection: EditorSelection
9275
- }
9276
9714
  | {
9277
9715
  type: 'selection'
9278
9716
  selection: EditorSelection
@@ -9324,6 +9762,16 @@ export declare const editorMachine: StateMachine<
9324
9762
  }
9325
9763
  }
9326
9764
  }
9765
+ | {
9766
+ [props: string]: unknown
9767
+ type: 'block.set'
9768
+ at: [KeyedSegment]
9769
+ }
9770
+ | {
9771
+ type: 'block.unset'
9772
+ at: [KeyedSegment]
9773
+ props: Array<string>
9774
+ }
9327
9775
  | {
9328
9776
  type: 'blur'
9329
9777
  }
@@ -9384,6 +9832,11 @@ export declare const editorMachine: StateMachine<
9384
9832
  }
9385
9833
  }
9386
9834
  }
9835
+ | {
9836
+ type: 'insert.block'
9837
+ block: PortableTextBlock
9838
+ placement: 'auto' | 'after' | 'before'
9839
+ }
9387
9840
  | {
9388
9841
  type: 'insert.span'
9389
9842
  text: string
@@ -9427,6 +9880,608 @@ export declare const editorMachine: StateMachine<
9427
9880
  type: 'move.block up'
9428
9881
  at: [KeyedSegment]
9429
9882
  }
9883
+ | {
9884
+ type: 'select'
9885
+ selection: EditorSelection
9886
+ }
9887
+ | {
9888
+ type: 'select.previous block'
9889
+ }
9890
+ | {
9891
+ type: 'select.next block'
9892
+ }
9893
+ | {
9894
+ type: 'style.add'
9895
+ style: string
9896
+ }
9897
+ | {
9898
+ type: 'style.remove'
9899
+ style: string
9900
+ }
9901
+ | {
9902
+ type: 'style.toggle'
9903
+ style: string
9904
+ }
9905
+ | {
9906
+ type: 'text block.set'
9907
+ at: [KeyedSegment]
9908
+ level?: number
9909
+ listItem?: string
9910
+ style?: string
9911
+ }
9912
+ | {
9913
+ type: 'text block.unset'
9914
+ at: [KeyedSegment]
9915
+ props: Array<'level' | 'listItem' | 'style'>
9916
+ }
9917
+ | ({
9918
+ type: 'serialization.failure'
9919
+ mimeType: `${string}/${string}`
9920
+ reason: string
9921
+ } & {
9922
+ dataTransfer: DataTransfer
9923
+ })
9924
+ | ({
9925
+ type: 'serialization.success'
9926
+ data: string
9927
+ mimeType: `${string}/${string}`
9928
+ originEvent: 'copy' | 'cut' | 'unknown'
9929
+ } & {
9930
+ dataTransfer: DataTransfer
9931
+ })
9932
+ | ({
9933
+ type: 'deserialization.failure'
9934
+ mimeType: `${string}/${string}`
9935
+ reason: string
9936
+ } & {
9937
+ dataTransfer: DataTransfer
9938
+ })
9939
+ | ({
9940
+ type: 'deserialization.success'
9941
+ data: Array<PortableTextBlock>
9942
+ mimeType: `${string}/${string}`
9943
+ } & {
9944
+ dataTransfer: DataTransfer
9945
+ })
9946
+ | PatchEvent
9947
+ | MutationEvent
9948
+ | {
9949
+ type: 'ready'
9950
+ }
9951
+ | PatchesEvent
9952
+ | {
9953
+ type: 'unset'
9954
+ previousValue: Array<PortableTextBlock>
9955
+ }
9956
+ | {
9957
+ type: 'value changed'
9958
+ value: Array<PortableTextBlock> | undefined
9959
+ }
9960
+ | {
9961
+ type: 'invalid value'
9962
+ resolution: InvalidValueResolution | null
9963
+ value: Array<PortableTextBlock> | undefined
9964
+ }
9965
+ | {
9966
+ type: 'error'
9967
+ name: string
9968
+ description: string
9969
+ data: unknown
9970
+ }
9971
+ | {
9972
+ type: 'selection'
9973
+ selection: EditorSelection
9974
+ }
9975
+ | {
9976
+ type: 'blurred'
9977
+ event: FocusEvent_2<HTMLDivElement, Element>
9978
+ }
9979
+ | {
9980
+ type: 'focused'
9981
+ event: FocusEvent_2<HTMLDivElement, Element>
9982
+ }
9983
+ | {
9984
+ type: 'loading'
9985
+ }
9986
+ | {
9987
+ type: 'done loading'
9988
+ }
9989
+ | {
9990
+ type: 'read only'
9991
+ }
9992
+ | {
9993
+ type: 'editable'
9994
+ }
9995
+ | {
9996
+ type: 'custom.*'
9997
+ event: CustomBehaviorEvent
9998
+ }
9999
+ >
10000
+ }
10001
+ readonly 'block.*': {
10002
+ readonly actions: ActionFunction<
10003
+ {
10004
+ behaviors: Set<Behavior>
10005
+ converters: Set<Converter>
10006
+ keyGenerator: () => string
10007
+ pendingEvents: Array<PatchEvent | MutationEvent>
10008
+ schema: EditorSchema
10009
+ initialReadOnly: boolean
10010
+ maxBlocks: number | undefined
10011
+ selection: EditorSelection
10012
+ value: Array<PortableTextBlock> | undefined
10013
+ },
10014
+ | {
10015
+ [props: string]: unknown
10016
+ type: 'block.set'
10017
+ at: [KeyedSegment]
10018
+ }
10019
+ | {
10020
+ type: 'block.unset'
10021
+ at: [KeyedSegment]
10022
+ props: Array<string>
10023
+ },
10024
+ | {
10025
+ type: 'annotation.add'
10026
+ annotation: {
10027
+ name: string
10028
+ value: {
10029
+ [prop: string]: unknown
10030
+ }
10031
+ }
10032
+ }
10033
+ | {
10034
+ type: 'annotation.remove'
10035
+ annotation: {
10036
+ name: string
10037
+ }
10038
+ }
10039
+ | {
10040
+ type: 'annotation.toggle'
10041
+ annotation: {
10042
+ name: string
10043
+ value: {
10044
+ [prop: string]: unknown
10045
+ }
10046
+ }
10047
+ }
10048
+ | {
10049
+ [props: string]: unknown
10050
+ type: 'block.set'
10051
+ at: [KeyedSegment]
10052
+ }
10053
+ | {
10054
+ type: 'block.unset'
10055
+ at: [KeyedSegment]
10056
+ props: Array<string>
10057
+ }
10058
+ | {
10059
+ type: 'blur'
10060
+ }
10061
+ | {
10062
+ type: 'data transfer.set'
10063
+ data: string
10064
+ dataTransfer: DataTransfer
10065
+ mimeType: MIMEType_2
10066
+ }
10067
+ | {
10068
+ type: 'decorator.add'
10069
+ decorator: string
10070
+ }
10071
+ | {
10072
+ type: 'decorator.remove'
10073
+ decorator: string
10074
+ }
10075
+ | {
10076
+ type: 'decorator.toggle'
10077
+ decorator: string
10078
+ }
10079
+ | {
10080
+ type: 'delete.backward'
10081
+ unit: TextUnit
10082
+ }
10083
+ | {
10084
+ type: 'delete.block'
10085
+ blockPath: [KeyedSegment]
10086
+ }
10087
+ | {
10088
+ type: 'delete.forward'
10089
+ unit: TextUnit
10090
+ }
10091
+ | {
10092
+ type: 'delete.text'
10093
+ anchor: BlockOffset_2
10094
+ focus: BlockOffset_2
10095
+ }
10096
+ | {
10097
+ type: 'focus'
10098
+ }
10099
+ | {
10100
+ type: 'insert.block object'
10101
+ placement: 'auto' | 'after' | 'before'
10102
+ blockObject: {
10103
+ name: string
10104
+ value?: {
10105
+ [prop: string]: unknown
10106
+ }
10107
+ }
10108
+ }
10109
+ | {
10110
+ type: 'insert.inline object'
10111
+ inlineObject: {
10112
+ name: string
10113
+ value?: {
10114
+ [prop: string]: unknown
10115
+ }
10116
+ }
10117
+ }
10118
+ | {
10119
+ type: 'insert.block'
10120
+ block: PortableTextBlock
10121
+ placement: 'auto' | 'after' | 'before'
10122
+ }
10123
+ | {
10124
+ type: 'insert.span'
10125
+ text: string
10126
+ annotations?: Array<{
10127
+ name: string
10128
+ value: {
10129
+ [prop: string]: unknown
10130
+ }
10131
+ }>
10132
+ decorators?: Array<string>
10133
+ }
10134
+ | {
10135
+ type: 'insert.text block'
10136
+ placement: 'auto' | 'after' | 'before'
10137
+ textBlock?: {
10138
+ children?: PortableTextTextBlock['children']
10139
+ }
10140
+ }
10141
+ | {
10142
+ type: 'list item.add'
10143
+ listItem: string
10144
+ }
10145
+ | {
10146
+ type: 'list item.remove'
10147
+ listItem: string
10148
+ }
10149
+ | {
10150
+ type: 'list item.toggle'
10151
+ listItem: string
10152
+ }
10153
+ | {
10154
+ type: 'move.block'
10155
+ at: [KeyedSegment]
10156
+ to: [KeyedSegment]
10157
+ }
10158
+ | {
10159
+ type: 'move.block down'
10160
+ at: [KeyedSegment]
10161
+ }
10162
+ | {
10163
+ type: 'move.block up'
10164
+ at: [KeyedSegment]
10165
+ }
10166
+ | {
10167
+ type: 'select'
10168
+ selection: EditorSelection
10169
+ }
10170
+ | {
10171
+ type: 'select.previous block'
10172
+ }
10173
+ | {
10174
+ type: 'select.next block'
10175
+ }
10176
+ | {
10177
+ type: 'style.add'
10178
+ style: string
10179
+ }
10180
+ | {
10181
+ type: 'style.remove'
10182
+ style: string
10183
+ }
10184
+ | {
10185
+ type: 'style.toggle'
10186
+ style: string
10187
+ }
10188
+ | {
10189
+ type: 'text block.set'
10190
+ at: [KeyedSegment]
10191
+ level?: number
10192
+ listItem?: string
10193
+ style?: string
10194
+ }
10195
+ | {
10196
+ type: 'text block.unset'
10197
+ at: [KeyedSegment]
10198
+ props: Array<'level' | 'listItem' | 'style'>
10199
+ }
10200
+ | ({
10201
+ type: 'serialization.failure'
10202
+ mimeType: `${string}/${string}`
10203
+ reason: string
10204
+ } & {
10205
+ dataTransfer: DataTransfer
10206
+ })
10207
+ | ({
10208
+ type: 'serialization.success'
10209
+ data: string
10210
+ mimeType: `${string}/${string}`
10211
+ originEvent: 'copy' | 'cut' | 'unknown'
10212
+ } & {
10213
+ dataTransfer: DataTransfer
10214
+ })
10215
+ | ({
10216
+ type: 'deserialization.failure'
10217
+ mimeType: `${string}/${string}`
10218
+ reason: string
10219
+ } & {
10220
+ dataTransfer: DataTransfer
10221
+ })
10222
+ | ({
10223
+ type: 'deserialization.success'
10224
+ data: Array<PortableTextBlock>
10225
+ mimeType: `${string}/${string}`
10226
+ } & {
10227
+ dataTransfer: DataTransfer
10228
+ })
10229
+ | PatchEvent
10230
+ | MutationEvent
10231
+ | {
10232
+ type: 'normalizing'
10233
+ }
10234
+ | {
10235
+ type: 'done normalizing'
10236
+ }
10237
+ | {
10238
+ type: 'done syncing initial value'
10239
+ }
10240
+ | {
10241
+ type: 'behavior event'
10242
+ behaviorEvent:
10243
+ | SyntheticBehaviorEvent
10244
+ | NativeBehaviorEvent
10245
+ editor: PortableTextSlateEditor
10246
+ defaultActionCallback?: () => void
10247
+ nativeEvent?: {
10248
+ preventDefault: () => void
10249
+ }
10250
+ }
10251
+ | {
10252
+ type: 'custom behavior event'
10253
+ behaviorEvent: CustomBehaviorEvent
10254
+ editor: PortableTextSlateEditor
10255
+ nativeEvent?: {
10256
+ preventDefault: () => void
10257
+ }
10258
+ }
10259
+ | CustomBehaviorEvent
10260
+ | {
10261
+ type: 'add behavior'
10262
+ behavior: Behavior
10263
+ }
10264
+ | {
10265
+ type: 'remove behavior'
10266
+ behavior: Behavior
10267
+ }
10268
+ | {
10269
+ type: 'update readOnly'
10270
+ readOnly: boolean
10271
+ }
10272
+ | {
10273
+ type: 'update schema'
10274
+ schema: EditorSchema
10275
+ }
10276
+ | {
10277
+ type: 'update behaviors'
10278
+ behaviors: Array<Behavior>
10279
+ }
10280
+ | {
10281
+ type: 'update key generator'
10282
+ keyGenerator: () => string
10283
+ }
10284
+ | {
10285
+ type: 'update value'
10286
+ value: Array<PortableTextBlock> | undefined
10287
+ }
10288
+ | {
10289
+ type: 'update maxBlocks'
10290
+ maxBlocks: number | undefined
10291
+ }
10292
+ | PatchesEvent
10293
+ | {
10294
+ type: 'unset'
10295
+ previousValue: Array<PortableTextBlock>
10296
+ }
10297
+ | {
10298
+ type: 'value changed'
10299
+ value: Array<PortableTextBlock> | undefined
10300
+ }
10301
+ | {
10302
+ type: 'invalid value'
10303
+ resolution: InvalidValueResolution | null
10304
+ value: Array<PortableTextBlock> | undefined
10305
+ }
10306
+ | {
10307
+ type: 'error'
10308
+ name: string
10309
+ description: string
10310
+ data: unknown
10311
+ }
10312
+ | {
10313
+ type: 'selection'
10314
+ selection: EditorSelection
10315
+ }
10316
+ | {
10317
+ type: 'blurred'
10318
+ event: FocusEvent_2<HTMLDivElement, Element>
10319
+ }
10320
+ | {
10321
+ type: 'focused'
10322
+ event: FocusEvent_2<HTMLDivElement, Element>
10323
+ }
10324
+ | {
10325
+ type: 'loading'
10326
+ }
10327
+ | {
10328
+ type: 'done loading'
10329
+ }
10330
+ | {
10331
+ type: 'custom.*'
10332
+ event: CustomBehaviorEvent
10333
+ },
10334
+ undefined,
10335
+ never,
10336
+ never,
10337
+ never,
10338
+ never,
10339
+ | {
10340
+ type: 'annotation.add'
10341
+ annotation: {
10342
+ name: string
10343
+ value: {
10344
+ [prop: string]: unknown
10345
+ }
10346
+ }
10347
+ }
10348
+ | {
10349
+ type: 'annotation.remove'
10350
+ annotation: {
10351
+ name: string
10352
+ }
10353
+ }
10354
+ | {
10355
+ type: 'annotation.toggle'
10356
+ annotation: {
10357
+ name: string
10358
+ value: {
10359
+ [prop: string]: unknown
10360
+ }
10361
+ }
10362
+ }
10363
+ | {
10364
+ [props: string]: unknown
10365
+ type: 'block.set'
10366
+ at: [KeyedSegment]
10367
+ }
10368
+ | {
10369
+ type: 'block.unset'
10370
+ at: [KeyedSegment]
10371
+ props: Array<string>
10372
+ }
10373
+ | {
10374
+ type: 'blur'
10375
+ }
10376
+ | {
10377
+ type: 'data transfer.set'
10378
+ data: string
10379
+ dataTransfer: DataTransfer
10380
+ mimeType: MIMEType_2
10381
+ }
10382
+ | {
10383
+ type: 'decorator.add'
10384
+ decorator: string
10385
+ }
10386
+ | {
10387
+ type: 'decorator.remove'
10388
+ decorator: string
10389
+ }
10390
+ | {
10391
+ type: 'decorator.toggle'
10392
+ decorator: string
10393
+ }
10394
+ | {
10395
+ type: 'delete.backward'
10396
+ unit: TextUnit
10397
+ }
10398
+ | {
10399
+ type: 'delete.block'
10400
+ blockPath: [KeyedSegment]
10401
+ }
10402
+ | {
10403
+ type: 'delete.forward'
10404
+ unit: TextUnit
10405
+ }
10406
+ | {
10407
+ type: 'delete.text'
10408
+ anchor: BlockOffset_2
10409
+ focus: BlockOffset_2
10410
+ }
10411
+ | {
10412
+ type: 'focus'
10413
+ }
10414
+ | {
10415
+ type: 'insert.block object'
10416
+ placement: 'auto' | 'after' | 'before'
10417
+ blockObject: {
10418
+ name: string
10419
+ value?: {
10420
+ [prop: string]: unknown
10421
+ }
10422
+ }
10423
+ }
10424
+ | {
10425
+ type: 'insert.inline object'
10426
+ inlineObject: {
10427
+ name: string
10428
+ value?: {
10429
+ [prop: string]: unknown
10430
+ }
10431
+ }
10432
+ }
10433
+ | {
10434
+ type: 'insert.block'
10435
+ block: PortableTextBlock
10436
+ placement: 'auto' | 'after' | 'before'
10437
+ }
10438
+ | {
10439
+ type: 'insert.span'
10440
+ text: string
10441
+ annotations?: Array<{
10442
+ name: string
10443
+ value: {
10444
+ [prop: string]: unknown
10445
+ }
10446
+ }>
10447
+ decorators?: Array<string>
10448
+ }
10449
+ | {
10450
+ type: 'insert.text block'
10451
+ placement: 'auto' | 'after' | 'before'
10452
+ textBlock?: {
10453
+ children?: PortableTextTextBlock['children']
10454
+ }
10455
+ }
10456
+ | {
10457
+ type: 'list item.add'
10458
+ listItem: string
10459
+ }
10460
+ | {
10461
+ type: 'list item.remove'
10462
+ listItem: string
10463
+ }
10464
+ | {
10465
+ type: 'list item.toggle'
10466
+ listItem: string
10467
+ }
10468
+ | {
10469
+ type: 'move.block'
10470
+ at: [KeyedSegment]
10471
+ to: [KeyedSegment]
10472
+ }
10473
+ | {
10474
+ type: 'move.block down'
10475
+ at: [KeyedSegment]
10476
+ }
10477
+ | {
10478
+ type: 'move.block up'
10479
+ at: [KeyedSegment]
10480
+ }
10481
+ | {
10482
+ type: 'select'
10483
+ selection: EditorSelection
10484
+ }
9430
10485
  | {
9431
10486
  type: 'select.previous block'
9432
10487
  }
@@ -9511,10 +10566,6 @@ export declare const editorMachine: StateMachine<
9511
10566
  description: string
9512
10567
  data: unknown
9513
10568
  }
9514
- | {
9515
- type: 'select'
9516
- selection: EditorSelection
9517
- }
9518
10569
  | {
9519
10570
  type: 'selection'
9520
10571
  selection: EditorSelection
@@ -9585,6 +10636,16 @@ export declare const editorMachine: StateMachine<
9585
10636
  }
9586
10637
  }
9587
10638
  }
10639
+ | {
10640
+ [props: string]: unknown
10641
+ type: 'block.set'
10642
+ at: [KeyedSegment]
10643
+ }
10644
+ | {
10645
+ type: 'block.unset'
10646
+ at: [KeyedSegment]
10647
+ props: Array<string>
10648
+ }
9588
10649
  | {
9589
10650
  type: 'blur'
9590
10651
  }
@@ -9645,6 +10706,11 @@ export declare const editorMachine: StateMachine<
9645
10706
  }
9646
10707
  }
9647
10708
  }
10709
+ | {
10710
+ type: 'insert.block'
10711
+ block: PortableTextBlock
10712
+ placement: 'auto' | 'after' | 'before'
10713
+ }
9648
10714
  | {
9649
10715
  type: 'insert.span'
9650
10716
  text: string
@@ -9688,6 +10754,10 @@ export declare const editorMachine: StateMachine<
9688
10754
  type: 'move.block up'
9689
10755
  at: [KeyedSegment]
9690
10756
  }
10757
+ | {
10758
+ type: 'select'
10759
+ selection: EditorSelection
10760
+ }
9691
10761
  | {
9692
10762
  type: 'select.previous block'
9693
10763
  }
@@ -9830,10 +10900,6 @@ export declare const editorMachine: StateMachine<
9830
10900
  description: string
9831
10901
  data: unknown
9832
10902
  }
9833
- | {
9834
- type: 'select'
9835
- selection: EditorSelection
9836
- }
9837
10903
  | {
9838
10904
  type: 'selection'
9839
10905
  selection: EditorSelection
@@ -9885,6 +10951,16 @@ export declare const editorMachine: StateMachine<
9885
10951
  }
9886
10952
  }
9887
10953
  }
10954
+ | {
10955
+ [props: string]: unknown
10956
+ type: 'block.set'
10957
+ at: [KeyedSegment]
10958
+ }
10959
+ | {
10960
+ type: 'block.unset'
10961
+ at: [KeyedSegment]
10962
+ props: Array<string>
10963
+ }
9888
10964
  | {
9889
10965
  type: 'blur'
9890
10966
  }
@@ -9945,6 +11021,11 @@ export declare const editorMachine: StateMachine<
9945
11021
  }
9946
11022
  }
9947
11023
  }
11024
+ | {
11025
+ type: 'insert.block'
11026
+ block: PortableTextBlock
11027
+ placement: 'auto' | 'after' | 'before'
11028
+ }
9948
11029
  | {
9949
11030
  type: 'insert.span'
9950
11031
  text: string
@@ -9988,6 +11069,10 @@ export declare const editorMachine: StateMachine<
9988
11069
  type: 'move.block up'
9989
11070
  at: [KeyedSegment]
9990
11071
  }
11072
+ | {
11073
+ type: 'select'
11074
+ selection: EditorSelection
11075
+ }
9991
11076
  | {
9992
11077
  type: 'select.previous block'
9993
11078
  }
@@ -10072,10 +11157,6 @@ export declare const editorMachine: StateMachine<
10072
11157
  description: string
10073
11158
  data: unknown
10074
11159
  }
10075
- | {
10076
- type: 'select'
10077
- selection: EditorSelection
10078
- }
10079
11160
  | {
10080
11161
  type: 'selection'
10081
11162
  selection: EditorSelection
@@ -10148,6 +11229,16 @@ export declare const editorMachine: StateMachine<
10148
11229
  }
10149
11230
  }
10150
11231
  }
11232
+ | {
11233
+ [props: string]: unknown
11234
+ type: 'block.set'
11235
+ at: [KeyedSegment]
11236
+ }
11237
+ | {
11238
+ type: 'block.unset'
11239
+ at: [KeyedSegment]
11240
+ props: Array<string>
11241
+ }
10151
11242
  | {
10152
11243
  type: 'blur'
10153
11244
  }
@@ -10208,6 +11299,11 @@ export declare const editorMachine: StateMachine<
10208
11299
  }
10209
11300
  }
10210
11301
  }
11302
+ | {
11303
+ type: 'insert.block'
11304
+ block: PortableTextBlock
11305
+ placement: 'auto' | 'after' | 'before'
11306
+ }
10211
11307
  | {
10212
11308
  type: 'insert.span'
10213
11309
  text: string
@@ -10251,6 +11347,10 @@ export declare const editorMachine: StateMachine<
10251
11347
  type: 'move.block up'
10252
11348
  at: [KeyedSegment]
10253
11349
  }
11350
+ | {
11351
+ type: 'select'
11352
+ selection: EditorSelection
11353
+ }
10254
11354
  | {
10255
11355
  type: 'select.previous block'
10256
11356
  }
@@ -10393,10 +11493,6 @@ export declare const editorMachine: StateMachine<
10393
11493
  description: string
10394
11494
  data: unknown
10395
11495
  }
10396
- | {
10397
- type: 'select'
10398
- selection: EditorSelection
10399
- }
10400
11496
  | {
10401
11497
  type: 'selection'
10402
11498
  selection: EditorSelection
@@ -10448,6 +11544,16 @@ export declare const editorMachine: StateMachine<
10448
11544
  }
10449
11545
  }
10450
11546
  }
11547
+ | {
11548
+ [props: string]: unknown
11549
+ type: 'block.set'
11550
+ at: [KeyedSegment]
11551
+ }
11552
+ | {
11553
+ type: 'block.unset'
11554
+ at: [KeyedSegment]
11555
+ props: Array<string>
11556
+ }
10451
11557
  | {
10452
11558
  type: 'blur'
10453
11559
  }
@@ -10508,6 +11614,11 @@ export declare const editorMachine: StateMachine<
10508
11614
  }
10509
11615
  }
10510
11616
  }
11617
+ | {
11618
+ type: 'insert.block'
11619
+ block: PortableTextBlock
11620
+ placement: 'auto' | 'after' | 'before'
11621
+ }
10511
11622
  | {
10512
11623
  type: 'insert.span'
10513
11624
  text: string
@@ -10551,6 +11662,10 @@ export declare const editorMachine: StateMachine<
10551
11662
  type: 'move.block up'
10552
11663
  at: [KeyedSegment]
10553
11664
  }
11665
+ | {
11666
+ type: 'select'
11667
+ selection: EditorSelection
11668
+ }
10554
11669
  | {
10555
11670
  type: 'select.previous block'
10556
11671
  }
@@ -10635,10 +11750,6 @@ export declare const editorMachine: StateMachine<
10635
11750
  description: string
10636
11751
  data: unknown
10637
11752
  }
10638
- | {
10639
- type: 'select'
10640
- selection: EditorSelection
10641
- }
10642
11753
  | {
10643
11754
  type: 'selection'
10644
11755
  selection: EditorSelection
@@ -10718,6 +11829,16 @@ export declare const editorMachine: StateMachine<
10718
11829
  }
10719
11830
  }
10720
11831
  }
11832
+ | {
11833
+ [props: string]: unknown
11834
+ type: 'block.set'
11835
+ at: [KeyedSegment]
11836
+ }
11837
+ | {
11838
+ type: 'block.unset'
11839
+ at: [KeyedSegment]
11840
+ props: Array<string>
11841
+ }
10721
11842
  | {
10722
11843
  type: 'blur'
10723
11844
  }
@@ -10778,6 +11899,11 @@ export declare const editorMachine: StateMachine<
10778
11899
  }
10779
11900
  }
10780
11901
  }
11902
+ | {
11903
+ type: 'insert.block'
11904
+ block: PortableTextBlock
11905
+ placement: 'auto' | 'after' | 'before'
11906
+ }
10781
11907
  | {
10782
11908
  type: 'insert.span'
10783
11909
  text: string
@@ -10821,6 +11947,10 @@ export declare const editorMachine: StateMachine<
10821
11947
  type: 'move.block up'
10822
11948
  at: [KeyedSegment]
10823
11949
  }
11950
+ | {
11951
+ type: 'select'
11952
+ selection: EditorSelection
11953
+ }
10824
11954
  | {
10825
11955
  type: 'select.previous block'
10826
11956
  }
@@ -10963,10 +12093,6 @@ export declare const editorMachine: StateMachine<
10963
12093
  description: string
10964
12094
  data: unknown
10965
12095
  }
10966
- | {
10967
- type: 'select'
10968
- selection: EditorSelection
10969
- }
10970
12096
  | {
10971
12097
  type: 'selection'
10972
12098
  selection: EditorSelection
@@ -11018,6 +12144,16 @@ export declare const editorMachine: StateMachine<
11018
12144
  }
11019
12145
  }
11020
12146
  }
12147
+ | {
12148
+ [props: string]: unknown
12149
+ type: 'block.set'
12150
+ at: [KeyedSegment]
12151
+ }
12152
+ | {
12153
+ type: 'block.unset'
12154
+ at: [KeyedSegment]
12155
+ props: Array<string>
12156
+ }
11021
12157
  | {
11022
12158
  type: 'blur'
11023
12159
  }
@@ -11078,6 +12214,11 @@ export declare const editorMachine: StateMachine<
11078
12214
  }
11079
12215
  }
11080
12216
  }
12217
+ | {
12218
+ type: 'insert.block'
12219
+ block: PortableTextBlock
12220
+ placement: 'auto' | 'after' | 'before'
12221
+ }
11081
12222
  | {
11082
12223
  type: 'insert.span'
11083
12224
  text: string
@@ -11121,6 +12262,10 @@ export declare const editorMachine: StateMachine<
11121
12262
  type: 'move.block up'
11122
12263
  at: [KeyedSegment]
11123
12264
  }
12265
+ | {
12266
+ type: 'select'
12267
+ selection: EditorSelection
12268
+ }
11124
12269
  | {
11125
12270
  type: 'select.previous block'
11126
12271
  }
@@ -11205,10 +12350,6 @@ export declare const editorMachine: StateMachine<
11205
12350
  description: string
11206
12351
  data: unknown
11207
12352
  }
11208
- | {
11209
- type: 'select'
11210
- selection: EditorSelection
11211
- }
11212
12353
  | {
11213
12354
  type: 'selection'
11214
12355
  selection: EditorSelection
@@ -11293,6 +12434,16 @@ export declare const editorMachine: StateMachine<
11293
12434
  }
11294
12435
  }
11295
12436
  }
12437
+ | {
12438
+ [props: string]: unknown
12439
+ type: 'block.set'
12440
+ at: [KeyedSegment]
12441
+ }
12442
+ | {
12443
+ type: 'block.unset'
12444
+ at: [KeyedSegment]
12445
+ props: Array<string>
12446
+ }
11296
12447
  | {
11297
12448
  type: 'blur'
11298
12449
  }
@@ -11353,6 +12504,11 @@ export declare const editorMachine: StateMachine<
11353
12504
  }
11354
12505
  }
11355
12506
  }
12507
+ | {
12508
+ type: 'insert.block'
12509
+ block: PortableTextBlock
12510
+ placement: 'auto' | 'after' | 'before'
12511
+ }
11356
12512
  | {
11357
12513
  type: 'insert.span'
11358
12514
  text: string
@@ -11396,6 +12552,10 @@ export declare const editorMachine: StateMachine<
11396
12552
  type: 'move.block up'
11397
12553
  at: [KeyedSegment]
11398
12554
  }
12555
+ | {
12556
+ type: 'select'
12557
+ selection: EditorSelection
12558
+ }
11399
12559
  | {
11400
12560
  type: 'select.previous block'
11401
12561
  }
@@ -11538,10 +12698,6 @@ export declare const editorMachine: StateMachine<
11538
12698
  description: string
11539
12699
  data: unknown
11540
12700
  }
11541
- | {
11542
- type: 'select'
11543
- selection: EditorSelection
11544
- }
11545
12701
  | {
11546
12702
  type: 'selection'
11547
12703
  selection: EditorSelection
@@ -11593,6 +12749,16 @@ export declare const editorMachine: StateMachine<
11593
12749
  }
11594
12750
  }
11595
12751
  }
12752
+ | {
12753
+ [props: string]: unknown
12754
+ type: 'block.set'
12755
+ at: [KeyedSegment]
12756
+ }
12757
+ | {
12758
+ type: 'block.unset'
12759
+ at: [KeyedSegment]
12760
+ props: Array<string>
12761
+ }
11596
12762
  | {
11597
12763
  type: 'blur'
11598
12764
  }
@@ -11653,6 +12819,11 @@ export declare const editorMachine: StateMachine<
11653
12819
  }
11654
12820
  }
11655
12821
  }
12822
+ | {
12823
+ type: 'insert.block'
12824
+ block: PortableTextBlock
12825
+ placement: 'auto' | 'after' | 'before'
12826
+ }
11656
12827
  | {
11657
12828
  type: 'insert.span'
11658
12829
  text: string
@@ -11696,6 +12867,10 @@ export declare const editorMachine: StateMachine<
11696
12867
  type: 'move.block up'
11697
12868
  at: [KeyedSegment]
11698
12869
  }
12870
+ | {
12871
+ type: 'select'
12872
+ selection: EditorSelection
12873
+ }
11699
12874
  | {
11700
12875
  type: 'select.previous block'
11701
12876
  }
@@ -11780,10 +12955,6 @@ export declare const editorMachine: StateMachine<
11780
12955
  description: string
11781
12956
  data: unknown
11782
12957
  }
11783
- | {
11784
- type: 'select'
11785
- selection: EditorSelection
11786
- }
11787
12958
  | {
11788
12959
  type: 'selection'
11789
12960
  selection: EditorSelection
@@ -11854,6 +13025,16 @@ export declare const editorMachine: StateMachine<
11854
13025
  }
11855
13026
  }
11856
13027
  }
13028
+ | {
13029
+ [props: string]: unknown
13030
+ type: 'block.set'
13031
+ at: [KeyedSegment]
13032
+ }
13033
+ | {
13034
+ type: 'block.unset'
13035
+ at: [KeyedSegment]
13036
+ props: Array<string>
13037
+ }
11857
13038
  | {
11858
13039
  type: 'blur'
11859
13040
  }
@@ -11914,6 +13095,11 @@ export declare const editorMachine: StateMachine<
11914
13095
  }
11915
13096
  }
11916
13097
  }
13098
+ | {
13099
+ type: 'insert.block'
13100
+ block: PortableTextBlock
13101
+ placement: 'auto' | 'after' | 'before'
13102
+ }
11917
13103
  | {
11918
13104
  type: 'insert.span'
11919
13105
  text: string
@@ -11957,6 +13143,10 @@ export declare const editorMachine: StateMachine<
11957
13143
  type: 'move.block up'
11958
13144
  at: [KeyedSegment]
11959
13145
  }
13146
+ | {
13147
+ type: 'select'
13148
+ selection: EditorSelection
13149
+ }
11960
13150
  | {
11961
13151
  type: 'select.previous block'
11962
13152
  }
@@ -12099,10 +13289,6 @@ export declare const editorMachine: StateMachine<
12099
13289
  description: string
12100
13290
  data: unknown
12101
13291
  }
12102
- | {
12103
- type: 'select'
12104
- selection: EditorSelection
12105
- }
12106
13292
  | {
12107
13293
  type: 'selection'
12108
13294
  selection: EditorSelection
@@ -12154,6 +13340,16 @@ export declare const editorMachine: StateMachine<
12154
13340
  }
12155
13341
  }
12156
13342
  }
13343
+ | {
13344
+ [props: string]: unknown
13345
+ type: 'block.set'
13346
+ at: [KeyedSegment]
13347
+ }
13348
+ | {
13349
+ type: 'block.unset'
13350
+ at: [KeyedSegment]
13351
+ props: Array<string>
13352
+ }
12157
13353
  | {
12158
13354
  type: 'blur'
12159
13355
  }
@@ -12214,6 +13410,11 @@ export declare const editorMachine: StateMachine<
12214
13410
  }
12215
13411
  }
12216
13412
  }
13413
+ | {
13414
+ type: 'insert.block'
13415
+ block: PortableTextBlock
13416
+ placement: 'auto' | 'after' | 'before'
13417
+ }
12217
13418
  | {
12218
13419
  type: 'insert.span'
12219
13420
  text: string
@@ -12257,6 +13458,10 @@ export declare const editorMachine: StateMachine<
12257
13458
  type: 'move.block up'
12258
13459
  at: [KeyedSegment]
12259
13460
  }
13461
+ | {
13462
+ type: 'select'
13463
+ selection: EditorSelection
13464
+ }
12260
13465
  | {
12261
13466
  type: 'select.previous block'
12262
13467
  }
@@ -12339,11 +13544,7 @@ export declare const editorMachine: StateMachine<
12339
13544
  type: 'error'
12340
13545
  name: string
12341
13546
  description: string
12342
- data: unknown
12343
- }
12344
- | {
12345
- type: 'select'
12346
- selection: EditorSelection
13547
+ data: unknown
12347
13548
  }
12348
13549
  | {
12349
13550
  type: 'selection'
@@ -12407,6 +13608,11 @@ export declare const editorMachine: StateMachine<
12407
13608
  }
12408
13609
  }
12409
13610
  }
13611
+ | {
13612
+ type: 'insert.block'
13613
+ block: PortableTextBlock
13614
+ placement: 'auto' | 'after' | 'before'
13615
+ }
12410
13616
  | {
12411
13617
  type: 'insert.span'
12412
13618
  text: string
@@ -12449,6 +13655,16 @@ export declare const editorMachine: StateMachine<
12449
13655
  }
12450
13656
  }
12451
13657
  }
13658
+ | {
13659
+ [props: string]: unknown
13660
+ type: 'block.set'
13661
+ at: [KeyedSegment]
13662
+ }
13663
+ | {
13664
+ type: 'block.unset'
13665
+ at: [KeyedSegment]
13666
+ props: Array<string>
13667
+ }
12452
13668
  | {
12453
13669
  type: 'blur'
12454
13670
  }
@@ -12509,6 +13725,11 @@ export declare const editorMachine: StateMachine<
12509
13725
  }
12510
13726
  }
12511
13727
  }
13728
+ | {
13729
+ type: 'insert.block'
13730
+ block: PortableTextBlock
13731
+ placement: 'auto' | 'after' | 'before'
13732
+ }
12512
13733
  | {
12513
13734
  type: 'insert.span'
12514
13735
  text: string
@@ -12552,6 +13773,10 @@ export declare const editorMachine: StateMachine<
12552
13773
  type: 'move.block up'
12553
13774
  at: [KeyedSegment]
12554
13775
  }
13776
+ | {
13777
+ type: 'select'
13778
+ selection: EditorSelection
13779
+ }
12555
13780
  | {
12556
13781
  type: 'select.previous block'
12557
13782
  }
@@ -12694,10 +13919,6 @@ export declare const editorMachine: StateMachine<
12694
13919
  description: string
12695
13920
  data: unknown
12696
13921
  }
12697
- | {
12698
- type: 'select'
12699
- selection: EditorSelection
12700
- }
12701
13922
  | {
12702
13923
  type: 'selection'
12703
13924
  selection: EditorSelection
@@ -12749,6 +13970,16 @@ export declare const editorMachine: StateMachine<
12749
13970
  }
12750
13971
  }
12751
13972
  }
13973
+ | {
13974
+ [props: string]: unknown
13975
+ type: 'block.set'
13976
+ at: [KeyedSegment]
13977
+ }
13978
+ | {
13979
+ type: 'block.unset'
13980
+ at: [KeyedSegment]
13981
+ props: Array<string>
13982
+ }
12752
13983
  | {
12753
13984
  type: 'blur'
12754
13985
  }
@@ -12809,6 +14040,11 @@ export declare const editorMachine: StateMachine<
12809
14040
  }
12810
14041
  }
12811
14042
  }
14043
+ | {
14044
+ type: 'insert.block'
14045
+ block: PortableTextBlock
14046
+ placement: 'auto' | 'after' | 'before'
14047
+ }
12812
14048
  | {
12813
14049
  type: 'insert.span'
12814
14050
  text: string
@@ -12852,6 +14088,10 @@ export declare const editorMachine: StateMachine<
12852
14088
  type: 'move.block up'
12853
14089
  at: [KeyedSegment]
12854
14090
  }
14091
+ | {
14092
+ type: 'select'
14093
+ selection: EditorSelection
14094
+ }
12855
14095
  | {
12856
14096
  type: 'select.previous block'
12857
14097
  }
@@ -12936,10 +14176,6 @@ export declare const editorMachine: StateMachine<
12936
14176
  description: string
12937
14177
  data: unknown
12938
14178
  }
12939
- | {
12940
- type: 'select'
12941
- selection: EditorSelection
12942
- }
12943
14179
  | {
12944
14180
  type: 'selection'
12945
14181
  selection: EditorSelection
@@ -13019,6 +14255,16 @@ export declare const editorMachine: StateMachine<
13019
14255
  }
13020
14256
  }
13021
14257
  }
14258
+ | {
14259
+ [props: string]: unknown
14260
+ type: 'block.set'
14261
+ at: [KeyedSegment]
14262
+ }
14263
+ | {
14264
+ type: 'block.unset'
14265
+ at: [KeyedSegment]
14266
+ props: Array<string>
14267
+ }
13022
14268
  | {
13023
14269
  type: 'blur'
13024
14270
  }
@@ -13079,6 +14325,11 @@ export declare const editorMachine: StateMachine<
13079
14325
  }
13080
14326
  }
13081
14327
  }
14328
+ | {
14329
+ type: 'insert.block'
14330
+ block: PortableTextBlock
14331
+ placement: 'auto' | 'after' | 'before'
14332
+ }
13082
14333
  | {
13083
14334
  type: 'insert.span'
13084
14335
  text: string
@@ -13122,6 +14373,10 @@ export declare const editorMachine: StateMachine<
13122
14373
  type: 'move.block up'
13123
14374
  at: [KeyedSegment]
13124
14375
  }
14376
+ | {
14377
+ type: 'select'
14378
+ selection: EditorSelection
14379
+ }
13125
14380
  | {
13126
14381
  type: 'select.previous block'
13127
14382
  }
@@ -13264,10 +14519,6 @@ export declare const editorMachine: StateMachine<
13264
14519
  description: string
13265
14520
  data: unknown
13266
14521
  }
13267
- | {
13268
- type: 'select'
13269
- selection: EditorSelection
13270
- }
13271
14522
  | {
13272
14523
  type: 'selection'
13273
14524
  selection: EditorSelection
@@ -13319,6 +14570,16 @@ export declare const editorMachine: StateMachine<
13319
14570
  }
13320
14571
  }
13321
14572
  }
14573
+ | {
14574
+ [props: string]: unknown
14575
+ type: 'block.set'
14576
+ at: [KeyedSegment]
14577
+ }
14578
+ | {
14579
+ type: 'block.unset'
14580
+ at: [KeyedSegment]
14581
+ props: Array<string>
14582
+ }
13322
14583
  | {
13323
14584
  type: 'blur'
13324
14585
  }
@@ -13379,6 +14640,11 @@ export declare const editorMachine: StateMachine<
13379
14640
  }
13380
14641
  }
13381
14642
  }
14643
+ | {
14644
+ type: 'insert.block'
14645
+ block: PortableTextBlock
14646
+ placement: 'auto' | 'after' | 'before'
14647
+ }
13382
14648
  | {
13383
14649
  type: 'insert.span'
13384
14650
  text: string
@@ -13422,6 +14688,10 @@ export declare const editorMachine: StateMachine<
13422
14688
  type: 'move.block up'
13423
14689
  at: [KeyedSegment]
13424
14690
  }
14691
+ | {
14692
+ type: 'select'
14693
+ selection: EditorSelection
14694
+ }
13425
14695
  | {
13426
14696
  type: 'select.previous block'
13427
14697
  }
@@ -13506,10 +14776,6 @@ export declare const editorMachine: StateMachine<
13506
14776
  description: string
13507
14777
  data: unknown
13508
14778
  }
13509
- | {
13510
- type: 'select'
13511
- selection: EditorSelection
13512
- }
13513
14779
  | {
13514
14780
  type: 'selection'
13515
14781
  selection: EditorSelection
@@ -13590,6 +14856,16 @@ export declare const editorMachine: StateMachine<
13590
14856
  }
13591
14857
  }
13592
14858
  }
14859
+ | {
14860
+ [props: string]: unknown
14861
+ type: 'block.set'
14862
+ at: [KeyedSegment]
14863
+ }
14864
+ | {
14865
+ type: 'block.unset'
14866
+ at: [KeyedSegment]
14867
+ props: Array<string>
14868
+ }
13593
14869
  | {
13594
14870
  type: 'blur'
13595
14871
  }
@@ -13650,6 +14926,11 @@ export declare const editorMachine: StateMachine<
13650
14926
  }
13651
14927
  }
13652
14928
  }
14929
+ | {
14930
+ type: 'insert.block'
14931
+ block: PortableTextBlock
14932
+ placement: 'auto' | 'after' | 'before'
14933
+ }
13653
14934
  | {
13654
14935
  type: 'insert.span'
13655
14936
  text: string
@@ -13693,6 +14974,10 @@ export declare const editorMachine: StateMachine<
13693
14974
  type: 'move.block up'
13694
14975
  at: [KeyedSegment]
13695
14976
  }
14977
+ | {
14978
+ type: 'select'
14979
+ selection: EditorSelection
14980
+ }
13696
14981
  | {
13697
14982
  type: 'select.previous block'
13698
14983
  }
@@ -13835,10 +15120,6 @@ export declare const editorMachine: StateMachine<
13835
15120
  description: string
13836
15121
  data: unknown
13837
15122
  }
13838
- | {
13839
- type: 'select'
13840
- selection: EditorSelection
13841
- }
13842
15123
  | {
13843
15124
  type: 'selection'
13844
15125
  selection: EditorSelection
@@ -13890,6 +15171,16 @@ export declare const editorMachine: StateMachine<
13890
15171
  }
13891
15172
  }
13892
15173
  }
15174
+ | {
15175
+ [props: string]: unknown
15176
+ type: 'block.set'
15177
+ at: [KeyedSegment]
15178
+ }
15179
+ | {
15180
+ type: 'block.unset'
15181
+ at: [KeyedSegment]
15182
+ props: Array<string>
15183
+ }
13893
15184
  | {
13894
15185
  type: 'blur'
13895
15186
  }
@@ -13950,6 +15241,11 @@ export declare const editorMachine: StateMachine<
13950
15241
  }
13951
15242
  }
13952
15243
  }
15244
+ | {
15245
+ type: 'insert.block'
15246
+ block: PortableTextBlock
15247
+ placement: 'auto' | 'after' | 'before'
15248
+ }
13953
15249
  | {
13954
15250
  type: 'insert.span'
13955
15251
  text: string
@@ -13993,6 +15289,10 @@ export declare const editorMachine: StateMachine<
13993
15289
  type: 'move.block up'
13994
15290
  at: [KeyedSegment]
13995
15291
  }
15292
+ | {
15293
+ type: 'select'
15294
+ selection: EditorSelection
15295
+ }
13996
15296
  | {
13997
15297
  type: 'select.previous block'
13998
15298
  }
@@ -14077,10 +15377,6 @@ export declare const editorMachine: StateMachine<
14077
15377
  description: string
14078
15378
  data: unknown
14079
15379
  }
14080
- | {
14081
- type: 'select'
14082
- selection: EditorSelection
14083
- }
14084
15380
  | {
14085
15381
  type: 'selection'
14086
15382
  selection: EditorSelection
@@ -14152,6 +15448,16 @@ export declare const editorMachine: StateMachine<
14152
15448
  }
14153
15449
  }
14154
15450
  }
15451
+ | {
15452
+ [props: string]: unknown
15453
+ type: 'block.set'
15454
+ at: [KeyedSegment]
15455
+ }
15456
+ | {
15457
+ type: 'block.unset'
15458
+ at: [KeyedSegment]
15459
+ props: Array<string>
15460
+ }
14155
15461
  | {
14156
15462
  type: 'blur'
14157
15463
  }
@@ -14212,6 +15518,11 @@ export declare const editorMachine: StateMachine<
14212
15518
  }
14213
15519
  }
14214
15520
  }
15521
+ | {
15522
+ type: 'insert.block'
15523
+ block: PortableTextBlock
15524
+ placement: 'auto' | 'after' | 'before'
15525
+ }
14215
15526
  | {
14216
15527
  type: 'insert.span'
14217
15528
  text: string
@@ -14255,6 +15566,10 @@ export declare const editorMachine: StateMachine<
14255
15566
  type: 'move.block up'
14256
15567
  at: [KeyedSegment]
14257
15568
  }
15569
+ | {
15570
+ type: 'select'
15571
+ selection: EditorSelection
15572
+ }
14258
15573
  | {
14259
15574
  type: 'select.previous block'
14260
15575
  }
@@ -14397,10 +15712,6 @@ export declare const editorMachine: StateMachine<
14397
15712
  description: string
14398
15713
  data: unknown
14399
15714
  }
14400
- | {
14401
- type: 'select'
14402
- selection: EditorSelection
14403
- }
14404
15715
  | {
14405
15716
  type: 'selection'
14406
15717
  selection: EditorSelection
@@ -14452,6 +15763,16 @@ export declare const editorMachine: StateMachine<
14452
15763
  }
14453
15764
  }
14454
15765
  }
15766
+ | {
15767
+ [props: string]: unknown
15768
+ type: 'block.set'
15769
+ at: [KeyedSegment]
15770
+ }
15771
+ | {
15772
+ type: 'block.unset'
15773
+ at: [KeyedSegment]
15774
+ props: Array<string>
15775
+ }
14455
15776
  | {
14456
15777
  type: 'blur'
14457
15778
  }
@@ -14512,6 +15833,11 @@ export declare const editorMachine: StateMachine<
14512
15833
  }
14513
15834
  }
14514
15835
  }
15836
+ | {
15837
+ type: 'insert.block'
15838
+ block: PortableTextBlock
15839
+ placement: 'auto' | 'after' | 'before'
15840
+ }
14515
15841
  | {
14516
15842
  type: 'insert.span'
14517
15843
  text: string
@@ -14555,6 +15881,10 @@ export declare const editorMachine: StateMachine<
14555
15881
  type: 'move.block up'
14556
15882
  at: [KeyedSegment]
14557
15883
  }
15884
+ | {
15885
+ type: 'select'
15886
+ selection: EditorSelection
15887
+ }
14558
15888
  | {
14559
15889
  type: 'select.previous block'
14560
15890
  }
@@ -14639,10 +15969,6 @@ export declare const editorMachine: StateMachine<
14639
15969
  description: string
14640
15970
  data: unknown
14641
15971
  }
14642
- | {
14643
- type: 'select'
14644
- selection: EditorSelection
14645
- }
14646
15972
  | {
14647
15973
  type: 'selection'
14648
15974
  selection: EditorSelection
@@ -14716,6 +16042,16 @@ export declare const editorMachine: StateMachine<
14716
16042
  }
14717
16043
  }
14718
16044
  }
16045
+ | {
16046
+ [props: string]: unknown
16047
+ type: 'block.set'
16048
+ at: [KeyedSegment]
16049
+ }
16050
+ | {
16051
+ type: 'block.unset'
16052
+ at: [KeyedSegment]
16053
+ props: Array<string>
16054
+ }
14719
16055
  | {
14720
16056
  type: 'blur'
14721
16057
  }
@@ -14776,6 +16112,11 @@ export declare const editorMachine: StateMachine<
14776
16112
  }
14777
16113
  }
14778
16114
  }
16115
+ | {
16116
+ type: 'insert.block'
16117
+ block: PortableTextBlock
16118
+ placement: 'auto' | 'after' | 'before'
16119
+ }
14779
16120
  | {
14780
16121
  type: 'insert.span'
14781
16122
  text: string
@@ -14819,6 +16160,10 @@ export declare const editorMachine: StateMachine<
14819
16160
  type: 'move.block up'
14820
16161
  at: [KeyedSegment]
14821
16162
  }
16163
+ | {
16164
+ type: 'select'
16165
+ selection: EditorSelection
16166
+ }
14822
16167
  | {
14823
16168
  type: 'select.previous block'
14824
16169
  }
@@ -14961,10 +16306,6 @@ export declare const editorMachine: StateMachine<
14961
16306
  description: string
14962
16307
  data: unknown
14963
16308
  }
14964
- | {
14965
- type: 'select'
14966
- selection: EditorSelection
14967
- }
14968
16309
  | {
14969
16310
  type: 'selection'
14970
16311
  selection: EditorSelection
@@ -15016,6 +16357,16 @@ export declare const editorMachine: StateMachine<
15016
16357
  }
15017
16358
  }
15018
16359
  }
16360
+ | {
16361
+ [props: string]: unknown
16362
+ type: 'block.set'
16363
+ at: [KeyedSegment]
16364
+ }
16365
+ | {
16366
+ type: 'block.unset'
16367
+ at: [KeyedSegment]
16368
+ props: Array<string>
16369
+ }
15019
16370
  | {
15020
16371
  type: 'blur'
15021
16372
  }
@@ -15076,6 +16427,11 @@ export declare const editorMachine: StateMachine<
15076
16427
  }
15077
16428
  }
15078
16429
  }
16430
+ | {
16431
+ type: 'insert.block'
16432
+ block: PortableTextBlock
16433
+ placement: 'auto' | 'after' | 'before'
16434
+ }
15079
16435
  | {
15080
16436
  type: 'insert.span'
15081
16437
  text: string
@@ -15119,6 +16475,10 @@ export declare const editorMachine: StateMachine<
15119
16475
  type: 'move.block up'
15120
16476
  at: [KeyedSegment]
15121
16477
  }
16478
+ | {
16479
+ type: 'select'
16480
+ selection: EditorSelection
16481
+ }
15122
16482
  | {
15123
16483
  type: 'select.previous block'
15124
16484
  }
@@ -15203,10 +16563,6 @@ export declare const editorMachine: StateMachine<
15203
16563
  description: string
15204
16564
  data: unknown
15205
16565
  }
15206
- | {
15207
- type: 'select'
15208
- selection: EditorSelection
15209
- }
15210
16566
  | {
15211
16567
  type: 'selection'
15212
16568
  selection: EditorSelection
@@ -15286,6 +16642,16 @@ export declare const editorMachine: StateMachine<
15286
16642
  }
15287
16643
  }
15288
16644
  }
16645
+ | {
16646
+ [props: string]: unknown
16647
+ type: 'block.set'
16648
+ at: [KeyedSegment]
16649
+ }
16650
+ | {
16651
+ type: 'block.unset'
16652
+ at: [KeyedSegment]
16653
+ props: Array<string>
16654
+ }
15289
16655
  | {
15290
16656
  type: 'blur'
15291
16657
  }
@@ -15346,6 +16712,11 @@ export declare const editorMachine: StateMachine<
15346
16712
  }
15347
16713
  }
15348
16714
  }
16715
+ | {
16716
+ type: 'insert.block'
16717
+ block: PortableTextBlock
16718
+ placement: 'auto' | 'after' | 'before'
16719
+ }
15349
16720
  | {
15350
16721
  type: 'insert.span'
15351
16722
  text: string
@@ -15389,6 +16760,10 @@ export declare const editorMachine: StateMachine<
15389
16760
  type: 'move.block up'
15390
16761
  at: [KeyedSegment]
15391
16762
  }
16763
+ | {
16764
+ type: 'select'
16765
+ selection: EditorSelection
16766
+ }
15392
16767
  | {
15393
16768
  type: 'select.previous block'
15394
16769
  }
@@ -15531,10 +16906,6 @@ export declare const editorMachine: StateMachine<
15531
16906
  description: string
15532
16907
  data: unknown
15533
16908
  }
15534
- | {
15535
- type: 'select'
15536
- selection: EditorSelection
15537
- }
15538
16909
  | {
15539
16910
  type: 'selection'
15540
16911
  selection: EditorSelection
@@ -15586,6 +16957,16 @@ export declare const editorMachine: StateMachine<
15586
16957
  }
15587
16958
  }
15588
16959
  }
16960
+ | {
16961
+ [props: string]: unknown
16962
+ type: 'block.set'
16963
+ at: [KeyedSegment]
16964
+ }
16965
+ | {
16966
+ type: 'block.unset'
16967
+ at: [KeyedSegment]
16968
+ props: Array<string>
16969
+ }
15589
16970
  | {
15590
16971
  type: 'blur'
15591
16972
  }
@@ -15646,6 +17027,11 @@ export declare const editorMachine: StateMachine<
15646
17027
  }
15647
17028
  }
15648
17029
  }
17030
+ | {
17031
+ type: 'insert.block'
17032
+ block: PortableTextBlock
17033
+ placement: 'auto' | 'after' | 'before'
17034
+ }
15649
17035
  | {
15650
17036
  type: 'insert.span'
15651
17037
  text: string
@@ -15689,6 +17075,10 @@ export declare const editorMachine: StateMachine<
15689
17075
  type: 'move.block up'
15690
17076
  at: [KeyedSegment]
15691
17077
  }
17078
+ | {
17079
+ type: 'select'
17080
+ selection: EditorSelection
17081
+ }
15692
17082
  | {
15693
17083
  type: 'select.previous block'
15694
17084
  }
@@ -15773,10 +17163,6 @@ export declare const editorMachine: StateMachine<
15773
17163
  description: string
15774
17164
  data: unknown
15775
17165
  }
15776
- | {
15777
- type: 'select'
15778
- selection: EditorSelection
15779
- }
15780
17166
  | {
15781
17167
  type: 'selection'
15782
17168
  selection: EditorSelection
@@ -15856,6 +17242,16 @@ export declare const editorMachine: StateMachine<
15856
17242
  }
15857
17243
  }
15858
17244
  }
17245
+ | {
17246
+ [props: string]: unknown
17247
+ type: 'block.set'
17248
+ at: [KeyedSegment]
17249
+ }
17250
+ | {
17251
+ type: 'block.unset'
17252
+ at: [KeyedSegment]
17253
+ props: Array<string>
17254
+ }
15859
17255
  | {
15860
17256
  type: 'blur'
15861
17257
  }
@@ -15916,6 +17312,11 @@ export declare const editorMachine: StateMachine<
15916
17312
  }
15917
17313
  }
15918
17314
  }
17315
+ | {
17316
+ type: 'insert.block'
17317
+ block: PortableTextBlock
17318
+ placement: 'auto' | 'after' | 'before'
17319
+ }
15919
17320
  | {
15920
17321
  type: 'insert.span'
15921
17322
  text: string
@@ -15959,6 +17360,10 @@ export declare const editorMachine: StateMachine<
15959
17360
  type: 'move.block up'
15960
17361
  at: [KeyedSegment]
15961
17362
  }
17363
+ | {
17364
+ type: 'select'
17365
+ selection: EditorSelection
17366
+ }
15962
17367
  | {
15963
17368
  type: 'select.previous block'
15964
17369
  }
@@ -16101,10 +17506,6 @@ export declare const editorMachine: StateMachine<
16101
17506
  description: string
16102
17507
  data: unknown
16103
17508
  }
16104
- | {
16105
- type: 'select'
16106
- selection: EditorSelection
16107
- }
16108
17509
  | {
16109
17510
  type: 'selection'
16110
17511
  selection: EditorSelection
@@ -16156,6 +17557,16 @@ export declare const editorMachine: StateMachine<
16156
17557
  }
16157
17558
  }
16158
17559
  }
17560
+ | {
17561
+ [props: string]: unknown
17562
+ type: 'block.set'
17563
+ at: [KeyedSegment]
17564
+ }
17565
+ | {
17566
+ type: 'block.unset'
17567
+ at: [KeyedSegment]
17568
+ props: Array<string>
17569
+ }
16159
17570
  | {
16160
17571
  type: 'blur'
16161
17572
  }
@@ -16216,6 +17627,11 @@ export declare const editorMachine: StateMachine<
16216
17627
  }
16217
17628
  }
16218
17629
  }
17630
+ | {
17631
+ type: 'insert.block'
17632
+ block: PortableTextBlock
17633
+ placement: 'auto' | 'after' | 'before'
17634
+ }
16219
17635
  | {
16220
17636
  type: 'insert.span'
16221
17637
  text: string
@@ -16259,6 +17675,10 @@ export declare const editorMachine: StateMachine<
16259
17675
  type: 'move.block up'
16260
17676
  at: [KeyedSegment]
16261
17677
  }
17678
+ | {
17679
+ type: 'select'
17680
+ selection: EditorSelection
17681
+ }
16262
17682
  | {
16263
17683
  type: 'select.previous block'
16264
17684
  }
@@ -16343,10 +17763,6 @@ export declare const editorMachine: StateMachine<
16343
17763
  description: string
16344
17764
  data: unknown
16345
17765
  }
16346
- | {
16347
- type: 'select'
16348
- selection: EditorSelection
16349
- }
16350
17766
  | {
16351
17767
  type: 'selection'
16352
17768
  selection: EditorSelection
@@ -16591,10 +18007,6 @@ export declare type InternalEditorEmittedEvent =
16591
18007
  description: string
16592
18008
  data: unknown
16593
18009
  }
16594
- | {
16595
- type: 'select'
16596
- selection: EditorSelection
16597
- }
16598
18010
  | {
16599
18011
  type: 'selection'
16600
18012
  selection: EditorSelection
@@ -16625,6 +18037,8 @@ export declare type InternalEditorEmittedEvent =
16625
18037
  | 'annotation.add'
16626
18038
  | 'annotation.remove'
16627
18039
  | 'annotation.toggle'
18040
+ | 'block.set'
18041
+ | 'block.unset'
16628
18042
  | 'blur'
16629
18043
  | 'data transfer.set'
16630
18044
  | 'decorator.add'
@@ -16637,6 +18051,7 @@ export declare type InternalEditorEmittedEvent =
16637
18051
  | 'deserialization.failure'
16638
18052
  | 'deserialization.success'
16639
18053
  | 'focus'
18054
+ | 'insert.block'
16640
18055
  | 'insert.block object'
16641
18056
  | 'insert.inline object'
16642
18057
  | 'insert.span'
@@ -16647,6 +18062,7 @@ export declare type InternalEditorEmittedEvent =
16647
18062
  | 'move.block'
16648
18063
  | 'move.block down'
16649
18064
  | 'move.block up'
18065
+ | 'select'
16650
18066
  | 'select.next block'
16651
18067
  | 'select.previous block'
16652
18068
  | 'serialization.failure'
@@ -17411,6 +18827,16 @@ export declare type SyntheticBehaviorEvent =
17411
18827
  }
17412
18828
  }
17413
18829
  }
18830
+ | {
18831
+ type: 'block.set'
18832
+ at: [KeyedSegment]
18833
+ [props: string]: unknown
18834
+ }
18835
+ | {
18836
+ type: 'block.unset'
18837
+ at: [KeyedSegment]
18838
+ props: Array<string>
18839
+ }
17414
18840
  | {
17415
18841
  type: 'blur'
17416
18842
  }
@@ -17481,6 +18907,11 @@ export declare type SyntheticBehaviorEvent =
17481
18907
  | {
17482
18908
  type: 'insert.soft break'
17483
18909
  }
18910
+ | {
18911
+ type: 'insert.block'
18912
+ block: PortableTextBlock
18913
+ placement: 'auto' | 'after' | 'before'
18914
+ }
17484
18915
  | {
17485
18916
  type: 'insert.span'
17486
18917
  text: string