@portabletext/editor 1.44.15 → 1.45.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 (66) hide show
  1. package/lib/_chunks-cjs/behavior.core.cjs +5 -5
  2. package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
  3. package/lib/_chunks-cjs/behavior.markdown.cjs +28 -22
  4. package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
  5. package/lib/_chunks-cjs/editor-provider.cjs +154 -129
  6. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  7. package/lib/_chunks-cjs/parse-blocks.cjs +74 -22
  8. package/lib/_chunks-cjs/parse-blocks.cjs.map +1 -1
  9. package/lib/_chunks-es/behavior.core.js +5 -5
  10. package/lib/_chunks-es/behavior.core.js.map +1 -1
  11. package/lib/_chunks-es/behavior.markdown.js +28 -22
  12. package/lib/_chunks-es/behavior.markdown.js.map +1 -1
  13. package/lib/_chunks-es/editor-provider.js +161 -136
  14. package/lib/_chunks-es/editor-provider.js.map +1 -1
  15. package/lib/_chunks-es/parse-blocks.js +75 -23
  16. package/lib/_chunks-es/parse-blocks.js.map +1 -1
  17. package/lib/behaviors/index.cjs +18 -14
  18. package/lib/behaviors/index.cjs.map +1 -1
  19. package/lib/behaviors/index.d.cts +862 -636
  20. package/lib/behaviors/index.d.ts +862 -636
  21. package/lib/behaviors/index.js +18 -14
  22. package/lib/behaviors/index.js.map +1 -1
  23. package/lib/index.cjs +1 -1
  24. package/lib/index.cjs.map +1 -1
  25. package/lib/index.d.cts +40 -17
  26. package/lib/index.d.ts +40 -17
  27. package/lib/index.js +1 -1
  28. package/lib/index.js.map +1 -1
  29. package/lib/plugins/index.cjs +16 -7
  30. package/lib/plugins/index.cjs.map +1 -1
  31. package/lib/plugins/index.d.cts +20 -14
  32. package/lib/plugins/index.d.ts +20 -14
  33. package/lib/plugins/index.js +16 -7
  34. package/lib/plugins/index.js.map +1 -1
  35. package/lib/selectors/index.d.cts +20 -14
  36. package/lib/selectors/index.d.ts +20 -14
  37. package/lib/utils/index.d.cts +20 -14
  38. package/lib/utils/index.d.ts +20 -14
  39. package/package.json +2 -2
  40. package/src/behavior-actions/behavior.action.annotation.add.ts +26 -5
  41. package/src/behavior-actions/behavior.action.decorator.add.ts +4 -4
  42. package/src/behavior-actions/behavior.action.delete.text.ts +1 -4
  43. package/src/behavior-actions/behavior.action.delete.ts +2 -2
  44. package/src/behavior-actions/behavior.action.insert-inline-object.ts +14 -13
  45. package/src/behavior-actions/behavior.action.select.ts +1 -1
  46. package/src/behavior-actions/{behavior.action.insert-break.ts → behavior.action.split.block.ts} +3 -9
  47. package/src/behavior-actions/behavior.actions.ts +9 -20
  48. package/src/behaviors/behavior.abstract.decorator.ts +2 -2
  49. package/src/behaviors/behavior.abstract.insert.ts +9 -1
  50. package/src/behaviors/behavior.abstract.select.ts +2 -2
  51. package/src/behaviors/behavior.core.annotations.ts +1 -1
  52. package/src/behaviors/behavior.core.block-objects.ts +4 -4
  53. package/src/behaviors/behavior.decorator-pair.ts +3 -3
  54. package/src/behaviors/behavior.default.ts +4 -4
  55. package/src/behaviors/behavior.emoji-picker.ts +18 -14
  56. package/src/behaviors/behavior.markdown.ts +28 -22
  57. package/src/behaviors/behavior.types.event.ts +23 -14
  58. package/src/converters/converter.portable-text.deserialize.test.ts +12 -3
  59. package/src/converters/converter.text-html.deserialize.test.ts +3 -1
  60. package/src/editor/Editable.tsx +1 -1
  61. package/src/editor/define-schema.ts +29 -5
  62. package/src/editor/plugins/__tests__/withEditableAPIInsert.test.tsx +2 -2
  63. package/src/editor/plugins/create-with-event-listeners.ts +4 -4
  64. package/src/internal-utils/parse-blocks.ts +109 -39
  65. package/src/plugins/plugin.decorator-shortcut.ts +3 -3
  66. package/src/plugins/plugin.one-line.tsx +8 -1
@@ -73,7 +73,7 @@ declare type AbstractBehaviorEvent =
73
73
  | {
74
74
  type: StrictExtract_2<AbstractBehaviorEventType, 'decorator.toggle'>
75
75
  decorator: string
76
- offsets?: {
76
+ at?: {
77
77
  anchor: BlockOffset_2
78
78
  focus: BlockOffset_2
79
79
  }
@@ -151,6 +151,12 @@ declare type AbstractBehaviorEvent =
151
151
  blocks: Array<PortableTextBlock>
152
152
  placement: InsertPlacement_2
153
153
  }
154
+ | {
155
+ type: StrictExtract_2<AbstractBehaviorEventType, 'insert.break'>
156
+ }
157
+ | {
158
+ type: StrictExtract_2<AbstractBehaviorEventType, 'insert.soft break'>
159
+ }
154
160
  | {
155
161
  type: StrictExtract_2<AbstractBehaviorEventType, 'list item.add'>
156
162
  listItem: string
@@ -208,6 +214,8 @@ declare const abstractBehaviorEventTypes: readonly [
208
214
  'deserialization.success',
209
215
  'deserialization.failure',
210
216
  'insert.blocks',
217
+ 'insert.break',
218
+ 'insert.soft break',
211
219
  'list item.add',
212
220
  'list item.remove',
213
221
  'list item.toggle',
@@ -431,15 +439,16 @@ export declare const coreBehaviors: Behavior_2<
431
439
  | 'history.redo'
432
440
  | 'history.undo'
433
441
  | 'insert.inline object'
434
- | 'insert.break'
435
- | 'insert.soft break'
436
442
  | 'insert.block'
437
443
  | 'insert.span'
438
444
  | 'insert.text'
439
445
  | 'move.block'
446
+ | 'split.block'
440
447
  | 'annotation.toggle'
441
448
  | 'decorator.toggle'
442
449
  | 'insert.blocks'
450
+ | 'insert.break'
451
+ | 'insert.soft break'
443
452
  | 'list item.add'
444
453
  | 'list item.remove'
445
454
  | 'list item.toggle'
@@ -463,9 +472,10 @@ export declare const coreBehaviors: Behavior_2<
463
472
  | 'mouse.click'
464
473
  | 'serialize.*'
465
474
  | 'deserialize.*'
475
+ | 'split.*'
466
476
  | 'focus.*'
467
- | 'block.*'
468
477
  | 'style.*'
478
+ | 'block.*'
469
479
  | 'delete.*'
470
480
  | 'move.*'
471
481
  | 'select.*'
@@ -502,12 +512,11 @@ export declare const coreBehaviors: Behavior_2<
502
512
  | 'history.redo'
503
513
  | 'history.undo'
504
514
  | 'insert.inline object'
505
- | 'insert.break'
506
- | 'insert.soft break'
507
515
  | 'insert.block'
508
516
  | 'insert.span'
509
517
  | 'insert.text'
510
- | 'move.block',
518
+ | 'move.block'
519
+ | 'split.block',
511
520
  'annotation.add'
512
521
  >
513
522
  annotation: {
@@ -536,12 +545,11 @@ export declare const coreBehaviors: Behavior_2<
536
545
  | 'history.redo'
537
546
  | 'history.undo'
538
547
  | 'insert.inline object'
539
- | 'insert.break'
540
- | 'insert.soft break'
541
548
  | 'insert.block'
542
549
  | 'insert.span'
543
550
  | 'insert.text'
544
- | 'move.block',
551
+ | 'move.block'
552
+ | 'split.block',
545
553
  'annotation.remove'
546
554
  >
547
555
  annotation: {
@@ -567,12 +575,11 @@ export declare const coreBehaviors: Behavior_2<
567
575
  | 'history.redo'
568
576
  | 'history.undo'
569
577
  | 'insert.inline object'
570
- | 'insert.break'
571
- | 'insert.soft break'
572
578
  | 'insert.block'
573
579
  | 'insert.span'
574
580
  | 'insert.text'
575
- | 'move.block',
581
+ | 'move.block'
582
+ | 'split.block',
576
583
  'block.set'
577
584
  >
578
585
  at: [KeyedSegment]
@@ -597,12 +604,11 @@ export declare const coreBehaviors: Behavior_2<
597
604
  | 'history.redo'
598
605
  | 'history.undo'
599
606
  | 'insert.inline object'
600
- | 'insert.break'
601
- | 'insert.soft break'
602
607
  | 'insert.block'
603
608
  | 'insert.span'
604
609
  | 'insert.text'
605
- | 'move.block',
610
+ | 'move.block'
611
+ | 'split.block',
606
612
  'block.unset'
607
613
  >
608
614
  at: [KeyedSegment]
@@ -627,12 +633,11 @@ export declare const coreBehaviors: Behavior_2<
627
633
  | 'history.redo'
628
634
  | 'history.undo'
629
635
  | 'insert.inline object'
630
- | 'insert.break'
631
- | 'insert.soft break'
632
636
  | 'insert.block'
633
637
  | 'insert.span'
634
638
  | 'insert.text'
635
- | 'move.block',
639
+ | 'move.block'
640
+ | 'split.block',
636
641
  'blur'
637
642
  >
638
643
  }
@@ -655,16 +660,15 @@ export declare const coreBehaviors: Behavior_2<
655
660
  | 'history.redo'
656
661
  | 'history.undo'
657
662
  | 'insert.inline object'
658
- | 'insert.break'
659
- | 'insert.soft break'
660
663
  | 'insert.block'
661
664
  | 'insert.span'
662
665
  | 'insert.text'
663
- | 'move.block',
666
+ | 'move.block'
667
+ | 'split.block',
664
668
  'decorator.add'
665
669
  >
666
670
  decorator: string
667
- offsets?: {
671
+ at?: {
668
672
  anchor: BlockOffset
669
673
  focus: BlockOffset
670
674
  }
@@ -688,12 +692,11 @@ export declare const coreBehaviors: Behavior_2<
688
692
  | 'history.redo'
689
693
  | 'history.undo'
690
694
  | 'insert.inline object'
691
- | 'insert.break'
692
- | 'insert.soft break'
693
695
  | 'insert.block'
694
696
  | 'insert.span'
695
697
  | 'insert.text'
696
- | 'move.block',
698
+ | 'move.block'
699
+ | 'split.block',
697
700
  'decorator.remove'
698
701
  >
699
702
  decorator: string
@@ -717,15 +720,14 @@ export declare const coreBehaviors: Behavior_2<
717
720
  | 'history.redo'
718
721
  | 'history.undo'
719
722
  | 'insert.inline object'
720
- | 'insert.break'
721
- | 'insert.soft break'
722
723
  | 'insert.block'
723
724
  | 'insert.span'
724
725
  | 'insert.text'
725
- | 'move.block',
726
+ | 'move.block'
727
+ | 'split.block',
726
728
  'delete'
727
729
  >
728
- selection: NonNullable<EditorSelection>
730
+ at: NonNullable<EditorSelection>
729
731
  }
730
732
  | {
731
733
  type: StrictExtract<
@@ -746,12 +748,11 @@ export declare const coreBehaviors: Behavior_2<
746
748
  | 'history.redo'
747
749
  | 'history.undo'
748
750
  | 'insert.inline object'
749
- | 'insert.break'
750
- | 'insert.soft break'
751
751
  | 'insert.block'
752
752
  | 'insert.span'
753
753
  | 'insert.text'
754
- | 'move.block',
754
+ | 'move.block'
755
+ | 'split.block',
755
756
  'delete.backward'
756
757
  >
757
758
  unit: TextUnit
@@ -775,12 +776,11 @@ export declare const coreBehaviors: Behavior_2<
775
776
  | 'history.redo'
776
777
  | 'history.undo'
777
778
  | 'insert.inline object'
778
- | 'insert.break'
779
- | 'insert.soft break'
780
779
  | 'insert.block'
781
780
  | 'insert.span'
782
781
  | 'insert.text'
783
- | 'move.block',
782
+ | 'move.block'
783
+ | 'split.block',
784
784
  'delete.block'
785
785
  >
786
786
  at: [KeyedSegment]
@@ -804,12 +804,11 @@ export declare const coreBehaviors: Behavior_2<
804
804
  | 'history.redo'
805
805
  | 'history.undo'
806
806
  | 'insert.inline object'
807
- | 'insert.break'
808
- | 'insert.soft break'
809
807
  | 'insert.block'
810
808
  | 'insert.span'
811
809
  | 'insert.text'
812
- | 'move.block',
810
+ | 'move.block'
811
+ | 'split.block',
813
812
  'delete.forward'
814
813
  >
815
814
  unit: TextUnit
@@ -833,16 +832,17 @@ export declare const coreBehaviors: Behavior_2<
833
832
  | 'history.redo'
834
833
  | 'history.undo'
835
834
  | 'insert.inline object'
836
- | 'insert.break'
837
- | 'insert.soft break'
838
835
  | 'insert.block'
839
836
  | 'insert.span'
840
837
  | 'insert.text'
841
- | 'move.block',
838
+ | 'move.block'
839
+ | 'split.block',
842
840
  'delete.text'
843
841
  >
844
- anchor: BlockOffset
845
- focus: BlockOffset
842
+ at: {
843
+ anchor: BlockOffset
844
+ focus: BlockOffset
845
+ }
846
846
  }
847
847
  | {
848
848
  type: StrictExtract<
@@ -863,12 +863,11 @@ export declare const coreBehaviors: Behavior_2<
863
863
  | 'history.redo'
864
864
  | 'history.undo'
865
865
  | 'insert.inline object'
866
- | 'insert.break'
867
- | 'insert.soft break'
868
866
  | 'insert.block'
869
867
  | 'insert.span'
870
868
  | 'insert.text'
871
- | 'move.block',
869
+ | 'move.block'
870
+ | 'split.block',
872
871
  'focus'
873
872
  >
874
873
  }
@@ -891,12 +890,11 @@ export declare const coreBehaviors: Behavior_2<
891
890
  | 'history.redo'
892
891
  | 'history.undo'
893
892
  | 'insert.inline object'
894
- | 'insert.break'
895
- | 'insert.soft break'
896
893
  | 'insert.block'
897
894
  | 'insert.span'
898
895
  | 'insert.text'
899
- | 'move.block',
896
+ | 'move.block'
897
+ | 'split.block',
900
898
  'history.redo'
901
899
  >
902
900
  }
@@ -919,12 +917,11 @@ export declare const coreBehaviors: Behavior_2<
919
917
  | 'history.redo'
920
918
  | 'history.undo'
921
919
  | 'insert.inline object'
922
- | 'insert.break'
923
- | 'insert.soft break'
924
920
  | 'insert.block'
925
921
  | 'insert.span'
926
922
  | 'insert.text'
927
- | 'move.block',
923
+ | 'move.block'
924
+ | 'split.block',
928
925
  'history.undo'
929
926
  >
930
927
  }
@@ -947,12 +944,11 @@ export declare const coreBehaviors: Behavior_2<
947
944
  | 'history.redo'
948
945
  | 'history.undo'
949
946
  | 'insert.inline object'
950
- | 'insert.break'
951
- | 'insert.soft break'
952
947
  | 'insert.block'
953
948
  | 'insert.span'
954
949
  | 'insert.text'
955
- | 'move.block',
950
+ | 'move.block'
951
+ | 'split.block',
956
952
  'insert.inline object'
957
953
  >
958
954
  inlineObject: {
@@ -981,42 +977,16 @@ export declare const coreBehaviors: Behavior_2<
981
977
  | 'history.redo'
982
978
  | 'history.undo'
983
979
  | 'insert.inline object'
984
- | 'insert.break'
985
- | 'insert.soft break'
986
- | 'insert.block'
987
- | 'insert.span'
988
- | 'insert.text'
989
- | 'move.block',
990
- 'insert.break'
991
- >
992
- }
993
- | {
994
- type: StrictExtract<
995
- | 'focus'
996
- | 'delete'
997
- | 'select'
998
- | 'annotation.add'
999
- | 'annotation.remove'
1000
- | 'block.set'
1001
- | 'block.unset'
1002
- | 'blur'
1003
- | 'decorator.add'
1004
- | 'decorator.remove'
1005
- | 'delete.backward'
1006
- | 'delete.block'
1007
- | 'delete.forward'
1008
- | 'delete.text'
1009
- | 'history.redo'
1010
- | 'history.undo'
1011
- | 'insert.inline object'
1012
- | 'insert.break'
1013
- | 'insert.soft break'
1014
980
  | 'insert.block'
1015
981
  | 'insert.span'
1016
982
  | 'insert.text'
1017
- | 'move.block',
1018
- 'insert.soft break'
983
+ | 'move.block'
984
+ | 'split.block',
985
+ 'insert.block'
1019
986
  >
987
+ block: BlockWithOptionalKey
988
+ placement: InsertPlacement
989
+ select?: 'start' | 'end' | 'none'
1020
990
  }
1021
991
  | {
1022
992
  type: StrictExtract<
@@ -1037,17 +1007,21 @@ export declare const coreBehaviors: Behavior_2<
1037
1007
  | 'history.redo'
1038
1008
  | 'history.undo'
1039
1009
  | 'insert.inline object'
1040
- | 'insert.break'
1041
- | 'insert.soft break'
1042
1010
  | 'insert.block'
1043
1011
  | 'insert.span'
1044
1012
  | 'insert.text'
1045
- | 'move.block',
1046
- 'insert.block'
1013
+ | 'move.block'
1014
+ | 'split.block',
1015
+ 'insert.span'
1047
1016
  >
1048
- block: BlockWithOptionalKey
1049
- placement: InsertPlacement
1050
- select?: 'start' | 'end' | 'none'
1017
+ text: string
1018
+ annotations?: Array<{
1019
+ name: string
1020
+ value: {
1021
+ [prop: string]: unknown
1022
+ }
1023
+ }>
1024
+ decorators?: Array<string>
1051
1025
  }
1052
1026
  | {
1053
1027
  type: StrictExtract<
@@ -1068,22 +1042,14 @@ export declare const coreBehaviors: Behavior_2<
1068
1042
  | 'history.redo'
1069
1043
  | 'history.undo'
1070
1044
  | 'insert.inline object'
1071
- | 'insert.break'
1072
- | 'insert.soft break'
1073
1045
  | 'insert.block'
1074
1046
  | 'insert.span'
1075
1047
  | 'insert.text'
1076
- | 'move.block',
1077
- 'insert.span'
1048
+ | 'move.block'
1049
+ | 'split.block',
1050
+ 'insert.text'
1078
1051
  >
1079
1052
  text: string
1080
- annotations?: Array<{
1081
- name: string
1082
- value: {
1083
- [prop: string]: unknown
1084
- }
1085
- }>
1086
- decorators?: Array<string>
1087
1053
  }
1088
1054
  | {
1089
1055
  type: StrictExtract<
@@ -1104,15 +1070,15 @@ export declare const coreBehaviors: Behavior_2<
1104
1070
  | 'history.redo'
1105
1071
  | 'history.undo'
1106
1072
  | 'insert.inline object'
1107
- | 'insert.break'
1108
- | 'insert.soft break'
1109
1073
  | 'insert.block'
1110
1074
  | 'insert.span'
1111
1075
  | 'insert.text'
1112
- | 'move.block',
1113
- 'insert.text'
1076
+ | 'move.block'
1077
+ | 'split.block',
1078
+ 'move.block'
1114
1079
  >
1115
- text: string
1080
+ at: [KeyedSegment]
1081
+ to: [KeyedSegment]
1116
1082
  }
1117
1083
  | {
1118
1084
  type: StrictExtract<
@@ -1133,16 +1099,14 @@ export declare const coreBehaviors: Behavior_2<
1133
1099
  | 'history.redo'
1134
1100
  | 'history.undo'
1135
1101
  | 'insert.inline object'
1136
- | 'insert.break'
1137
- | 'insert.soft break'
1138
1102
  | 'insert.block'
1139
1103
  | 'insert.span'
1140
1104
  | 'insert.text'
1141
- | 'move.block',
1142
- 'move.block'
1105
+ | 'move.block'
1106
+ | 'split.block',
1107
+ 'select'
1143
1108
  >
1144
- at: [KeyedSegment]
1145
- to: [KeyedSegment]
1109
+ at: EditorSelection
1146
1110
  }
1147
1111
  | {
1148
1112
  type: StrictExtract<
@@ -1163,15 +1127,13 @@ export declare const coreBehaviors: Behavior_2<
1163
1127
  | 'history.redo'
1164
1128
  | 'history.undo'
1165
1129
  | 'insert.inline object'
1166
- | 'insert.break'
1167
- | 'insert.soft break'
1168
1130
  | 'insert.block'
1169
1131
  | 'insert.span'
1170
1132
  | 'insert.text'
1171
- | 'move.block',
1172
- 'select'
1133
+ | 'move.block'
1134
+ | 'split.block',
1135
+ 'split.block'
1173
1136
  >
1174
- selection: EditorSelection
1175
1137
  }
1176
1138
  | {
1177
1139
  type: StrictExtract<
@@ -1184,6 +1146,8 @@ export declare const coreBehaviors: Behavior_2<
1184
1146
  | 'annotation.toggle'
1185
1147
  | 'decorator.toggle'
1186
1148
  | 'insert.blocks'
1149
+ | 'insert.break'
1150
+ | 'insert.soft break'
1187
1151
  | 'list item.add'
1188
1152
  | 'list item.remove'
1189
1153
  | 'list item.toggle'
@@ -1214,6 +1178,8 @@ export declare const coreBehaviors: Behavior_2<
1214
1178
  | 'annotation.toggle'
1215
1179
  | 'decorator.toggle'
1216
1180
  | 'insert.blocks'
1181
+ | 'insert.break'
1182
+ | 'insert.soft break'
1217
1183
  | 'list item.add'
1218
1184
  | 'list item.remove'
1219
1185
  | 'list item.toggle'
@@ -1227,7 +1193,7 @@ export declare const coreBehaviors: Behavior_2<
1227
1193
  'decorator.toggle'
1228
1194
  >
1229
1195
  decorator: string
1230
- offsets?: {
1196
+ at?: {
1231
1197
  anchor: BlockOffset
1232
1198
  focus: BlockOffset
1233
1199
  }
@@ -1243,6 +1209,8 @@ export declare const coreBehaviors: Behavior_2<
1243
1209
  | 'annotation.toggle'
1244
1210
  | 'decorator.toggle'
1245
1211
  | 'insert.blocks'
1212
+ | 'insert.break'
1213
+ | 'insert.soft break'
1246
1214
  | 'list item.add'
1247
1215
  | 'list item.remove'
1248
1216
  | 'list item.toggle'
@@ -1274,6 +1242,8 @@ export declare const coreBehaviors: Behavior_2<
1274
1242
  | 'annotation.toggle'
1275
1243
  | 'decorator.toggle'
1276
1244
  | 'insert.blocks'
1245
+ | 'insert.break'
1246
+ | 'insert.soft break'
1277
1247
  | 'list item.add'
1278
1248
  | 'list item.remove'
1279
1249
  | 'list item.toggle'
@@ -1303,6 +1273,8 @@ export declare const coreBehaviors: Behavior_2<
1303
1273
  | 'annotation.toggle'
1304
1274
  | 'decorator.toggle'
1305
1275
  | 'insert.blocks'
1276
+ | 'insert.break'
1277
+ | 'insert.soft break'
1306
1278
  | 'list item.add'
1307
1279
  | 'list item.remove'
1308
1280
  | 'list item.toggle'
@@ -1336,6 +1308,8 @@ export declare const coreBehaviors: Behavior_2<
1336
1308
  | 'annotation.toggle'
1337
1309
  | 'decorator.toggle'
1338
1310
  | 'insert.blocks'
1311
+ | 'insert.break'
1312
+ | 'insert.soft break'
1339
1313
  | 'list item.add'
1340
1314
  | 'list item.remove'
1341
1315
  | 'list item.toggle'
@@ -1369,6 +1343,8 @@ export declare const coreBehaviors: Behavior_2<
1369
1343
  | 'annotation.toggle'
1370
1344
  | 'decorator.toggle'
1371
1345
  | 'insert.blocks'
1346
+ | 'insert.break'
1347
+ | 'insert.soft break'
1372
1348
  | 'list item.add'
1373
1349
  | 'list item.remove'
1374
1350
  | 'list item.toggle'
@@ -1400,6 +1376,8 @@ export declare const coreBehaviors: Behavior_2<
1400
1376
  | 'annotation.toggle'
1401
1377
  | 'decorator.toggle'
1402
1378
  | 'insert.blocks'
1379
+ | 'insert.break'
1380
+ | 'insert.soft break'
1403
1381
  | 'list item.add'
1404
1382
  | 'list item.remove'
1405
1383
  | 'list item.toggle'
@@ -1431,6 +1409,8 @@ export declare const coreBehaviors: Behavior_2<
1431
1409
  | 'annotation.toggle'
1432
1410
  | 'decorator.toggle'
1433
1411
  | 'insert.blocks'
1412
+ | 'insert.break'
1413
+ | 'insert.soft break'
1434
1414
  | 'list item.add'
1435
1415
  | 'list item.remove'
1436
1416
  | 'list item.toggle'
@@ -1457,6 +1437,60 @@ export declare const coreBehaviors: Behavior_2<
1457
1437
  | 'annotation.toggle'
1458
1438
  | 'decorator.toggle'
1459
1439
  | 'insert.blocks'
1440
+ | 'insert.break'
1441
+ | 'insert.soft break'
1442
+ | 'list item.add'
1443
+ | 'list item.remove'
1444
+ | 'list item.toggle'
1445
+ | 'move.block down'
1446
+ | 'move.block up'
1447
+ | 'select.previous block'
1448
+ | 'select.next block'
1449
+ | 'style.add'
1450
+ | 'style.remove'
1451
+ | 'style.toggle',
1452
+ 'insert.break'
1453
+ >
1454
+ }
1455
+ | {
1456
+ type: StrictExtract<
1457
+ | 'serialize'
1458
+ | 'serialization.failure'
1459
+ | 'serialization.success'
1460
+ | 'deserialize'
1461
+ | 'deserialization.failure'
1462
+ | 'deserialization.success'
1463
+ | 'annotation.toggle'
1464
+ | 'decorator.toggle'
1465
+ | 'insert.blocks'
1466
+ | 'insert.break'
1467
+ | 'insert.soft break'
1468
+ | 'list item.add'
1469
+ | 'list item.remove'
1470
+ | 'list item.toggle'
1471
+ | 'move.block down'
1472
+ | 'move.block up'
1473
+ | 'select.previous block'
1474
+ | 'select.next block'
1475
+ | 'style.add'
1476
+ | 'style.remove'
1477
+ | 'style.toggle',
1478
+ 'insert.soft break'
1479
+ >
1480
+ }
1481
+ | {
1482
+ type: StrictExtract<
1483
+ | 'serialize'
1484
+ | 'serialization.failure'
1485
+ | 'serialization.success'
1486
+ | 'deserialize'
1487
+ | 'deserialization.failure'
1488
+ | 'deserialization.success'
1489
+ | 'annotation.toggle'
1490
+ | 'decorator.toggle'
1491
+ | 'insert.blocks'
1492
+ | 'insert.break'
1493
+ | 'insert.soft break'
1460
1494
  | 'list item.add'
1461
1495
  | 'list item.remove'
1462
1496
  | 'list item.toggle'
@@ -1482,6 +1516,8 @@ export declare const coreBehaviors: Behavior_2<
1482
1516
  | 'annotation.toggle'
1483
1517
  | 'decorator.toggle'
1484
1518
  | 'insert.blocks'
1519
+ | 'insert.break'
1520
+ | 'insert.soft break'
1485
1521
  | 'list item.add'
1486
1522
  | 'list item.remove'
1487
1523
  | 'list item.toggle'
@@ -1507,6 +1543,8 @@ export declare const coreBehaviors: Behavior_2<
1507
1543
  | 'annotation.toggle'
1508
1544
  | 'decorator.toggle'
1509
1545
  | 'insert.blocks'
1546
+ | 'insert.break'
1547
+ | 'insert.soft break'
1510
1548
  | 'list item.add'
1511
1549
  | 'list item.remove'
1512
1550
  | 'list item.toggle'
@@ -1532,6 +1570,8 @@ export declare const coreBehaviors: Behavior_2<
1532
1570
  | 'annotation.toggle'
1533
1571
  | 'decorator.toggle'
1534
1572
  | 'insert.blocks'
1573
+ | 'insert.break'
1574
+ | 'insert.soft break'
1535
1575
  | 'list item.add'
1536
1576
  | 'list item.remove'
1537
1577
  | 'list item.toggle'
@@ -1557,6 +1597,8 @@ export declare const coreBehaviors: Behavior_2<
1557
1597
  | 'annotation.toggle'
1558
1598
  | 'decorator.toggle'
1559
1599
  | 'insert.blocks'
1600
+ | 'insert.break'
1601
+ | 'insert.soft break'
1560
1602
  | 'list item.add'
1561
1603
  | 'list item.remove'
1562
1604
  | 'list item.toggle'
@@ -1582,6 +1624,8 @@ export declare const coreBehaviors: Behavior_2<
1582
1624
  | 'annotation.toggle'
1583
1625
  | 'decorator.toggle'
1584
1626
  | 'insert.blocks'
1627
+ | 'insert.break'
1628
+ | 'insert.soft break'
1585
1629
  | 'list item.add'
1586
1630
  | 'list item.remove'
1587
1631
  | 'list item.toggle'
@@ -1607,6 +1651,8 @@ export declare const coreBehaviors: Behavior_2<
1607
1651
  | 'annotation.toggle'
1608
1652
  | 'decorator.toggle'
1609
1653
  | 'insert.blocks'
1654
+ | 'insert.break'
1655
+ | 'insert.soft break'
1610
1656
  | 'list item.add'
1611
1657
  | 'list item.remove'
1612
1658
  | 'list item.toggle'
@@ -1632,6 +1678,8 @@ export declare const coreBehaviors: Behavior_2<
1632
1678
  | 'annotation.toggle'
1633
1679
  | 'decorator.toggle'
1634
1680
  | 'insert.blocks'
1681
+ | 'insert.break'
1682
+ | 'insert.soft break'
1635
1683
  | 'list item.add'
1636
1684
  | 'list item.remove'
1637
1685
  | 'list item.toggle'
@@ -1657,6 +1705,8 @@ export declare const coreBehaviors: Behavior_2<
1657
1705
  | 'annotation.toggle'
1658
1706
  | 'decorator.toggle'
1659
1707
  | 'insert.blocks'
1708
+ | 'insert.break'
1709
+ | 'insert.soft break'
1660
1710
  | 'list item.add'
1661
1711
  | 'list item.remove'
1662
1712
  | 'list item.toggle'
@@ -1682,6 +1732,8 @@ export declare const coreBehaviors: Behavior_2<
1682
1732
  | 'annotation.toggle'
1683
1733
  | 'decorator.toggle'
1684
1734
  | 'insert.blocks'
1735
+ | 'insert.break'
1736
+ | 'insert.soft break'
1685
1737
  | 'list item.add'
1686
1738
  | 'list item.remove'
1687
1739
  | 'list item.toggle'
@@ -2007,15 +2059,16 @@ export declare function createCodeEditorBehaviors(
2007
2059
  | 'history.redo'
2008
2060
  | 'history.undo'
2009
2061
  | 'insert.inline object'
2010
- | 'insert.break'
2011
- | 'insert.soft break'
2012
2062
  | 'insert.block'
2013
2063
  | 'insert.span'
2014
2064
  | 'insert.text'
2015
2065
  | 'move.block'
2066
+ | 'split.block'
2016
2067
  | 'annotation.toggle'
2017
2068
  | 'decorator.toggle'
2018
2069
  | 'insert.blocks'
2070
+ | 'insert.break'
2071
+ | 'insert.soft break'
2019
2072
  | 'list item.add'
2020
2073
  | 'list item.remove'
2021
2074
  | 'list item.toggle'
@@ -2039,9 +2092,10 @@ export declare function createCodeEditorBehaviors(
2039
2092
  | 'mouse.click'
2040
2093
  | 'serialize.*'
2041
2094
  | 'deserialize.*'
2095
+ | 'split.*'
2042
2096
  | 'focus.*'
2043
- | 'block.*'
2044
2097
  | 'style.*'
2098
+ | 'block.*'
2045
2099
  | 'delete.*'
2046
2100
  | 'move.*'
2047
2101
  | 'select.*'
@@ -2078,12 +2132,11 @@ export declare function createCodeEditorBehaviors(
2078
2132
  | 'history.redo'
2079
2133
  | 'history.undo'
2080
2134
  | 'insert.inline object'
2081
- | 'insert.break'
2082
- | 'insert.soft break'
2083
2135
  | 'insert.block'
2084
2136
  | 'insert.span'
2085
2137
  | 'insert.text'
2086
- | 'move.block',
2138
+ | 'move.block'
2139
+ | 'split.block',
2087
2140
  'annotation.add'
2088
2141
  >
2089
2142
  annotation: {
@@ -2112,12 +2165,11 @@ export declare function createCodeEditorBehaviors(
2112
2165
  | 'history.redo'
2113
2166
  | 'history.undo'
2114
2167
  | 'insert.inline object'
2115
- | 'insert.break'
2116
- | 'insert.soft break'
2117
2168
  | 'insert.block'
2118
2169
  | 'insert.span'
2119
2170
  | 'insert.text'
2120
- | 'move.block',
2171
+ | 'move.block'
2172
+ | 'split.block',
2121
2173
  'annotation.remove'
2122
2174
  >
2123
2175
  annotation: {
@@ -2143,12 +2195,11 @@ export declare function createCodeEditorBehaviors(
2143
2195
  | 'history.redo'
2144
2196
  | 'history.undo'
2145
2197
  | 'insert.inline object'
2146
- | 'insert.break'
2147
- | 'insert.soft break'
2148
2198
  | 'insert.block'
2149
2199
  | 'insert.span'
2150
2200
  | 'insert.text'
2151
- | 'move.block',
2201
+ | 'move.block'
2202
+ | 'split.block',
2152
2203
  'block.set'
2153
2204
  >
2154
2205
  at: [KeyedSegment]
@@ -2173,12 +2224,11 @@ export declare function createCodeEditorBehaviors(
2173
2224
  | 'history.redo'
2174
2225
  | 'history.undo'
2175
2226
  | 'insert.inline object'
2176
- | 'insert.break'
2177
- | 'insert.soft break'
2178
2227
  | 'insert.block'
2179
2228
  | 'insert.span'
2180
2229
  | 'insert.text'
2181
- | 'move.block',
2230
+ | 'move.block'
2231
+ | 'split.block',
2182
2232
  'block.unset'
2183
2233
  >
2184
2234
  at: [KeyedSegment]
@@ -2203,12 +2253,11 @@ export declare function createCodeEditorBehaviors(
2203
2253
  | 'history.redo'
2204
2254
  | 'history.undo'
2205
2255
  | 'insert.inline object'
2206
- | 'insert.break'
2207
- | 'insert.soft break'
2208
2256
  | 'insert.block'
2209
2257
  | 'insert.span'
2210
2258
  | 'insert.text'
2211
- | 'move.block',
2259
+ | 'move.block'
2260
+ | 'split.block',
2212
2261
  'blur'
2213
2262
  >
2214
2263
  }
@@ -2231,16 +2280,15 @@ export declare function createCodeEditorBehaviors(
2231
2280
  | 'history.redo'
2232
2281
  | 'history.undo'
2233
2282
  | 'insert.inline object'
2234
- | 'insert.break'
2235
- | 'insert.soft break'
2236
2283
  | 'insert.block'
2237
2284
  | 'insert.span'
2238
2285
  | 'insert.text'
2239
- | 'move.block',
2286
+ | 'move.block'
2287
+ | 'split.block',
2240
2288
  'decorator.add'
2241
2289
  >
2242
2290
  decorator: string
2243
- offsets?: {
2291
+ at?: {
2244
2292
  anchor: BlockOffset
2245
2293
  focus: BlockOffset
2246
2294
  }
@@ -2264,12 +2312,11 @@ export declare function createCodeEditorBehaviors(
2264
2312
  | 'history.redo'
2265
2313
  | 'history.undo'
2266
2314
  | 'insert.inline object'
2267
- | 'insert.break'
2268
- | 'insert.soft break'
2269
2315
  | 'insert.block'
2270
2316
  | 'insert.span'
2271
2317
  | 'insert.text'
2272
- | 'move.block',
2318
+ | 'move.block'
2319
+ | 'split.block',
2273
2320
  'decorator.remove'
2274
2321
  >
2275
2322
  decorator: string
@@ -2293,15 +2340,14 @@ export declare function createCodeEditorBehaviors(
2293
2340
  | 'history.redo'
2294
2341
  | 'history.undo'
2295
2342
  | 'insert.inline object'
2296
- | 'insert.break'
2297
- | 'insert.soft break'
2298
2343
  | 'insert.block'
2299
2344
  | 'insert.span'
2300
2345
  | 'insert.text'
2301
- | 'move.block',
2346
+ | 'move.block'
2347
+ | 'split.block',
2302
2348
  'delete'
2303
2349
  >
2304
- selection: NonNullable<EditorSelection>
2350
+ at: NonNullable<EditorSelection>
2305
2351
  }
2306
2352
  | {
2307
2353
  type: StrictExtract<
@@ -2322,12 +2368,11 @@ export declare function createCodeEditorBehaviors(
2322
2368
  | 'history.redo'
2323
2369
  | 'history.undo'
2324
2370
  | 'insert.inline object'
2325
- | 'insert.break'
2326
- | 'insert.soft break'
2327
2371
  | 'insert.block'
2328
2372
  | 'insert.span'
2329
2373
  | 'insert.text'
2330
- | 'move.block',
2374
+ | 'move.block'
2375
+ | 'split.block',
2331
2376
  'delete.backward'
2332
2377
  >
2333
2378
  unit: TextUnit
@@ -2351,12 +2396,11 @@ export declare function createCodeEditorBehaviors(
2351
2396
  | 'history.redo'
2352
2397
  | 'history.undo'
2353
2398
  | 'insert.inline object'
2354
- | 'insert.break'
2355
- | 'insert.soft break'
2356
2399
  | 'insert.block'
2357
2400
  | 'insert.span'
2358
2401
  | 'insert.text'
2359
- | 'move.block',
2402
+ | 'move.block'
2403
+ | 'split.block',
2360
2404
  'delete.block'
2361
2405
  >
2362
2406
  at: [KeyedSegment]
@@ -2380,12 +2424,11 @@ export declare function createCodeEditorBehaviors(
2380
2424
  | 'history.redo'
2381
2425
  | 'history.undo'
2382
2426
  | 'insert.inline object'
2383
- | 'insert.break'
2384
- | 'insert.soft break'
2385
2427
  | 'insert.block'
2386
2428
  | 'insert.span'
2387
2429
  | 'insert.text'
2388
- | 'move.block',
2430
+ | 'move.block'
2431
+ | 'split.block',
2389
2432
  'delete.forward'
2390
2433
  >
2391
2434
  unit: TextUnit
@@ -2409,16 +2452,17 @@ export declare function createCodeEditorBehaviors(
2409
2452
  | 'history.redo'
2410
2453
  | 'history.undo'
2411
2454
  | 'insert.inline object'
2412
- | 'insert.break'
2413
- | 'insert.soft break'
2414
2455
  | 'insert.block'
2415
2456
  | 'insert.span'
2416
2457
  | 'insert.text'
2417
- | 'move.block',
2458
+ | 'move.block'
2459
+ | 'split.block',
2418
2460
  'delete.text'
2419
2461
  >
2420
- anchor: BlockOffset
2421
- focus: BlockOffset
2462
+ at: {
2463
+ anchor: BlockOffset
2464
+ focus: BlockOffset
2465
+ }
2422
2466
  }
2423
2467
  | {
2424
2468
  type: StrictExtract<
@@ -2439,12 +2483,11 @@ export declare function createCodeEditorBehaviors(
2439
2483
  | 'history.redo'
2440
2484
  | 'history.undo'
2441
2485
  | 'insert.inline object'
2442
- | 'insert.break'
2443
- | 'insert.soft break'
2444
2486
  | 'insert.block'
2445
2487
  | 'insert.span'
2446
2488
  | 'insert.text'
2447
- | 'move.block',
2489
+ | 'move.block'
2490
+ | 'split.block',
2448
2491
  'focus'
2449
2492
  >
2450
2493
  }
@@ -2467,12 +2510,11 @@ export declare function createCodeEditorBehaviors(
2467
2510
  | 'history.redo'
2468
2511
  | 'history.undo'
2469
2512
  | 'insert.inline object'
2470
- | 'insert.break'
2471
- | 'insert.soft break'
2472
2513
  | 'insert.block'
2473
2514
  | 'insert.span'
2474
2515
  | 'insert.text'
2475
- | 'move.block',
2516
+ | 'move.block'
2517
+ | 'split.block',
2476
2518
  'history.redo'
2477
2519
  >
2478
2520
  }
@@ -2495,12 +2537,11 @@ export declare function createCodeEditorBehaviors(
2495
2537
  | 'history.redo'
2496
2538
  | 'history.undo'
2497
2539
  | 'insert.inline object'
2498
- | 'insert.break'
2499
- | 'insert.soft break'
2500
2540
  | 'insert.block'
2501
2541
  | 'insert.span'
2502
2542
  | 'insert.text'
2503
- | 'move.block',
2543
+ | 'move.block'
2544
+ | 'split.block',
2504
2545
  'history.undo'
2505
2546
  >
2506
2547
  }
@@ -2523,12 +2564,11 @@ export declare function createCodeEditorBehaviors(
2523
2564
  | 'history.redo'
2524
2565
  | 'history.undo'
2525
2566
  | 'insert.inline object'
2526
- | 'insert.break'
2527
- | 'insert.soft break'
2528
2567
  | 'insert.block'
2529
2568
  | 'insert.span'
2530
2569
  | 'insert.text'
2531
- | 'move.block',
2570
+ | 'move.block'
2571
+ | 'split.block',
2532
2572
  'insert.inline object'
2533
2573
  >
2534
2574
  inlineObject: {
@@ -2557,42 +2597,16 @@ export declare function createCodeEditorBehaviors(
2557
2597
  | 'history.redo'
2558
2598
  | 'history.undo'
2559
2599
  | 'insert.inline object'
2560
- | 'insert.break'
2561
- | 'insert.soft break'
2562
2600
  | 'insert.block'
2563
2601
  | 'insert.span'
2564
2602
  | 'insert.text'
2565
- | 'move.block',
2566
- 'insert.break'
2567
- >
2568
- }
2569
- | {
2570
- type: StrictExtract<
2571
- | 'focus'
2572
- | 'delete'
2573
- | 'select'
2574
- | 'annotation.add'
2575
- | 'annotation.remove'
2576
- | 'block.set'
2577
- | 'block.unset'
2578
- | 'blur'
2579
- | 'decorator.add'
2580
- | 'decorator.remove'
2581
- | 'delete.backward'
2582
- | 'delete.block'
2583
- | 'delete.forward'
2584
- | 'delete.text'
2585
- | 'history.redo'
2586
- | 'history.undo'
2587
- | 'insert.inline object'
2588
- | 'insert.break'
2589
- | 'insert.soft break'
2590
- | 'insert.block'
2591
- | 'insert.span'
2592
- | 'insert.text'
2593
- | 'move.block',
2594
- 'insert.soft break'
2603
+ | 'move.block'
2604
+ | 'split.block',
2605
+ 'insert.block'
2595
2606
  >
2607
+ block: BlockWithOptionalKey
2608
+ placement: InsertPlacement
2609
+ select?: 'start' | 'end' | 'none'
2596
2610
  }
2597
2611
  | {
2598
2612
  type: StrictExtract<
@@ -2613,17 +2627,21 @@ export declare function createCodeEditorBehaviors(
2613
2627
  | 'history.redo'
2614
2628
  | 'history.undo'
2615
2629
  | 'insert.inline object'
2616
- | 'insert.break'
2617
- | 'insert.soft break'
2618
2630
  | 'insert.block'
2619
2631
  | 'insert.span'
2620
2632
  | 'insert.text'
2621
- | 'move.block',
2622
- 'insert.block'
2633
+ | 'move.block'
2634
+ | 'split.block',
2635
+ 'insert.span'
2623
2636
  >
2624
- block: BlockWithOptionalKey
2625
- placement: InsertPlacement
2626
- select?: 'start' | 'end' | 'none'
2637
+ text: string
2638
+ annotations?: Array<{
2639
+ name: string
2640
+ value: {
2641
+ [prop: string]: unknown
2642
+ }
2643
+ }>
2644
+ decorators?: Array<string>
2627
2645
  }
2628
2646
  | {
2629
2647
  type: StrictExtract<
@@ -2644,22 +2662,14 @@ export declare function createCodeEditorBehaviors(
2644
2662
  | 'history.redo'
2645
2663
  | 'history.undo'
2646
2664
  | 'insert.inline object'
2647
- | 'insert.break'
2648
- | 'insert.soft break'
2649
2665
  | 'insert.block'
2650
2666
  | 'insert.span'
2651
2667
  | 'insert.text'
2652
- | 'move.block',
2653
- 'insert.span'
2668
+ | 'move.block'
2669
+ | 'split.block',
2670
+ 'insert.text'
2654
2671
  >
2655
2672
  text: string
2656
- annotations?: Array<{
2657
- name: string
2658
- value: {
2659
- [prop: string]: unknown
2660
- }
2661
- }>
2662
- decorators?: Array<string>
2663
2673
  }
2664
2674
  | {
2665
2675
  type: StrictExtract<
@@ -2680,15 +2690,15 @@ export declare function createCodeEditorBehaviors(
2680
2690
  | 'history.redo'
2681
2691
  | 'history.undo'
2682
2692
  | 'insert.inline object'
2683
- | 'insert.break'
2684
- | 'insert.soft break'
2685
2693
  | 'insert.block'
2686
2694
  | 'insert.span'
2687
2695
  | 'insert.text'
2688
- | 'move.block',
2689
- 'insert.text'
2696
+ | 'move.block'
2697
+ | 'split.block',
2698
+ 'move.block'
2690
2699
  >
2691
- text: string
2700
+ at: [KeyedSegment]
2701
+ to: [KeyedSegment]
2692
2702
  }
2693
2703
  | {
2694
2704
  type: StrictExtract<
@@ -2709,16 +2719,14 @@ export declare function createCodeEditorBehaviors(
2709
2719
  | 'history.redo'
2710
2720
  | 'history.undo'
2711
2721
  | 'insert.inline object'
2712
- | 'insert.break'
2713
- | 'insert.soft break'
2714
2722
  | 'insert.block'
2715
2723
  | 'insert.span'
2716
2724
  | 'insert.text'
2717
- | 'move.block',
2718
- 'move.block'
2725
+ | 'move.block'
2726
+ | 'split.block',
2727
+ 'select'
2719
2728
  >
2720
- at: [KeyedSegment]
2721
- to: [KeyedSegment]
2729
+ at: EditorSelection
2722
2730
  }
2723
2731
  | {
2724
2732
  type: StrictExtract<
@@ -2739,15 +2747,13 @@ export declare function createCodeEditorBehaviors(
2739
2747
  | 'history.redo'
2740
2748
  | 'history.undo'
2741
2749
  | 'insert.inline object'
2742
- | 'insert.break'
2743
- | 'insert.soft break'
2744
2750
  | 'insert.block'
2745
2751
  | 'insert.span'
2746
2752
  | 'insert.text'
2747
- | 'move.block',
2748
- 'select'
2753
+ | 'move.block'
2754
+ | 'split.block',
2755
+ 'split.block'
2749
2756
  >
2750
- selection: EditorSelection
2751
2757
  }
2752
2758
  | {
2753
2759
  type: StrictExtract<
@@ -2760,6 +2766,8 @@ export declare function createCodeEditorBehaviors(
2760
2766
  | 'annotation.toggle'
2761
2767
  | 'decorator.toggle'
2762
2768
  | 'insert.blocks'
2769
+ | 'insert.break'
2770
+ | 'insert.soft break'
2763
2771
  | 'list item.add'
2764
2772
  | 'list item.remove'
2765
2773
  | 'list item.toggle'
@@ -2790,6 +2798,8 @@ export declare function createCodeEditorBehaviors(
2790
2798
  | 'annotation.toggle'
2791
2799
  | 'decorator.toggle'
2792
2800
  | 'insert.blocks'
2801
+ | 'insert.break'
2802
+ | 'insert.soft break'
2793
2803
  | 'list item.add'
2794
2804
  | 'list item.remove'
2795
2805
  | 'list item.toggle'
@@ -2803,7 +2813,7 @@ export declare function createCodeEditorBehaviors(
2803
2813
  'decorator.toggle'
2804
2814
  >
2805
2815
  decorator: string
2806
- offsets?: {
2816
+ at?: {
2807
2817
  anchor: BlockOffset
2808
2818
  focus: BlockOffset
2809
2819
  }
@@ -2819,6 +2829,8 @@ export declare function createCodeEditorBehaviors(
2819
2829
  | 'annotation.toggle'
2820
2830
  | 'decorator.toggle'
2821
2831
  | 'insert.blocks'
2832
+ | 'insert.break'
2833
+ | 'insert.soft break'
2822
2834
  | 'list item.add'
2823
2835
  | 'list item.remove'
2824
2836
  | 'list item.toggle'
@@ -2850,6 +2862,8 @@ export declare function createCodeEditorBehaviors(
2850
2862
  | 'annotation.toggle'
2851
2863
  | 'decorator.toggle'
2852
2864
  | 'insert.blocks'
2865
+ | 'insert.break'
2866
+ | 'insert.soft break'
2853
2867
  | 'list item.add'
2854
2868
  | 'list item.remove'
2855
2869
  | 'list item.toggle'
@@ -2879,6 +2893,8 @@ export declare function createCodeEditorBehaviors(
2879
2893
  | 'annotation.toggle'
2880
2894
  | 'decorator.toggle'
2881
2895
  | 'insert.blocks'
2896
+ | 'insert.break'
2897
+ | 'insert.soft break'
2882
2898
  | 'list item.add'
2883
2899
  | 'list item.remove'
2884
2900
  | 'list item.toggle'
@@ -2912,6 +2928,8 @@ export declare function createCodeEditorBehaviors(
2912
2928
  | 'annotation.toggle'
2913
2929
  | 'decorator.toggle'
2914
2930
  | 'insert.blocks'
2931
+ | 'insert.break'
2932
+ | 'insert.soft break'
2915
2933
  | 'list item.add'
2916
2934
  | 'list item.remove'
2917
2935
  | 'list item.toggle'
@@ -2945,6 +2963,8 @@ export declare function createCodeEditorBehaviors(
2945
2963
  | 'annotation.toggle'
2946
2964
  | 'decorator.toggle'
2947
2965
  | 'insert.blocks'
2966
+ | 'insert.break'
2967
+ | 'insert.soft break'
2948
2968
  | 'list item.add'
2949
2969
  | 'list item.remove'
2950
2970
  | 'list item.toggle'
@@ -2976,6 +2996,8 @@ export declare function createCodeEditorBehaviors(
2976
2996
  | 'annotation.toggle'
2977
2997
  | 'decorator.toggle'
2978
2998
  | 'insert.blocks'
2999
+ | 'insert.break'
3000
+ | 'insert.soft break'
2979
3001
  | 'list item.add'
2980
3002
  | 'list item.remove'
2981
3003
  | 'list item.toggle'
@@ -3007,6 +3029,8 @@ export declare function createCodeEditorBehaviors(
3007
3029
  | 'annotation.toggle'
3008
3030
  | 'decorator.toggle'
3009
3031
  | 'insert.blocks'
3032
+ | 'insert.break'
3033
+ | 'insert.soft break'
3010
3034
  | 'list item.add'
3011
3035
  | 'list item.remove'
3012
3036
  | 'list item.toggle'
@@ -3033,6 +3057,60 @@ export declare function createCodeEditorBehaviors(
3033
3057
  | 'annotation.toggle'
3034
3058
  | 'decorator.toggle'
3035
3059
  | 'insert.blocks'
3060
+ | 'insert.break'
3061
+ | 'insert.soft break'
3062
+ | 'list item.add'
3063
+ | 'list item.remove'
3064
+ | 'list item.toggle'
3065
+ | 'move.block down'
3066
+ | 'move.block up'
3067
+ | 'select.previous block'
3068
+ | 'select.next block'
3069
+ | 'style.add'
3070
+ | 'style.remove'
3071
+ | 'style.toggle',
3072
+ 'insert.break'
3073
+ >
3074
+ }
3075
+ | {
3076
+ type: StrictExtract<
3077
+ | 'serialize'
3078
+ | 'serialization.failure'
3079
+ | 'serialization.success'
3080
+ | 'deserialize'
3081
+ | 'deserialization.failure'
3082
+ | 'deserialization.success'
3083
+ | 'annotation.toggle'
3084
+ | 'decorator.toggle'
3085
+ | 'insert.blocks'
3086
+ | 'insert.break'
3087
+ | 'insert.soft break'
3088
+ | 'list item.add'
3089
+ | 'list item.remove'
3090
+ | 'list item.toggle'
3091
+ | 'move.block down'
3092
+ | 'move.block up'
3093
+ | 'select.previous block'
3094
+ | 'select.next block'
3095
+ | 'style.add'
3096
+ | 'style.remove'
3097
+ | 'style.toggle',
3098
+ 'insert.soft break'
3099
+ >
3100
+ }
3101
+ | {
3102
+ type: StrictExtract<
3103
+ | 'serialize'
3104
+ | 'serialization.failure'
3105
+ | 'serialization.success'
3106
+ | 'deserialize'
3107
+ | 'deserialization.failure'
3108
+ | 'deserialization.success'
3109
+ | 'annotation.toggle'
3110
+ | 'decorator.toggle'
3111
+ | 'insert.blocks'
3112
+ | 'insert.break'
3113
+ | 'insert.soft break'
3036
3114
  | 'list item.add'
3037
3115
  | 'list item.remove'
3038
3116
  | 'list item.toggle'
@@ -3058,6 +3136,8 @@ export declare function createCodeEditorBehaviors(
3058
3136
  | 'annotation.toggle'
3059
3137
  | 'decorator.toggle'
3060
3138
  | 'insert.blocks'
3139
+ | 'insert.break'
3140
+ | 'insert.soft break'
3061
3141
  | 'list item.add'
3062
3142
  | 'list item.remove'
3063
3143
  | 'list item.toggle'
@@ -3083,6 +3163,8 @@ export declare function createCodeEditorBehaviors(
3083
3163
  | 'annotation.toggle'
3084
3164
  | 'decorator.toggle'
3085
3165
  | 'insert.blocks'
3166
+ | 'insert.break'
3167
+ | 'insert.soft break'
3086
3168
  | 'list item.add'
3087
3169
  | 'list item.remove'
3088
3170
  | 'list item.toggle'
@@ -3108,6 +3190,8 @@ export declare function createCodeEditorBehaviors(
3108
3190
  | 'annotation.toggle'
3109
3191
  | 'decorator.toggle'
3110
3192
  | 'insert.blocks'
3193
+ | 'insert.break'
3194
+ | 'insert.soft break'
3111
3195
  | 'list item.add'
3112
3196
  | 'list item.remove'
3113
3197
  | 'list item.toggle'
@@ -3133,6 +3217,8 @@ export declare function createCodeEditorBehaviors(
3133
3217
  | 'annotation.toggle'
3134
3218
  | 'decorator.toggle'
3135
3219
  | 'insert.blocks'
3220
+ | 'insert.break'
3221
+ | 'insert.soft break'
3136
3222
  | 'list item.add'
3137
3223
  | 'list item.remove'
3138
3224
  | 'list item.toggle'
@@ -3158,6 +3244,8 @@ export declare function createCodeEditorBehaviors(
3158
3244
  | 'annotation.toggle'
3159
3245
  | 'decorator.toggle'
3160
3246
  | 'insert.blocks'
3247
+ | 'insert.break'
3248
+ | 'insert.soft break'
3161
3249
  | 'list item.add'
3162
3250
  | 'list item.remove'
3163
3251
  | 'list item.toggle'
@@ -3183,6 +3271,8 @@ export declare function createCodeEditorBehaviors(
3183
3271
  | 'annotation.toggle'
3184
3272
  | 'decorator.toggle'
3185
3273
  | 'insert.blocks'
3274
+ | 'insert.break'
3275
+ | 'insert.soft break'
3186
3276
  | 'list item.add'
3187
3277
  | 'list item.remove'
3188
3278
  | 'list item.toggle'
@@ -3208,6 +3298,8 @@ export declare function createCodeEditorBehaviors(
3208
3298
  | 'annotation.toggle'
3209
3299
  | 'decorator.toggle'
3210
3300
  | 'insert.blocks'
3301
+ | 'insert.break'
3302
+ | 'insert.soft break'
3211
3303
  | 'list item.add'
3212
3304
  | 'list item.remove'
3213
3305
  | 'list item.toggle'
@@ -3233,6 +3325,8 @@ export declare function createCodeEditorBehaviors(
3233
3325
  | 'annotation.toggle'
3234
3326
  | 'decorator.toggle'
3235
3327
  | 'insert.blocks'
3328
+ | 'insert.break'
3329
+ | 'insert.soft break'
3236
3330
  | 'list item.add'
3237
3331
  | 'list item.remove'
3238
3332
  | 'list item.toggle'
@@ -3258,6 +3352,8 @@ export declare function createCodeEditorBehaviors(
3258
3352
  | 'annotation.toggle'
3259
3353
  | 'decorator.toggle'
3260
3354
  | 'insert.blocks'
3355
+ | 'insert.break'
3356
+ | 'insert.soft break'
3261
3357
  | 'list item.add'
3262
3358
  | 'list item.remove'
3263
3359
  | 'list item.toggle'
@@ -3583,15 +3679,16 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3583
3679
  | 'history.redo'
3584
3680
  | 'history.undo'
3585
3681
  | 'insert.inline object'
3586
- | 'insert.break'
3587
- | 'insert.soft break'
3588
3682
  | 'insert.block'
3589
3683
  | 'insert.span'
3590
3684
  | 'insert.text'
3591
3685
  | 'move.block'
3686
+ | 'split.block'
3592
3687
  | 'annotation.toggle'
3593
3688
  | 'decorator.toggle'
3594
3689
  | 'insert.blocks'
3690
+ | 'insert.break'
3691
+ | 'insert.soft break'
3595
3692
  | 'list item.add'
3596
3693
  | 'list item.remove'
3597
3694
  | 'list item.toggle'
@@ -3615,9 +3712,10 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3615
3712
  | 'mouse.click'
3616
3713
  | 'serialize.*'
3617
3714
  | 'deserialize.*'
3715
+ | 'split.*'
3618
3716
  | 'focus.*'
3619
- | 'block.*'
3620
3717
  | 'style.*'
3718
+ | 'block.*'
3621
3719
  | 'delete.*'
3622
3720
  | 'move.*'
3623
3721
  | 'select.*'
@@ -3654,12 +3752,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3654
3752
  | 'history.redo'
3655
3753
  | 'history.undo'
3656
3754
  | 'insert.inline object'
3657
- | 'insert.break'
3658
- | 'insert.soft break'
3659
3755
  | 'insert.block'
3660
3756
  | 'insert.span'
3661
3757
  | 'insert.text'
3662
- | 'move.block',
3758
+ | 'move.block'
3759
+ | 'split.block',
3663
3760
  'annotation.add'
3664
3761
  >
3665
3762
  annotation: {
@@ -3688,12 +3785,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3688
3785
  | 'history.redo'
3689
3786
  | 'history.undo'
3690
3787
  | 'insert.inline object'
3691
- | 'insert.break'
3692
- | 'insert.soft break'
3693
3788
  | 'insert.block'
3694
3789
  | 'insert.span'
3695
3790
  | 'insert.text'
3696
- | 'move.block',
3791
+ | 'move.block'
3792
+ | 'split.block',
3697
3793
  'annotation.remove'
3698
3794
  >
3699
3795
  annotation: {
@@ -3719,12 +3815,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3719
3815
  | 'history.redo'
3720
3816
  | 'history.undo'
3721
3817
  | 'insert.inline object'
3722
- | 'insert.break'
3723
- | 'insert.soft break'
3724
3818
  | 'insert.block'
3725
3819
  | 'insert.span'
3726
3820
  | 'insert.text'
3727
- | 'move.block',
3821
+ | 'move.block'
3822
+ | 'split.block',
3728
3823
  'block.set'
3729
3824
  >
3730
3825
  at: [KeyedSegment]
@@ -3749,12 +3844,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3749
3844
  | 'history.redo'
3750
3845
  | 'history.undo'
3751
3846
  | 'insert.inline object'
3752
- | 'insert.break'
3753
- | 'insert.soft break'
3754
3847
  | 'insert.block'
3755
3848
  | 'insert.span'
3756
3849
  | 'insert.text'
3757
- | 'move.block',
3850
+ | 'move.block'
3851
+ | 'split.block',
3758
3852
  'block.unset'
3759
3853
  >
3760
3854
  at: [KeyedSegment]
@@ -3779,12 +3873,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3779
3873
  | 'history.redo'
3780
3874
  | 'history.undo'
3781
3875
  | 'insert.inline object'
3782
- | 'insert.break'
3783
- | 'insert.soft break'
3784
3876
  | 'insert.block'
3785
3877
  | 'insert.span'
3786
3878
  | 'insert.text'
3787
- | 'move.block',
3879
+ | 'move.block'
3880
+ | 'split.block',
3788
3881
  'blur'
3789
3882
  >
3790
3883
  }
@@ -3807,16 +3900,15 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3807
3900
  | 'history.redo'
3808
3901
  | 'history.undo'
3809
3902
  | 'insert.inline object'
3810
- | 'insert.break'
3811
- | 'insert.soft break'
3812
3903
  | 'insert.block'
3813
3904
  | 'insert.span'
3814
3905
  | 'insert.text'
3815
- | 'move.block',
3906
+ | 'move.block'
3907
+ | 'split.block',
3816
3908
  'decorator.add'
3817
3909
  >
3818
3910
  decorator: string
3819
- offsets?: {
3911
+ at?: {
3820
3912
  anchor: BlockOffset
3821
3913
  focus: BlockOffset
3822
3914
  }
@@ -3840,12 +3932,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3840
3932
  | 'history.redo'
3841
3933
  | 'history.undo'
3842
3934
  | 'insert.inline object'
3843
- | 'insert.break'
3844
- | 'insert.soft break'
3845
3935
  | 'insert.block'
3846
3936
  | 'insert.span'
3847
3937
  | 'insert.text'
3848
- | 'move.block',
3938
+ | 'move.block'
3939
+ | 'split.block',
3849
3940
  'decorator.remove'
3850
3941
  >
3851
3942
  decorator: string
@@ -3869,15 +3960,14 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3869
3960
  | 'history.redo'
3870
3961
  | 'history.undo'
3871
3962
  | 'insert.inline object'
3872
- | 'insert.break'
3873
- | 'insert.soft break'
3874
3963
  | 'insert.block'
3875
3964
  | 'insert.span'
3876
3965
  | 'insert.text'
3877
- | 'move.block',
3966
+ | 'move.block'
3967
+ | 'split.block',
3878
3968
  'delete'
3879
3969
  >
3880
- selection: NonNullable<EditorSelection>
3970
+ at: NonNullable<EditorSelection>
3881
3971
  }
3882
3972
  | {
3883
3973
  type: StrictExtract<
@@ -3898,12 +3988,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3898
3988
  | 'history.redo'
3899
3989
  | 'history.undo'
3900
3990
  | 'insert.inline object'
3901
- | 'insert.break'
3902
- | 'insert.soft break'
3903
3991
  | 'insert.block'
3904
3992
  | 'insert.span'
3905
3993
  | 'insert.text'
3906
- | 'move.block',
3994
+ | 'move.block'
3995
+ | 'split.block',
3907
3996
  'delete.backward'
3908
3997
  >
3909
3998
  unit: TextUnit
@@ -3927,12 +4016,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3927
4016
  | 'history.redo'
3928
4017
  | 'history.undo'
3929
4018
  | 'insert.inline object'
3930
- | 'insert.break'
3931
- | 'insert.soft break'
3932
4019
  | 'insert.block'
3933
4020
  | 'insert.span'
3934
4021
  | 'insert.text'
3935
- | 'move.block',
4022
+ | 'move.block'
4023
+ | 'split.block',
3936
4024
  'delete.block'
3937
4025
  >
3938
4026
  at: [KeyedSegment]
@@ -3956,12 +4044,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3956
4044
  | 'history.redo'
3957
4045
  | 'history.undo'
3958
4046
  | 'insert.inline object'
3959
- | 'insert.break'
3960
- | 'insert.soft break'
3961
4047
  | 'insert.block'
3962
4048
  | 'insert.span'
3963
4049
  | 'insert.text'
3964
- | 'move.block',
4050
+ | 'move.block'
4051
+ | 'split.block',
3965
4052
  'delete.forward'
3966
4053
  >
3967
4054
  unit: TextUnit
@@ -3985,16 +4072,17 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
3985
4072
  | 'history.redo'
3986
4073
  | 'history.undo'
3987
4074
  | 'insert.inline object'
3988
- | 'insert.break'
3989
- | 'insert.soft break'
3990
4075
  | 'insert.block'
3991
4076
  | 'insert.span'
3992
4077
  | 'insert.text'
3993
- | 'move.block',
4078
+ | 'move.block'
4079
+ | 'split.block',
3994
4080
  'delete.text'
3995
4081
  >
3996
- anchor: BlockOffset
3997
- focus: BlockOffset
4082
+ at: {
4083
+ anchor: BlockOffset
4084
+ focus: BlockOffset
4085
+ }
3998
4086
  }
3999
4087
  | {
4000
4088
  type: StrictExtract<
@@ -4015,12 +4103,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4015
4103
  | 'history.redo'
4016
4104
  | 'history.undo'
4017
4105
  | 'insert.inline object'
4018
- | 'insert.break'
4019
- | 'insert.soft break'
4020
4106
  | 'insert.block'
4021
4107
  | 'insert.span'
4022
4108
  | 'insert.text'
4023
- | 'move.block',
4109
+ | 'move.block'
4110
+ | 'split.block',
4024
4111
  'focus'
4025
4112
  >
4026
4113
  }
@@ -4043,12 +4130,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4043
4130
  | 'history.redo'
4044
4131
  | 'history.undo'
4045
4132
  | 'insert.inline object'
4046
- | 'insert.break'
4047
- | 'insert.soft break'
4048
4133
  | 'insert.block'
4049
4134
  | 'insert.span'
4050
4135
  | 'insert.text'
4051
- | 'move.block',
4136
+ | 'move.block'
4137
+ | 'split.block',
4052
4138
  'history.redo'
4053
4139
  >
4054
4140
  }
@@ -4071,12 +4157,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4071
4157
  | 'history.redo'
4072
4158
  | 'history.undo'
4073
4159
  | 'insert.inline object'
4074
- | 'insert.break'
4075
- | 'insert.soft break'
4076
4160
  | 'insert.block'
4077
4161
  | 'insert.span'
4078
4162
  | 'insert.text'
4079
- | 'move.block',
4163
+ | 'move.block'
4164
+ | 'split.block',
4080
4165
  'history.undo'
4081
4166
  >
4082
4167
  }
@@ -4099,12 +4184,11 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4099
4184
  | 'history.redo'
4100
4185
  | 'history.undo'
4101
4186
  | 'insert.inline object'
4102
- | 'insert.break'
4103
- | 'insert.soft break'
4104
4187
  | 'insert.block'
4105
4188
  | 'insert.span'
4106
4189
  | 'insert.text'
4107
- | 'move.block',
4190
+ | 'move.block'
4191
+ | 'split.block',
4108
4192
  'insert.inline object'
4109
4193
  >
4110
4194
  inlineObject: {
@@ -4133,14 +4217,16 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4133
4217
  | 'history.redo'
4134
4218
  | 'history.undo'
4135
4219
  | 'insert.inline object'
4136
- | 'insert.break'
4137
- | 'insert.soft break'
4138
4220
  | 'insert.block'
4139
4221
  | 'insert.span'
4140
4222
  | 'insert.text'
4141
- | 'move.block',
4142
- 'insert.break'
4223
+ | 'move.block'
4224
+ | 'split.block',
4225
+ 'insert.block'
4143
4226
  >
4227
+ block: BlockWithOptionalKey
4228
+ placement: InsertPlacement
4229
+ select?: 'start' | 'end' | 'none'
4144
4230
  }
4145
4231
  | {
4146
4232
  type: StrictExtract<
@@ -4161,14 +4247,21 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4161
4247
  | 'history.redo'
4162
4248
  | 'history.undo'
4163
4249
  | 'insert.inline object'
4164
- | 'insert.break'
4165
- | 'insert.soft break'
4166
4250
  | 'insert.block'
4167
4251
  | 'insert.span'
4168
4252
  | 'insert.text'
4169
- | 'move.block',
4170
- 'insert.soft break'
4253
+ | 'move.block'
4254
+ | 'split.block',
4255
+ 'insert.span'
4171
4256
  >
4257
+ text: string
4258
+ annotations?: Array<{
4259
+ name: string
4260
+ value: {
4261
+ [prop: string]: unknown
4262
+ }
4263
+ }>
4264
+ decorators?: Array<string>
4172
4265
  }
4173
4266
  | {
4174
4267
  type: StrictExtract<
@@ -4189,17 +4282,14 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4189
4282
  | 'history.redo'
4190
4283
  | 'history.undo'
4191
4284
  | 'insert.inline object'
4192
- | 'insert.break'
4193
- | 'insert.soft break'
4194
4285
  | 'insert.block'
4195
4286
  | 'insert.span'
4196
4287
  | 'insert.text'
4197
- | 'move.block',
4198
- 'insert.block'
4288
+ | 'move.block'
4289
+ | 'split.block',
4290
+ 'insert.text'
4199
4291
  >
4200
- block: BlockWithOptionalKey
4201
- placement: InsertPlacement
4202
- select?: 'start' | 'end' | 'none'
4292
+ text: string
4203
4293
  }
4204
4294
  | {
4205
4295
  type: StrictExtract<
@@ -4220,22 +4310,15 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4220
4310
  | 'history.redo'
4221
4311
  | 'history.undo'
4222
4312
  | 'insert.inline object'
4223
- | 'insert.break'
4224
- | 'insert.soft break'
4225
4313
  | 'insert.block'
4226
4314
  | 'insert.span'
4227
4315
  | 'insert.text'
4228
- | 'move.block',
4229
- 'insert.span'
4316
+ | 'move.block'
4317
+ | 'split.block',
4318
+ 'move.block'
4230
4319
  >
4231
- text: string
4232
- annotations?: Array<{
4233
- name: string
4234
- value: {
4235
- [prop: string]: unknown
4236
- }
4237
- }>
4238
- decorators?: Array<string>
4320
+ at: [KeyedSegment]
4321
+ to: [KeyedSegment]
4239
4322
  }
4240
4323
  | {
4241
4324
  type: StrictExtract<
@@ -4256,15 +4339,14 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4256
4339
  | 'history.redo'
4257
4340
  | 'history.undo'
4258
4341
  | 'insert.inline object'
4259
- | 'insert.break'
4260
- | 'insert.soft break'
4261
4342
  | 'insert.block'
4262
4343
  | 'insert.span'
4263
4344
  | 'insert.text'
4264
- | 'move.block',
4265
- 'insert.text'
4345
+ | 'move.block'
4346
+ | 'split.block',
4347
+ 'select'
4266
4348
  >
4267
- text: string
4349
+ at: EditorSelection
4268
4350
  }
4269
4351
  | {
4270
4352
  type: StrictExtract<
@@ -4285,45 +4367,13 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4285
4367
  | 'history.redo'
4286
4368
  | 'history.undo'
4287
4369
  | 'insert.inline object'
4288
- | 'insert.break'
4289
- | 'insert.soft break'
4290
4370
  | 'insert.block'
4291
4371
  | 'insert.span'
4292
4372
  | 'insert.text'
4293
- | 'move.block',
4294
- 'move.block'
4373
+ | 'move.block'
4374
+ | 'split.block',
4375
+ 'split.block'
4295
4376
  >
4296
- at: [KeyedSegment]
4297
- to: [KeyedSegment]
4298
- }
4299
- | {
4300
- type: StrictExtract<
4301
- | 'focus'
4302
- | 'delete'
4303
- | 'select'
4304
- | 'annotation.add'
4305
- | 'annotation.remove'
4306
- | 'block.set'
4307
- | 'block.unset'
4308
- | 'blur'
4309
- | 'decorator.add'
4310
- | 'decorator.remove'
4311
- | 'delete.backward'
4312
- | 'delete.block'
4313
- | 'delete.forward'
4314
- | 'delete.text'
4315
- | 'history.redo'
4316
- | 'history.undo'
4317
- | 'insert.inline object'
4318
- | 'insert.break'
4319
- | 'insert.soft break'
4320
- | 'insert.block'
4321
- | 'insert.span'
4322
- | 'insert.text'
4323
- | 'move.block',
4324
- 'select'
4325
- >
4326
- selection: EditorSelection
4327
4377
  }
4328
4378
  | {
4329
4379
  type: StrictExtract<
@@ -4336,6 +4386,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4336
4386
  | 'annotation.toggle'
4337
4387
  | 'decorator.toggle'
4338
4388
  | 'insert.blocks'
4389
+ | 'insert.break'
4390
+ | 'insert.soft break'
4339
4391
  | 'list item.add'
4340
4392
  | 'list item.remove'
4341
4393
  | 'list item.toggle'
@@ -4366,6 +4418,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4366
4418
  | 'annotation.toggle'
4367
4419
  | 'decorator.toggle'
4368
4420
  | 'insert.blocks'
4421
+ | 'insert.break'
4422
+ | 'insert.soft break'
4369
4423
  | 'list item.add'
4370
4424
  | 'list item.remove'
4371
4425
  | 'list item.toggle'
@@ -4379,7 +4433,7 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4379
4433
  'decorator.toggle'
4380
4434
  >
4381
4435
  decorator: string
4382
- offsets?: {
4436
+ at?: {
4383
4437
  anchor: BlockOffset
4384
4438
  focus: BlockOffset
4385
4439
  }
@@ -4395,6 +4449,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4395
4449
  | 'annotation.toggle'
4396
4450
  | 'decorator.toggle'
4397
4451
  | 'insert.blocks'
4452
+ | 'insert.break'
4453
+ | 'insert.soft break'
4398
4454
  | 'list item.add'
4399
4455
  | 'list item.remove'
4400
4456
  | 'list item.toggle'
@@ -4426,6 +4482,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4426
4482
  | 'annotation.toggle'
4427
4483
  | 'decorator.toggle'
4428
4484
  | 'insert.blocks'
4485
+ | 'insert.break'
4486
+ | 'insert.soft break'
4429
4487
  | 'list item.add'
4430
4488
  | 'list item.remove'
4431
4489
  | 'list item.toggle'
@@ -4455,6 +4513,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4455
4513
  | 'annotation.toggle'
4456
4514
  | 'decorator.toggle'
4457
4515
  | 'insert.blocks'
4516
+ | 'insert.break'
4517
+ | 'insert.soft break'
4458
4518
  | 'list item.add'
4459
4519
  | 'list item.remove'
4460
4520
  | 'list item.toggle'
@@ -4488,6 +4548,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4488
4548
  | 'annotation.toggle'
4489
4549
  | 'decorator.toggle'
4490
4550
  | 'insert.blocks'
4551
+ | 'insert.break'
4552
+ | 'insert.soft break'
4491
4553
  | 'list item.add'
4492
4554
  | 'list item.remove'
4493
4555
  | 'list item.toggle'
@@ -4521,6 +4583,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4521
4583
  | 'annotation.toggle'
4522
4584
  | 'decorator.toggle'
4523
4585
  | 'insert.blocks'
4586
+ | 'insert.break'
4587
+ | 'insert.soft break'
4524
4588
  | 'list item.add'
4525
4589
  | 'list item.remove'
4526
4590
  | 'list item.toggle'
@@ -4552,6 +4616,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4552
4616
  | 'annotation.toggle'
4553
4617
  | 'decorator.toggle'
4554
4618
  | 'insert.blocks'
4619
+ | 'insert.break'
4620
+ | 'insert.soft break'
4555
4621
  | 'list item.add'
4556
4622
  | 'list item.remove'
4557
4623
  | 'list item.toggle'
@@ -4583,6 +4649,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4583
4649
  | 'annotation.toggle'
4584
4650
  | 'decorator.toggle'
4585
4651
  | 'insert.blocks'
4652
+ | 'insert.break'
4653
+ | 'insert.soft break'
4586
4654
  | 'list item.add'
4587
4655
  | 'list item.remove'
4588
4656
  | 'list item.toggle'
@@ -4609,6 +4677,60 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4609
4677
  | 'annotation.toggle'
4610
4678
  | 'decorator.toggle'
4611
4679
  | 'insert.blocks'
4680
+ | 'insert.break'
4681
+ | 'insert.soft break'
4682
+ | 'list item.add'
4683
+ | 'list item.remove'
4684
+ | 'list item.toggle'
4685
+ | 'move.block down'
4686
+ | 'move.block up'
4687
+ | 'select.previous block'
4688
+ | 'select.next block'
4689
+ | 'style.add'
4690
+ | 'style.remove'
4691
+ | 'style.toggle',
4692
+ 'insert.break'
4693
+ >
4694
+ }
4695
+ | {
4696
+ type: StrictExtract<
4697
+ | 'serialize'
4698
+ | 'serialization.failure'
4699
+ | 'serialization.success'
4700
+ | 'deserialize'
4701
+ | 'deserialization.failure'
4702
+ | 'deserialization.success'
4703
+ | 'annotation.toggle'
4704
+ | 'decorator.toggle'
4705
+ | 'insert.blocks'
4706
+ | 'insert.break'
4707
+ | 'insert.soft break'
4708
+ | 'list item.add'
4709
+ | 'list item.remove'
4710
+ | 'list item.toggle'
4711
+ | 'move.block down'
4712
+ | 'move.block up'
4713
+ | 'select.previous block'
4714
+ | 'select.next block'
4715
+ | 'style.add'
4716
+ | 'style.remove'
4717
+ | 'style.toggle',
4718
+ 'insert.soft break'
4719
+ >
4720
+ }
4721
+ | {
4722
+ type: StrictExtract<
4723
+ | 'serialize'
4724
+ | 'serialization.failure'
4725
+ | 'serialization.success'
4726
+ | 'deserialize'
4727
+ | 'deserialization.failure'
4728
+ | 'deserialization.success'
4729
+ | 'annotation.toggle'
4730
+ | 'decorator.toggle'
4731
+ | 'insert.blocks'
4732
+ | 'insert.break'
4733
+ | 'insert.soft break'
4612
4734
  | 'list item.add'
4613
4735
  | 'list item.remove'
4614
4736
  | 'list item.toggle'
@@ -4634,6 +4756,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4634
4756
  | 'annotation.toggle'
4635
4757
  | 'decorator.toggle'
4636
4758
  | 'insert.blocks'
4759
+ | 'insert.break'
4760
+ | 'insert.soft break'
4637
4761
  | 'list item.add'
4638
4762
  | 'list item.remove'
4639
4763
  | 'list item.toggle'
@@ -4659,6 +4783,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4659
4783
  | 'annotation.toggle'
4660
4784
  | 'decorator.toggle'
4661
4785
  | 'insert.blocks'
4786
+ | 'insert.break'
4787
+ | 'insert.soft break'
4662
4788
  | 'list item.add'
4663
4789
  | 'list item.remove'
4664
4790
  | 'list item.toggle'
@@ -4684,6 +4810,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4684
4810
  | 'annotation.toggle'
4685
4811
  | 'decorator.toggle'
4686
4812
  | 'insert.blocks'
4813
+ | 'insert.break'
4814
+ | 'insert.soft break'
4687
4815
  | 'list item.add'
4688
4816
  | 'list item.remove'
4689
4817
  | 'list item.toggle'
@@ -4709,6 +4837,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4709
4837
  | 'annotation.toggle'
4710
4838
  | 'decorator.toggle'
4711
4839
  | 'insert.blocks'
4840
+ | 'insert.break'
4841
+ | 'insert.soft break'
4712
4842
  | 'list item.add'
4713
4843
  | 'list item.remove'
4714
4844
  | 'list item.toggle'
@@ -4734,6 +4864,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4734
4864
  | 'annotation.toggle'
4735
4865
  | 'decorator.toggle'
4736
4866
  | 'insert.blocks'
4867
+ | 'insert.break'
4868
+ | 'insert.soft break'
4737
4869
  | 'list item.add'
4738
4870
  | 'list item.remove'
4739
4871
  | 'list item.toggle'
@@ -4759,6 +4891,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4759
4891
  | 'annotation.toggle'
4760
4892
  | 'decorator.toggle'
4761
4893
  | 'insert.blocks'
4894
+ | 'insert.break'
4895
+ | 'insert.soft break'
4762
4896
  | 'list item.add'
4763
4897
  | 'list item.remove'
4764
4898
  | 'list item.toggle'
@@ -4784,6 +4918,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4784
4918
  | 'annotation.toggle'
4785
4919
  | 'decorator.toggle'
4786
4920
  | 'insert.blocks'
4921
+ | 'insert.break'
4922
+ | 'insert.soft break'
4787
4923
  | 'list item.add'
4788
4924
  | 'list item.remove'
4789
4925
  | 'list item.toggle'
@@ -4809,6 +4945,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4809
4945
  | 'annotation.toggle'
4810
4946
  | 'decorator.toggle'
4811
4947
  | 'insert.blocks'
4948
+ | 'insert.break'
4949
+ | 'insert.soft break'
4812
4950
  | 'list item.add'
4813
4951
  | 'list item.remove'
4814
4952
  | 'list item.toggle'
@@ -4834,6 +4972,8 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
4834
4972
  | 'annotation.toggle'
4835
4973
  | 'decorator.toggle'
4836
4974
  | 'insert.blocks'
4975
+ | 'insert.break'
4976
+ | 'insert.soft break'
4837
4977
  | 'list item.add'
4838
4978
  | 'list item.remove'
4839
4979
  | 'list item.toggle'
@@ -5159,15 +5299,16 @@ export declare function createLinkBehaviors(
5159
5299
  | 'history.redo'
5160
5300
  | 'history.undo'
5161
5301
  | 'insert.inline object'
5162
- | 'insert.break'
5163
- | 'insert.soft break'
5164
5302
  | 'insert.block'
5165
5303
  | 'insert.span'
5166
5304
  | 'insert.text'
5167
5305
  | 'move.block'
5306
+ | 'split.block'
5168
5307
  | 'annotation.toggle'
5169
5308
  | 'decorator.toggle'
5170
5309
  | 'insert.blocks'
5310
+ | 'insert.break'
5311
+ | 'insert.soft break'
5171
5312
  | 'list item.add'
5172
5313
  | 'list item.remove'
5173
5314
  | 'list item.toggle'
@@ -5191,9 +5332,10 @@ export declare function createLinkBehaviors(
5191
5332
  | 'mouse.click'
5192
5333
  | 'serialize.*'
5193
5334
  | 'deserialize.*'
5335
+ | 'split.*'
5194
5336
  | 'focus.*'
5195
- | 'block.*'
5196
5337
  | 'style.*'
5338
+ | 'block.*'
5197
5339
  | 'delete.*'
5198
5340
  | 'move.*'
5199
5341
  | 'select.*'
@@ -5230,12 +5372,11 @@ export declare function createLinkBehaviors(
5230
5372
  | 'history.redo'
5231
5373
  | 'history.undo'
5232
5374
  | 'insert.inline object'
5233
- | 'insert.break'
5234
- | 'insert.soft break'
5235
5375
  | 'insert.block'
5236
5376
  | 'insert.span'
5237
5377
  | 'insert.text'
5238
- | 'move.block',
5378
+ | 'move.block'
5379
+ | 'split.block',
5239
5380
  'annotation.add'
5240
5381
  >
5241
5382
  annotation: {
@@ -5264,12 +5405,11 @@ export declare function createLinkBehaviors(
5264
5405
  | 'history.redo'
5265
5406
  | 'history.undo'
5266
5407
  | 'insert.inline object'
5267
- | 'insert.break'
5268
- | 'insert.soft break'
5269
5408
  | 'insert.block'
5270
5409
  | 'insert.span'
5271
5410
  | 'insert.text'
5272
- | 'move.block',
5411
+ | 'move.block'
5412
+ | 'split.block',
5273
5413
  'annotation.remove'
5274
5414
  >
5275
5415
  annotation: {
@@ -5295,12 +5435,11 @@ export declare function createLinkBehaviors(
5295
5435
  | 'history.redo'
5296
5436
  | 'history.undo'
5297
5437
  | 'insert.inline object'
5298
- | 'insert.break'
5299
- | 'insert.soft break'
5300
5438
  | 'insert.block'
5301
5439
  | 'insert.span'
5302
5440
  | 'insert.text'
5303
- | 'move.block',
5441
+ | 'move.block'
5442
+ | 'split.block',
5304
5443
  'block.set'
5305
5444
  >
5306
5445
  at: [KeyedSegment]
@@ -5325,12 +5464,11 @@ export declare function createLinkBehaviors(
5325
5464
  | 'history.redo'
5326
5465
  | 'history.undo'
5327
5466
  | 'insert.inline object'
5328
- | 'insert.break'
5329
- | 'insert.soft break'
5330
5467
  | 'insert.block'
5331
5468
  | 'insert.span'
5332
5469
  | 'insert.text'
5333
- | 'move.block',
5470
+ | 'move.block'
5471
+ | 'split.block',
5334
5472
  'block.unset'
5335
5473
  >
5336
5474
  at: [KeyedSegment]
@@ -5355,12 +5493,11 @@ export declare function createLinkBehaviors(
5355
5493
  | 'history.redo'
5356
5494
  | 'history.undo'
5357
5495
  | 'insert.inline object'
5358
- | 'insert.break'
5359
- | 'insert.soft break'
5360
5496
  | 'insert.block'
5361
5497
  | 'insert.span'
5362
5498
  | 'insert.text'
5363
- | 'move.block',
5499
+ | 'move.block'
5500
+ | 'split.block',
5364
5501
  'blur'
5365
5502
  >
5366
5503
  }
@@ -5383,16 +5520,15 @@ export declare function createLinkBehaviors(
5383
5520
  | 'history.redo'
5384
5521
  | 'history.undo'
5385
5522
  | 'insert.inline object'
5386
- | 'insert.break'
5387
- | 'insert.soft break'
5388
5523
  | 'insert.block'
5389
5524
  | 'insert.span'
5390
5525
  | 'insert.text'
5391
- | 'move.block',
5526
+ | 'move.block'
5527
+ | 'split.block',
5392
5528
  'decorator.add'
5393
5529
  >
5394
5530
  decorator: string
5395
- offsets?: {
5531
+ at?: {
5396
5532
  anchor: BlockOffset
5397
5533
  focus: BlockOffset
5398
5534
  }
@@ -5416,12 +5552,11 @@ export declare function createLinkBehaviors(
5416
5552
  | 'history.redo'
5417
5553
  | 'history.undo'
5418
5554
  | 'insert.inline object'
5419
- | 'insert.break'
5420
- | 'insert.soft break'
5421
5555
  | 'insert.block'
5422
5556
  | 'insert.span'
5423
5557
  | 'insert.text'
5424
- | 'move.block',
5558
+ | 'move.block'
5559
+ | 'split.block',
5425
5560
  'decorator.remove'
5426
5561
  >
5427
5562
  decorator: string
@@ -5445,15 +5580,14 @@ export declare function createLinkBehaviors(
5445
5580
  | 'history.redo'
5446
5581
  | 'history.undo'
5447
5582
  | 'insert.inline object'
5448
- | 'insert.break'
5449
- | 'insert.soft break'
5450
5583
  | 'insert.block'
5451
5584
  | 'insert.span'
5452
5585
  | 'insert.text'
5453
- | 'move.block',
5586
+ | 'move.block'
5587
+ | 'split.block',
5454
5588
  'delete'
5455
5589
  >
5456
- selection: NonNullable<EditorSelection>
5590
+ at: NonNullable<EditorSelection>
5457
5591
  }
5458
5592
  | {
5459
5593
  type: StrictExtract<
@@ -5474,12 +5608,11 @@ export declare function createLinkBehaviors(
5474
5608
  | 'history.redo'
5475
5609
  | 'history.undo'
5476
5610
  | 'insert.inline object'
5477
- | 'insert.break'
5478
- | 'insert.soft break'
5479
5611
  | 'insert.block'
5480
5612
  | 'insert.span'
5481
5613
  | 'insert.text'
5482
- | 'move.block',
5614
+ | 'move.block'
5615
+ | 'split.block',
5483
5616
  'delete.backward'
5484
5617
  >
5485
5618
  unit: TextUnit
@@ -5503,12 +5636,11 @@ export declare function createLinkBehaviors(
5503
5636
  | 'history.redo'
5504
5637
  | 'history.undo'
5505
5638
  | 'insert.inline object'
5506
- | 'insert.break'
5507
- | 'insert.soft break'
5508
5639
  | 'insert.block'
5509
5640
  | 'insert.span'
5510
5641
  | 'insert.text'
5511
- | 'move.block',
5642
+ | 'move.block'
5643
+ | 'split.block',
5512
5644
  'delete.block'
5513
5645
  >
5514
5646
  at: [KeyedSegment]
@@ -5532,12 +5664,11 @@ export declare function createLinkBehaviors(
5532
5664
  | 'history.redo'
5533
5665
  | 'history.undo'
5534
5666
  | 'insert.inline object'
5535
- | 'insert.break'
5536
- | 'insert.soft break'
5537
5667
  | 'insert.block'
5538
5668
  | 'insert.span'
5539
5669
  | 'insert.text'
5540
- | 'move.block',
5670
+ | 'move.block'
5671
+ | 'split.block',
5541
5672
  'delete.forward'
5542
5673
  >
5543
5674
  unit: TextUnit
@@ -5561,16 +5692,17 @@ export declare function createLinkBehaviors(
5561
5692
  | 'history.redo'
5562
5693
  | 'history.undo'
5563
5694
  | 'insert.inline object'
5564
- | 'insert.break'
5565
- | 'insert.soft break'
5566
5695
  | 'insert.block'
5567
5696
  | 'insert.span'
5568
5697
  | 'insert.text'
5569
- | 'move.block',
5698
+ | 'move.block'
5699
+ | 'split.block',
5570
5700
  'delete.text'
5571
5701
  >
5572
- anchor: BlockOffset
5573
- focus: BlockOffset
5702
+ at: {
5703
+ anchor: BlockOffset
5704
+ focus: BlockOffset
5705
+ }
5574
5706
  }
5575
5707
  | {
5576
5708
  type: StrictExtract<
@@ -5591,12 +5723,11 @@ export declare function createLinkBehaviors(
5591
5723
  | 'history.redo'
5592
5724
  | 'history.undo'
5593
5725
  | 'insert.inline object'
5594
- | 'insert.break'
5595
- | 'insert.soft break'
5596
5726
  | 'insert.block'
5597
5727
  | 'insert.span'
5598
5728
  | 'insert.text'
5599
- | 'move.block',
5729
+ | 'move.block'
5730
+ | 'split.block',
5600
5731
  'focus'
5601
5732
  >
5602
5733
  }
@@ -5619,12 +5750,11 @@ export declare function createLinkBehaviors(
5619
5750
  | 'history.redo'
5620
5751
  | 'history.undo'
5621
5752
  | 'insert.inline object'
5622
- | 'insert.break'
5623
- | 'insert.soft break'
5624
5753
  | 'insert.block'
5625
5754
  | 'insert.span'
5626
5755
  | 'insert.text'
5627
- | 'move.block',
5756
+ | 'move.block'
5757
+ | 'split.block',
5628
5758
  'history.redo'
5629
5759
  >
5630
5760
  }
@@ -5647,12 +5777,11 @@ export declare function createLinkBehaviors(
5647
5777
  | 'history.redo'
5648
5778
  | 'history.undo'
5649
5779
  | 'insert.inline object'
5650
- | 'insert.break'
5651
- | 'insert.soft break'
5652
5780
  | 'insert.block'
5653
5781
  | 'insert.span'
5654
5782
  | 'insert.text'
5655
- | 'move.block',
5783
+ | 'move.block'
5784
+ | 'split.block',
5656
5785
  'history.undo'
5657
5786
  >
5658
5787
  }
@@ -5675,12 +5804,11 @@ export declare function createLinkBehaviors(
5675
5804
  | 'history.redo'
5676
5805
  | 'history.undo'
5677
5806
  | 'insert.inline object'
5678
- | 'insert.break'
5679
- | 'insert.soft break'
5680
5807
  | 'insert.block'
5681
5808
  | 'insert.span'
5682
5809
  | 'insert.text'
5683
- | 'move.block',
5810
+ | 'move.block'
5811
+ | 'split.block',
5684
5812
  'insert.inline object'
5685
5813
  >
5686
5814
  inlineObject: {
@@ -5709,42 +5837,16 @@ export declare function createLinkBehaviors(
5709
5837
  | 'history.redo'
5710
5838
  | 'history.undo'
5711
5839
  | 'insert.inline object'
5712
- | 'insert.break'
5713
- | 'insert.soft break'
5714
5840
  | 'insert.block'
5715
5841
  | 'insert.span'
5716
5842
  | 'insert.text'
5717
- | 'move.block',
5718
- 'insert.break'
5719
- >
5720
- }
5721
- | {
5722
- type: StrictExtract<
5723
- | 'focus'
5724
- | 'delete'
5725
- | 'select'
5726
- | 'annotation.add'
5727
- | 'annotation.remove'
5728
- | 'block.set'
5729
- | 'block.unset'
5730
- | 'blur'
5731
- | 'decorator.add'
5732
- | 'decorator.remove'
5733
- | 'delete.backward'
5734
- | 'delete.block'
5735
- | 'delete.forward'
5736
- | 'delete.text'
5737
- | 'history.redo'
5738
- | 'history.undo'
5739
- | 'insert.inline object'
5740
- | 'insert.break'
5741
- | 'insert.soft break'
5742
- | 'insert.block'
5743
- | 'insert.span'
5744
- | 'insert.text'
5745
- | 'move.block',
5746
- 'insert.soft break'
5843
+ | 'move.block'
5844
+ | 'split.block',
5845
+ 'insert.block'
5747
5846
  >
5847
+ block: BlockWithOptionalKey
5848
+ placement: InsertPlacement
5849
+ select?: 'start' | 'end' | 'none'
5748
5850
  }
5749
5851
  | {
5750
5852
  type: StrictExtract<
@@ -5765,17 +5867,21 @@ export declare function createLinkBehaviors(
5765
5867
  | 'history.redo'
5766
5868
  | 'history.undo'
5767
5869
  | 'insert.inline object'
5768
- | 'insert.break'
5769
- | 'insert.soft break'
5770
5870
  | 'insert.block'
5771
5871
  | 'insert.span'
5772
5872
  | 'insert.text'
5773
- | 'move.block',
5774
- 'insert.block'
5873
+ | 'move.block'
5874
+ | 'split.block',
5875
+ 'insert.span'
5775
5876
  >
5776
- block: BlockWithOptionalKey
5777
- placement: InsertPlacement
5778
- select?: 'start' | 'end' | 'none'
5877
+ text: string
5878
+ annotations?: Array<{
5879
+ name: string
5880
+ value: {
5881
+ [prop: string]: unknown
5882
+ }
5883
+ }>
5884
+ decorators?: Array<string>
5779
5885
  }
5780
5886
  | {
5781
5887
  type: StrictExtract<
@@ -5796,22 +5902,14 @@ export declare function createLinkBehaviors(
5796
5902
  | 'history.redo'
5797
5903
  | 'history.undo'
5798
5904
  | 'insert.inline object'
5799
- | 'insert.break'
5800
- | 'insert.soft break'
5801
5905
  | 'insert.block'
5802
5906
  | 'insert.span'
5803
5907
  | 'insert.text'
5804
- | 'move.block',
5805
- 'insert.span'
5908
+ | 'move.block'
5909
+ | 'split.block',
5910
+ 'insert.text'
5806
5911
  >
5807
5912
  text: string
5808
- annotations?: Array<{
5809
- name: string
5810
- value: {
5811
- [prop: string]: unknown
5812
- }
5813
- }>
5814
- decorators?: Array<string>
5815
5913
  }
5816
5914
  | {
5817
5915
  type: StrictExtract<
@@ -5832,15 +5930,15 @@ export declare function createLinkBehaviors(
5832
5930
  | 'history.redo'
5833
5931
  | 'history.undo'
5834
5932
  | 'insert.inline object'
5835
- | 'insert.break'
5836
- | 'insert.soft break'
5837
5933
  | 'insert.block'
5838
5934
  | 'insert.span'
5839
5935
  | 'insert.text'
5840
- | 'move.block',
5841
- 'insert.text'
5936
+ | 'move.block'
5937
+ | 'split.block',
5938
+ 'move.block'
5842
5939
  >
5843
- text: string
5940
+ at: [KeyedSegment]
5941
+ to: [KeyedSegment]
5844
5942
  }
5845
5943
  | {
5846
5944
  type: StrictExtract<
@@ -5861,16 +5959,14 @@ export declare function createLinkBehaviors(
5861
5959
  | 'history.redo'
5862
5960
  | 'history.undo'
5863
5961
  | 'insert.inline object'
5864
- | 'insert.break'
5865
- | 'insert.soft break'
5866
5962
  | 'insert.block'
5867
5963
  | 'insert.span'
5868
5964
  | 'insert.text'
5869
- | 'move.block',
5870
- 'move.block'
5965
+ | 'move.block'
5966
+ | 'split.block',
5967
+ 'select'
5871
5968
  >
5872
- at: [KeyedSegment]
5873
- to: [KeyedSegment]
5969
+ at: EditorSelection
5874
5970
  }
5875
5971
  | {
5876
5972
  type: StrictExtract<
@@ -5891,15 +5987,13 @@ export declare function createLinkBehaviors(
5891
5987
  | 'history.redo'
5892
5988
  | 'history.undo'
5893
5989
  | 'insert.inline object'
5894
- | 'insert.break'
5895
- | 'insert.soft break'
5896
5990
  | 'insert.block'
5897
5991
  | 'insert.span'
5898
5992
  | 'insert.text'
5899
- | 'move.block',
5900
- 'select'
5993
+ | 'move.block'
5994
+ | 'split.block',
5995
+ 'split.block'
5901
5996
  >
5902
- selection: EditorSelection
5903
5997
  }
5904
5998
  | {
5905
5999
  type: StrictExtract<
@@ -5912,6 +6006,8 @@ export declare function createLinkBehaviors(
5912
6006
  | 'annotation.toggle'
5913
6007
  | 'decorator.toggle'
5914
6008
  | 'insert.blocks'
6009
+ | 'insert.break'
6010
+ | 'insert.soft break'
5915
6011
  | 'list item.add'
5916
6012
  | 'list item.remove'
5917
6013
  | 'list item.toggle'
@@ -5942,6 +6038,8 @@ export declare function createLinkBehaviors(
5942
6038
  | 'annotation.toggle'
5943
6039
  | 'decorator.toggle'
5944
6040
  | 'insert.blocks'
6041
+ | 'insert.break'
6042
+ | 'insert.soft break'
5945
6043
  | 'list item.add'
5946
6044
  | 'list item.remove'
5947
6045
  | 'list item.toggle'
@@ -5955,7 +6053,7 @@ export declare function createLinkBehaviors(
5955
6053
  'decorator.toggle'
5956
6054
  >
5957
6055
  decorator: string
5958
- offsets?: {
6056
+ at?: {
5959
6057
  anchor: BlockOffset
5960
6058
  focus: BlockOffset
5961
6059
  }
@@ -5971,6 +6069,8 @@ export declare function createLinkBehaviors(
5971
6069
  | 'annotation.toggle'
5972
6070
  | 'decorator.toggle'
5973
6071
  | 'insert.blocks'
6072
+ | 'insert.break'
6073
+ | 'insert.soft break'
5974
6074
  | 'list item.add'
5975
6075
  | 'list item.remove'
5976
6076
  | 'list item.toggle'
@@ -6002,6 +6102,8 @@ export declare function createLinkBehaviors(
6002
6102
  | 'annotation.toggle'
6003
6103
  | 'decorator.toggle'
6004
6104
  | 'insert.blocks'
6105
+ | 'insert.break'
6106
+ | 'insert.soft break'
6005
6107
  | 'list item.add'
6006
6108
  | 'list item.remove'
6007
6109
  | 'list item.toggle'
@@ -6031,6 +6133,8 @@ export declare function createLinkBehaviors(
6031
6133
  | 'annotation.toggle'
6032
6134
  | 'decorator.toggle'
6033
6135
  | 'insert.blocks'
6136
+ | 'insert.break'
6137
+ | 'insert.soft break'
6034
6138
  | 'list item.add'
6035
6139
  | 'list item.remove'
6036
6140
  | 'list item.toggle'
@@ -6064,6 +6168,8 @@ export declare function createLinkBehaviors(
6064
6168
  | 'annotation.toggle'
6065
6169
  | 'decorator.toggle'
6066
6170
  | 'insert.blocks'
6171
+ | 'insert.break'
6172
+ | 'insert.soft break'
6067
6173
  | 'list item.add'
6068
6174
  | 'list item.remove'
6069
6175
  | 'list item.toggle'
@@ -6097,6 +6203,8 @@ export declare function createLinkBehaviors(
6097
6203
  | 'annotation.toggle'
6098
6204
  | 'decorator.toggle'
6099
6205
  | 'insert.blocks'
6206
+ | 'insert.break'
6207
+ | 'insert.soft break'
6100
6208
  | 'list item.add'
6101
6209
  | 'list item.remove'
6102
6210
  | 'list item.toggle'
@@ -6128,6 +6236,69 @@ export declare function createLinkBehaviors(
6128
6236
  | 'annotation.toggle'
6129
6237
  | 'decorator.toggle'
6130
6238
  | 'insert.blocks'
6239
+ | 'insert.break'
6240
+ | 'insert.soft break'
6241
+ | 'list item.add'
6242
+ | 'list item.remove'
6243
+ | 'list item.toggle'
6244
+ | 'move.block down'
6245
+ | 'move.block up'
6246
+ | 'select.previous block'
6247
+ | 'select.next block'
6248
+ | 'style.add'
6249
+ | 'style.remove'
6250
+ | 'style.toggle',
6251
+ 'serialization.failure'
6252
+ >
6253
+ mimeType: MIMEType
6254
+ reason: string
6255
+ originEvent: PickFromUnion<
6256
+ NativeBehaviorEvent_2,
6257
+ 'type',
6258
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6259
+ >
6260
+ }
6261
+ | {
6262
+ type: StrictExtract<
6263
+ | 'serialize'
6264
+ | 'serialization.failure'
6265
+ | 'serialization.success'
6266
+ | 'deserialize'
6267
+ | 'deserialization.failure'
6268
+ | 'deserialization.success'
6269
+ | 'annotation.toggle'
6270
+ | 'decorator.toggle'
6271
+ | 'insert.blocks'
6272
+ | 'insert.break'
6273
+ | 'insert.soft break'
6274
+ | 'list item.add'
6275
+ | 'list item.remove'
6276
+ | 'list item.toggle'
6277
+ | 'move.block down'
6278
+ | 'move.block up'
6279
+ | 'select.previous block'
6280
+ | 'select.next block'
6281
+ | 'style.add'
6282
+ | 'style.remove'
6283
+ | 'style.toggle',
6284
+ 'insert.blocks'
6285
+ >
6286
+ blocks: Array<PortableTextBlock>
6287
+ placement: InsertPlacement
6288
+ }
6289
+ | {
6290
+ type: StrictExtract<
6291
+ | 'serialize'
6292
+ | 'serialization.failure'
6293
+ | 'serialization.success'
6294
+ | 'deserialize'
6295
+ | 'deserialization.failure'
6296
+ | 'deserialization.success'
6297
+ | 'annotation.toggle'
6298
+ | 'decorator.toggle'
6299
+ | 'insert.blocks'
6300
+ | 'insert.break'
6301
+ | 'insert.soft break'
6131
6302
  | 'list item.add'
6132
6303
  | 'list item.remove'
6133
6304
  | 'list item.toggle'
@@ -6138,14 +6309,7 @@ export declare function createLinkBehaviors(
6138
6309
  | 'style.add'
6139
6310
  | 'style.remove'
6140
6311
  | 'style.toggle',
6141
- 'serialization.failure'
6142
- >
6143
- mimeType: MIMEType
6144
- reason: string
6145
- originEvent: PickFromUnion<
6146
- NativeBehaviorEvent_2,
6147
- 'type',
6148
- 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6312
+ 'insert.break'
6149
6313
  >
6150
6314
  }
6151
6315
  | {
@@ -6159,6 +6323,8 @@ export declare function createLinkBehaviors(
6159
6323
  | 'annotation.toggle'
6160
6324
  | 'decorator.toggle'
6161
6325
  | 'insert.blocks'
6326
+ | 'insert.break'
6327
+ | 'insert.soft break'
6162
6328
  | 'list item.add'
6163
6329
  | 'list item.remove'
6164
6330
  | 'list item.toggle'
@@ -6169,10 +6335,8 @@ export declare function createLinkBehaviors(
6169
6335
  | 'style.add'
6170
6336
  | 'style.remove'
6171
6337
  | 'style.toggle',
6172
- 'insert.blocks'
6338
+ 'insert.soft break'
6173
6339
  >
6174
- blocks: Array<PortableTextBlock>
6175
- placement: InsertPlacement
6176
6340
  }
6177
6341
  | {
6178
6342
  type: StrictExtract<
@@ -6185,6 +6349,8 @@ export declare function createLinkBehaviors(
6185
6349
  | 'annotation.toggle'
6186
6350
  | 'decorator.toggle'
6187
6351
  | 'insert.blocks'
6352
+ | 'insert.break'
6353
+ | 'insert.soft break'
6188
6354
  | 'list item.add'
6189
6355
  | 'list item.remove'
6190
6356
  | 'list item.toggle'
@@ -6210,6 +6376,8 @@ export declare function createLinkBehaviors(
6210
6376
  | 'annotation.toggle'
6211
6377
  | 'decorator.toggle'
6212
6378
  | 'insert.blocks'
6379
+ | 'insert.break'
6380
+ | 'insert.soft break'
6213
6381
  | 'list item.add'
6214
6382
  | 'list item.remove'
6215
6383
  | 'list item.toggle'
@@ -6235,6 +6403,8 @@ export declare function createLinkBehaviors(
6235
6403
  | 'annotation.toggle'
6236
6404
  | 'decorator.toggle'
6237
6405
  | 'insert.blocks'
6406
+ | 'insert.break'
6407
+ | 'insert.soft break'
6238
6408
  | 'list item.add'
6239
6409
  | 'list item.remove'
6240
6410
  | 'list item.toggle'
@@ -6260,6 +6430,8 @@ export declare function createLinkBehaviors(
6260
6430
  | 'annotation.toggle'
6261
6431
  | 'decorator.toggle'
6262
6432
  | 'insert.blocks'
6433
+ | 'insert.break'
6434
+ | 'insert.soft break'
6263
6435
  | 'list item.add'
6264
6436
  | 'list item.remove'
6265
6437
  | 'list item.toggle'
@@ -6285,6 +6457,8 @@ export declare function createLinkBehaviors(
6285
6457
  | 'annotation.toggle'
6286
6458
  | 'decorator.toggle'
6287
6459
  | 'insert.blocks'
6460
+ | 'insert.break'
6461
+ | 'insert.soft break'
6288
6462
  | 'list item.add'
6289
6463
  | 'list item.remove'
6290
6464
  | 'list item.toggle'
@@ -6310,6 +6484,8 @@ export declare function createLinkBehaviors(
6310
6484
  | 'annotation.toggle'
6311
6485
  | 'decorator.toggle'
6312
6486
  | 'insert.blocks'
6487
+ | 'insert.break'
6488
+ | 'insert.soft break'
6313
6489
  | 'list item.add'
6314
6490
  | 'list item.remove'
6315
6491
  | 'list item.toggle'
@@ -6335,6 +6511,8 @@ export declare function createLinkBehaviors(
6335
6511
  | 'annotation.toggle'
6336
6512
  | 'decorator.toggle'
6337
6513
  | 'insert.blocks'
6514
+ | 'insert.break'
6515
+ | 'insert.soft break'
6338
6516
  | 'list item.add'
6339
6517
  | 'list item.remove'
6340
6518
  | 'list item.toggle'
@@ -6360,6 +6538,8 @@ export declare function createLinkBehaviors(
6360
6538
  | 'annotation.toggle'
6361
6539
  | 'decorator.toggle'
6362
6540
  | 'insert.blocks'
6541
+ | 'insert.break'
6542
+ | 'insert.soft break'
6363
6543
  | 'list item.add'
6364
6544
  | 'list item.remove'
6365
6545
  | 'list item.toggle'
@@ -6385,6 +6565,8 @@ export declare function createLinkBehaviors(
6385
6565
  | 'annotation.toggle'
6386
6566
  | 'decorator.toggle'
6387
6567
  | 'insert.blocks'
6568
+ | 'insert.break'
6569
+ | 'insert.soft break'
6388
6570
  | 'list item.add'
6389
6571
  | 'list item.remove'
6390
6572
  | 'list item.toggle'
@@ -6410,6 +6592,8 @@ export declare function createLinkBehaviors(
6410
6592
  | 'annotation.toggle'
6411
6593
  | 'decorator.toggle'
6412
6594
  | 'insert.blocks'
6595
+ | 'insert.break'
6596
+ | 'insert.soft break'
6413
6597
  | 'list item.add'
6414
6598
  | 'list item.remove'
6415
6599
  | 'list item.toggle'
@@ -6777,15 +6961,16 @@ export declare function createMarkdownBehaviors(
6777
6961
  | 'history.redo'
6778
6962
  | 'history.undo'
6779
6963
  | 'insert.inline object'
6780
- | 'insert.break'
6781
- | 'insert.soft break'
6782
6964
  | 'insert.block'
6783
6965
  | 'insert.span'
6784
6966
  | 'insert.text'
6785
6967
  | 'move.block'
6968
+ | 'split.block'
6786
6969
  | 'annotation.toggle'
6787
6970
  | 'decorator.toggle'
6788
6971
  | 'insert.blocks'
6972
+ | 'insert.break'
6973
+ | 'insert.soft break'
6789
6974
  | 'list item.add'
6790
6975
  | 'list item.remove'
6791
6976
  | 'list item.toggle'
@@ -6809,9 +6994,10 @@ export declare function createMarkdownBehaviors(
6809
6994
  | 'mouse.click'
6810
6995
  | 'serialize.*'
6811
6996
  | 'deserialize.*'
6997
+ | 'split.*'
6812
6998
  | 'focus.*'
6813
- | 'block.*'
6814
6999
  | 'style.*'
7000
+ | 'block.*'
6815
7001
  | 'delete.*'
6816
7002
  | 'move.*'
6817
7003
  | 'select.*'
@@ -6848,12 +7034,11 @@ export declare function createMarkdownBehaviors(
6848
7034
  | 'history.redo'
6849
7035
  | 'history.undo'
6850
7036
  | 'insert.inline object'
6851
- | 'insert.break'
6852
- | 'insert.soft break'
6853
7037
  | 'insert.block'
6854
7038
  | 'insert.span'
6855
7039
  | 'insert.text'
6856
- | 'move.block',
7040
+ | 'move.block'
7041
+ | 'split.block',
6857
7042
  'annotation.add'
6858
7043
  >
6859
7044
  annotation: {
@@ -6882,12 +7067,11 @@ export declare function createMarkdownBehaviors(
6882
7067
  | 'history.redo'
6883
7068
  | 'history.undo'
6884
7069
  | 'insert.inline object'
6885
- | 'insert.break'
6886
- | 'insert.soft break'
6887
7070
  | 'insert.block'
6888
7071
  | 'insert.span'
6889
7072
  | 'insert.text'
6890
- | 'move.block',
7073
+ | 'move.block'
7074
+ | 'split.block',
6891
7075
  'annotation.remove'
6892
7076
  >
6893
7077
  annotation: {
@@ -6913,12 +7097,11 @@ export declare function createMarkdownBehaviors(
6913
7097
  | 'history.redo'
6914
7098
  | 'history.undo'
6915
7099
  | 'insert.inline object'
6916
- | 'insert.break'
6917
- | 'insert.soft break'
6918
7100
  | 'insert.block'
6919
7101
  | 'insert.span'
6920
7102
  | 'insert.text'
6921
- | 'move.block',
7103
+ | 'move.block'
7104
+ | 'split.block',
6922
7105
  'block.set'
6923
7106
  >
6924
7107
  at: [KeyedSegment]
@@ -6943,12 +7126,11 @@ export declare function createMarkdownBehaviors(
6943
7126
  | 'history.redo'
6944
7127
  | 'history.undo'
6945
7128
  | 'insert.inline object'
6946
- | 'insert.break'
6947
- | 'insert.soft break'
6948
7129
  | 'insert.block'
6949
7130
  | 'insert.span'
6950
7131
  | 'insert.text'
6951
- | 'move.block',
7132
+ | 'move.block'
7133
+ | 'split.block',
6952
7134
  'block.unset'
6953
7135
  >
6954
7136
  at: [KeyedSegment]
@@ -6973,12 +7155,11 @@ export declare function createMarkdownBehaviors(
6973
7155
  | 'history.redo'
6974
7156
  | 'history.undo'
6975
7157
  | 'insert.inline object'
6976
- | 'insert.break'
6977
- | 'insert.soft break'
6978
7158
  | 'insert.block'
6979
7159
  | 'insert.span'
6980
7160
  | 'insert.text'
6981
- | 'move.block',
7161
+ | 'move.block'
7162
+ | 'split.block',
6982
7163
  'blur'
6983
7164
  >
6984
7165
  }
@@ -7001,16 +7182,15 @@ export declare function createMarkdownBehaviors(
7001
7182
  | 'history.redo'
7002
7183
  | 'history.undo'
7003
7184
  | 'insert.inline object'
7004
- | 'insert.break'
7005
- | 'insert.soft break'
7006
7185
  | 'insert.block'
7007
7186
  | 'insert.span'
7008
7187
  | 'insert.text'
7009
- | 'move.block',
7188
+ | 'move.block'
7189
+ | 'split.block',
7010
7190
  'decorator.add'
7011
7191
  >
7012
7192
  decorator: string
7013
- offsets?: {
7193
+ at?: {
7014
7194
  anchor: BlockOffset
7015
7195
  focus: BlockOffset
7016
7196
  }
@@ -7034,12 +7214,11 @@ export declare function createMarkdownBehaviors(
7034
7214
  | 'history.redo'
7035
7215
  | 'history.undo'
7036
7216
  | 'insert.inline object'
7037
- | 'insert.break'
7038
- | 'insert.soft break'
7039
7217
  | 'insert.block'
7040
7218
  | 'insert.span'
7041
7219
  | 'insert.text'
7042
- | 'move.block',
7220
+ | 'move.block'
7221
+ | 'split.block',
7043
7222
  'decorator.remove'
7044
7223
  >
7045
7224
  decorator: string
@@ -7063,15 +7242,14 @@ export declare function createMarkdownBehaviors(
7063
7242
  | 'history.redo'
7064
7243
  | 'history.undo'
7065
7244
  | 'insert.inline object'
7066
- | 'insert.break'
7067
- | 'insert.soft break'
7068
7245
  | 'insert.block'
7069
7246
  | 'insert.span'
7070
7247
  | 'insert.text'
7071
- | 'move.block',
7248
+ | 'move.block'
7249
+ | 'split.block',
7072
7250
  'delete'
7073
7251
  >
7074
- selection: NonNullable<EditorSelection>
7252
+ at: NonNullable<EditorSelection>
7075
7253
  }
7076
7254
  | {
7077
7255
  type: StrictExtract<
@@ -7092,12 +7270,11 @@ export declare function createMarkdownBehaviors(
7092
7270
  | 'history.redo'
7093
7271
  | 'history.undo'
7094
7272
  | 'insert.inline object'
7095
- | 'insert.break'
7096
- | 'insert.soft break'
7097
7273
  | 'insert.block'
7098
7274
  | 'insert.span'
7099
7275
  | 'insert.text'
7100
- | 'move.block',
7276
+ | 'move.block'
7277
+ | 'split.block',
7101
7278
  'delete.backward'
7102
7279
  >
7103
7280
  unit: TextUnit
@@ -7121,12 +7298,11 @@ export declare function createMarkdownBehaviors(
7121
7298
  | 'history.redo'
7122
7299
  | 'history.undo'
7123
7300
  | 'insert.inline object'
7124
- | 'insert.break'
7125
- | 'insert.soft break'
7126
7301
  | 'insert.block'
7127
7302
  | 'insert.span'
7128
7303
  | 'insert.text'
7129
- | 'move.block',
7304
+ | 'move.block'
7305
+ | 'split.block',
7130
7306
  'delete.block'
7131
7307
  >
7132
7308
  at: [KeyedSegment]
@@ -7150,12 +7326,11 @@ export declare function createMarkdownBehaviors(
7150
7326
  | 'history.redo'
7151
7327
  | 'history.undo'
7152
7328
  | 'insert.inline object'
7153
- | 'insert.break'
7154
- | 'insert.soft break'
7155
7329
  | 'insert.block'
7156
7330
  | 'insert.span'
7157
7331
  | 'insert.text'
7158
- | 'move.block',
7332
+ | 'move.block'
7333
+ | 'split.block',
7159
7334
  'delete.forward'
7160
7335
  >
7161
7336
  unit: TextUnit
@@ -7179,16 +7354,17 @@ export declare function createMarkdownBehaviors(
7179
7354
  | 'history.redo'
7180
7355
  | 'history.undo'
7181
7356
  | 'insert.inline object'
7182
- | 'insert.break'
7183
- | 'insert.soft break'
7184
7357
  | 'insert.block'
7185
7358
  | 'insert.span'
7186
7359
  | 'insert.text'
7187
- | 'move.block',
7360
+ | 'move.block'
7361
+ | 'split.block',
7188
7362
  'delete.text'
7189
7363
  >
7190
- anchor: BlockOffset
7191
- focus: BlockOffset
7364
+ at: {
7365
+ anchor: BlockOffset
7366
+ focus: BlockOffset
7367
+ }
7192
7368
  }
7193
7369
  | {
7194
7370
  type: StrictExtract<
@@ -7209,12 +7385,11 @@ export declare function createMarkdownBehaviors(
7209
7385
  | 'history.redo'
7210
7386
  | 'history.undo'
7211
7387
  | 'insert.inline object'
7212
- | 'insert.break'
7213
- | 'insert.soft break'
7214
7388
  | 'insert.block'
7215
7389
  | 'insert.span'
7216
7390
  | 'insert.text'
7217
- | 'move.block',
7391
+ | 'move.block'
7392
+ | 'split.block',
7218
7393
  'focus'
7219
7394
  >
7220
7395
  }
@@ -7237,12 +7412,11 @@ export declare function createMarkdownBehaviors(
7237
7412
  | 'history.redo'
7238
7413
  | 'history.undo'
7239
7414
  | 'insert.inline object'
7240
- | 'insert.break'
7241
- | 'insert.soft break'
7242
7415
  | 'insert.block'
7243
7416
  | 'insert.span'
7244
7417
  | 'insert.text'
7245
- | 'move.block',
7418
+ | 'move.block'
7419
+ | 'split.block',
7246
7420
  'history.redo'
7247
7421
  >
7248
7422
  }
@@ -7265,12 +7439,11 @@ export declare function createMarkdownBehaviors(
7265
7439
  | 'history.redo'
7266
7440
  | 'history.undo'
7267
7441
  | 'insert.inline object'
7268
- | 'insert.break'
7269
- | 'insert.soft break'
7270
7442
  | 'insert.block'
7271
7443
  | 'insert.span'
7272
7444
  | 'insert.text'
7273
- | 'move.block',
7445
+ | 'move.block'
7446
+ | 'split.block',
7274
7447
  'history.undo'
7275
7448
  >
7276
7449
  }
@@ -7293,12 +7466,11 @@ export declare function createMarkdownBehaviors(
7293
7466
  | 'history.redo'
7294
7467
  | 'history.undo'
7295
7468
  | 'insert.inline object'
7296
- | 'insert.break'
7297
- | 'insert.soft break'
7298
7469
  | 'insert.block'
7299
7470
  | 'insert.span'
7300
7471
  | 'insert.text'
7301
- | 'move.block',
7472
+ | 'move.block'
7473
+ | 'split.block',
7302
7474
  'insert.inline object'
7303
7475
  >
7304
7476
  inlineObject: {
@@ -7327,42 +7499,16 @@ export declare function createMarkdownBehaviors(
7327
7499
  | 'history.redo'
7328
7500
  | 'history.undo'
7329
7501
  | 'insert.inline object'
7330
- | 'insert.break'
7331
- | 'insert.soft break'
7332
- | 'insert.block'
7333
- | 'insert.span'
7334
- | 'insert.text'
7335
- | 'move.block',
7336
- 'insert.break'
7337
- >
7338
- }
7339
- | {
7340
- type: StrictExtract<
7341
- | 'focus'
7342
- | 'delete'
7343
- | 'select'
7344
- | 'annotation.add'
7345
- | 'annotation.remove'
7346
- | 'block.set'
7347
- | 'block.unset'
7348
- | 'blur'
7349
- | 'decorator.add'
7350
- | 'decorator.remove'
7351
- | 'delete.backward'
7352
- | 'delete.block'
7353
- | 'delete.forward'
7354
- | 'delete.text'
7355
- | 'history.redo'
7356
- | 'history.undo'
7357
- | 'insert.inline object'
7358
- | 'insert.break'
7359
- | 'insert.soft break'
7360
7502
  | 'insert.block'
7361
7503
  | 'insert.span'
7362
7504
  | 'insert.text'
7363
- | 'move.block',
7364
- 'insert.soft break'
7505
+ | 'move.block'
7506
+ | 'split.block',
7507
+ 'insert.block'
7365
7508
  >
7509
+ block: BlockWithOptionalKey
7510
+ placement: InsertPlacement
7511
+ select?: 'start' | 'end' | 'none'
7366
7512
  }
7367
7513
  | {
7368
7514
  type: StrictExtract<
@@ -7383,17 +7529,21 @@ export declare function createMarkdownBehaviors(
7383
7529
  | 'history.redo'
7384
7530
  | 'history.undo'
7385
7531
  | 'insert.inline object'
7386
- | 'insert.break'
7387
- | 'insert.soft break'
7388
7532
  | 'insert.block'
7389
7533
  | 'insert.span'
7390
7534
  | 'insert.text'
7391
- | 'move.block',
7392
- 'insert.block'
7535
+ | 'move.block'
7536
+ | 'split.block',
7537
+ 'insert.span'
7393
7538
  >
7394
- block: BlockWithOptionalKey
7395
- placement: InsertPlacement
7396
- select?: 'start' | 'end' | 'none'
7539
+ text: string
7540
+ annotations?: Array<{
7541
+ name: string
7542
+ value: {
7543
+ [prop: string]: unknown
7544
+ }
7545
+ }>
7546
+ decorators?: Array<string>
7397
7547
  }
7398
7548
  | {
7399
7549
  type: StrictExtract<
@@ -7414,22 +7564,14 @@ export declare function createMarkdownBehaviors(
7414
7564
  | 'history.redo'
7415
7565
  | 'history.undo'
7416
7566
  | 'insert.inline object'
7417
- | 'insert.break'
7418
- | 'insert.soft break'
7419
7567
  | 'insert.block'
7420
7568
  | 'insert.span'
7421
7569
  | 'insert.text'
7422
- | 'move.block',
7423
- 'insert.span'
7570
+ | 'move.block'
7571
+ | 'split.block',
7572
+ 'insert.text'
7424
7573
  >
7425
7574
  text: string
7426
- annotations?: Array<{
7427
- name: string
7428
- value: {
7429
- [prop: string]: unknown
7430
- }
7431
- }>
7432
- decorators?: Array<string>
7433
7575
  }
7434
7576
  | {
7435
7577
  type: StrictExtract<
@@ -7450,15 +7592,15 @@ export declare function createMarkdownBehaviors(
7450
7592
  | 'history.redo'
7451
7593
  | 'history.undo'
7452
7594
  | 'insert.inline object'
7453
- | 'insert.break'
7454
- | 'insert.soft break'
7455
7595
  | 'insert.block'
7456
7596
  | 'insert.span'
7457
7597
  | 'insert.text'
7458
- | 'move.block',
7459
- 'insert.text'
7598
+ | 'move.block'
7599
+ | 'split.block',
7600
+ 'move.block'
7460
7601
  >
7461
- text: string
7602
+ at: [KeyedSegment]
7603
+ to: [KeyedSegment]
7462
7604
  }
7463
7605
  | {
7464
7606
  type: StrictExtract<
@@ -7479,16 +7621,14 @@ export declare function createMarkdownBehaviors(
7479
7621
  | 'history.redo'
7480
7622
  | 'history.undo'
7481
7623
  | 'insert.inline object'
7482
- | 'insert.break'
7483
- | 'insert.soft break'
7484
7624
  | 'insert.block'
7485
7625
  | 'insert.span'
7486
7626
  | 'insert.text'
7487
- | 'move.block',
7488
- 'move.block'
7627
+ | 'move.block'
7628
+ | 'split.block',
7629
+ 'select'
7489
7630
  >
7490
- at: [KeyedSegment]
7491
- to: [KeyedSegment]
7631
+ at: EditorSelection
7492
7632
  }
7493
7633
  | {
7494
7634
  type: StrictExtract<
@@ -7509,15 +7649,13 @@ export declare function createMarkdownBehaviors(
7509
7649
  | 'history.redo'
7510
7650
  | 'history.undo'
7511
7651
  | 'insert.inline object'
7512
- | 'insert.break'
7513
- | 'insert.soft break'
7514
7652
  | 'insert.block'
7515
7653
  | 'insert.span'
7516
7654
  | 'insert.text'
7517
- | 'move.block',
7518
- 'select'
7655
+ | 'move.block'
7656
+ | 'split.block',
7657
+ 'split.block'
7519
7658
  >
7520
- selection: EditorSelection
7521
7659
  }
7522
7660
  | {
7523
7661
  type: StrictExtract<
@@ -7530,6 +7668,8 @@ export declare function createMarkdownBehaviors(
7530
7668
  | 'annotation.toggle'
7531
7669
  | 'decorator.toggle'
7532
7670
  | 'insert.blocks'
7671
+ | 'insert.break'
7672
+ | 'insert.soft break'
7533
7673
  | 'list item.add'
7534
7674
  | 'list item.remove'
7535
7675
  | 'list item.toggle'
@@ -7560,6 +7700,8 @@ export declare function createMarkdownBehaviors(
7560
7700
  | 'annotation.toggle'
7561
7701
  | 'decorator.toggle'
7562
7702
  | 'insert.blocks'
7703
+ | 'insert.break'
7704
+ | 'insert.soft break'
7563
7705
  | 'list item.add'
7564
7706
  | 'list item.remove'
7565
7707
  | 'list item.toggle'
@@ -7573,7 +7715,7 @@ export declare function createMarkdownBehaviors(
7573
7715
  'decorator.toggle'
7574
7716
  >
7575
7717
  decorator: string
7576
- offsets?: {
7718
+ at?: {
7577
7719
  anchor: BlockOffset
7578
7720
  focus: BlockOffset
7579
7721
  }
@@ -7589,6 +7731,8 @@ export declare function createMarkdownBehaviors(
7589
7731
  | 'annotation.toggle'
7590
7732
  | 'decorator.toggle'
7591
7733
  | 'insert.blocks'
7734
+ | 'insert.break'
7735
+ | 'insert.soft break'
7592
7736
  | 'list item.add'
7593
7737
  | 'list item.remove'
7594
7738
  | 'list item.toggle'
@@ -7620,6 +7764,8 @@ export declare function createMarkdownBehaviors(
7620
7764
  | 'annotation.toggle'
7621
7765
  | 'decorator.toggle'
7622
7766
  | 'insert.blocks'
7767
+ | 'insert.break'
7768
+ | 'insert.soft break'
7623
7769
  | 'list item.add'
7624
7770
  | 'list item.remove'
7625
7771
  | 'list item.toggle'
@@ -7649,6 +7795,8 @@ export declare function createMarkdownBehaviors(
7649
7795
  | 'annotation.toggle'
7650
7796
  | 'decorator.toggle'
7651
7797
  | 'insert.blocks'
7798
+ | 'insert.break'
7799
+ | 'insert.soft break'
7652
7800
  | 'list item.add'
7653
7801
  | 'list item.remove'
7654
7802
  | 'list item.toggle'
@@ -7682,6 +7830,8 @@ export declare function createMarkdownBehaviors(
7682
7830
  | 'annotation.toggle'
7683
7831
  | 'decorator.toggle'
7684
7832
  | 'insert.blocks'
7833
+ | 'insert.break'
7834
+ | 'insert.soft break'
7685
7835
  | 'list item.add'
7686
7836
  | 'list item.remove'
7687
7837
  | 'list item.toggle'
@@ -7715,6 +7865,8 @@ export declare function createMarkdownBehaviors(
7715
7865
  | 'annotation.toggle'
7716
7866
  | 'decorator.toggle'
7717
7867
  | 'insert.blocks'
7868
+ | 'insert.break'
7869
+ | 'insert.soft break'
7718
7870
  | 'list item.add'
7719
7871
  | 'list item.remove'
7720
7872
  | 'list item.toggle'
@@ -7746,6 +7898,8 @@ export declare function createMarkdownBehaviors(
7746
7898
  | 'annotation.toggle'
7747
7899
  | 'decorator.toggle'
7748
7900
  | 'insert.blocks'
7901
+ | 'insert.break'
7902
+ | 'insert.soft break'
7749
7903
  | 'list item.add'
7750
7904
  | 'list item.remove'
7751
7905
  | 'list item.toggle'
@@ -7777,6 +7931,8 @@ export declare function createMarkdownBehaviors(
7777
7931
  | 'annotation.toggle'
7778
7932
  | 'decorator.toggle'
7779
7933
  | 'insert.blocks'
7934
+ | 'insert.break'
7935
+ | 'insert.soft break'
7780
7936
  | 'list item.add'
7781
7937
  | 'list item.remove'
7782
7938
  | 'list item.toggle'
@@ -7803,6 +7959,60 @@ export declare function createMarkdownBehaviors(
7803
7959
  | 'annotation.toggle'
7804
7960
  | 'decorator.toggle'
7805
7961
  | 'insert.blocks'
7962
+ | 'insert.break'
7963
+ | 'insert.soft break'
7964
+ | 'list item.add'
7965
+ | 'list item.remove'
7966
+ | 'list item.toggle'
7967
+ | 'move.block down'
7968
+ | 'move.block up'
7969
+ | 'select.previous block'
7970
+ | 'select.next block'
7971
+ | 'style.add'
7972
+ | 'style.remove'
7973
+ | 'style.toggle',
7974
+ 'insert.break'
7975
+ >
7976
+ }
7977
+ | {
7978
+ type: StrictExtract<
7979
+ | 'serialize'
7980
+ | 'serialization.failure'
7981
+ | 'serialization.success'
7982
+ | 'deserialize'
7983
+ | 'deserialization.failure'
7984
+ | 'deserialization.success'
7985
+ | 'annotation.toggle'
7986
+ | 'decorator.toggle'
7987
+ | 'insert.blocks'
7988
+ | 'insert.break'
7989
+ | 'insert.soft break'
7990
+ | 'list item.add'
7991
+ | 'list item.remove'
7992
+ | 'list item.toggle'
7993
+ | 'move.block down'
7994
+ | 'move.block up'
7995
+ | 'select.previous block'
7996
+ | 'select.next block'
7997
+ | 'style.add'
7998
+ | 'style.remove'
7999
+ | 'style.toggle',
8000
+ 'insert.soft break'
8001
+ >
8002
+ }
8003
+ | {
8004
+ type: StrictExtract<
8005
+ | 'serialize'
8006
+ | 'serialization.failure'
8007
+ | 'serialization.success'
8008
+ | 'deserialize'
8009
+ | 'deserialization.failure'
8010
+ | 'deserialization.success'
8011
+ | 'annotation.toggle'
8012
+ | 'decorator.toggle'
8013
+ | 'insert.blocks'
8014
+ | 'insert.break'
8015
+ | 'insert.soft break'
7806
8016
  | 'list item.add'
7807
8017
  | 'list item.remove'
7808
8018
  | 'list item.toggle'
@@ -7828,6 +8038,8 @@ export declare function createMarkdownBehaviors(
7828
8038
  | 'annotation.toggle'
7829
8039
  | 'decorator.toggle'
7830
8040
  | 'insert.blocks'
8041
+ | 'insert.break'
8042
+ | 'insert.soft break'
7831
8043
  | 'list item.add'
7832
8044
  | 'list item.remove'
7833
8045
  | 'list item.toggle'
@@ -7853,6 +8065,8 @@ export declare function createMarkdownBehaviors(
7853
8065
  | 'annotation.toggle'
7854
8066
  | 'decorator.toggle'
7855
8067
  | 'insert.blocks'
8068
+ | 'insert.break'
8069
+ | 'insert.soft break'
7856
8070
  | 'list item.add'
7857
8071
  | 'list item.remove'
7858
8072
  | 'list item.toggle'
@@ -7878,6 +8092,8 @@ export declare function createMarkdownBehaviors(
7878
8092
  | 'annotation.toggle'
7879
8093
  | 'decorator.toggle'
7880
8094
  | 'insert.blocks'
8095
+ | 'insert.break'
8096
+ | 'insert.soft break'
7881
8097
  | 'list item.add'
7882
8098
  | 'list item.remove'
7883
8099
  | 'list item.toggle'
@@ -7903,6 +8119,8 @@ export declare function createMarkdownBehaviors(
7903
8119
  | 'annotation.toggle'
7904
8120
  | 'decorator.toggle'
7905
8121
  | 'insert.blocks'
8122
+ | 'insert.break'
8123
+ | 'insert.soft break'
7906
8124
  | 'list item.add'
7907
8125
  | 'list item.remove'
7908
8126
  | 'list item.toggle'
@@ -7928,6 +8146,8 @@ export declare function createMarkdownBehaviors(
7928
8146
  | 'annotation.toggle'
7929
8147
  | 'decorator.toggle'
7930
8148
  | 'insert.blocks'
8149
+ | 'insert.break'
8150
+ | 'insert.soft break'
7931
8151
  | 'list item.add'
7932
8152
  | 'list item.remove'
7933
8153
  | 'list item.toggle'
@@ -7953,6 +8173,8 @@ export declare function createMarkdownBehaviors(
7953
8173
  | 'annotation.toggle'
7954
8174
  | 'decorator.toggle'
7955
8175
  | 'insert.blocks'
8176
+ | 'insert.break'
8177
+ | 'insert.soft break'
7956
8178
  | 'list item.add'
7957
8179
  | 'list item.remove'
7958
8180
  | 'list item.toggle'
@@ -7978,6 +8200,8 @@ export declare function createMarkdownBehaviors(
7978
8200
  | 'annotation.toggle'
7979
8201
  | 'decorator.toggle'
7980
8202
  | 'insert.blocks'
8203
+ | 'insert.break'
8204
+ | 'insert.soft break'
7981
8205
  | 'list item.add'
7982
8206
  | 'list item.remove'
7983
8207
  | 'list item.toggle'
@@ -8003,6 +8227,8 @@ export declare function createMarkdownBehaviors(
8003
8227
  | 'annotation.toggle'
8004
8228
  | 'decorator.toggle'
8005
8229
  | 'insert.blocks'
8230
+ | 'insert.break'
8231
+ | 'insert.soft break'
8006
8232
  | 'list item.add'
8007
8233
  | 'list item.remove'
8008
8234
  | 'list item.toggle'
@@ -8028,6 +8254,8 @@ export declare function createMarkdownBehaviors(
8028
8254
  | 'annotation.toggle'
8029
8255
  | 'decorator.toggle'
8030
8256
  | 'insert.blocks'
8257
+ | 'insert.break'
8258
+ | 'insert.soft break'
8031
8259
  | 'list item.add'
8032
8260
  | 'list item.remove'
8033
8261
  | 'list item.toggle'
@@ -13002,7 +13230,7 @@ export declare type SyntheticBehaviorEvent =
13002
13230
  | {
13003
13231
  type: StrictExtract_2<SyntheticBehaviorEventType, 'decorator.add'>
13004
13232
  decorator: string
13005
- offsets?: {
13233
+ at?: {
13006
13234
  anchor: BlockOffset_2
13007
13235
  focus: BlockOffset_2
13008
13236
  }
@@ -13013,7 +13241,7 @@ export declare type SyntheticBehaviorEvent =
13013
13241
  }
13014
13242
  | {
13015
13243
  type: StrictExtract_2<SyntheticBehaviorEventType, 'delete'>
13016
- selection: NonNullable<EditorSelection_2>
13244
+ at: NonNullable<EditorSelection_2>
13017
13245
  }
13018
13246
  | {
13019
13247
  type: StrictExtract_2<SyntheticBehaviorEventType, 'delete.backward'>
@@ -13029,8 +13257,10 @@ export declare type SyntheticBehaviorEvent =
13029
13257
  }
13030
13258
  | {
13031
13259
  type: StrictExtract_2<SyntheticBehaviorEventType, 'delete.text'>
13032
- anchor: BlockOffset_2
13033
- focus: BlockOffset_2
13260
+ at: {
13261
+ anchor: BlockOffset_2
13262
+ focus: BlockOffset_2
13263
+ }
13034
13264
  }
13035
13265
  | {
13036
13266
  type: StrictExtract_2<SyntheticBehaviorEventType, 'focus'>
@@ -13050,12 +13280,6 @@ export declare type SyntheticBehaviorEvent =
13050
13280
  }
13051
13281
  }
13052
13282
  }
13053
- | {
13054
- type: StrictExtract_2<SyntheticBehaviorEventType, 'insert.break'>
13055
- }
13056
- | {
13057
- type: StrictExtract_2<SyntheticBehaviorEventType, 'insert.soft break'>
13058
- }
13059
13283
  | {
13060
13284
  type: StrictExtract_2<SyntheticBehaviorEventType, 'insert.block'>
13061
13285
  block: BlockWithOptionalKey_2
@@ -13084,7 +13308,10 @@ export declare type SyntheticBehaviorEvent =
13084
13308
  }
13085
13309
  | {
13086
13310
  type: StrictExtract_2<SyntheticBehaviorEventType, 'select'>
13087
- selection: EditorSelection_2
13311
+ at: EditorSelection_2
13312
+ }
13313
+ | {
13314
+ type: StrictExtract_2<SyntheticBehaviorEventType, 'split.block'>
13088
13315
  }
13089
13316
 
13090
13317
  declare type SyntheticBehaviorEventNamespace =
@@ -13113,13 +13340,12 @@ declare const syntheticBehaviorEventTypes: readonly [
13113
13340
  'history.redo',
13114
13341
  'history.undo',
13115
13342
  'insert.inline object',
13116
- 'insert.break',
13117
- 'insert.soft break',
13118
13343
  'insert.block',
13119
13344
  'insert.span',
13120
13345
  'insert.text',
13121
13346
  'move.block',
13122
13347
  'select',
13348
+ 'split.block',
13123
13349
  ]
13124
13350
 
13125
13351
  declare type TextBlockWithOptionalKey = Omit<PortableTextTextBlock, '_key'> & {