@portabletext/editor 1.48.9 → 1.48.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-cjs/editor-provider.cjs +879 -169
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.get-focus-inline-object.cjs +2 -2
- package/lib/_chunks-cjs/selector.get-focus-inline-object.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.get-text-before.cjs +2 -2
- package/lib/_chunks-cjs/selector.get-text-before.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.is-selecting-entire-blocks.cjs +464 -19
- package/lib/_chunks-cjs/selector.is-selecting-entire-blocks.cjs.map +1 -1
- package/lib/_chunks-cjs/util.selection-point-to-block-offset.cjs +9 -1
- package/lib/_chunks-cjs/util.selection-point-to-block-offset.cjs.map +1 -1
- package/lib/_chunks-cjs/util.slice-blocks.cjs +2 -2
- package/lib/_chunks-es/editor-provider.js +773 -65
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/selector.get-focus-inline-object.js +1 -1
- package/lib/_chunks-es/selector.get-text-before.js +1 -1
- package/lib/_chunks-es/selector.is-selecting-entire-blocks.js +448 -3
- package/lib/_chunks-es/selector.is-selecting-entire-blocks.js.map +1 -1
- package/lib/_chunks-es/util.selection-point-to-block-offset.js +9 -1
- package/lib/_chunks-es/util.selection-point-to-block-offset.js.map +1 -1
- package/lib/_chunks-es/util.slice-blocks.js +2 -2
- package/lib/behaviors/index.cjs +27 -377
- package/lib/behaviors/index.cjs.map +1 -1
- package/lib/behaviors/index.d.cts +3696 -13915
- package/lib/behaviors/index.d.ts +3696 -13915
- package/lib/behaviors/index.js +22 -377
- package/lib/behaviors/index.js.map +1 -1
- package/lib/index.cjs +17 -17
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +3008 -394
- package/lib/index.d.ts +3008 -394
- package/lib/index.js +4 -5
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.cjs +347 -30
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +3008 -395
- package/lib/plugins/index.d.ts +3008 -395
- package/lib/plugins/index.js +324 -8
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.cjs +29 -29
- package/lib/selectors/index.cjs.map +1 -1
- package/lib/selectors/index.d.cts +3007 -387
- package/lib/selectors/index.d.ts +3007 -387
- package/lib/selectors/index.js +2 -3
- package/lib/selectors/index.js.map +1 -1
- package/lib/utils/index.cjs +5 -5
- package/lib/utils/index.cjs.map +1 -1
- package/lib/utils/index.d.cts +3008 -389
- package/lib/utils/index.d.ts +3008 -389
- package/lib/utils/index.js +2 -3
- package/lib/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/behaviors/behavior.emoji-picker.ts +0 -6
- package/src/behaviors/behavior.markdown.ts +0 -48
- package/src/behaviors/index.ts +0 -15
- package/src/editor/create-editor.ts +0 -3
- package/src/editor/editor-machine.ts +105 -52
- package/src/editor/sync-machine.ts +10 -4
- package/src/internal-utils/__tests__/operationToPatches.test.ts +0 -2
- package/src/internal-utils/__tests__/patchToOperations.test.ts +0 -2
- package/src/plugins/plugin.core.tsx +1 -1
- package/lib/_chunks-cjs/behavior.core.cjs +0 -700
- package/lib/_chunks-cjs/behavior.core.cjs.map +0 -1
- package/lib/_chunks-cjs/behavior.markdown.cjs +0 -321
- package/lib/_chunks-cjs/behavior.markdown.cjs.map +0 -1
- package/lib/_chunks-cjs/selector.is-overlapping-selection.cjs +0 -449
- package/lib/_chunks-cjs/selector.is-overlapping-selection.cjs.map +0 -1
- package/lib/_chunks-cjs/util.get-selection-start-point.cjs +0 -10
- package/lib/_chunks-cjs/util.get-selection-start-point.cjs.map +0 -1
- package/lib/_chunks-es/behavior.core.js +0 -703
- package/lib/_chunks-es/behavior.core.js.map +0 -1
- package/lib/_chunks-es/behavior.markdown.js +0 -325
- package/lib/_chunks-es/behavior.markdown.js.map +0 -1
- package/lib/_chunks-es/selector.is-overlapping-selection.js +0 -451
- package/lib/_chunks-es/selector.is-overlapping-selection.js.map +0 -1
- package/lib/_chunks-es/util.get-selection-start-point.js +0 -11
- package/lib/_chunks-es/util.get-selection-start-point.js.map +0 -1
- package/src/behaviors/behavior.code-editor.ts +0 -77
- package/src/behaviors/behavior.links.ts +0 -84
- package/src/internal-utils/looks-like-url.test.ts +0 -19
- package/src/internal-utils/looks-like-url.ts +0 -15
package/lib/selectors/index.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ import type {
|
|
|
16
16
|
FocusEvent as FocusEvent_2,
|
|
17
17
|
KeyboardEvent as KeyboardEvent_2,
|
|
18
18
|
} from 'react'
|
|
19
|
-
import type {Descendant, Operation
|
|
19
|
+
import type {Descendant, Operation} from 'slate'
|
|
20
|
+
import {TextUnit} from 'slate'
|
|
20
21
|
import type {DOMNode} from 'slate-dom'
|
|
21
22
|
import type {ReactEditor} from 'slate-react'
|
|
22
23
|
import {
|
|
@@ -40,6 +41,22 @@ import {
|
|
|
40
41
|
Values,
|
|
41
42
|
} from 'xstate'
|
|
42
43
|
import {GuardArgs} from 'xstate/guards'
|
|
44
|
+
import {BlockOffset as BlockOffset_2} from '..'
|
|
45
|
+
import {
|
|
46
|
+
CustomBehaviorEvent as CustomBehaviorEvent_2,
|
|
47
|
+
NativeBehaviorEvent as NativeBehaviorEvent_2,
|
|
48
|
+
} from '../behaviors'
|
|
49
|
+
import {
|
|
50
|
+
InputBehaviorEvent as InputBehaviorEvent_2,
|
|
51
|
+
InsertPlacement as InsertPlacement_2,
|
|
52
|
+
MouseBehaviorEvent as MouseBehaviorEvent_2,
|
|
53
|
+
} from '../behaviors/behavior.types.event'
|
|
54
|
+
import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
|
|
55
|
+
import {
|
|
56
|
+
PickFromUnion as PickFromUnion_2,
|
|
57
|
+
StrictExtract as StrictExtract_2,
|
|
58
|
+
} from '../type-utils'
|
|
59
|
+
import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
|
|
43
60
|
|
|
44
61
|
declare type AbstractBehaviorEvent =
|
|
45
62
|
| {
|
|
@@ -579,6 +596,7 @@ declare const editorMachine: StateMachine<
|
|
|
579
596
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
580
597
|
keyGenerator: () => string
|
|
581
598
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
599
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
582
600
|
schema: EditorSchema
|
|
583
601
|
initialReadOnly: boolean
|
|
584
602
|
maxBlocks: number | undefined
|
|
@@ -592,6 +610,7 @@ declare const editorMachine: StateMachine<
|
|
|
592
610
|
},
|
|
593
611
|
| InternalPatchEvent
|
|
594
612
|
| MutationEvent
|
|
613
|
+
| PatchesEvent
|
|
595
614
|
| {
|
|
596
615
|
type: 'add behavior'
|
|
597
616
|
behavior: Behavior
|
|
@@ -608,10 +627,6 @@ declare const editorMachine: StateMachine<
|
|
|
608
627
|
type: 'update schema'
|
|
609
628
|
schema: EditorSchema
|
|
610
629
|
}
|
|
611
|
-
| {
|
|
612
|
-
type: 'update behaviors'
|
|
613
|
-
behaviors: Array<Behavior>
|
|
614
|
-
}
|
|
615
630
|
| {
|
|
616
631
|
type: 'update key generator'
|
|
617
632
|
keyGenerator: () => string
|
|
@@ -624,7 +639,6 @@ declare const editorMachine: StateMachine<
|
|
|
624
639
|
type: 'update maxBlocks'
|
|
625
640
|
maxBlocks: number | undefined
|
|
626
641
|
}
|
|
627
|
-
| PatchesEvent
|
|
628
642
|
| {
|
|
629
643
|
type: 'blur'
|
|
630
644
|
editor: PortableTextSlateEditor
|
|
@@ -640,7 +654,10 @@ declare const editorMachine: StateMachine<
|
|
|
640
654
|
type: 'done normalizing'
|
|
641
655
|
}
|
|
642
656
|
| {
|
|
643
|
-
type: 'done syncing
|
|
657
|
+
type: 'done syncing value'
|
|
658
|
+
}
|
|
659
|
+
| {
|
|
660
|
+
type: 'syncing value'
|
|
644
661
|
}
|
|
645
662
|
| {
|
|
646
663
|
type: 'behavior event'
|
|
@@ -728,10 +745,6 @@ declare const editorMachine: StateMachine<
|
|
|
728
745
|
type: 'remove behavior from context'
|
|
729
746
|
params: NonReducibleUnknown
|
|
730
747
|
}
|
|
731
|
-
'assign behaviors': {
|
|
732
|
-
type: 'assign behaviors'
|
|
733
|
-
params: NonReducibleUnknown
|
|
734
|
-
}
|
|
735
748
|
'assign schema': {
|
|
736
749
|
type: 'assign schema'
|
|
737
750
|
params: NonReducibleUnknown
|
|
@@ -768,6 +781,18 @@ declare const editorMachine: StateMachine<
|
|
|
768
781
|
type: 'clear pending events'
|
|
769
782
|
params: NonReducibleUnknown
|
|
770
783
|
}
|
|
784
|
+
'defer incoming patches': {
|
|
785
|
+
type: 'defer incoming patches'
|
|
786
|
+
params: NonReducibleUnknown
|
|
787
|
+
}
|
|
788
|
+
'emit pending incoming patches': {
|
|
789
|
+
type: 'emit pending incoming patches'
|
|
790
|
+
params: NonReducibleUnknown
|
|
791
|
+
}
|
|
792
|
+
'clear pending incoming patches': {
|
|
793
|
+
type: 'clear pending incoming patches'
|
|
794
|
+
params: NonReducibleUnknown
|
|
795
|
+
}
|
|
771
796
|
'handle blur': {
|
|
772
797
|
type: 'handle blur'
|
|
773
798
|
params: unknown
|
|
@@ -801,14 +826,19 @@ declare const editorMachine: StateMachine<
|
|
|
801
826
|
}
|
|
802
827
|
'setup':
|
|
803
828
|
| 'setting up'
|
|
804
|
-
| 'dirty'
|
|
805
829
|
| {
|
|
806
|
-
|
|
830
|
+
'set up': {
|
|
831
|
+
'value sync': 'syncing value' | 'idle'
|
|
832
|
+
'writing':
|
|
833
|
+
| 'dirty'
|
|
834
|
+
| {
|
|
835
|
+
pristine: 'normalizing' | 'idle'
|
|
836
|
+
}
|
|
837
|
+
}
|
|
807
838
|
}
|
|
808
839
|
},
|
|
809
840
|
'dragging internally',
|
|
810
841
|
{
|
|
811
|
-
behaviors?: Array<Behavior>
|
|
812
842
|
converters?: Array<Converter>
|
|
813
843
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
814
844
|
keyGenerator: () => string
|
|
@@ -894,7 +924,6 @@ declare const editorMachine: StateMachine<
|
|
|
894
924
|
): ActorRefFromLogic<TLogic>
|
|
895
925
|
}
|
|
896
926
|
input: {
|
|
897
|
-
behaviors?: Array<Behavior>
|
|
898
927
|
converters?: Array<Converter>
|
|
899
928
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
900
929
|
keyGenerator: () => string
|
|
@@ -911,6 +940,7 @@ declare const editorMachine: StateMachine<
|
|
|
911
940
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
912
941
|
keyGenerator: () => string
|
|
913
942
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
943
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
914
944
|
schema: EditorSchema
|
|
915
945
|
initialReadOnly: boolean
|
|
916
946
|
maxBlocks: number | undefined
|
|
@@ -924,6 +954,7 @@ declare const editorMachine: StateMachine<
|
|
|
924
954
|
},
|
|
925
955
|
| InternalPatchEvent
|
|
926
956
|
| MutationEvent
|
|
957
|
+
| PatchesEvent
|
|
927
958
|
| {
|
|
928
959
|
type: 'add behavior'
|
|
929
960
|
behavior: Behavior
|
|
@@ -940,10 +971,6 @@ declare const editorMachine: StateMachine<
|
|
|
940
971
|
type: 'update schema'
|
|
941
972
|
schema: EditorSchema
|
|
942
973
|
}
|
|
943
|
-
| {
|
|
944
|
-
type: 'update behaviors'
|
|
945
|
-
behaviors: Array<Behavior>
|
|
946
|
-
}
|
|
947
974
|
| {
|
|
948
975
|
type: 'update key generator'
|
|
949
976
|
keyGenerator: () => string
|
|
@@ -956,7 +983,6 @@ declare const editorMachine: StateMachine<
|
|
|
956
983
|
type: 'update maxBlocks'
|
|
957
984
|
maxBlocks: number | undefined
|
|
958
985
|
}
|
|
959
|
-
| PatchesEvent
|
|
960
986
|
| {
|
|
961
987
|
type: 'blur'
|
|
962
988
|
editor: PortableTextSlateEditor
|
|
@@ -972,7 +998,10 @@ declare const editorMachine: StateMachine<
|
|
|
972
998
|
type: 'done normalizing'
|
|
973
999
|
}
|
|
974
1000
|
| {
|
|
975
|
-
type: 'done syncing
|
|
1001
|
+
type: 'done syncing value'
|
|
1002
|
+
}
|
|
1003
|
+
| {
|
|
1004
|
+
type: 'syncing value'
|
|
976
1005
|
}
|
|
977
1006
|
| {
|
|
978
1007
|
type: 'behavior event'
|
|
@@ -1058,6 +1087,7 @@ declare const editorMachine: StateMachine<
|
|
|
1058
1087
|
>,
|
|
1059
1088
|
| InternalPatchEvent
|
|
1060
1089
|
| MutationEvent
|
|
1090
|
+
| PatchesEvent
|
|
1061
1091
|
| {
|
|
1062
1092
|
type: 'add behavior'
|
|
1063
1093
|
behavior: Behavior
|
|
@@ -1074,10 +1104,6 @@ declare const editorMachine: StateMachine<
|
|
|
1074
1104
|
type: 'update schema'
|
|
1075
1105
|
schema: EditorSchema
|
|
1076
1106
|
}
|
|
1077
|
-
| {
|
|
1078
|
-
type: 'update behaviors'
|
|
1079
|
-
behaviors: Array<Behavior>
|
|
1080
|
-
}
|
|
1081
1107
|
| {
|
|
1082
1108
|
type: 'update key generator'
|
|
1083
1109
|
keyGenerator: () => string
|
|
@@ -1090,7 +1116,6 @@ declare const editorMachine: StateMachine<
|
|
|
1090
1116
|
type: 'update maxBlocks'
|
|
1091
1117
|
maxBlocks: number | undefined
|
|
1092
1118
|
}
|
|
1093
|
-
| PatchesEvent
|
|
1094
1119
|
| {
|
|
1095
1120
|
type: 'blur'
|
|
1096
1121
|
editor: PortableTextSlateEditor
|
|
@@ -1106,7 +1131,10 @@ declare const editorMachine: StateMachine<
|
|
|
1106
1131
|
type: 'done normalizing'
|
|
1107
1132
|
}
|
|
1108
1133
|
| {
|
|
1109
|
-
type: 'done syncing
|
|
1134
|
+
type: 'done syncing value'
|
|
1135
|
+
}
|
|
1136
|
+
| {
|
|
1137
|
+
type: 'syncing value'
|
|
1110
1138
|
}
|
|
1111
1139
|
| {
|
|
1112
1140
|
type: 'behavior event'
|
|
@@ -1186,11 +1214,2555 @@ declare const editorMachine: StateMachine<
|
|
|
1186
1214
|
AnyEventObject
|
|
1187
1215
|
>
|
|
1188
1216
|
}) => {
|
|
1189
|
-
behaviors: Set<
|
|
1217
|
+
behaviors: Set<
|
|
1218
|
+
Behavior<
|
|
1219
|
+
| 'serialize'
|
|
1220
|
+
| 'clipboard.copy'
|
|
1221
|
+
| 'clipboard.cut'
|
|
1222
|
+
| 'drag.dragstart'
|
|
1223
|
+
| 'serialization.failure'
|
|
1224
|
+
| 'serialization.success'
|
|
1225
|
+
| 'deserialize'
|
|
1226
|
+
| 'deserialization.failure'
|
|
1227
|
+
| 'deserialization.success'
|
|
1228
|
+
| 'split'
|
|
1229
|
+
| 'delete'
|
|
1230
|
+
| 'select'
|
|
1231
|
+
| '*'
|
|
1232
|
+
| 'annotation.add'
|
|
1233
|
+
| 'annotation.remove'
|
|
1234
|
+
| 'block.set'
|
|
1235
|
+
| 'block.unset'
|
|
1236
|
+
| 'decorator.add'
|
|
1237
|
+
| 'decorator.remove'
|
|
1238
|
+
| 'delete.backward'
|
|
1239
|
+
| 'delete.block'
|
|
1240
|
+
| 'delete.forward'
|
|
1241
|
+
| 'history.redo'
|
|
1242
|
+
| 'history.undo'
|
|
1243
|
+
| 'insert.inline object'
|
|
1244
|
+
| 'insert.block'
|
|
1245
|
+
| 'insert.span'
|
|
1246
|
+
| 'insert.text'
|
|
1247
|
+
| 'move.backward'
|
|
1248
|
+
| 'move.block'
|
|
1249
|
+
| 'move.forward'
|
|
1250
|
+
| 'annotation.toggle'
|
|
1251
|
+
| 'decorator.toggle'
|
|
1252
|
+
| 'delete.text'
|
|
1253
|
+
| 'insert.blocks'
|
|
1254
|
+
| 'insert.break'
|
|
1255
|
+
| 'insert.soft break'
|
|
1256
|
+
| 'list item.add'
|
|
1257
|
+
| 'list item.remove'
|
|
1258
|
+
| 'list item.toggle'
|
|
1259
|
+
| 'move.block down'
|
|
1260
|
+
| 'move.block up'
|
|
1261
|
+
| 'select.previous block'
|
|
1262
|
+
| 'select.next block'
|
|
1263
|
+
| 'style.add'
|
|
1264
|
+
| 'style.remove'
|
|
1265
|
+
| 'style.toggle'
|
|
1266
|
+
| 'clipboard.paste'
|
|
1267
|
+
| 'drag.drag'
|
|
1268
|
+
| 'drag.dragend'
|
|
1269
|
+
| 'drag.dragenter'
|
|
1270
|
+
| 'drag.dragover'
|
|
1271
|
+
| 'drag.dragleave'
|
|
1272
|
+
| 'drag.drop'
|
|
1273
|
+
| 'input.*'
|
|
1274
|
+
| 'keyboard.keydown'
|
|
1275
|
+
| 'keyboard.keyup'
|
|
1276
|
+
| 'mouse.click'
|
|
1277
|
+
| 'serialize.*'
|
|
1278
|
+
| 'deserialize.*'
|
|
1279
|
+
| 'split.*'
|
|
1280
|
+
| 'block.*'
|
|
1281
|
+
| 'style.*'
|
|
1282
|
+
| 'delete.*'
|
|
1283
|
+
| 'move.*'
|
|
1284
|
+
| 'select.*'
|
|
1285
|
+
| 'history.*'
|
|
1286
|
+
| 'serialization.*'
|
|
1287
|
+
| 'deserialization.*'
|
|
1288
|
+
| 'annotation.*'
|
|
1289
|
+
| 'decorator.*'
|
|
1290
|
+
| 'insert.*'
|
|
1291
|
+
| 'list item.*'
|
|
1292
|
+
| 'clipboard.*'
|
|
1293
|
+
| 'drag.*'
|
|
1294
|
+
| 'keyboard.*'
|
|
1295
|
+
| 'mouse.*'
|
|
1296
|
+
| `custom.${string}`,
|
|
1297
|
+
true,
|
|
1298
|
+
| {
|
|
1299
|
+
type: StrictExtract_2<
|
|
1300
|
+
| 'serialize'
|
|
1301
|
+
| 'serialization.failure'
|
|
1302
|
+
| 'serialization.success'
|
|
1303
|
+
| 'deserialize'
|
|
1304
|
+
| 'deserialization.failure'
|
|
1305
|
+
| 'deserialization.success'
|
|
1306
|
+
| 'split'
|
|
1307
|
+
| 'delete'
|
|
1308
|
+
| 'select'
|
|
1309
|
+
| 'annotation.add'
|
|
1310
|
+
| 'annotation.remove'
|
|
1311
|
+
| 'block.set'
|
|
1312
|
+
| 'block.unset'
|
|
1313
|
+
| 'decorator.add'
|
|
1314
|
+
| 'decorator.remove'
|
|
1315
|
+
| 'delete.backward'
|
|
1316
|
+
| 'delete.block'
|
|
1317
|
+
| 'delete.forward'
|
|
1318
|
+
| 'history.redo'
|
|
1319
|
+
| 'history.undo'
|
|
1320
|
+
| 'insert.inline object'
|
|
1321
|
+
| 'insert.block'
|
|
1322
|
+
| 'insert.span'
|
|
1323
|
+
| 'insert.text'
|
|
1324
|
+
| 'move.backward'
|
|
1325
|
+
| 'move.block'
|
|
1326
|
+
| 'move.forward'
|
|
1327
|
+
| 'annotation.toggle'
|
|
1328
|
+
| 'decorator.toggle'
|
|
1329
|
+
| 'delete.text'
|
|
1330
|
+
| 'insert.blocks'
|
|
1331
|
+
| 'insert.break'
|
|
1332
|
+
| 'insert.soft break'
|
|
1333
|
+
| 'list item.add'
|
|
1334
|
+
| 'list item.remove'
|
|
1335
|
+
| 'list item.toggle'
|
|
1336
|
+
| 'move.block down'
|
|
1337
|
+
| 'move.block up'
|
|
1338
|
+
| 'select.previous block'
|
|
1339
|
+
| 'select.next block'
|
|
1340
|
+
| 'style.add'
|
|
1341
|
+
| 'style.remove'
|
|
1342
|
+
| 'style.toggle',
|
|
1343
|
+
'annotation.add'
|
|
1344
|
+
>
|
|
1345
|
+
annotation: {
|
|
1346
|
+
name: string
|
|
1347
|
+
value: {
|
|
1348
|
+
[prop: string]: unknown
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
| {
|
|
1353
|
+
type: StrictExtract_2<
|
|
1354
|
+
| 'serialize'
|
|
1355
|
+
| 'serialization.failure'
|
|
1356
|
+
| 'serialization.success'
|
|
1357
|
+
| 'deserialize'
|
|
1358
|
+
| 'deserialization.failure'
|
|
1359
|
+
| 'deserialization.success'
|
|
1360
|
+
| 'split'
|
|
1361
|
+
| 'delete'
|
|
1362
|
+
| 'select'
|
|
1363
|
+
| 'annotation.add'
|
|
1364
|
+
| 'annotation.remove'
|
|
1365
|
+
| 'block.set'
|
|
1366
|
+
| 'block.unset'
|
|
1367
|
+
| 'decorator.add'
|
|
1368
|
+
| 'decorator.remove'
|
|
1369
|
+
| 'delete.backward'
|
|
1370
|
+
| 'delete.block'
|
|
1371
|
+
| 'delete.forward'
|
|
1372
|
+
| 'history.redo'
|
|
1373
|
+
| 'history.undo'
|
|
1374
|
+
| 'insert.inline object'
|
|
1375
|
+
| 'insert.block'
|
|
1376
|
+
| 'insert.span'
|
|
1377
|
+
| 'insert.text'
|
|
1378
|
+
| 'move.backward'
|
|
1379
|
+
| 'move.block'
|
|
1380
|
+
| 'move.forward'
|
|
1381
|
+
| 'annotation.toggle'
|
|
1382
|
+
| 'decorator.toggle'
|
|
1383
|
+
| 'delete.text'
|
|
1384
|
+
| 'insert.blocks'
|
|
1385
|
+
| 'insert.break'
|
|
1386
|
+
| 'insert.soft break'
|
|
1387
|
+
| 'list item.add'
|
|
1388
|
+
| 'list item.remove'
|
|
1389
|
+
| 'list item.toggle'
|
|
1390
|
+
| 'move.block down'
|
|
1391
|
+
| 'move.block up'
|
|
1392
|
+
| 'select.previous block'
|
|
1393
|
+
| 'select.next block'
|
|
1394
|
+
| 'style.add'
|
|
1395
|
+
| 'style.remove'
|
|
1396
|
+
| 'style.toggle',
|
|
1397
|
+
'annotation.remove'
|
|
1398
|
+
>
|
|
1399
|
+
annotation: {
|
|
1400
|
+
name: string
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
| {
|
|
1404
|
+
type: StrictExtract_2<
|
|
1405
|
+
| 'serialize'
|
|
1406
|
+
| 'serialization.failure'
|
|
1407
|
+
| 'serialization.success'
|
|
1408
|
+
| 'deserialize'
|
|
1409
|
+
| 'deserialization.failure'
|
|
1410
|
+
| 'deserialization.success'
|
|
1411
|
+
| 'split'
|
|
1412
|
+
| 'delete'
|
|
1413
|
+
| 'select'
|
|
1414
|
+
| 'annotation.add'
|
|
1415
|
+
| 'annotation.remove'
|
|
1416
|
+
| 'block.set'
|
|
1417
|
+
| 'block.unset'
|
|
1418
|
+
| 'decorator.add'
|
|
1419
|
+
| 'decorator.remove'
|
|
1420
|
+
| 'delete.backward'
|
|
1421
|
+
| 'delete.block'
|
|
1422
|
+
| 'delete.forward'
|
|
1423
|
+
| 'history.redo'
|
|
1424
|
+
| 'history.undo'
|
|
1425
|
+
| 'insert.inline object'
|
|
1426
|
+
| 'insert.block'
|
|
1427
|
+
| 'insert.span'
|
|
1428
|
+
| 'insert.text'
|
|
1429
|
+
| 'move.backward'
|
|
1430
|
+
| 'move.block'
|
|
1431
|
+
| 'move.forward'
|
|
1432
|
+
| 'annotation.toggle'
|
|
1433
|
+
| 'decorator.toggle'
|
|
1434
|
+
| 'delete.text'
|
|
1435
|
+
| 'insert.blocks'
|
|
1436
|
+
| 'insert.break'
|
|
1437
|
+
| 'insert.soft break'
|
|
1438
|
+
| 'list item.add'
|
|
1439
|
+
| 'list item.remove'
|
|
1440
|
+
| 'list item.toggle'
|
|
1441
|
+
| 'move.block down'
|
|
1442
|
+
| 'move.block up'
|
|
1443
|
+
| 'select.previous block'
|
|
1444
|
+
| 'select.next block'
|
|
1445
|
+
| 'style.add'
|
|
1446
|
+
| 'style.remove'
|
|
1447
|
+
| 'style.toggle',
|
|
1448
|
+
'block.set'
|
|
1449
|
+
>
|
|
1450
|
+
at: [KeyedSegment]
|
|
1451
|
+
props: Record<string, unknown>
|
|
1452
|
+
}
|
|
1453
|
+
| {
|
|
1454
|
+
type: StrictExtract_2<
|
|
1455
|
+
| 'serialize'
|
|
1456
|
+
| 'serialization.failure'
|
|
1457
|
+
| 'serialization.success'
|
|
1458
|
+
| 'deserialize'
|
|
1459
|
+
| 'deserialization.failure'
|
|
1460
|
+
| 'deserialization.success'
|
|
1461
|
+
| 'split'
|
|
1462
|
+
| 'delete'
|
|
1463
|
+
| 'select'
|
|
1464
|
+
| 'annotation.add'
|
|
1465
|
+
| 'annotation.remove'
|
|
1466
|
+
| 'block.set'
|
|
1467
|
+
| 'block.unset'
|
|
1468
|
+
| 'decorator.add'
|
|
1469
|
+
| 'decorator.remove'
|
|
1470
|
+
| 'delete.backward'
|
|
1471
|
+
| 'delete.block'
|
|
1472
|
+
| 'delete.forward'
|
|
1473
|
+
| 'history.redo'
|
|
1474
|
+
| 'history.undo'
|
|
1475
|
+
| 'insert.inline object'
|
|
1476
|
+
| 'insert.block'
|
|
1477
|
+
| 'insert.span'
|
|
1478
|
+
| 'insert.text'
|
|
1479
|
+
| 'move.backward'
|
|
1480
|
+
| 'move.block'
|
|
1481
|
+
| 'move.forward'
|
|
1482
|
+
| 'annotation.toggle'
|
|
1483
|
+
| 'decorator.toggle'
|
|
1484
|
+
| 'delete.text'
|
|
1485
|
+
| 'insert.blocks'
|
|
1486
|
+
| 'insert.break'
|
|
1487
|
+
| 'insert.soft break'
|
|
1488
|
+
| 'list item.add'
|
|
1489
|
+
| 'list item.remove'
|
|
1490
|
+
| 'list item.toggle'
|
|
1491
|
+
| 'move.block down'
|
|
1492
|
+
| 'move.block up'
|
|
1493
|
+
| 'select.previous block'
|
|
1494
|
+
| 'select.next block'
|
|
1495
|
+
| 'style.add'
|
|
1496
|
+
| 'style.remove'
|
|
1497
|
+
| 'style.toggle',
|
|
1498
|
+
'block.unset'
|
|
1499
|
+
>
|
|
1500
|
+
at: [KeyedSegment]
|
|
1501
|
+
props: Array<string>
|
|
1502
|
+
}
|
|
1503
|
+
| {
|
|
1504
|
+
type: StrictExtract_2<
|
|
1505
|
+
| 'serialize'
|
|
1506
|
+
| 'serialization.failure'
|
|
1507
|
+
| 'serialization.success'
|
|
1508
|
+
| 'deserialize'
|
|
1509
|
+
| 'deserialization.failure'
|
|
1510
|
+
| 'deserialization.success'
|
|
1511
|
+
| 'split'
|
|
1512
|
+
| 'delete'
|
|
1513
|
+
| 'select'
|
|
1514
|
+
| 'annotation.add'
|
|
1515
|
+
| 'annotation.remove'
|
|
1516
|
+
| 'block.set'
|
|
1517
|
+
| 'block.unset'
|
|
1518
|
+
| 'decorator.add'
|
|
1519
|
+
| 'decorator.remove'
|
|
1520
|
+
| 'delete.backward'
|
|
1521
|
+
| 'delete.block'
|
|
1522
|
+
| 'delete.forward'
|
|
1523
|
+
| 'history.redo'
|
|
1524
|
+
| 'history.undo'
|
|
1525
|
+
| 'insert.inline object'
|
|
1526
|
+
| 'insert.block'
|
|
1527
|
+
| 'insert.span'
|
|
1528
|
+
| 'insert.text'
|
|
1529
|
+
| 'move.backward'
|
|
1530
|
+
| 'move.block'
|
|
1531
|
+
| 'move.forward'
|
|
1532
|
+
| 'annotation.toggle'
|
|
1533
|
+
| 'decorator.toggle'
|
|
1534
|
+
| 'delete.text'
|
|
1535
|
+
| 'insert.blocks'
|
|
1536
|
+
| 'insert.break'
|
|
1537
|
+
| 'insert.soft break'
|
|
1538
|
+
| 'list item.add'
|
|
1539
|
+
| 'list item.remove'
|
|
1540
|
+
| 'list item.toggle'
|
|
1541
|
+
| 'move.block down'
|
|
1542
|
+
| 'move.block up'
|
|
1543
|
+
| 'select.previous block'
|
|
1544
|
+
| 'select.next block'
|
|
1545
|
+
| 'style.add'
|
|
1546
|
+
| 'style.remove'
|
|
1547
|
+
| 'style.toggle',
|
|
1548
|
+
'decorator.add'
|
|
1549
|
+
>
|
|
1550
|
+
decorator: string
|
|
1551
|
+
at?: {
|
|
1552
|
+
anchor: BlockOffset_2
|
|
1553
|
+
focus: BlockOffset_2
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
| {
|
|
1557
|
+
type: StrictExtract_2<
|
|
1558
|
+
| 'serialize'
|
|
1559
|
+
| 'serialization.failure'
|
|
1560
|
+
| 'serialization.success'
|
|
1561
|
+
| 'deserialize'
|
|
1562
|
+
| 'deserialization.failure'
|
|
1563
|
+
| 'deserialization.success'
|
|
1564
|
+
| 'split'
|
|
1565
|
+
| 'delete'
|
|
1566
|
+
| 'select'
|
|
1567
|
+
| 'annotation.add'
|
|
1568
|
+
| 'annotation.remove'
|
|
1569
|
+
| 'block.set'
|
|
1570
|
+
| 'block.unset'
|
|
1571
|
+
| 'decorator.add'
|
|
1572
|
+
| 'decorator.remove'
|
|
1573
|
+
| 'delete.backward'
|
|
1574
|
+
| 'delete.block'
|
|
1575
|
+
| 'delete.forward'
|
|
1576
|
+
| 'history.redo'
|
|
1577
|
+
| 'history.undo'
|
|
1578
|
+
| 'insert.inline object'
|
|
1579
|
+
| 'insert.block'
|
|
1580
|
+
| 'insert.span'
|
|
1581
|
+
| 'insert.text'
|
|
1582
|
+
| 'move.backward'
|
|
1583
|
+
| 'move.block'
|
|
1584
|
+
| 'move.forward'
|
|
1585
|
+
| 'annotation.toggle'
|
|
1586
|
+
| 'decorator.toggle'
|
|
1587
|
+
| 'delete.text'
|
|
1588
|
+
| 'insert.blocks'
|
|
1589
|
+
| 'insert.break'
|
|
1590
|
+
| 'insert.soft break'
|
|
1591
|
+
| 'list item.add'
|
|
1592
|
+
| 'list item.remove'
|
|
1593
|
+
| 'list item.toggle'
|
|
1594
|
+
| 'move.block down'
|
|
1595
|
+
| 'move.block up'
|
|
1596
|
+
| 'select.previous block'
|
|
1597
|
+
| 'select.next block'
|
|
1598
|
+
| 'style.add'
|
|
1599
|
+
| 'style.remove'
|
|
1600
|
+
| 'style.toggle',
|
|
1601
|
+
'decorator.remove'
|
|
1602
|
+
>
|
|
1603
|
+
decorator: string
|
|
1604
|
+
}
|
|
1605
|
+
| {
|
|
1606
|
+
type: StrictExtract_2<
|
|
1607
|
+
| 'serialize'
|
|
1608
|
+
| 'serialization.failure'
|
|
1609
|
+
| 'serialization.success'
|
|
1610
|
+
| 'deserialize'
|
|
1611
|
+
| 'deserialization.failure'
|
|
1612
|
+
| 'deserialization.success'
|
|
1613
|
+
| 'split'
|
|
1614
|
+
| 'delete'
|
|
1615
|
+
| 'select'
|
|
1616
|
+
| 'annotation.add'
|
|
1617
|
+
| 'annotation.remove'
|
|
1618
|
+
| 'block.set'
|
|
1619
|
+
| 'block.unset'
|
|
1620
|
+
| 'decorator.add'
|
|
1621
|
+
| 'decorator.remove'
|
|
1622
|
+
| 'delete.backward'
|
|
1623
|
+
| 'delete.block'
|
|
1624
|
+
| 'delete.forward'
|
|
1625
|
+
| 'history.redo'
|
|
1626
|
+
| 'history.undo'
|
|
1627
|
+
| 'insert.inline object'
|
|
1628
|
+
| 'insert.block'
|
|
1629
|
+
| 'insert.span'
|
|
1630
|
+
| 'insert.text'
|
|
1631
|
+
| 'move.backward'
|
|
1632
|
+
| 'move.block'
|
|
1633
|
+
| 'move.forward'
|
|
1634
|
+
| 'annotation.toggle'
|
|
1635
|
+
| 'decorator.toggle'
|
|
1636
|
+
| 'delete.text'
|
|
1637
|
+
| 'insert.blocks'
|
|
1638
|
+
| 'insert.break'
|
|
1639
|
+
| 'insert.soft break'
|
|
1640
|
+
| 'list item.add'
|
|
1641
|
+
| 'list item.remove'
|
|
1642
|
+
| 'list item.toggle'
|
|
1643
|
+
| 'move.block down'
|
|
1644
|
+
| 'move.block up'
|
|
1645
|
+
| 'select.previous block'
|
|
1646
|
+
| 'select.next block'
|
|
1647
|
+
| 'style.add'
|
|
1648
|
+
| 'style.remove'
|
|
1649
|
+
| 'style.toggle',
|
|
1650
|
+
'delete'
|
|
1651
|
+
>
|
|
1652
|
+
at: NonNullable<EditorSelection>
|
|
1653
|
+
}
|
|
1654
|
+
| {
|
|
1655
|
+
type: StrictExtract_2<
|
|
1656
|
+
| 'serialize'
|
|
1657
|
+
| 'serialization.failure'
|
|
1658
|
+
| 'serialization.success'
|
|
1659
|
+
| 'deserialize'
|
|
1660
|
+
| 'deserialization.failure'
|
|
1661
|
+
| 'deserialization.success'
|
|
1662
|
+
| 'split'
|
|
1663
|
+
| 'delete'
|
|
1664
|
+
| 'select'
|
|
1665
|
+
| 'annotation.add'
|
|
1666
|
+
| 'annotation.remove'
|
|
1667
|
+
| 'block.set'
|
|
1668
|
+
| 'block.unset'
|
|
1669
|
+
| 'decorator.add'
|
|
1670
|
+
| 'decorator.remove'
|
|
1671
|
+
| 'delete.backward'
|
|
1672
|
+
| 'delete.block'
|
|
1673
|
+
| 'delete.forward'
|
|
1674
|
+
| 'history.redo'
|
|
1675
|
+
| 'history.undo'
|
|
1676
|
+
| 'insert.inline object'
|
|
1677
|
+
| 'insert.block'
|
|
1678
|
+
| 'insert.span'
|
|
1679
|
+
| 'insert.text'
|
|
1680
|
+
| 'move.backward'
|
|
1681
|
+
| 'move.block'
|
|
1682
|
+
| 'move.forward'
|
|
1683
|
+
| 'annotation.toggle'
|
|
1684
|
+
| 'decorator.toggle'
|
|
1685
|
+
| 'delete.text'
|
|
1686
|
+
| 'insert.blocks'
|
|
1687
|
+
| 'insert.break'
|
|
1688
|
+
| 'insert.soft break'
|
|
1689
|
+
| 'list item.add'
|
|
1690
|
+
| 'list item.remove'
|
|
1691
|
+
| 'list item.toggle'
|
|
1692
|
+
| 'move.block down'
|
|
1693
|
+
| 'move.block up'
|
|
1694
|
+
| 'select.previous block'
|
|
1695
|
+
| 'select.next block'
|
|
1696
|
+
| 'style.add'
|
|
1697
|
+
| 'style.remove'
|
|
1698
|
+
| 'style.toggle',
|
|
1699
|
+
'delete.backward'
|
|
1700
|
+
>
|
|
1701
|
+
unit: TextUnit
|
|
1702
|
+
}
|
|
1703
|
+
| {
|
|
1704
|
+
type: StrictExtract_2<
|
|
1705
|
+
| 'serialize'
|
|
1706
|
+
| 'serialization.failure'
|
|
1707
|
+
| 'serialization.success'
|
|
1708
|
+
| 'deserialize'
|
|
1709
|
+
| 'deserialization.failure'
|
|
1710
|
+
| 'deserialization.success'
|
|
1711
|
+
| 'split'
|
|
1712
|
+
| 'delete'
|
|
1713
|
+
| 'select'
|
|
1714
|
+
| 'annotation.add'
|
|
1715
|
+
| 'annotation.remove'
|
|
1716
|
+
| 'block.set'
|
|
1717
|
+
| 'block.unset'
|
|
1718
|
+
| 'decorator.add'
|
|
1719
|
+
| 'decorator.remove'
|
|
1720
|
+
| 'delete.backward'
|
|
1721
|
+
| 'delete.block'
|
|
1722
|
+
| 'delete.forward'
|
|
1723
|
+
| 'history.redo'
|
|
1724
|
+
| 'history.undo'
|
|
1725
|
+
| 'insert.inline object'
|
|
1726
|
+
| 'insert.block'
|
|
1727
|
+
| 'insert.span'
|
|
1728
|
+
| 'insert.text'
|
|
1729
|
+
| 'move.backward'
|
|
1730
|
+
| 'move.block'
|
|
1731
|
+
| 'move.forward'
|
|
1732
|
+
| 'annotation.toggle'
|
|
1733
|
+
| 'decorator.toggle'
|
|
1734
|
+
| 'delete.text'
|
|
1735
|
+
| 'insert.blocks'
|
|
1736
|
+
| 'insert.break'
|
|
1737
|
+
| 'insert.soft break'
|
|
1738
|
+
| 'list item.add'
|
|
1739
|
+
| 'list item.remove'
|
|
1740
|
+
| 'list item.toggle'
|
|
1741
|
+
| 'move.block down'
|
|
1742
|
+
| 'move.block up'
|
|
1743
|
+
| 'select.previous block'
|
|
1744
|
+
| 'select.next block'
|
|
1745
|
+
| 'style.add'
|
|
1746
|
+
| 'style.remove'
|
|
1747
|
+
| 'style.toggle',
|
|
1748
|
+
'delete.block'
|
|
1749
|
+
>
|
|
1750
|
+
at: [KeyedSegment]
|
|
1751
|
+
}
|
|
1752
|
+
| {
|
|
1753
|
+
type: StrictExtract_2<
|
|
1754
|
+
| 'serialize'
|
|
1755
|
+
| 'serialization.failure'
|
|
1756
|
+
| 'serialization.success'
|
|
1757
|
+
| 'deserialize'
|
|
1758
|
+
| 'deserialization.failure'
|
|
1759
|
+
| 'deserialization.success'
|
|
1760
|
+
| 'split'
|
|
1761
|
+
| 'delete'
|
|
1762
|
+
| 'select'
|
|
1763
|
+
| 'annotation.add'
|
|
1764
|
+
| 'annotation.remove'
|
|
1765
|
+
| 'block.set'
|
|
1766
|
+
| 'block.unset'
|
|
1767
|
+
| 'decorator.add'
|
|
1768
|
+
| 'decorator.remove'
|
|
1769
|
+
| 'delete.backward'
|
|
1770
|
+
| 'delete.block'
|
|
1771
|
+
| 'delete.forward'
|
|
1772
|
+
| 'history.redo'
|
|
1773
|
+
| 'history.undo'
|
|
1774
|
+
| 'insert.inline object'
|
|
1775
|
+
| 'insert.block'
|
|
1776
|
+
| 'insert.span'
|
|
1777
|
+
| 'insert.text'
|
|
1778
|
+
| 'move.backward'
|
|
1779
|
+
| 'move.block'
|
|
1780
|
+
| 'move.forward'
|
|
1781
|
+
| 'annotation.toggle'
|
|
1782
|
+
| 'decorator.toggle'
|
|
1783
|
+
| 'delete.text'
|
|
1784
|
+
| 'insert.blocks'
|
|
1785
|
+
| 'insert.break'
|
|
1786
|
+
| 'insert.soft break'
|
|
1787
|
+
| 'list item.add'
|
|
1788
|
+
| 'list item.remove'
|
|
1789
|
+
| 'list item.toggle'
|
|
1790
|
+
| 'move.block down'
|
|
1791
|
+
| 'move.block up'
|
|
1792
|
+
| 'select.previous block'
|
|
1793
|
+
| 'select.next block'
|
|
1794
|
+
| 'style.add'
|
|
1795
|
+
| 'style.remove'
|
|
1796
|
+
| 'style.toggle',
|
|
1797
|
+
'delete.forward'
|
|
1798
|
+
>
|
|
1799
|
+
unit: TextUnit
|
|
1800
|
+
}
|
|
1801
|
+
| {
|
|
1802
|
+
type: StrictExtract_2<
|
|
1803
|
+
| 'serialize'
|
|
1804
|
+
| 'serialization.failure'
|
|
1805
|
+
| 'serialization.success'
|
|
1806
|
+
| 'deserialize'
|
|
1807
|
+
| 'deserialization.failure'
|
|
1808
|
+
| 'deserialization.success'
|
|
1809
|
+
| 'split'
|
|
1810
|
+
| 'delete'
|
|
1811
|
+
| 'select'
|
|
1812
|
+
| 'annotation.add'
|
|
1813
|
+
| 'annotation.remove'
|
|
1814
|
+
| 'block.set'
|
|
1815
|
+
| 'block.unset'
|
|
1816
|
+
| 'decorator.add'
|
|
1817
|
+
| 'decorator.remove'
|
|
1818
|
+
| 'delete.backward'
|
|
1819
|
+
| 'delete.block'
|
|
1820
|
+
| 'delete.forward'
|
|
1821
|
+
| 'history.redo'
|
|
1822
|
+
| 'history.undo'
|
|
1823
|
+
| 'insert.inline object'
|
|
1824
|
+
| 'insert.block'
|
|
1825
|
+
| 'insert.span'
|
|
1826
|
+
| 'insert.text'
|
|
1827
|
+
| 'move.backward'
|
|
1828
|
+
| 'move.block'
|
|
1829
|
+
| 'move.forward'
|
|
1830
|
+
| 'annotation.toggle'
|
|
1831
|
+
| 'decorator.toggle'
|
|
1832
|
+
| 'delete.text'
|
|
1833
|
+
| 'insert.blocks'
|
|
1834
|
+
| 'insert.break'
|
|
1835
|
+
| 'insert.soft break'
|
|
1836
|
+
| 'list item.add'
|
|
1837
|
+
| 'list item.remove'
|
|
1838
|
+
| 'list item.toggle'
|
|
1839
|
+
| 'move.block down'
|
|
1840
|
+
| 'move.block up'
|
|
1841
|
+
| 'select.previous block'
|
|
1842
|
+
| 'select.next block'
|
|
1843
|
+
| 'style.add'
|
|
1844
|
+
| 'style.remove'
|
|
1845
|
+
| 'style.toggle',
|
|
1846
|
+
'history.redo'
|
|
1847
|
+
>
|
|
1848
|
+
}
|
|
1849
|
+
| {
|
|
1850
|
+
type: StrictExtract_2<
|
|
1851
|
+
| 'serialize'
|
|
1852
|
+
| 'serialization.failure'
|
|
1853
|
+
| 'serialization.success'
|
|
1854
|
+
| 'deserialize'
|
|
1855
|
+
| 'deserialization.failure'
|
|
1856
|
+
| 'deserialization.success'
|
|
1857
|
+
| 'split'
|
|
1858
|
+
| 'delete'
|
|
1859
|
+
| 'select'
|
|
1860
|
+
| 'annotation.add'
|
|
1861
|
+
| 'annotation.remove'
|
|
1862
|
+
| 'block.set'
|
|
1863
|
+
| 'block.unset'
|
|
1864
|
+
| 'decorator.add'
|
|
1865
|
+
| 'decorator.remove'
|
|
1866
|
+
| 'delete.backward'
|
|
1867
|
+
| 'delete.block'
|
|
1868
|
+
| 'delete.forward'
|
|
1869
|
+
| 'history.redo'
|
|
1870
|
+
| 'history.undo'
|
|
1871
|
+
| 'insert.inline object'
|
|
1872
|
+
| 'insert.block'
|
|
1873
|
+
| 'insert.span'
|
|
1874
|
+
| 'insert.text'
|
|
1875
|
+
| 'move.backward'
|
|
1876
|
+
| 'move.block'
|
|
1877
|
+
| 'move.forward'
|
|
1878
|
+
| 'annotation.toggle'
|
|
1879
|
+
| 'decorator.toggle'
|
|
1880
|
+
| 'delete.text'
|
|
1881
|
+
| 'insert.blocks'
|
|
1882
|
+
| 'insert.break'
|
|
1883
|
+
| 'insert.soft break'
|
|
1884
|
+
| 'list item.add'
|
|
1885
|
+
| 'list item.remove'
|
|
1886
|
+
| 'list item.toggle'
|
|
1887
|
+
| 'move.block down'
|
|
1888
|
+
| 'move.block up'
|
|
1889
|
+
| 'select.previous block'
|
|
1890
|
+
| 'select.next block'
|
|
1891
|
+
| 'style.add'
|
|
1892
|
+
| 'style.remove'
|
|
1893
|
+
| 'style.toggle',
|
|
1894
|
+
'history.undo'
|
|
1895
|
+
>
|
|
1896
|
+
}
|
|
1897
|
+
| {
|
|
1898
|
+
type: StrictExtract_2<
|
|
1899
|
+
| 'serialize'
|
|
1900
|
+
| 'serialization.failure'
|
|
1901
|
+
| 'serialization.success'
|
|
1902
|
+
| 'deserialize'
|
|
1903
|
+
| 'deserialization.failure'
|
|
1904
|
+
| 'deserialization.success'
|
|
1905
|
+
| 'split'
|
|
1906
|
+
| 'delete'
|
|
1907
|
+
| 'select'
|
|
1908
|
+
| 'annotation.add'
|
|
1909
|
+
| 'annotation.remove'
|
|
1910
|
+
| 'block.set'
|
|
1911
|
+
| 'block.unset'
|
|
1912
|
+
| 'decorator.add'
|
|
1913
|
+
| 'decorator.remove'
|
|
1914
|
+
| 'delete.backward'
|
|
1915
|
+
| 'delete.block'
|
|
1916
|
+
| 'delete.forward'
|
|
1917
|
+
| 'history.redo'
|
|
1918
|
+
| 'history.undo'
|
|
1919
|
+
| 'insert.inline object'
|
|
1920
|
+
| 'insert.block'
|
|
1921
|
+
| 'insert.span'
|
|
1922
|
+
| 'insert.text'
|
|
1923
|
+
| 'move.backward'
|
|
1924
|
+
| 'move.block'
|
|
1925
|
+
| 'move.forward'
|
|
1926
|
+
| 'annotation.toggle'
|
|
1927
|
+
| 'decorator.toggle'
|
|
1928
|
+
| 'delete.text'
|
|
1929
|
+
| 'insert.blocks'
|
|
1930
|
+
| 'insert.break'
|
|
1931
|
+
| 'insert.soft break'
|
|
1932
|
+
| 'list item.add'
|
|
1933
|
+
| 'list item.remove'
|
|
1934
|
+
| 'list item.toggle'
|
|
1935
|
+
| 'move.block down'
|
|
1936
|
+
| 'move.block up'
|
|
1937
|
+
| 'select.previous block'
|
|
1938
|
+
| 'select.next block'
|
|
1939
|
+
| 'style.add'
|
|
1940
|
+
| 'style.remove'
|
|
1941
|
+
| 'style.toggle',
|
|
1942
|
+
'insert.inline object'
|
|
1943
|
+
>
|
|
1944
|
+
inlineObject: {
|
|
1945
|
+
name: string
|
|
1946
|
+
value?: {
|
|
1947
|
+
[prop: string]: unknown
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
| {
|
|
1952
|
+
type: StrictExtract_2<
|
|
1953
|
+
| 'serialize'
|
|
1954
|
+
| 'serialization.failure'
|
|
1955
|
+
| 'serialization.success'
|
|
1956
|
+
| 'deserialize'
|
|
1957
|
+
| 'deserialization.failure'
|
|
1958
|
+
| 'deserialization.success'
|
|
1959
|
+
| 'split'
|
|
1960
|
+
| 'delete'
|
|
1961
|
+
| 'select'
|
|
1962
|
+
| 'annotation.add'
|
|
1963
|
+
| 'annotation.remove'
|
|
1964
|
+
| 'block.set'
|
|
1965
|
+
| 'block.unset'
|
|
1966
|
+
| 'decorator.add'
|
|
1967
|
+
| 'decorator.remove'
|
|
1968
|
+
| 'delete.backward'
|
|
1969
|
+
| 'delete.block'
|
|
1970
|
+
| 'delete.forward'
|
|
1971
|
+
| 'history.redo'
|
|
1972
|
+
| 'history.undo'
|
|
1973
|
+
| 'insert.inline object'
|
|
1974
|
+
| 'insert.block'
|
|
1975
|
+
| 'insert.span'
|
|
1976
|
+
| 'insert.text'
|
|
1977
|
+
| 'move.backward'
|
|
1978
|
+
| 'move.block'
|
|
1979
|
+
| 'move.forward'
|
|
1980
|
+
| 'annotation.toggle'
|
|
1981
|
+
| 'decorator.toggle'
|
|
1982
|
+
| 'delete.text'
|
|
1983
|
+
| 'insert.blocks'
|
|
1984
|
+
| 'insert.break'
|
|
1985
|
+
| 'insert.soft break'
|
|
1986
|
+
| 'list item.add'
|
|
1987
|
+
| 'list item.remove'
|
|
1988
|
+
| 'list item.toggle'
|
|
1989
|
+
| 'move.block down'
|
|
1990
|
+
| 'move.block up'
|
|
1991
|
+
| 'select.previous block'
|
|
1992
|
+
| 'select.next block'
|
|
1993
|
+
| 'style.add'
|
|
1994
|
+
| 'style.remove'
|
|
1995
|
+
| 'style.toggle',
|
|
1996
|
+
'insert.block'
|
|
1997
|
+
>
|
|
1998
|
+
block: BlockWithOptionalKey_2
|
|
1999
|
+
placement: InsertPlacement_2
|
|
2000
|
+
select?: 'start' | 'end' | 'none'
|
|
2001
|
+
}
|
|
2002
|
+
| {
|
|
2003
|
+
type: StrictExtract_2<
|
|
2004
|
+
| 'serialize'
|
|
2005
|
+
| 'serialization.failure'
|
|
2006
|
+
| 'serialization.success'
|
|
2007
|
+
| 'deserialize'
|
|
2008
|
+
| 'deserialization.failure'
|
|
2009
|
+
| 'deserialization.success'
|
|
2010
|
+
| 'split'
|
|
2011
|
+
| 'delete'
|
|
2012
|
+
| 'select'
|
|
2013
|
+
| 'annotation.add'
|
|
2014
|
+
| 'annotation.remove'
|
|
2015
|
+
| 'block.set'
|
|
2016
|
+
| 'block.unset'
|
|
2017
|
+
| 'decorator.add'
|
|
2018
|
+
| 'decorator.remove'
|
|
2019
|
+
| 'delete.backward'
|
|
2020
|
+
| 'delete.block'
|
|
2021
|
+
| 'delete.forward'
|
|
2022
|
+
| 'history.redo'
|
|
2023
|
+
| 'history.undo'
|
|
2024
|
+
| 'insert.inline object'
|
|
2025
|
+
| 'insert.block'
|
|
2026
|
+
| 'insert.span'
|
|
2027
|
+
| 'insert.text'
|
|
2028
|
+
| 'move.backward'
|
|
2029
|
+
| 'move.block'
|
|
2030
|
+
| 'move.forward'
|
|
2031
|
+
| 'annotation.toggle'
|
|
2032
|
+
| 'decorator.toggle'
|
|
2033
|
+
| 'delete.text'
|
|
2034
|
+
| 'insert.blocks'
|
|
2035
|
+
| 'insert.break'
|
|
2036
|
+
| 'insert.soft break'
|
|
2037
|
+
| 'list item.add'
|
|
2038
|
+
| 'list item.remove'
|
|
2039
|
+
| 'list item.toggle'
|
|
2040
|
+
| 'move.block down'
|
|
2041
|
+
| 'move.block up'
|
|
2042
|
+
| 'select.previous block'
|
|
2043
|
+
| 'select.next block'
|
|
2044
|
+
| 'style.add'
|
|
2045
|
+
| 'style.remove'
|
|
2046
|
+
| 'style.toggle',
|
|
2047
|
+
'insert.span'
|
|
2048
|
+
>
|
|
2049
|
+
text: string
|
|
2050
|
+
annotations?: Array<{
|
|
2051
|
+
name: string
|
|
2052
|
+
value: {
|
|
2053
|
+
[prop: string]: unknown
|
|
2054
|
+
}
|
|
2055
|
+
}>
|
|
2056
|
+
decorators?: Array<string>
|
|
2057
|
+
}
|
|
2058
|
+
| {
|
|
2059
|
+
type: StrictExtract_2<
|
|
2060
|
+
| 'serialize'
|
|
2061
|
+
| 'serialization.failure'
|
|
2062
|
+
| 'serialization.success'
|
|
2063
|
+
| 'deserialize'
|
|
2064
|
+
| 'deserialization.failure'
|
|
2065
|
+
| 'deserialization.success'
|
|
2066
|
+
| 'split'
|
|
2067
|
+
| 'delete'
|
|
2068
|
+
| 'select'
|
|
2069
|
+
| 'annotation.add'
|
|
2070
|
+
| 'annotation.remove'
|
|
2071
|
+
| 'block.set'
|
|
2072
|
+
| 'block.unset'
|
|
2073
|
+
| 'decorator.add'
|
|
2074
|
+
| 'decorator.remove'
|
|
2075
|
+
| 'delete.backward'
|
|
2076
|
+
| 'delete.block'
|
|
2077
|
+
| 'delete.forward'
|
|
2078
|
+
| 'history.redo'
|
|
2079
|
+
| 'history.undo'
|
|
2080
|
+
| 'insert.inline object'
|
|
2081
|
+
| 'insert.block'
|
|
2082
|
+
| 'insert.span'
|
|
2083
|
+
| 'insert.text'
|
|
2084
|
+
| 'move.backward'
|
|
2085
|
+
| 'move.block'
|
|
2086
|
+
| 'move.forward'
|
|
2087
|
+
| 'annotation.toggle'
|
|
2088
|
+
| 'decorator.toggle'
|
|
2089
|
+
| 'delete.text'
|
|
2090
|
+
| 'insert.blocks'
|
|
2091
|
+
| 'insert.break'
|
|
2092
|
+
| 'insert.soft break'
|
|
2093
|
+
| 'list item.add'
|
|
2094
|
+
| 'list item.remove'
|
|
2095
|
+
| 'list item.toggle'
|
|
2096
|
+
| 'move.block down'
|
|
2097
|
+
| 'move.block up'
|
|
2098
|
+
| 'select.previous block'
|
|
2099
|
+
| 'select.next block'
|
|
2100
|
+
| 'style.add'
|
|
2101
|
+
| 'style.remove'
|
|
2102
|
+
| 'style.toggle',
|
|
2103
|
+
'insert.text'
|
|
2104
|
+
>
|
|
2105
|
+
text: string
|
|
2106
|
+
}
|
|
2107
|
+
| {
|
|
2108
|
+
type: StrictExtract_2<
|
|
2109
|
+
| 'serialize'
|
|
2110
|
+
| 'serialization.failure'
|
|
2111
|
+
| 'serialization.success'
|
|
2112
|
+
| 'deserialize'
|
|
2113
|
+
| 'deserialization.failure'
|
|
2114
|
+
| 'deserialization.success'
|
|
2115
|
+
| 'split'
|
|
2116
|
+
| 'delete'
|
|
2117
|
+
| 'select'
|
|
2118
|
+
| 'annotation.add'
|
|
2119
|
+
| 'annotation.remove'
|
|
2120
|
+
| 'block.set'
|
|
2121
|
+
| 'block.unset'
|
|
2122
|
+
| 'decorator.add'
|
|
2123
|
+
| 'decorator.remove'
|
|
2124
|
+
| 'delete.backward'
|
|
2125
|
+
| 'delete.block'
|
|
2126
|
+
| 'delete.forward'
|
|
2127
|
+
| 'history.redo'
|
|
2128
|
+
| 'history.undo'
|
|
2129
|
+
| 'insert.inline object'
|
|
2130
|
+
| 'insert.block'
|
|
2131
|
+
| 'insert.span'
|
|
2132
|
+
| 'insert.text'
|
|
2133
|
+
| 'move.backward'
|
|
2134
|
+
| 'move.block'
|
|
2135
|
+
| 'move.forward'
|
|
2136
|
+
| 'annotation.toggle'
|
|
2137
|
+
| 'decorator.toggle'
|
|
2138
|
+
| 'delete.text'
|
|
2139
|
+
| 'insert.blocks'
|
|
2140
|
+
| 'insert.break'
|
|
2141
|
+
| 'insert.soft break'
|
|
2142
|
+
| 'list item.add'
|
|
2143
|
+
| 'list item.remove'
|
|
2144
|
+
| 'list item.toggle'
|
|
2145
|
+
| 'move.block down'
|
|
2146
|
+
| 'move.block up'
|
|
2147
|
+
| 'select.previous block'
|
|
2148
|
+
| 'select.next block'
|
|
2149
|
+
| 'style.add'
|
|
2150
|
+
| 'style.remove'
|
|
2151
|
+
| 'style.toggle',
|
|
2152
|
+
'move.backward'
|
|
2153
|
+
>
|
|
2154
|
+
distance: number
|
|
2155
|
+
}
|
|
2156
|
+
| {
|
|
2157
|
+
type: StrictExtract_2<
|
|
2158
|
+
| 'serialize'
|
|
2159
|
+
| 'serialization.failure'
|
|
2160
|
+
| 'serialization.success'
|
|
2161
|
+
| 'deserialize'
|
|
2162
|
+
| 'deserialization.failure'
|
|
2163
|
+
| 'deserialization.success'
|
|
2164
|
+
| 'split'
|
|
2165
|
+
| 'delete'
|
|
2166
|
+
| 'select'
|
|
2167
|
+
| 'annotation.add'
|
|
2168
|
+
| 'annotation.remove'
|
|
2169
|
+
| 'block.set'
|
|
2170
|
+
| 'block.unset'
|
|
2171
|
+
| 'decorator.add'
|
|
2172
|
+
| 'decorator.remove'
|
|
2173
|
+
| 'delete.backward'
|
|
2174
|
+
| 'delete.block'
|
|
2175
|
+
| 'delete.forward'
|
|
2176
|
+
| 'history.redo'
|
|
2177
|
+
| 'history.undo'
|
|
2178
|
+
| 'insert.inline object'
|
|
2179
|
+
| 'insert.block'
|
|
2180
|
+
| 'insert.span'
|
|
2181
|
+
| 'insert.text'
|
|
2182
|
+
| 'move.backward'
|
|
2183
|
+
| 'move.block'
|
|
2184
|
+
| 'move.forward'
|
|
2185
|
+
| 'annotation.toggle'
|
|
2186
|
+
| 'decorator.toggle'
|
|
2187
|
+
| 'delete.text'
|
|
2188
|
+
| 'insert.blocks'
|
|
2189
|
+
| 'insert.break'
|
|
2190
|
+
| 'insert.soft break'
|
|
2191
|
+
| 'list item.add'
|
|
2192
|
+
| 'list item.remove'
|
|
2193
|
+
| 'list item.toggle'
|
|
2194
|
+
| 'move.block down'
|
|
2195
|
+
| 'move.block up'
|
|
2196
|
+
| 'select.previous block'
|
|
2197
|
+
| 'select.next block'
|
|
2198
|
+
| 'style.add'
|
|
2199
|
+
| 'style.remove'
|
|
2200
|
+
| 'style.toggle',
|
|
2201
|
+
'move.block'
|
|
2202
|
+
>
|
|
2203
|
+
at: [KeyedSegment]
|
|
2204
|
+
to: [KeyedSegment]
|
|
2205
|
+
}
|
|
2206
|
+
| {
|
|
2207
|
+
type: StrictExtract_2<
|
|
2208
|
+
| 'serialize'
|
|
2209
|
+
| 'serialization.failure'
|
|
2210
|
+
| 'serialization.success'
|
|
2211
|
+
| 'deserialize'
|
|
2212
|
+
| 'deserialization.failure'
|
|
2213
|
+
| 'deserialization.success'
|
|
2214
|
+
| 'split'
|
|
2215
|
+
| 'delete'
|
|
2216
|
+
| 'select'
|
|
2217
|
+
| 'annotation.add'
|
|
2218
|
+
| 'annotation.remove'
|
|
2219
|
+
| 'block.set'
|
|
2220
|
+
| 'block.unset'
|
|
2221
|
+
| 'decorator.add'
|
|
2222
|
+
| 'decorator.remove'
|
|
2223
|
+
| 'delete.backward'
|
|
2224
|
+
| 'delete.block'
|
|
2225
|
+
| 'delete.forward'
|
|
2226
|
+
| 'history.redo'
|
|
2227
|
+
| 'history.undo'
|
|
2228
|
+
| 'insert.inline object'
|
|
2229
|
+
| 'insert.block'
|
|
2230
|
+
| 'insert.span'
|
|
2231
|
+
| 'insert.text'
|
|
2232
|
+
| 'move.backward'
|
|
2233
|
+
| 'move.block'
|
|
2234
|
+
| 'move.forward'
|
|
2235
|
+
| 'annotation.toggle'
|
|
2236
|
+
| 'decorator.toggle'
|
|
2237
|
+
| 'delete.text'
|
|
2238
|
+
| 'insert.blocks'
|
|
2239
|
+
| 'insert.break'
|
|
2240
|
+
| 'insert.soft break'
|
|
2241
|
+
| 'list item.add'
|
|
2242
|
+
| 'list item.remove'
|
|
2243
|
+
| 'list item.toggle'
|
|
2244
|
+
| 'move.block down'
|
|
2245
|
+
| 'move.block up'
|
|
2246
|
+
| 'select.previous block'
|
|
2247
|
+
| 'select.next block'
|
|
2248
|
+
| 'style.add'
|
|
2249
|
+
| 'style.remove'
|
|
2250
|
+
| 'style.toggle',
|
|
2251
|
+
'move.forward'
|
|
2252
|
+
>
|
|
2253
|
+
distance: number
|
|
2254
|
+
}
|
|
2255
|
+
| {
|
|
2256
|
+
type: StrictExtract_2<
|
|
2257
|
+
| 'serialize'
|
|
2258
|
+
| 'serialization.failure'
|
|
2259
|
+
| 'serialization.success'
|
|
2260
|
+
| 'deserialize'
|
|
2261
|
+
| 'deserialization.failure'
|
|
2262
|
+
| 'deserialization.success'
|
|
2263
|
+
| 'split'
|
|
2264
|
+
| 'delete'
|
|
2265
|
+
| 'select'
|
|
2266
|
+
| 'annotation.add'
|
|
2267
|
+
| 'annotation.remove'
|
|
2268
|
+
| 'block.set'
|
|
2269
|
+
| 'block.unset'
|
|
2270
|
+
| 'decorator.add'
|
|
2271
|
+
| 'decorator.remove'
|
|
2272
|
+
| 'delete.backward'
|
|
2273
|
+
| 'delete.block'
|
|
2274
|
+
| 'delete.forward'
|
|
2275
|
+
| 'history.redo'
|
|
2276
|
+
| 'history.undo'
|
|
2277
|
+
| 'insert.inline object'
|
|
2278
|
+
| 'insert.block'
|
|
2279
|
+
| 'insert.span'
|
|
2280
|
+
| 'insert.text'
|
|
2281
|
+
| 'move.backward'
|
|
2282
|
+
| 'move.block'
|
|
2283
|
+
| 'move.forward'
|
|
2284
|
+
| 'annotation.toggle'
|
|
2285
|
+
| 'decorator.toggle'
|
|
2286
|
+
| 'delete.text'
|
|
2287
|
+
| 'insert.blocks'
|
|
2288
|
+
| 'insert.break'
|
|
2289
|
+
| 'insert.soft break'
|
|
2290
|
+
| 'list item.add'
|
|
2291
|
+
| 'list item.remove'
|
|
2292
|
+
| 'list item.toggle'
|
|
2293
|
+
| 'move.block down'
|
|
2294
|
+
| 'move.block up'
|
|
2295
|
+
| 'select.previous block'
|
|
2296
|
+
| 'select.next block'
|
|
2297
|
+
| 'style.add'
|
|
2298
|
+
| 'style.remove'
|
|
2299
|
+
| 'style.toggle',
|
|
2300
|
+
'select'
|
|
2301
|
+
>
|
|
2302
|
+
at: EditorSelection
|
|
2303
|
+
}
|
|
2304
|
+
| {
|
|
2305
|
+
type: StrictExtract_2<
|
|
2306
|
+
| 'serialize'
|
|
2307
|
+
| 'serialization.failure'
|
|
2308
|
+
| 'serialization.success'
|
|
2309
|
+
| 'deserialize'
|
|
2310
|
+
| 'deserialization.failure'
|
|
2311
|
+
| 'deserialization.success'
|
|
2312
|
+
| 'split'
|
|
2313
|
+
| 'delete'
|
|
2314
|
+
| 'select'
|
|
2315
|
+
| 'annotation.add'
|
|
2316
|
+
| 'annotation.remove'
|
|
2317
|
+
| 'block.set'
|
|
2318
|
+
| 'block.unset'
|
|
2319
|
+
| 'decorator.add'
|
|
2320
|
+
| 'decorator.remove'
|
|
2321
|
+
| 'delete.backward'
|
|
2322
|
+
| 'delete.block'
|
|
2323
|
+
| 'delete.forward'
|
|
2324
|
+
| 'history.redo'
|
|
2325
|
+
| 'history.undo'
|
|
2326
|
+
| 'insert.inline object'
|
|
2327
|
+
| 'insert.block'
|
|
2328
|
+
| 'insert.span'
|
|
2329
|
+
| 'insert.text'
|
|
2330
|
+
| 'move.backward'
|
|
2331
|
+
| 'move.block'
|
|
2332
|
+
| 'move.forward'
|
|
2333
|
+
| 'annotation.toggle'
|
|
2334
|
+
| 'decorator.toggle'
|
|
2335
|
+
| 'delete.text'
|
|
2336
|
+
| 'insert.blocks'
|
|
2337
|
+
| 'insert.break'
|
|
2338
|
+
| 'insert.soft break'
|
|
2339
|
+
| 'list item.add'
|
|
2340
|
+
| 'list item.remove'
|
|
2341
|
+
| 'list item.toggle'
|
|
2342
|
+
| 'move.block down'
|
|
2343
|
+
| 'move.block up'
|
|
2344
|
+
| 'select.previous block'
|
|
2345
|
+
| 'select.next block'
|
|
2346
|
+
| 'style.add'
|
|
2347
|
+
| 'style.remove'
|
|
2348
|
+
| 'style.toggle',
|
|
2349
|
+
'annotation.toggle'
|
|
2350
|
+
>
|
|
2351
|
+
annotation: {
|
|
2352
|
+
name: string
|
|
2353
|
+
value: {
|
|
2354
|
+
[prop: string]: unknown
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
| {
|
|
2359
|
+
type: StrictExtract_2<
|
|
2360
|
+
| 'serialize'
|
|
2361
|
+
| 'serialization.failure'
|
|
2362
|
+
| 'serialization.success'
|
|
2363
|
+
| 'deserialize'
|
|
2364
|
+
| 'deserialization.failure'
|
|
2365
|
+
| 'deserialization.success'
|
|
2366
|
+
| 'split'
|
|
2367
|
+
| 'delete'
|
|
2368
|
+
| 'select'
|
|
2369
|
+
| 'annotation.add'
|
|
2370
|
+
| 'annotation.remove'
|
|
2371
|
+
| 'block.set'
|
|
2372
|
+
| 'block.unset'
|
|
2373
|
+
| 'decorator.add'
|
|
2374
|
+
| 'decorator.remove'
|
|
2375
|
+
| 'delete.backward'
|
|
2376
|
+
| 'delete.block'
|
|
2377
|
+
| 'delete.forward'
|
|
2378
|
+
| 'history.redo'
|
|
2379
|
+
| 'history.undo'
|
|
2380
|
+
| 'insert.inline object'
|
|
2381
|
+
| 'insert.block'
|
|
2382
|
+
| 'insert.span'
|
|
2383
|
+
| 'insert.text'
|
|
2384
|
+
| 'move.backward'
|
|
2385
|
+
| 'move.block'
|
|
2386
|
+
| 'move.forward'
|
|
2387
|
+
| 'annotation.toggle'
|
|
2388
|
+
| 'decorator.toggle'
|
|
2389
|
+
| 'delete.text'
|
|
2390
|
+
| 'insert.blocks'
|
|
2391
|
+
| 'insert.break'
|
|
2392
|
+
| 'insert.soft break'
|
|
2393
|
+
| 'list item.add'
|
|
2394
|
+
| 'list item.remove'
|
|
2395
|
+
| 'list item.toggle'
|
|
2396
|
+
| 'move.block down'
|
|
2397
|
+
| 'move.block up'
|
|
2398
|
+
| 'select.previous block'
|
|
2399
|
+
| 'select.next block'
|
|
2400
|
+
| 'style.add'
|
|
2401
|
+
| 'style.remove'
|
|
2402
|
+
| 'style.toggle',
|
|
2403
|
+
'decorator.toggle'
|
|
2404
|
+
>
|
|
2405
|
+
decorator: string
|
|
2406
|
+
at?: {
|
|
2407
|
+
anchor: BlockOffset_2
|
|
2408
|
+
focus: BlockOffset_2
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
| {
|
|
2412
|
+
type: StrictExtract_2<
|
|
2413
|
+
| 'serialize'
|
|
2414
|
+
| 'serialization.failure'
|
|
2415
|
+
| 'serialization.success'
|
|
2416
|
+
| 'deserialize'
|
|
2417
|
+
| 'deserialization.failure'
|
|
2418
|
+
| 'deserialization.success'
|
|
2419
|
+
| 'split'
|
|
2420
|
+
| 'delete'
|
|
2421
|
+
| 'select'
|
|
2422
|
+
| 'annotation.add'
|
|
2423
|
+
| 'annotation.remove'
|
|
2424
|
+
| 'block.set'
|
|
2425
|
+
| 'block.unset'
|
|
2426
|
+
| 'decorator.add'
|
|
2427
|
+
| 'decorator.remove'
|
|
2428
|
+
| 'delete.backward'
|
|
2429
|
+
| 'delete.block'
|
|
2430
|
+
| 'delete.forward'
|
|
2431
|
+
| 'history.redo'
|
|
2432
|
+
| 'history.undo'
|
|
2433
|
+
| 'insert.inline object'
|
|
2434
|
+
| 'insert.block'
|
|
2435
|
+
| 'insert.span'
|
|
2436
|
+
| 'insert.text'
|
|
2437
|
+
| 'move.backward'
|
|
2438
|
+
| 'move.block'
|
|
2439
|
+
| 'move.forward'
|
|
2440
|
+
| 'annotation.toggle'
|
|
2441
|
+
| 'decorator.toggle'
|
|
2442
|
+
| 'delete.text'
|
|
2443
|
+
| 'insert.blocks'
|
|
2444
|
+
| 'insert.break'
|
|
2445
|
+
| 'insert.soft break'
|
|
2446
|
+
| 'list item.add'
|
|
2447
|
+
| 'list item.remove'
|
|
2448
|
+
| 'list item.toggle'
|
|
2449
|
+
| 'move.block down'
|
|
2450
|
+
| 'move.block up'
|
|
2451
|
+
| 'select.previous block'
|
|
2452
|
+
| 'select.next block'
|
|
2453
|
+
| 'style.add'
|
|
2454
|
+
| 'style.remove'
|
|
2455
|
+
| 'style.toggle',
|
|
2456
|
+
'delete.text'
|
|
2457
|
+
>
|
|
2458
|
+
at: {
|
|
2459
|
+
anchor: BlockOffset_2
|
|
2460
|
+
focus: BlockOffset_2
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
| {
|
|
2464
|
+
type: StrictExtract_2<
|
|
2465
|
+
| 'serialize'
|
|
2466
|
+
| 'serialization.failure'
|
|
2467
|
+
| 'serialization.success'
|
|
2468
|
+
| 'deserialize'
|
|
2469
|
+
| 'deserialization.failure'
|
|
2470
|
+
| 'deserialization.success'
|
|
2471
|
+
| 'split'
|
|
2472
|
+
| 'delete'
|
|
2473
|
+
| 'select'
|
|
2474
|
+
| 'annotation.add'
|
|
2475
|
+
| 'annotation.remove'
|
|
2476
|
+
| 'block.set'
|
|
2477
|
+
| 'block.unset'
|
|
2478
|
+
| 'decorator.add'
|
|
2479
|
+
| 'decorator.remove'
|
|
2480
|
+
| 'delete.backward'
|
|
2481
|
+
| 'delete.block'
|
|
2482
|
+
| 'delete.forward'
|
|
2483
|
+
| 'history.redo'
|
|
2484
|
+
| 'history.undo'
|
|
2485
|
+
| 'insert.inline object'
|
|
2486
|
+
| 'insert.block'
|
|
2487
|
+
| 'insert.span'
|
|
2488
|
+
| 'insert.text'
|
|
2489
|
+
| 'move.backward'
|
|
2490
|
+
| 'move.block'
|
|
2491
|
+
| 'move.forward'
|
|
2492
|
+
| 'annotation.toggle'
|
|
2493
|
+
| 'decorator.toggle'
|
|
2494
|
+
| 'delete.text'
|
|
2495
|
+
| 'insert.blocks'
|
|
2496
|
+
| 'insert.break'
|
|
2497
|
+
| 'insert.soft break'
|
|
2498
|
+
| 'list item.add'
|
|
2499
|
+
| 'list item.remove'
|
|
2500
|
+
| 'list item.toggle'
|
|
2501
|
+
| 'move.block down'
|
|
2502
|
+
| 'move.block up'
|
|
2503
|
+
| 'select.previous block'
|
|
2504
|
+
| 'select.next block'
|
|
2505
|
+
| 'style.add'
|
|
2506
|
+
| 'style.remove'
|
|
2507
|
+
| 'style.toggle',
|
|
2508
|
+
'deserialize'
|
|
2509
|
+
>
|
|
2510
|
+
originEvent:
|
|
2511
|
+
| PickFromUnion_2<
|
|
2512
|
+
NativeBehaviorEvent_2,
|
|
2513
|
+
'type',
|
|
2514
|
+
'drag.drop' | 'clipboard.paste'
|
|
2515
|
+
>
|
|
2516
|
+
| InputBehaviorEvent_2
|
|
2517
|
+
}
|
|
2518
|
+
| {
|
|
2519
|
+
type: StrictExtract_2<
|
|
2520
|
+
| 'serialize'
|
|
2521
|
+
| 'serialization.failure'
|
|
2522
|
+
| 'serialization.success'
|
|
2523
|
+
| 'deserialize'
|
|
2524
|
+
| 'deserialization.failure'
|
|
2525
|
+
| 'deserialization.success'
|
|
2526
|
+
| 'split'
|
|
2527
|
+
| 'delete'
|
|
2528
|
+
| 'select'
|
|
2529
|
+
| 'annotation.add'
|
|
2530
|
+
| 'annotation.remove'
|
|
2531
|
+
| 'block.set'
|
|
2532
|
+
| 'block.unset'
|
|
2533
|
+
| 'decorator.add'
|
|
2534
|
+
| 'decorator.remove'
|
|
2535
|
+
| 'delete.backward'
|
|
2536
|
+
| 'delete.block'
|
|
2537
|
+
| 'delete.forward'
|
|
2538
|
+
| 'history.redo'
|
|
2539
|
+
| 'history.undo'
|
|
2540
|
+
| 'insert.inline object'
|
|
2541
|
+
| 'insert.block'
|
|
2542
|
+
| 'insert.span'
|
|
2543
|
+
| 'insert.text'
|
|
2544
|
+
| 'move.backward'
|
|
2545
|
+
| 'move.block'
|
|
2546
|
+
| 'move.forward'
|
|
2547
|
+
| 'annotation.toggle'
|
|
2548
|
+
| 'decorator.toggle'
|
|
2549
|
+
| 'delete.text'
|
|
2550
|
+
| 'insert.blocks'
|
|
2551
|
+
| 'insert.break'
|
|
2552
|
+
| 'insert.soft break'
|
|
2553
|
+
| 'list item.add'
|
|
2554
|
+
| 'list item.remove'
|
|
2555
|
+
| 'list item.toggle'
|
|
2556
|
+
| 'move.block down'
|
|
2557
|
+
| 'move.block up'
|
|
2558
|
+
| 'select.previous block'
|
|
2559
|
+
| 'select.next block'
|
|
2560
|
+
| 'style.add'
|
|
2561
|
+
| 'style.remove'
|
|
2562
|
+
| 'style.toggle',
|
|
2563
|
+
'serialize'
|
|
2564
|
+
>
|
|
2565
|
+
originEvent: PickFromUnion_2<
|
|
2566
|
+
NativeBehaviorEvent_2,
|
|
2567
|
+
'type',
|
|
2568
|
+
'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
|
|
2569
|
+
>
|
|
2570
|
+
}
|
|
2571
|
+
| {
|
|
2572
|
+
type: StrictExtract_2<
|
|
2573
|
+
| 'serialize'
|
|
2574
|
+
| 'serialization.failure'
|
|
2575
|
+
| 'serialization.success'
|
|
2576
|
+
| 'deserialize'
|
|
2577
|
+
| 'deserialization.failure'
|
|
2578
|
+
| 'deserialization.success'
|
|
2579
|
+
| 'split'
|
|
2580
|
+
| 'delete'
|
|
2581
|
+
| 'select'
|
|
2582
|
+
| 'annotation.add'
|
|
2583
|
+
| 'annotation.remove'
|
|
2584
|
+
| 'block.set'
|
|
2585
|
+
| 'block.unset'
|
|
2586
|
+
| 'decorator.add'
|
|
2587
|
+
| 'decorator.remove'
|
|
2588
|
+
| 'delete.backward'
|
|
2589
|
+
| 'delete.block'
|
|
2590
|
+
| 'delete.forward'
|
|
2591
|
+
| 'history.redo'
|
|
2592
|
+
| 'history.undo'
|
|
2593
|
+
| 'insert.inline object'
|
|
2594
|
+
| 'insert.block'
|
|
2595
|
+
| 'insert.span'
|
|
2596
|
+
| 'insert.text'
|
|
2597
|
+
| 'move.backward'
|
|
2598
|
+
| 'move.block'
|
|
2599
|
+
| 'move.forward'
|
|
2600
|
+
| 'annotation.toggle'
|
|
2601
|
+
| 'decorator.toggle'
|
|
2602
|
+
| 'delete.text'
|
|
2603
|
+
| 'insert.blocks'
|
|
2604
|
+
| 'insert.break'
|
|
2605
|
+
| 'insert.soft break'
|
|
2606
|
+
| 'list item.add'
|
|
2607
|
+
| 'list item.remove'
|
|
2608
|
+
| 'list item.toggle'
|
|
2609
|
+
| 'move.block down'
|
|
2610
|
+
| 'move.block up'
|
|
2611
|
+
| 'select.previous block'
|
|
2612
|
+
| 'select.next block'
|
|
2613
|
+
| 'style.add'
|
|
2614
|
+
| 'style.remove'
|
|
2615
|
+
| 'style.toggle',
|
|
2616
|
+
'deserialization.success'
|
|
2617
|
+
>
|
|
2618
|
+
mimeType: MIMEType_2
|
|
2619
|
+
data: Array<PortableTextBlock>
|
|
2620
|
+
originEvent:
|
|
2621
|
+
| PickFromUnion_2<
|
|
2622
|
+
NativeBehaviorEvent_2,
|
|
2623
|
+
'type',
|
|
2624
|
+
'drag.drop' | 'clipboard.paste'
|
|
2625
|
+
>
|
|
2626
|
+
| InputBehaviorEvent_2
|
|
2627
|
+
}
|
|
2628
|
+
| {
|
|
2629
|
+
type: StrictExtract_2<
|
|
2630
|
+
| 'serialize'
|
|
2631
|
+
| 'serialization.failure'
|
|
2632
|
+
| 'serialization.success'
|
|
2633
|
+
| 'deserialize'
|
|
2634
|
+
| 'deserialization.failure'
|
|
2635
|
+
| 'deserialization.success'
|
|
2636
|
+
| 'split'
|
|
2637
|
+
| 'delete'
|
|
2638
|
+
| 'select'
|
|
2639
|
+
| 'annotation.add'
|
|
2640
|
+
| 'annotation.remove'
|
|
2641
|
+
| 'block.set'
|
|
2642
|
+
| 'block.unset'
|
|
2643
|
+
| 'decorator.add'
|
|
2644
|
+
| 'decorator.remove'
|
|
2645
|
+
| 'delete.backward'
|
|
2646
|
+
| 'delete.block'
|
|
2647
|
+
| 'delete.forward'
|
|
2648
|
+
| 'history.redo'
|
|
2649
|
+
| 'history.undo'
|
|
2650
|
+
| 'insert.inline object'
|
|
2651
|
+
| 'insert.block'
|
|
2652
|
+
| 'insert.span'
|
|
2653
|
+
| 'insert.text'
|
|
2654
|
+
| 'move.backward'
|
|
2655
|
+
| 'move.block'
|
|
2656
|
+
| 'move.forward'
|
|
2657
|
+
| 'annotation.toggle'
|
|
2658
|
+
| 'decorator.toggle'
|
|
2659
|
+
| 'delete.text'
|
|
2660
|
+
| 'insert.blocks'
|
|
2661
|
+
| 'insert.break'
|
|
2662
|
+
| 'insert.soft break'
|
|
2663
|
+
| 'list item.add'
|
|
2664
|
+
| 'list item.remove'
|
|
2665
|
+
| 'list item.toggle'
|
|
2666
|
+
| 'move.block down'
|
|
2667
|
+
| 'move.block up'
|
|
2668
|
+
| 'select.previous block'
|
|
2669
|
+
| 'select.next block'
|
|
2670
|
+
| 'style.add'
|
|
2671
|
+
| 'style.remove'
|
|
2672
|
+
| 'style.toggle',
|
|
2673
|
+
'deserialization.failure'
|
|
2674
|
+
>
|
|
2675
|
+
mimeType: MIMEType_2
|
|
2676
|
+
reason: string
|
|
2677
|
+
originEvent:
|
|
2678
|
+
| PickFromUnion_2<
|
|
2679
|
+
NativeBehaviorEvent_2,
|
|
2680
|
+
'type',
|
|
2681
|
+
'drag.drop' | 'clipboard.paste'
|
|
2682
|
+
>
|
|
2683
|
+
| InputBehaviorEvent_2
|
|
2684
|
+
}
|
|
2685
|
+
| {
|
|
2686
|
+
type: StrictExtract_2<
|
|
2687
|
+
| 'serialize'
|
|
2688
|
+
| 'serialization.failure'
|
|
2689
|
+
| 'serialization.success'
|
|
2690
|
+
| 'deserialize'
|
|
2691
|
+
| 'deserialization.failure'
|
|
2692
|
+
| 'deserialization.success'
|
|
2693
|
+
| 'split'
|
|
2694
|
+
| 'delete'
|
|
2695
|
+
| 'select'
|
|
2696
|
+
| 'annotation.add'
|
|
2697
|
+
| 'annotation.remove'
|
|
2698
|
+
| 'block.set'
|
|
2699
|
+
| 'block.unset'
|
|
2700
|
+
| 'decorator.add'
|
|
2701
|
+
| 'decorator.remove'
|
|
2702
|
+
| 'delete.backward'
|
|
2703
|
+
| 'delete.block'
|
|
2704
|
+
| 'delete.forward'
|
|
2705
|
+
| 'history.redo'
|
|
2706
|
+
| 'history.undo'
|
|
2707
|
+
| 'insert.inline object'
|
|
2708
|
+
| 'insert.block'
|
|
2709
|
+
| 'insert.span'
|
|
2710
|
+
| 'insert.text'
|
|
2711
|
+
| 'move.backward'
|
|
2712
|
+
| 'move.block'
|
|
2713
|
+
| 'move.forward'
|
|
2714
|
+
| 'annotation.toggle'
|
|
2715
|
+
| 'decorator.toggle'
|
|
2716
|
+
| 'delete.text'
|
|
2717
|
+
| 'insert.blocks'
|
|
2718
|
+
| 'insert.break'
|
|
2719
|
+
| 'insert.soft break'
|
|
2720
|
+
| 'list item.add'
|
|
2721
|
+
| 'list item.remove'
|
|
2722
|
+
| 'list item.toggle'
|
|
2723
|
+
| 'move.block down'
|
|
2724
|
+
| 'move.block up'
|
|
2725
|
+
| 'select.previous block'
|
|
2726
|
+
| 'select.next block'
|
|
2727
|
+
| 'style.add'
|
|
2728
|
+
| 'style.remove'
|
|
2729
|
+
| 'style.toggle',
|
|
2730
|
+
'serialization.success'
|
|
2731
|
+
>
|
|
2732
|
+
mimeType: MIMEType_2
|
|
2733
|
+
data: string
|
|
2734
|
+
originEvent: PickFromUnion_2<
|
|
2735
|
+
NativeBehaviorEvent_2,
|
|
2736
|
+
'type',
|
|
2737
|
+
'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
|
|
2738
|
+
>
|
|
2739
|
+
}
|
|
2740
|
+
| {
|
|
2741
|
+
type: StrictExtract_2<
|
|
2742
|
+
| 'serialize'
|
|
2743
|
+
| 'serialization.failure'
|
|
2744
|
+
| 'serialization.success'
|
|
2745
|
+
| 'deserialize'
|
|
2746
|
+
| 'deserialization.failure'
|
|
2747
|
+
| 'deserialization.success'
|
|
2748
|
+
| 'split'
|
|
2749
|
+
| 'delete'
|
|
2750
|
+
| 'select'
|
|
2751
|
+
| 'annotation.add'
|
|
2752
|
+
| 'annotation.remove'
|
|
2753
|
+
| 'block.set'
|
|
2754
|
+
| 'block.unset'
|
|
2755
|
+
| 'decorator.add'
|
|
2756
|
+
| 'decorator.remove'
|
|
2757
|
+
| 'delete.backward'
|
|
2758
|
+
| 'delete.block'
|
|
2759
|
+
| 'delete.forward'
|
|
2760
|
+
| 'history.redo'
|
|
2761
|
+
| 'history.undo'
|
|
2762
|
+
| 'insert.inline object'
|
|
2763
|
+
| 'insert.block'
|
|
2764
|
+
| 'insert.span'
|
|
2765
|
+
| 'insert.text'
|
|
2766
|
+
| 'move.backward'
|
|
2767
|
+
| 'move.block'
|
|
2768
|
+
| 'move.forward'
|
|
2769
|
+
| 'annotation.toggle'
|
|
2770
|
+
| 'decorator.toggle'
|
|
2771
|
+
| 'delete.text'
|
|
2772
|
+
| 'insert.blocks'
|
|
2773
|
+
| 'insert.break'
|
|
2774
|
+
| 'insert.soft break'
|
|
2775
|
+
| 'list item.add'
|
|
2776
|
+
| 'list item.remove'
|
|
2777
|
+
| 'list item.toggle'
|
|
2778
|
+
| 'move.block down'
|
|
2779
|
+
| 'move.block up'
|
|
2780
|
+
| 'select.previous block'
|
|
2781
|
+
| 'select.next block'
|
|
2782
|
+
| 'style.add'
|
|
2783
|
+
| 'style.remove'
|
|
2784
|
+
| 'style.toggle',
|
|
2785
|
+
'serialization.failure'
|
|
2786
|
+
>
|
|
2787
|
+
mimeType: MIMEType_2
|
|
2788
|
+
reason: string
|
|
2789
|
+
originEvent: PickFromUnion_2<
|
|
2790
|
+
NativeBehaviorEvent_2,
|
|
2791
|
+
'type',
|
|
2792
|
+
'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
|
|
2793
|
+
>
|
|
2794
|
+
}
|
|
2795
|
+
| {
|
|
2796
|
+
type: StrictExtract_2<
|
|
2797
|
+
| 'serialize'
|
|
2798
|
+
| 'serialization.failure'
|
|
2799
|
+
| 'serialization.success'
|
|
2800
|
+
| 'deserialize'
|
|
2801
|
+
| 'deserialization.failure'
|
|
2802
|
+
| 'deserialization.success'
|
|
2803
|
+
| 'split'
|
|
2804
|
+
| 'delete'
|
|
2805
|
+
| 'select'
|
|
2806
|
+
| 'annotation.add'
|
|
2807
|
+
| 'annotation.remove'
|
|
2808
|
+
| 'block.set'
|
|
2809
|
+
| 'block.unset'
|
|
2810
|
+
| 'decorator.add'
|
|
2811
|
+
| 'decorator.remove'
|
|
2812
|
+
| 'delete.backward'
|
|
2813
|
+
| 'delete.block'
|
|
2814
|
+
| 'delete.forward'
|
|
2815
|
+
| 'history.redo'
|
|
2816
|
+
| 'history.undo'
|
|
2817
|
+
| 'insert.inline object'
|
|
2818
|
+
| 'insert.block'
|
|
2819
|
+
| 'insert.span'
|
|
2820
|
+
| 'insert.text'
|
|
2821
|
+
| 'move.backward'
|
|
2822
|
+
| 'move.block'
|
|
2823
|
+
| 'move.forward'
|
|
2824
|
+
| 'annotation.toggle'
|
|
2825
|
+
| 'decorator.toggle'
|
|
2826
|
+
| 'delete.text'
|
|
2827
|
+
| 'insert.blocks'
|
|
2828
|
+
| 'insert.break'
|
|
2829
|
+
| 'insert.soft break'
|
|
2830
|
+
| 'list item.add'
|
|
2831
|
+
| 'list item.remove'
|
|
2832
|
+
| 'list item.toggle'
|
|
2833
|
+
| 'move.block down'
|
|
2834
|
+
| 'move.block up'
|
|
2835
|
+
| 'select.previous block'
|
|
2836
|
+
| 'select.next block'
|
|
2837
|
+
| 'style.add'
|
|
2838
|
+
| 'style.remove'
|
|
2839
|
+
| 'style.toggle',
|
|
2840
|
+
'insert.blocks'
|
|
2841
|
+
>
|
|
2842
|
+
blocks: Array<BlockWithOptionalKey_2>
|
|
2843
|
+
placement: InsertPlacement_2
|
|
2844
|
+
}
|
|
2845
|
+
| {
|
|
2846
|
+
type: StrictExtract_2<
|
|
2847
|
+
| 'serialize'
|
|
2848
|
+
| 'serialization.failure'
|
|
2849
|
+
| 'serialization.success'
|
|
2850
|
+
| 'deserialize'
|
|
2851
|
+
| 'deserialization.failure'
|
|
2852
|
+
| 'deserialization.success'
|
|
2853
|
+
| 'split'
|
|
2854
|
+
| 'delete'
|
|
2855
|
+
| 'select'
|
|
2856
|
+
| 'annotation.add'
|
|
2857
|
+
| 'annotation.remove'
|
|
2858
|
+
| 'block.set'
|
|
2859
|
+
| 'block.unset'
|
|
2860
|
+
| 'decorator.add'
|
|
2861
|
+
| 'decorator.remove'
|
|
2862
|
+
| 'delete.backward'
|
|
2863
|
+
| 'delete.block'
|
|
2864
|
+
| 'delete.forward'
|
|
2865
|
+
| 'history.redo'
|
|
2866
|
+
| 'history.undo'
|
|
2867
|
+
| 'insert.inline object'
|
|
2868
|
+
| 'insert.block'
|
|
2869
|
+
| 'insert.span'
|
|
2870
|
+
| 'insert.text'
|
|
2871
|
+
| 'move.backward'
|
|
2872
|
+
| 'move.block'
|
|
2873
|
+
| 'move.forward'
|
|
2874
|
+
| 'annotation.toggle'
|
|
2875
|
+
| 'decorator.toggle'
|
|
2876
|
+
| 'delete.text'
|
|
2877
|
+
| 'insert.blocks'
|
|
2878
|
+
| 'insert.break'
|
|
2879
|
+
| 'insert.soft break'
|
|
2880
|
+
| 'list item.add'
|
|
2881
|
+
| 'list item.remove'
|
|
2882
|
+
| 'list item.toggle'
|
|
2883
|
+
| 'move.block down'
|
|
2884
|
+
| 'move.block up'
|
|
2885
|
+
| 'select.previous block'
|
|
2886
|
+
| 'select.next block'
|
|
2887
|
+
| 'style.add'
|
|
2888
|
+
| 'style.remove'
|
|
2889
|
+
| 'style.toggle',
|
|
2890
|
+
'insert.break'
|
|
2891
|
+
>
|
|
2892
|
+
}
|
|
2893
|
+
| {
|
|
2894
|
+
type: StrictExtract_2<
|
|
2895
|
+
| 'serialize'
|
|
2896
|
+
| 'serialization.failure'
|
|
2897
|
+
| 'serialization.success'
|
|
2898
|
+
| 'deserialize'
|
|
2899
|
+
| 'deserialization.failure'
|
|
2900
|
+
| 'deserialization.success'
|
|
2901
|
+
| 'split'
|
|
2902
|
+
| 'delete'
|
|
2903
|
+
| 'select'
|
|
2904
|
+
| 'annotation.add'
|
|
2905
|
+
| 'annotation.remove'
|
|
2906
|
+
| 'block.set'
|
|
2907
|
+
| 'block.unset'
|
|
2908
|
+
| 'decorator.add'
|
|
2909
|
+
| 'decorator.remove'
|
|
2910
|
+
| 'delete.backward'
|
|
2911
|
+
| 'delete.block'
|
|
2912
|
+
| 'delete.forward'
|
|
2913
|
+
| 'history.redo'
|
|
2914
|
+
| 'history.undo'
|
|
2915
|
+
| 'insert.inline object'
|
|
2916
|
+
| 'insert.block'
|
|
2917
|
+
| 'insert.span'
|
|
2918
|
+
| 'insert.text'
|
|
2919
|
+
| 'move.backward'
|
|
2920
|
+
| 'move.block'
|
|
2921
|
+
| 'move.forward'
|
|
2922
|
+
| 'annotation.toggle'
|
|
2923
|
+
| 'decorator.toggle'
|
|
2924
|
+
| 'delete.text'
|
|
2925
|
+
| 'insert.blocks'
|
|
2926
|
+
| 'insert.break'
|
|
2927
|
+
| 'insert.soft break'
|
|
2928
|
+
| 'list item.add'
|
|
2929
|
+
| 'list item.remove'
|
|
2930
|
+
| 'list item.toggle'
|
|
2931
|
+
| 'move.block down'
|
|
2932
|
+
| 'move.block up'
|
|
2933
|
+
| 'select.previous block'
|
|
2934
|
+
| 'select.next block'
|
|
2935
|
+
| 'style.add'
|
|
2936
|
+
| 'style.remove'
|
|
2937
|
+
| 'style.toggle',
|
|
2938
|
+
'insert.soft break'
|
|
2939
|
+
>
|
|
2940
|
+
}
|
|
2941
|
+
| {
|
|
2942
|
+
type: StrictExtract_2<
|
|
2943
|
+
| 'serialize'
|
|
2944
|
+
| 'serialization.failure'
|
|
2945
|
+
| 'serialization.success'
|
|
2946
|
+
| 'deserialize'
|
|
2947
|
+
| 'deserialization.failure'
|
|
2948
|
+
| 'deserialization.success'
|
|
2949
|
+
| 'split'
|
|
2950
|
+
| 'delete'
|
|
2951
|
+
| 'select'
|
|
2952
|
+
| 'annotation.add'
|
|
2953
|
+
| 'annotation.remove'
|
|
2954
|
+
| 'block.set'
|
|
2955
|
+
| 'block.unset'
|
|
2956
|
+
| 'decorator.add'
|
|
2957
|
+
| 'decorator.remove'
|
|
2958
|
+
| 'delete.backward'
|
|
2959
|
+
| 'delete.block'
|
|
2960
|
+
| 'delete.forward'
|
|
2961
|
+
| 'history.redo'
|
|
2962
|
+
| 'history.undo'
|
|
2963
|
+
| 'insert.inline object'
|
|
2964
|
+
| 'insert.block'
|
|
2965
|
+
| 'insert.span'
|
|
2966
|
+
| 'insert.text'
|
|
2967
|
+
| 'move.backward'
|
|
2968
|
+
| 'move.block'
|
|
2969
|
+
| 'move.forward'
|
|
2970
|
+
| 'annotation.toggle'
|
|
2971
|
+
| 'decorator.toggle'
|
|
2972
|
+
| 'delete.text'
|
|
2973
|
+
| 'insert.blocks'
|
|
2974
|
+
| 'insert.break'
|
|
2975
|
+
| 'insert.soft break'
|
|
2976
|
+
| 'list item.add'
|
|
2977
|
+
| 'list item.remove'
|
|
2978
|
+
| 'list item.toggle'
|
|
2979
|
+
| 'move.block down'
|
|
2980
|
+
| 'move.block up'
|
|
2981
|
+
| 'select.previous block'
|
|
2982
|
+
| 'select.next block'
|
|
2983
|
+
| 'style.add'
|
|
2984
|
+
| 'style.remove'
|
|
2985
|
+
| 'style.toggle',
|
|
2986
|
+
'list item.add'
|
|
2987
|
+
>
|
|
2988
|
+
listItem: string
|
|
2989
|
+
}
|
|
2990
|
+
| {
|
|
2991
|
+
type: StrictExtract_2<
|
|
2992
|
+
| 'serialize'
|
|
2993
|
+
| 'serialization.failure'
|
|
2994
|
+
| 'serialization.success'
|
|
2995
|
+
| 'deserialize'
|
|
2996
|
+
| 'deserialization.failure'
|
|
2997
|
+
| 'deserialization.success'
|
|
2998
|
+
| 'split'
|
|
2999
|
+
| 'delete'
|
|
3000
|
+
| 'select'
|
|
3001
|
+
| 'annotation.add'
|
|
3002
|
+
| 'annotation.remove'
|
|
3003
|
+
| 'block.set'
|
|
3004
|
+
| 'block.unset'
|
|
3005
|
+
| 'decorator.add'
|
|
3006
|
+
| 'decorator.remove'
|
|
3007
|
+
| 'delete.backward'
|
|
3008
|
+
| 'delete.block'
|
|
3009
|
+
| 'delete.forward'
|
|
3010
|
+
| 'history.redo'
|
|
3011
|
+
| 'history.undo'
|
|
3012
|
+
| 'insert.inline object'
|
|
3013
|
+
| 'insert.block'
|
|
3014
|
+
| 'insert.span'
|
|
3015
|
+
| 'insert.text'
|
|
3016
|
+
| 'move.backward'
|
|
3017
|
+
| 'move.block'
|
|
3018
|
+
| 'move.forward'
|
|
3019
|
+
| 'annotation.toggle'
|
|
3020
|
+
| 'decorator.toggle'
|
|
3021
|
+
| 'delete.text'
|
|
3022
|
+
| 'insert.blocks'
|
|
3023
|
+
| 'insert.break'
|
|
3024
|
+
| 'insert.soft break'
|
|
3025
|
+
| 'list item.add'
|
|
3026
|
+
| 'list item.remove'
|
|
3027
|
+
| 'list item.toggle'
|
|
3028
|
+
| 'move.block down'
|
|
3029
|
+
| 'move.block up'
|
|
3030
|
+
| 'select.previous block'
|
|
3031
|
+
| 'select.next block'
|
|
3032
|
+
| 'style.add'
|
|
3033
|
+
| 'style.remove'
|
|
3034
|
+
| 'style.toggle',
|
|
3035
|
+
'list item.remove'
|
|
3036
|
+
>
|
|
3037
|
+
listItem: string
|
|
3038
|
+
}
|
|
3039
|
+
| {
|
|
3040
|
+
type: StrictExtract_2<
|
|
3041
|
+
| 'serialize'
|
|
3042
|
+
| 'serialization.failure'
|
|
3043
|
+
| 'serialization.success'
|
|
3044
|
+
| 'deserialize'
|
|
3045
|
+
| 'deserialization.failure'
|
|
3046
|
+
| 'deserialization.success'
|
|
3047
|
+
| 'split'
|
|
3048
|
+
| 'delete'
|
|
3049
|
+
| 'select'
|
|
3050
|
+
| 'annotation.add'
|
|
3051
|
+
| 'annotation.remove'
|
|
3052
|
+
| 'block.set'
|
|
3053
|
+
| 'block.unset'
|
|
3054
|
+
| 'decorator.add'
|
|
3055
|
+
| 'decorator.remove'
|
|
3056
|
+
| 'delete.backward'
|
|
3057
|
+
| 'delete.block'
|
|
3058
|
+
| 'delete.forward'
|
|
3059
|
+
| 'history.redo'
|
|
3060
|
+
| 'history.undo'
|
|
3061
|
+
| 'insert.inline object'
|
|
3062
|
+
| 'insert.block'
|
|
3063
|
+
| 'insert.span'
|
|
3064
|
+
| 'insert.text'
|
|
3065
|
+
| 'move.backward'
|
|
3066
|
+
| 'move.block'
|
|
3067
|
+
| 'move.forward'
|
|
3068
|
+
| 'annotation.toggle'
|
|
3069
|
+
| 'decorator.toggle'
|
|
3070
|
+
| 'delete.text'
|
|
3071
|
+
| 'insert.blocks'
|
|
3072
|
+
| 'insert.break'
|
|
3073
|
+
| 'insert.soft break'
|
|
3074
|
+
| 'list item.add'
|
|
3075
|
+
| 'list item.remove'
|
|
3076
|
+
| 'list item.toggle'
|
|
3077
|
+
| 'move.block down'
|
|
3078
|
+
| 'move.block up'
|
|
3079
|
+
| 'select.previous block'
|
|
3080
|
+
| 'select.next block'
|
|
3081
|
+
| 'style.add'
|
|
3082
|
+
| 'style.remove'
|
|
3083
|
+
| 'style.toggle',
|
|
3084
|
+
'list item.toggle'
|
|
3085
|
+
>
|
|
3086
|
+
listItem: string
|
|
3087
|
+
}
|
|
3088
|
+
| {
|
|
3089
|
+
type: StrictExtract_2<
|
|
3090
|
+
| 'serialize'
|
|
3091
|
+
| 'serialization.failure'
|
|
3092
|
+
| 'serialization.success'
|
|
3093
|
+
| 'deserialize'
|
|
3094
|
+
| 'deserialization.failure'
|
|
3095
|
+
| 'deserialization.success'
|
|
3096
|
+
| 'split'
|
|
3097
|
+
| 'delete'
|
|
3098
|
+
| 'select'
|
|
3099
|
+
| 'annotation.add'
|
|
3100
|
+
| 'annotation.remove'
|
|
3101
|
+
| 'block.set'
|
|
3102
|
+
| 'block.unset'
|
|
3103
|
+
| 'decorator.add'
|
|
3104
|
+
| 'decorator.remove'
|
|
3105
|
+
| 'delete.backward'
|
|
3106
|
+
| 'delete.block'
|
|
3107
|
+
| 'delete.forward'
|
|
3108
|
+
| 'history.redo'
|
|
3109
|
+
| 'history.undo'
|
|
3110
|
+
| 'insert.inline object'
|
|
3111
|
+
| 'insert.block'
|
|
3112
|
+
| 'insert.span'
|
|
3113
|
+
| 'insert.text'
|
|
3114
|
+
| 'move.backward'
|
|
3115
|
+
| 'move.block'
|
|
3116
|
+
| 'move.forward'
|
|
3117
|
+
| 'annotation.toggle'
|
|
3118
|
+
| 'decorator.toggle'
|
|
3119
|
+
| 'delete.text'
|
|
3120
|
+
| 'insert.blocks'
|
|
3121
|
+
| 'insert.break'
|
|
3122
|
+
| 'insert.soft break'
|
|
3123
|
+
| 'list item.add'
|
|
3124
|
+
| 'list item.remove'
|
|
3125
|
+
| 'list item.toggle'
|
|
3126
|
+
| 'move.block down'
|
|
3127
|
+
| 'move.block up'
|
|
3128
|
+
| 'select.previous block'
|
|
3129
|
+
| 'select.next block'
|
|
3130
|
+
| 'style.add'
|
|
3131
|
+
| 'style.remove'
|
|
3132
|
+
| 'style.toggle',
|
|
3133
|
+
'move.block down'
|
|
3134
|
+
>
|
|
3135
|
+
at: [KeyedSegment]
|
|
3136
|
+
}
|
|
3137
|
+
| {
|
|
3138
|
+
type: StrictExtract_2<
|
|
3139
|
+
| 'serialize'
|
|
3140
|
+
| 'serialization.failure'
|
|
3141
|
+
| 'serialization.success'
|
|
3142
|
+
| 'deserialize'
|
|
3143
|
+
| 'deserialization.failure'
|
|
3144
|
+
| 'deserialization.success'
|
|
3145
|
+
| 'split'
|
|
3146
|
+
| 'delete'
|
|
3147
|
+
| 'select'
|
|
3148
|
+
| 'annotation.add'
|
|
3149
|
+
| 'annotation.remove'
|
|
3150
|
+
| 'block.set'
|
|
3151
|
+
| 'block.unset'
|
|
3152
|
+
| 'decorator.add'
|
|
3153
|
+
| 'decorator.remove'
|
|
3154
|
+
| 'delete.backward'
|
|
3155
|
+
| 'delete.block'
|
|
3156
|
+
| 'delete.forward'
|
|
3157
|
+
| 'history.redo'
|
|
3158
|
+
| 'history.undo'
|
|
3159
|
+
| 'insert.inline object'
|
|
3160
|
+
| 'insert.block'
|
|
3161
|
+
| 'insert.span'
|
|
3162
|
+
| 'insert.text'
|
|
3163
|
+
| 'move.backward'
|
|
3164
|
+
| 'move.block'
|
|
3165
|
+
| 'move.forward'
|
|
3166
|
+
| 'annotation.toggle'
|
|
3167
|
+
| 'decorator.toggle'
|
|
3168
|
+
| 'delete.text'
|
|
3169
|
+
| 'insert.blocks'
|
|
3170
|
+
| 'insert.break'
|
|
3171
|
+
| 'insert.soft break'
|
|
3172
|
+
| 'list item.add'
|
|
3173
|
+
| 'list item.remove'
|
|
3174
|
+
| 'list item.toggle'
|
|
3175
|
+
| 'move.block down'
|
|
3176
|
+
| 'move.block up'
|
|
3177
|
+
| 'select.previous block'
|
|
3178
|
+
| 'select.next block'
|
|
3179
|
+
| 'style.add'
|
|
3180
|
+
| 'style.remove'
|
|
3181
|
+
| 'style.toggle',
|
|
3182
|
+
'move.block up'
|
|
3183
|
+
>
|
|
3184
|
+
at: [KeyedSegment]
|
|
3185
|
+
}
|
|
3186
|
+
| {
|
|
3187
|
+
type: StrictExtract_2<
|
|
3188
|
+
| 'serialize'
|
|
3189
|
+
| 'serialization.failure'
|
|
3190
|
+
| 'serialization.success'
|
|
3191
|
+
| 'deserialize'
|
|
3192
|
+
| 'deserialization.failure'
|
|
3193
|
+
| 'deserialization.success'
|
|
3194
|
+
| 'split'
|
|
3195
|
+
| 'delete'
|
|
3196
|
+
| 'select'
|
|
3197
|
+
| 'annotation.add'
|
|
3198
|
+
| 'annotation.remove'
|
|
3199
|
+
| 'block.set'
|
|
3200
|
+
| 'block.unset'
|
|
3201
|
+
| 'decorator.add'
|
|
3202
|
+
| 'decorator.remove'
|
|
3203
|
+
| 'delete.backward'
|
|
3204
|
+
| 'delete.block'
|
|
3205
|
+
| 'delete.forward'
|
|
3206
|
+
| 'history.redo'
|
|
3207
|
+
| 'history.undo'
|
|
3208
|
+
| 'insert.inline object'
|
|
3209
|
+
| 'insert.block'
|
|
3210
|
+
| 'insert.span'
|
|
3211
|
+
| 'insert.text'
|
|
3212
|
+
| 'move.backward'
|
|
3213
|
+
| 'move.block'
|
|
3214
|
+
| 'move.forward'
|
|
3215
|
+
| 'annotation.toggle'
|
|
3216
|
+
| 'decorator.toggle'
|
|
3217
|
+
| 'delete.text'
|
|
3218
|
+
| 'insert.blocks'
|
|
3219
|
+
| 'insert.break'
|
|
3220
|
+
| 'insert.soft break'
|
|
3221
|
+
| 'list item.add'
|
|
3222
|
+
| 'list item.remove'
|
|
3223
|
+
| 'list item.toggle'
|
|
3224
|
+
| 'move.block down'
|
|
3225
|
+
| 'move.block up'
|
|
3226
|
+
| 'select.previous block'
|
|
3227
|
+
| 'select.next block'
|
|
3228
|
+
| 'style.add'
|
|
3229
|
+
| 'style.remove'
|
|
3230
|
+
| 'style.toggle',
|
|
3231
|
+
'select.previous block'
|
|
3232
|
+
>
|
|
3233
|
+
select?: 'start' | 'end'
|
|
3234
|
+
}
|
|
3235
|
+
| {
|
|
3236
|
+
type: StrictExtract_2<
|
|
3237
|
+
| 'serialize'
|
|
3238
|
+
| 'serialization.failure'
|
|
3239
|
+
| 'serialization.success'
|
|
3240
|
+
| 'deserialize'
|
|
3241
|
+
| 'deserialization.failure'
|
|
3242
|
+
| 'deserialization.success'
|
|
3243
|
+
| 'split'
|
|
3244
|
+
| 'delete'
|
|
3245
|
+
| 'select'
|
|
3246
|
+
| 'annotation.add'
|
|
3247
|
+
| 'annotation.remove'
|
|
3248
|
+
| 'block.set'
|
|
3249
|
+
| 'block.unset'
|
|
3250
|
+
| 'decorator.add'
|
|
3251
|
+
| 'decorator.remove'
|
|
3252
|
+
| 'delete.backward'
|
|
3253
|
+
| 'delete.block'
|
|
3254
|
+
| 'delete.forward'
|
|
3255
|
+
| 'history.redo'
|
|
3256
|
+
| 'history.undo'
|
|
3257
|
+
| 'insert.inline object'
|
|
3258
|
+
| 'insert.block'
|
|
3259
|
+
| 'insert.span'
|
|
3260
|
+
| 'insert.text'
|
|
3261
|
+
| 'move.backward'
|
|
3262
|
+
| 'move.block'
|
|
3263
|
+
| 'move.forward'
|
|
3264
|
+
| 'annotation.toggle'
|
|
3265
|
+
| 'decorator.toggle'
|
|
3266
|
+
| 'delete.text'
|
|
3267
|
+
| 'insert.blocks'
|
|
3268
|
+
| 'insert.break'
|
|
3269
|
+
| 'insert.soft break'
|
|
3270
|
+
| 'list item.add'
|
|
3271
|
+
| 'list item.remove'
|
|
3272
|
+
| 'list item.toggle'
|
|
3273
|
+
| 'move.block down'
|
|
3274
|
+
| 'move.block up'
|
|
3275
|
+
| 'select.previous block'
|
|
3276
|
+
| 'select.next block'
|
|
3277
|
+
| 'style.add'
|
|
3278
|
+
| 'style.remove'
|
|
3279
|
+
| 'style.toggle',
|
|
3280
|
+
'select.next block'
|
|
3281
|
+
>
|
|
3282
|
+
select?: 'start' | 'end'
|
|
3283
|
+
}
|
|
3284
|
+
| {
|
|
3285
|
+
type: StrictExtract_2<
|
|
3286
|
+
| 'serialize'
|
|
3287
|
+
| 'serialization.failure'
|
|
3288
|
+
| 'serialization.success'
|
|
3289
|
+
| 'deserialize'
|
|
3290
|
+
| 'deserialization.failure'
|
|
3291
|
+
| 'deserialization.success'
|
|
3292
|
+
| 'split'
|
|
3293
|
+
| 'delete'
|
|
3294
|
+
| 'select'
|
|
3295
|
+
| 'annotation.add'
|
|
3296
|
+
| 'annotation.remove'
|
|
3297
|
+
| 'block.set'
|
|
3298
|
+
| 'block.unset'
|
|
3299
|
+
| 'decorator.add'
|
|
3300
|
+
| 'decorator.remove'
|
|
3301
|
+
| 'delete.backward'
|
|
3302
|
+
| 'delete.block'
|
|
3303
|
+
| 'delete.forward'
|
|
3304
|
+
| 'history.redo'
|
|
3305
|
+
| 'history.undo'
|
|
3306
|
+
| 'insert.inline object'
|
|
3307
|
+
| 'insert.block'
|
|
3308
|
+
| 'insert.span'
|
|
3309
|
+
| 'insert.text'
|
|
3310
|
+
| 'move.backward'
|
|
3311
|
+
| 'move.block'
|
|
3312
|
+
| 'move.forward'
|
|
3313
|
+
| 'annotation.toggle'
|
|
3314
|
+
| 'decorator.toggle'
|
|
3315
|
+
| 'delete.text'
|
|
3316
|
+
| 'insert.blocks'
|
|
3317
|
+
| 'insert.break'
|
|
3318
|
+
| 'insert.soft break'
|
|
3319
|
+
| 'list item.add'
|
|
3320
|
+
| 'list item.remove'
|
|
3321
|
+
| 'list item.toggle'
|
|
3322
|
+
| 'move.block down'
|
|
3323
|
+
| 'move.block up'
|
|
3324
|
+
| 'select.previous block'
|
|
3325
|
+
| 'select.next block'
|
|
3326
|
+
| 'style.add'
|
|
3327
|
+
| 'style.remove'
|
|
3328
|
+
| 'style.toggle',
|
|
3329
|
+
'split'
|
|
3330
|
+
>
|
|
3331
|
+
}
|
|
3332
|
+
| {
|
|
3333
|
+
type: StrictExtract_2<
|
|
3334
|
+
| 'serialize'
|
|
3335
|
+
| 'serialization.failure'
|
|
3336
|
+
| 'serialization.success'
|
|
3337
|
+
| 'deserialize'
|
|
3338
|
+
| 'deserialization.failure'
|
|
3339
|
+
| 'deserialization.success'
|
|
3340
|
+
| 'split'
|
|
3341
|
+
| 'delete'
|
|
3342
|
+
| 'select'
|
|
3343
|
+
| 'annotation.add'
|
|
3344
|
+
| 'annotation.remove'
|
|
3345
|
+
| 'block.set'
|
|
3346
|
+
| 'block.unset'
|
|
3347
|
+
| 'decorator.add'
|
|
3348
|
+
| 'decorator.remove'
|
|
3349
|
+
| 'delete.backward'
|
|
3350
|
+
| 'delete.block'
|
|
3351
|
+
| 'delete.forward'
|
|
3352
|
+
| 'history.redo'
|
|
3353
|
+
| 'history.undo'
|
|
3354
|
+
| 'insert.inline object'
|
|
3355
|
+
| 'insert.block'
|
|
3356
|
+
| 'insert.span'
|
|
3357
|
+
| 'insert.text'
|
|
3358
|
+
| 'move.backward'
|
|
3359
|
+
| 'move.block'
|
|
3360
|
+
| 'move.forward'
|
|
3361
|
+
| 'annotation.toggle'
|
|
3362
|
+
| 'decorator.toggle'
|
|
3363
|
+
| 'delete.text'
|
|
3364
|
+
| 'insert.blocks'
|
|
3365
|
+
| 'insert.break'
|
|
3366
|
+
| 'insert.soft break'
|
|
3367
|
+
| 'list item.add'
|
|
3368
|
+
| 'list item.remove'
|
|
3369
|
+
| 'list item.toggle'
|
|
3370
|
+
| 'move.block down'
|
|
3371
|
+
| 'move.block up'
|
|
3372
|
+
| 'select.previous block'
|
|
3373
|
+
| 'select.next block'
|
|
3374
|
+
| 'style.add'
|
|
3375
|
+
| 'style.remove'
|
|
3376
|
+
| 'style.toggle',
|
|
3377
|
+
'style.add'
|
|
3378
|
+
>
|
|
3379
|
+
style: string
|
|
3380
|
+
}
|
|
3381
|
+
| {
|
|
3382
|
+
type: StrictExtract_2<
|
|
3383
|
+
| 'serialize'
|
|
3384
|
+
| 'serialization.failure'
|
|
3385
|
+
| 'serialization.success'
|
|
3386
|
+
| 'deserialize'
|
|
3387
|
+
| 'deserialization.failure'
|
|
3388
|
+
| 'deserialization.success'
|
|
3389
|
+
| 'split'
|
|
3390
|
+
| 'delete'
|
|
3391
|
+
| 'select'
|
|
3392
|
+
| 'annotation.add'
|
|
3393
|
+
| 'annotation.remove'
|
|
3394
|
+
| 'block.set'
|
|
3395
|
+
| 'block.unset'
|
|
3396
|
+
| 'decorator.add'
|
|
3397
|
+
| 'decorator.remove'
|
|
3398
|
+
| 'delete.backward'
|
|
3399
|
+
| 'delete.block'
|
|
3400
|
+
| 'delete.forward'
|
|
3401
|
+
| 'history.redo'
|
|
3402
|
+
| 'history.undo'
|
|
3403
|
+
| 'insert.inline object'
|
|
3404
|
+
| 'insert.block'
|
|
3405
|
+
| 'insert.span'
|
|
3406
|
+
| 'insert.text'
|
|
3407
|
+
| 'move.backward'
|
|
3408
|
+
| 'move.block'
|
|
3409
|
+
| 'move.forward'
|
|
3410
|
+
| 'annotation.toggle'
|
|
3411
|
+
| 'decorator.toggle'
|
|
3412
|
+
| 'delete.text'
|
|
3413
|
+
| 'insert.blocks'
|
|
3414
|
+
| 'insert.break'
|
|
3415
|
+
| 'insert.soft break'
|
|
3416
|
+
| 'list item.add'
|
|
3417
|
+
| 'list item.remove'
|
|
3418
|
+
| 'list item.toggle'
|
|
3419
|
+
| 'move.block down'
|
|
3420
|
+
| 'move.block up'
|
|
3421
|
+
| 'select.previous block'
|
|
3422
|
+
| 'select.next block'
|
|
3423
|
+
| 'style.add'
|
|
3424
|
+
| 'style.remove'
|
|
3425
|
+
| 'style.toggle',
|
|
3426
|
+
'style.remove'
|
|
3427
|
+
>
|
|
3428
|
+
style: string
|
|
3429
|
+
}
|
|
3430
|
+
| {
|
|
3431
|
+
type: StrictExtract_2<
|
|
3432
|
+
| 'serialize'
|
|
3433
|
+
| 'serialization.failure'
|
|
3434
|
+
| 'serialization.success'
|
|
3435
|
+
| 'deserialize'
|
|
3436
|
+
| 'deserialization.failure'
|
|
3437
|
+
| 'deserialization.success'
|
|
3438
|
+
| 'split'
|
|
3439
|
+
| 'delete'
|
|
3440
|
+
| 'select'
|
|
3441
|
+
| 'annotation.add'
|
|
3442
|
+
| 'annotation.remove'
|
|
3443
|
+
| 'block.set'
|
|
3444
|
+
| 'block.unset'
|
|
3445
|
+
| 'decorator.add'
|
|
3446
|
+
| 'decorator.remove'
|
|
3447
|
+
| 'delete.backward'
|
|
3448
|
+
| 'delete.block'
|
|
3449
|
+
| 'delete.forward'
|
|
3450
|
+
| 'history.redo'
|
|
3451
|
+
| 'history.undo'
|
|
3452
|
+
| 'insert.inline object'
|
|
3453
|
+
| 'insert.block'
|
|
3454
|
+
| 'insert.span'
|
|
3455
|
+
| 'insert.text'
|
|
3456
|
+
| 'move.backward'
|
|
3457
|
+
| 'move.block'
|
|
3458
|
+
| 'move.forward'
|
|
3459
|
+
| 'annotation.toggle'
|
|
3460
|
+
| 'decorator.toggle'
|
|
3461
|
+
| 'delete.text'
|
|
3462
|
+
| 'insert.blocks'
|
|
3463
|
+
| 'insert.break'
|
|
3464
|
+
| 'insert.soft break'
|
|
3465
|
+
| 'list item.add'
|
|
3466
|
+
| 'list item.remove'
|
|
3467
|
+
| 'list item.toggle'
|
|
3468
|
+
| 'move.block down'
|
|
3469
|
+
| 'move.block up'
|
|
3470
|
+
| 'select.previous block'
|
|
3471
|
+
| 'select.next block'
|
|
3472
|
+
| 'style.add'
|
|
3473
|
+
| 'style.remove'
|
|
3474
|
+
| 'style.toggle',
|
|
3475
|
+
'style.toggle'
|
|
3476
|
+
>
|
|
3477
|
+
style: string
|
|
3478
|
+
}
|
|
3479
|
+
| {
|
|
3480
|
+
type: StrictExtract_2<
|
|
3481
|
+
| 'clipboard.copy'
|
|
3482
|
+
| 'clipboard.cut'
|
|
3483
|
+
| 'drag.dragstart'
|
|
3484
|
+
| 'clipboard.paste'
|
|
3485
|
+
| 'drag.drag'
|
|
3486
|
+
| 'drag.dragend'
|
|
3487
|
+
| 'drag.dragenter'
|
|
3488
|
+
| 'drag.dragover'
|
|
3489
|
+
| 'drag.dragleave'
|
|
3490
|
+
| 'drag.drop'
|
|
3491
|
+
| 'input.*'
|
|
3492
|
+
| 'keyboard.keydown'
|
|
3493
|
+
| 'keyboard.keyup'
|
|
3494
|
+
| 'mouse.click',
|
|
3495
|
+
'clipboard.copy'
|
|
3496
|
+
>
|
|
3497
|
+
originEvent: {
|
|
3498
|
+
dataTransfer: DataTransfer
|
|
3499
|
+
}
|
|
3500
|
+
position: Pick<EventPosition, 'selection'>
|
|
3501
|
+
}
|
|
3502
|
+
| {
|
|
3503
|
+
type: StrictExtract_2<
|
|
3504
|
+
| 'clipboard.copy'
|
|
3505
|
+
| 'clipboard.cut'
|
|
3506
|
+
| 'drag.dragstart'
|
|
3507
|
+
| 'clipboard.paste'
|
|
3508
|
+
| 'drag.drag'
|
|
3509
|
+
| 'drag.dragend'
|
|
3510
|
+
| 'drag.dragenter'
|
|
3511
|
+
| 'drag.dragover'
|
|
3512
|
+
| 'drag.dragleave'
|
|
3513
|
+
| 'drag.drop'
|
|
3514
|
+
| 'input.*'
|
|
3515
|
+
| 'keyboard.keydown'
|
|
3516
|
+
| 'keyboard.keyup'
|
|
3517
|
+
| 'mouse.click',
|
|
3518
|
+
'clipboard.cut'
|
|
3519
|
+
>
|
|
3520
|
+
originEvent: {
|
|
3521
|
+
dataTransfer: DataTransfer
|
|
3522
|
+
}
|
|
3523
|
+
position: Pick<EventPosition, 'selection'>
|
|
3524
|
+
}
|
|
3525
|
+
| {
|
|
3526
|
+
type: StrictExtract_2<
|
|
3527
|
+
| 'clipboard.copy'
|
|
3528
|
+
| 'clipboard.cut'
|
|
3529
|
+
| 'drag.dragstart'
|
|
3530
|
+
| 'clipboard.paste'
|
|
3531
|
+
| 'drag.drag'
|
|
3532
|
+
| 'drag.dragend'
|
|
3533
|
+
| 'drag.dragenter'
|
|
3534
|
+
| 'drag.dragover'
|
|
3535
|
+
| 'drag.dragleave'
|
|
3536
|
+
| 'drag.drop'
|
|
3537
|
+
| 'input.*'
|
|
3538
|
+
| 'keyboard.keydown'
|
|
3539
|
+
| 'keyboard.keyup'
|
|
3540
|
+
| 'mouse.click',
|
|
3541
|
+
'clipboard.paste'
|
|
3542
|
+
>
|
|
3543
|
+
originEvent: {
|
|
3544
|
+
dataTransfer: DataTransfer
|
|
3545
|
+
}
|
|
3546
|
+
position: Pick<EventPosition, 'selection'>
|
|
3547
|
+
}
|
|
3548
|
+
| {
|
|
3549
|
+
type: StrictExtract_2<
|
|
3550
|
+
| 'clipboard.copy'
|
|
3551
|
+
| 'clipboard.cut'
|
|
3552
|
+
| 'drag.dragstart'
|
|
3553
|
+
| 'clipboard.paste'
|
|
3554
|
+
| 'drag.drag'
|
|
3555
|
+
| 'drag.dragend'
|
|
3556
|
+
| 'drag.dragenter'
|
|
3557
|
+
| 'drag.dragover'
|
|
3558
|
+
| 'drag.dragleave'
|
|
3559
|
+
| 'drag.drop'
|
|
3560
|
+
| 'input.*'
|
|
3561
|
+
| 'keyboard.keydown'
|
|
3562
|
+
| 'keyboard.keyup'
|
|
3563
|
+
| 'mouse.click',
|
|
3564
|
+
'drag.dragstart'
|
|
3565
|
+
>
|
|
3566
|
+
originEvent: {
|
|
3567
|
+
dataTransfer: DataTransfer
|
|
3568
|
+
}
|
|
3569
|
+
position: Pick<EventPosition, 'selection'>
|
|
3570
|
+
}
|
|
3571
|
+
| {
|
|
3572
|
+
type: StrictExtract_2<
|
|
3573
|
+
| 'clipboard.copy'
|
|
3574
|
+
| 'clipboard.cut'
|
|
3575
|
+
| 'drag.dragstart'
|
|
3576
|
+
| 'clipboard.paste'
|
|
3577
|
+
| 'drag.drag'
|
|
3578
|
+
| 'drag.dragend'
|
|
3579
|
+
| 'drag.dragenter'
|
|
3580
|
+
| 'drag.dragover'
|
|
3581
|
+
| 'drag.dragleave'
|
|
3582
|
+
| 'drag.drop'
|
|
3583
|
+
| 'input.*'
|
|
3584
|
+
| 'keyboard.keydown'
|
|
3585
|
+
| 'keyboard.keyup'
|
|
3586
|
+
| 'mouse.click',
|
|
3587
|
+
'drag.drag'
|
|
3588
|
+
>
|
|
3589
|
+
originEvent: {
|
|
3590
|
+
dataTransfer: DataTransfer
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
| {
|
|
3594
|
+
type: StrictExtract_2<
|
|
3595
|
+
| 'clipboard.copy'
|
|
3596
|
+
| 'clipboard.cut'
|
|
3597
|
+
| 'drag.dragstart'
|
|
3598
|
+
| 'clipboard.paste'
|
|
3599
|
+
| 'drag.drag'
|
|
3600
|
+
| 'drag.dragend'
|
|
3601
|
+
| 'drag.dragenter'
|
|
3602
|
+
| 'drag.dragover'
|
|
3603
|
+
| 'drag.dragleave'
|
|
3604
|
+
| 'drag.drop'
|
|
3605
|
+
| 'input.*'
|
|
3606
|
+
| 'keyboard.keydown'
|
|
3607
|
+
| 'keyboard.keyup'
|
|
3608
|
+
| 'mouse.click',
|
|
3609
|
+
'drag.dragend'
|
|
3610
|
+
>
|
|
3611
|
+
originEvent: {
|
|
3612
|
+
dataTransfer: DataTransfer
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
| {
|
|
3616
|
+
type: StrictExtract_2<
|
|
3617
|
+
| 'clipboard.copy'
|
|
3618
|
+
| 'clipboard.cut'
|
|
3619
|
+
| 'drag.dragstart'
|
|
3620
|
+
| 'clipboard.paste'
|
|
3621
|
+
| 'drag.drag'
|
|
3622
|
+
| 'drag.dragend'
|
|
3623
|
+
| 'drag.dragenter'
|
|
3624
|
+
| 'drag.dragover'
|
|
3625
|
+
| 'drag.dragleave'
|
|
3626
|
+
| 'drag.drop'
|
|
3627
|
+
| 'input.*'
|
|
3628
|
+
| 'keyboard.keydown'
|
|
3629
|
+
| 'keyboard.keyup'
|
|
3630
|
+
| 'mouse.click',
|
|
3631
|
+
'drag.dragenter'
|
|
3632
|
+
>
|
|
3633
|
+
originEvent: {
|
|
3634
|
+
dataTransfer: DataTransfer
|
|
3635
|
+
}
|
|
3636
|
+
position: EventPosition
|
|
3637
|
+
}
|
|
3638
|
+
| {
|
|
3639
|
+
type: StrictExtract_2<
|
|
3640
|
+
| 'clipboard.copy'
|
|
3641
|
+
| 'clipboard.cut'
|
|
3642
|
+
| 'drag.dragstart'
|
|
3643
|
+
| 'clipboard.paste'
|
|
3644
|
+
| 'drag.drag'
|
|
3645
|
+
| 'drag.dragend'
|
|
3646
|
+
| 'drag.dragenter'
|
|
3647
|
+
| 'drag.dragover'
|
|
3648
|
+
| 'drag.dragleave'
|
|
3649
|
+
| 'drag.drop'
|
|
3650
|
+
| 'input.*'
|
|
3651
|
+
| 'keyboard.keydown'
|
|
3652
|
+
| 'keyboard.keyup'
|
|
3653
|
+
| 'mouse.click',
|
|
3654
|
+
'drag.dragover'
|
|
3655
|
+
>
|
|
3656
|
+
originEvent: {
|
|
3657
|
+
dataTransfer: DataTransfer
|
|
3658
|
+
}
|
|
3659
|
+
position: EventPosition
|
|
3660
|
+
}
|
|
3661
|
+
| {
|
|
3662
|
+
type: StrictExtract_2<
|
|
3663
|
+
| 'clipboard.copy'
|
|
3664
|
+
| 'clipboard.cut'
|
|
3665
|
+
| 'drag.dragstart'
|
|
3666
|
+
| 'clipboard.paste'
|
|
3667
|
+
| 'drag.drag'
|
|
3668
|
+
| 'drag.dragend'
|
|
3669
|
+
| 'drag.dragenter'
|
|
3670
|
+
| 'drag.dragover'
|
|
3671
|
+
| 'drag.dragleave'
|
|
3672
|
+
| 'drag.drop'
|
|
3673
|
+
| 'input.*'
|
|
3674
|
+
| 'keyboard.keydown'
|
|
3675
|
+
| 'keyboard.keyup'
|
|
3676
|
+
| 'mouse.click',
|
|
3677
|
+
'drag.drop'
|
|
3678
|
+
>
|
|
3679
|
+
originEvent: {
|
|
3680
|
+
dataTransfer: DataTransfer
|
|
3681
|
+
}
|
|
3682
|
+
position: EventPosition
|
|
3683
|
+
}
|
|
3684
|
+
| {
|
|
3685
|
+
type: StrictExtract_2<
|
|
3686
|
+
| 'clipboard.copy'
|
|
3687
|
+
| 'clipboard.cut'
|
|
3688
|
+
| 'drag.dragstart'
|
|
3689
|
+
| 'clipboard.paste'
|
|
3690
|
+
| 'drag.drag'
|
|
3691
|
+
| 'drag.dragend'
|
|
3692
|
+
| 'drag.dragenter'
|
|
3693
|
+
| 'drag.dragover'
|
|
3694
|
+
| 'drag.dragleave'
|
|
3695
|
+
| 'drag.drop'
|
|
3696
|
+
| 'input.*'
|
|
3697
|
+
| 'keyboard.keydown'
|
|
3698
|
+
| 'keyboard.keyup'
|
|
3699
|
+
| 'mouse.click',
|
|
3700
|
+
'drag.dragleave'
|
|
3701
|
+
>
|
|
3702
|
+
originEvent: {
|
|
3703
|
+
dataTransfer: DataTransfer
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
| InputBehaviorEvent_2
|
|
3707
|
+
| {
|
|
3708
|
+
type: StrictExtract_2<
|
|
3709
|
+
| 'clipboard.copy'
|
|
3710
|
+
| 'clipboard.cut'
|
|
3711
|
+
| 'drag.dragstart'
|
|
3712
|
+
| 'clipboard.paste'
|
|
3713
|
+
| 'drag.drag'
|
|
3714
|
+
| 'drag.dragend'
|
|
3715
|
+
| 'drag.dragenter'
|
|
3716
|
+
| 'drag.dragover'
|
|
3717
|
+
| 'drag.dragleave'
|
|
3718
|
+
| 'drag.drop'
|
|
3719
|
+
| 'input.*'
|
|
3720
|
+
| 'keyboard.keydown'
|
|
3721
|
+
| 'keyboard.keyup'
|
|
3722
|
+
| 'mouse.click',
|
|
3723
|
+
'keyboard.keydown'
|
|
3724
|
+
>
|
|
3725
|
+
originEvent: Pick<
|
|
3726
|
+
KeyboardEvent,
|
|
3727
|
+
'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
|
|
3728
|
+
>
|
|
3729
|
+
}
|
|
3730
|
+
| {
|
|
3731
|
+
type: StrictExtract_2<
|
|
3732
|
+
| 'clipboard.copy'
|
|
3733
|
+
| 'clipboard.cut'
|
|
3734
|
+
| 'drag.dragstart'
|
|
3735
|
+
| 'clipboard.paste'
|
|
3736
|
+
| 'drag.drag'
|
|
3737
|
+
| 'drag.dragend'
|
|
3738
|
+
| 'drag.dragenter'
|
|
3739
|
+
| 'drag.dragover'
|
|
3740
|
+
| 'drag.dragleave'
|
|
3741
|
+
| 'drag.drop'
|
|
3742
|
+
| 'input.*'
|
|
3743
|
+
| 'keyboard.keydown'
|
|
3744
|
+
| 'keyboard.keyup'
|
|
3745
|
+
| 'mouse.click',
|
|
3746
|
+
'keyboard.keyup'
|
|
3747
|
+
>
|
|
3748
|
+
originEvent: Pick<
|
|
3749
|
+
KeyboardEvent,
|
|
3750
|
+
'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
|
|
3751
|
+
>
|
|
3752
|
+
}
|
|
3753
|
+
| MouseBehaviorEvent_2
|
|
3754
|
+
| CustomBehaviorEvent_2<
|
|
3755
|
+
Record<string, unknown>,
|
|
3756
|
+
string,
|
|
3757
|
+
`custom.${string}`
|
|
3758
|
+
>
|
|
3759
|
+
>
|
|
3760
|
+
>
|
|
1190
3761
|
converters: Set<Converter>
|
|
1191
3762
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1192
3763
|
keyGenerator: () => string
|
|
1193
3764
|
pendingEvents: never[]
|
|
3765
|
+
pendingIncomingPatchesEvents: never[]
|
|
1194
3766
|
schema: EditorSchema
|
|
1195
3767
|
selection: null
|
|
1196
3768
|
initialReadOnly: boolean
|
|
@@ -1206,6 +3778,7 @@ declare const editorMachine: StateMachine<
|
|
|
1206
3778
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1207
3779
|
keyGenerator: () => string
|
|
1208
3780
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3781
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1209
3782
|
schema: EditorSchema
|
|
1210
3783
|
initialReadOnly: boolean
|
|
1211
3784
|
maxBlocks: number | undefined
|
|
@@ -1223,6 +3796,7 @@ declare const editorMachine: StateMachine<
|
|
|
1223
3796
|
},
|
|
1224
3797
|
| InternalPatchEvent
|
|
1225
3798
|
| MutationEvent
|
|
3799
|
+
| PatchesEvent
|
|
1226
3800
|
| {
|
|
1227
3801
|
type: 'add behavior'
|
|
1228
3802
|
behavior: Behavior
|
|
@@ -1239,10 +3813,6 @@ declare const editorMachine: StateMachine<
|
|
|
1239
3813
|
type: 'update schema'
|
|
1240
3814
|
schema: EditorSchema
|
|
1241
3815
|
}
|
|
1242
|
-
| {
|
|
1243
|
-
type: 'update behaviors'
|
|
1244
|
-
behaviors: Array<Behavior>
|
|
1245
|
-
}
|
|
1246
3816
|
| {
|
|
1247
3817
|
type: 'update key generator'
|
|
1248
3818
|
keyGenerator: () => string
|
|
@@ -1255,7 +3825,6 @@ declare const editorMachine: StateMachine<
|
|
|
1255
3825
|
type: 'update maxBlocks'
|
|
1256
3826
|
maxBlocks: number | undefined
|
|
1257
3827
|
}
|
|
1258
|
-
| PatchesEvent
|
|
1259
3828
|
| {
|
|
1260
3829
|
type: 'blur'
|
|
1261
3830
|
editor: PortableTextSlateEditor
|
|
@@ -1271,7 +3840,10 @@ declare const editorMachine: StateMachine<
|
|
|
1271
3840
|
type: 'done normalizing'
|
|
1272
3841
|
}
|
|
1273
3842
|
| {
|
|
1274
|
-
type: 'done syncing
|
|
3843
|
+
type: 'done syncing value'
|
|
3844
|
+
}
|
|
3845
|
+
| {
|
|
3846
|
+
type: 'syncing value'
|
|
1275
3847
|
}
|
|
1276
3848
|
| {
|
|
1277
3849
|
type: 'behavior event'
|
|
@@ -1410,6 +3982,7 @@ declare const editorMachine: StateMachine<
|
|
|
1410
3982
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1411
3983
|
keyGenerator: () => string
|
|
1412
3984
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3985
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1413
3986
|
schema: EditorSchema
|
|
1414
3987
|
initialReadOnly: boolean
|
|
1415
3988
|
maxBlocks: number | undefined
|
|
@@ -1426,6 +3999,7 @@ declare const editorMachine: StateMachine<
|
|
|
1426
3999
|
},
|
|
1427
4000
|
| InternalPatchEvent
|
|
1428
4001
|
| MutationEvent
|
|
4002
|
+
| PatchesEvent
|
|
1429
4003
|
| {
|
|
1430
4004
|
type: 'add behavior'
|
|
1431
4005
|
behavior: Behavior
|
|
@@ -1442,10 +4016,6 @@ declare const editorMachine: StateMachine<
|
|
|
1442
4016
|
type: 'update schema'
|
|
1443
4017
|
schema: EditorSchema
|
|
1444
4018
|
}
|
|
1445
|
-
| {
|
|
1446
|
-
type: 'update behaviors'
|
|
1447
|
-
behaviors: Array<Behavior>
|
|
1448
|
-
}
|
|
1449
4019
|
| {
|
|
1450
4020
|
type: 'update key generator'
|
|
1451
4021
|
keyGenerator: () => string
|
|
@@ -1458,7 +4028,6 @@ declare const editorMachine: StateMachine<
|
|
|
1458
4028
|
type: 'update maxBlocks'
|
|
1459
4029
|
maxBlocks: number | undefined
|
|
1460
4030
|
}
|
|
1461
|
-
| PatchesEvent
|
|
1462
4031
|
| {
|
|
1463
4032
|
type: 'blur'
|
|
1464
4033
|
editor: PortableTextSlateEditor
|
|
@@ -1474,7 +4043,10 @@ declare const editorMachine: StateMachine<
|
|
|
1474
4043
|
type: 'done normalizing'
|
|
1475
4044
|
}
|
|
1476
4045
|
| {
|
|
1477
|
-
type: 'done syncing
|
|
4046
|
+
type: 'done syncing value'
|
|
4047
|
+
}
|
|
4048
|
+
| {
|
|
4049
|
+
type: 'syncing value'
|
|
1478
4050
|
}
|
|
1479
4051
|
| {
|
|
1480
4052
|
type: 'behavior event'
|
|
@@ -1613,6 +4185,7 @@ declare const editorMachine: StateMachine<
|
|
|
1613
4185
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1614
4186
|
keyGenerator: () => string
|
|
1615
4187
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4188
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1616
4189
|
schema: EditorSchema
|
|
1617
4190
|
initialReadOnly: boolean
|
|
1618
4191
|
maxBlocks: number | undefined
|
|
@@ -1632,6 +4205,7 @@ declare const editorMachine: StateMachine<
|
|
|
1632
4205
|
},
|
|
1633
4206
|
| InternalPatchEvent
|
|
1634
4207
|
| MutationEvent
|
|
4208
|
+
| PatchesEvent
|
|
1635
4209
|
| {
|
|
1636
4210
|
type: 'add behavior'
|
|
1637
4211
|
behavior: Behavior
|
|
@@ -1648,10 +4222,6 @@ declare const editorMachine: StateMachine<
|
|
|
1648
4222
|
type: 'update schema'
|
|
1649
4223
|
schema: EditorSchema
|
|
1650
4224
|
}
|
|
1651
|
-
| {
|
|
1652
|
-
type: 'update behaviors'
|
|
1653
|
-
behaviors: Array<Behavior>
|
|
1654
|
-
}
|
|
1655
4225
|
| {
|
|
1656
4226
|
type: 'update key generator'
|
|
1657
4227
|
keyGenerator: () => string
|
|
@@ -1664,7 +4234,6 @@ declare const editorMachine: StateMachine<
|
|
|
1664
4234
|
type: 'update maxBlocks'
|
|
1665
4235
|
maxBlocks: number | undefined
|
|
1666
4236
|
}
|
|
1667
|
-
| PatchesEvent
|
|
1668
4237
|
| {
|
|
1669
4238
|
type: 'blur'
|
|
1670
4239
|
editor: PortableTextSlateEditor
|
|
@@ -1680,7 +4249,10 @@ declare const editorMachine: StateMachine<
|
|
|
1680
4249
|
type: 'done normalizing'
|
|
1681
4250
|
}
|
|
1682
4251
|
| {
|
|
1683
|
-
type: 'done syncing
|
|
4252
|
+
type: 'done syncing value'
|
|
4253
|
+
}
|
|
4254
|
+
| {
|
|
4255
|
+
type: 'syncing value'
|
|
1684
4256
|
}
|
|
1685
4257
|
| {
|
|
1686
4258
|
type: 'behavior event'
|
|
@@ -1819,6 +4391,7 @@ declare const editorMachine: StateMachine<
|
|
|
1819
4391
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1820
4392
|
keyGenerator: () => string
|
|
1821
4393
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4394
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1822
4395
|
schema: EditorSchema
|
|
1823
4396
|
initialReadOnly: boolean
|
|
1824
4397
|
maxBlocks: number | undefined
|
|
@@ -1837,6 +4410,7 @@ declare const editorMachine: StateMachine<
|
|
|
1837
4410
|
},
|
|
1838
4411
|
| InternalPatchEvent
|
|
1839
4412
|
| MutationEvent
|
|
4413
|
+
| PatchesEvent
|
|
1840
4414
|
| {
|
|
1841
4415
|
type: 'add behavior'
|
|
1842
4416
|
behavior: Behavior
|
|
@@ -1853,10 +4427,6 @@ declare const editorMachine: StateMachine<
|
|
|
1853
4427
|
type: 'update schema'
|
|
1854
4428
|
schema: EditorSchema
|
|
1855
4429
|
}
|
|
1856
|
-
| {
|
|
1857
|
-
type: 'update behaviors'
|
|
1858
|
-
behaviors: Array<Behavior>
|
|
1859
|
-
}
|
|
1860
4430
|
| {
|
|
1861
4431
|
type: 'update key generator'
|
|
1862
4432
|
keyGenerator: () => string
|
|
@@ -1869,7 +4439,6 @@ declare const editorMachine: StateMachine<
|
|
|
1869
4439
|
type: 'update maxBlocks'
|
|
1870
4440
|
maxBlocks: number | undefined
|
|
1871
4441
|
}
|
|
1872
|
-
| PatchesEvent
|
|
1873
4442
|
| {
|
|
1874
4443
|
type: 'blur'
|
|
1875
4444
|
editor: PortableTextSlateEditor
|
|
@@ -1885,7 +4454,10 @@ declare const editorMachine: StateMachine<
|
|
|
1885
4454
|
type: 'done normalizing'
|
|
1886
4455
|
}
|
|
1887
4456
|
| {
|
|
1888
|
-
type: 'done syncing
|
|
4457
|
+
type: 'done syncing value'
|
|
4458
|
+
}
|
|
4459
|
+
| {
|
|
4460
|
+
type: 'syncing value'
|
|
1889
4461
|
}
|
|
1890
4462
|
| {
|
|
1891
4463
|
type: 'behavior event'
|
|
@@ -2024,6 +4596,7 @@ declare const editorMachine: StateMachine<
|
|
|
2024
4596
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2025
4597
|
keyGenerator: () => string
|
|
2026
4598
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4599
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2027
4600
|
schema: EditorSchema
|
|
2028
4601
|
initialReadOnly: boolean
|
|
2029
4602
|
maxBlocks: number | undefined
|
|
@@ -2041,6 +4614,7 @@ declare const editorMachine: StateMachine<
|
|
|
2041
4614
|
},
|
|
2042
4615
|
| InternalPatchEvent
|
|
2043
4616
|
| MutationEvent
|
|
4617
|
+
| PatchesEvent
|
|
2044
4618
|
| {
|
|
2045
4619
|
type: 'add behavior'
|
|
2046
4620
|
behavior: Behavior
|
|
@@ -2057,10 +4631,6 @@ declare const editorMachine: StateMachine<
|
|
|
2057
4631
|
type: 'update schema'
|
|
2058
4632
|
schema: EditorSchema
|
|
2059
4633
|
}
|
|
2060
|
-
| {
|
|
2061
|
-
type: 'update behaviors'
|
|
2062
|
-
behaviors: Array<Behavior>
|
|
2063
|
-
}
|
|
2064
4634
|
| {
|
|
2065
4635
|
type: 'update key generator'
|
|
2066
4636
|
keyGenerator: () => string
|
|
@@ -2073,7 +4643,6 @@ declare const editorMachine: StateMachine<
|
|
|
2073
4643
|
type: 'update maxBlocks'
|
|
2074
4644
|
maxBlocks: number | undefined
|
|
2075
4645
|
}
|
|
2076
|
-
| PatchesEvent
|
|
2077
4646
|
| {
|
|
2078
4647
|
type: 'blur'
|
|
2079
4648
|
editor: PortableTextSlateEditor
|
|
@@ -2089,7 +4658,10 @@ declare const editorMachine: StateMachine<
|
|
|
2089
4658
|
type: 'done normalizing'
|
|
2090
4659
|
}
|
|
2091
4660
|
| {
|
|
2092
|
-
type: 'done syncing
|
|
4661
|
+
type: 'done syncing value'
|
|
4662
|
+
}
|
|
4663
|
+
| {
|
|
4664
|
+
type: 'syncing value'
|
|
2093
4665
|
}
|
|
2094
4666
|
| {
|
|
2095
4667
|
type: 'behavior event'
|
|
@@ -2229,6 +4801,7 @@ declare const editorMachine: StateMachine<
|
|
|
2229
4801
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2230
4802
|
keyGenerator: () => string
|
|
2231
4803
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4804
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2232
4805
|
schema: EditorSchema
|
|
2233
4806
|
initialReadOnly: boolean
|
|
2234
4807
|
maxBlocks: number | undefined
|
|
@@ -2246,6 +4819,7 @@ declare const editorMachine: StateMachine<
|
|
|
2246
4819
|
},
|
|
2247
4820
|
| InternalPatchEvent
|
|
2248
4821
|
| MutationEvent
|
|
4822
|
+
| PatchesEvent
|
|
2249
4823
|
| {
|
|
2250
4824
|
type: 'add behavior'
|
|
2251
4825
|
behavior: Behavior
|
|
@@ -2262,10 +4836,6 @@ declare const editorMachine: StateMachine<
|
|
|
2262
4836
|
type: 'update schema'
|
|
2263
4837
|
schema: EditorSchema
|
|
2264
4838
|
}
|
|
2265
|
-
| {
|
|
2266
|
-
type: 'update behaviors'
|
|
2267
|
-
behaviors: Array<Behavior>
|
|
2268
|
-
}
|
|
2269
4839
|
| {
|
|
2270
4840
|
type: 'update key generator'
|
|
2271
4841
|
keyGenerator: () => string
|
|
@@ -2278,7 +4848,6 @@ declare const editorMachine: StateMachine<
|
|
|
2278
4848
|
type: 'update maxBlocks'
|
|
2279
4849
|
maxBlocks: number | undefined
|
|
2280
4850
|
}
|
|
2281
|
-
| PatchesEvent
|
|
2282
4851
|
| {
|
|
2283
4852
|
type: 'blur'
|
|
2284
4853
|
editor: PortableTextSlateEditor
|
|
@@ -2294,7 +4863,10 @@ declare const editorMachine: StateMachine<
|
|
|
2294
4863
|
type: 'done normalizing'
|
|
2295
4864
|
}
|
|
2296
4865
|
| {
|
|
2297
|
-
type: 'done syncing
|
|
4866
|
+
type: 'done syncing value'
|
|
4867
|
+
}
|
|
4868
|
+
| {
|
|
4869
|
+
type: 'syncing value'
|
|
2298
4870
|
}
|
|
2299
4871
|
| {
|
|
2300
4872
|
type: 'behavior event'
|
|
@@ -2385,6 +4957,7 @@ declare const editorMachine: StateMachine<
|
|
|
2385
4957
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2386
4958
|
keyGenerator: () => string
|
|
2387
4959
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4960
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2388
4961
|
schema: EditorSchema
|
|
2389
4962
|
initialReadOnly: boolean
|
|
2390
4963
|
maxBlocks: number | undefined
|
|
@@ -2402,6 +4975,7 @@ declare const editorMachine: StateMachine<
|
|
|
2402
4975
|
},
|
|
2403
4976
|
| InternalPatchEvent
|
|
2404
4977
|
| MutationEvent
|
|
4978
|
+
| PatchesEvent
|
|
2405
4979
|
| {
|
|
2406
4980
|
type: 'add behavior'
|
|
2407
4981
|
behavior: Behavior
|
|
@@ -2418,10 +4992,6 @@ declare const editorMachine: StateMachine<
|
|
|
2418
4992
|
type: 'update schema'
|
|
2419
4993
|
schema: EditorSchema
|
|
2420
4994
|
}
|
|
2421
|
-
| {
|
|
2422
|
-
type: 'update behaviors'
|
|
2423
|
-
behaviors: Array<Behavior>
|
|
2424
|
-
}
|
|
2425
4995
|
| {
|
|
2426
4996
|
type: 'update key generator'
|
|
2427
4997
|
keyGenerator: () => string
|
|
@@ -2434,7 +5004,6 @@ declare const editorMachine: StateMachine<
|
|
|
2434
5004
|
type: 'update maxBlocks'
|
|
2435
5005
|
maxBlocks: number | undefined
|
|
2436
5006
|
}
|
|
2437
|
-
| PatchesEvent
|
|
2438
5007
|
| {
|
|
2439
5008
|
type: 'blur'
|
|
2440
5009
|
editor: PortableTextSlateEditor
|
|
@@ -2450,7 +5019,10 @@ declare const editorMachine: StateMachine<
|
|
|
2450
5019
|
type: 'done normalizing'
|
|
2451
5020
|
}
|
|
2452
5021
|
| {
|
|
2453
|
-
type: 'done syncing
|
|
5022
|
+
type: 'done syncing value'
|
|
5023
|
+
}
|
|
5024
|
+
| {
|
|
5025
|
+
type: 'syncing value'
|
|
2454
5026
|
}
|
|
2455
5027
|
| {
|
|
2456
5028
|
type: 'behavior event'
|
|
@@ -2590,6 +5162,7 @@ declare const editorMachine: StateMachine<
|
|
|
2590
5162
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2591
5163
|
keyGenerator: () => string
|
|
2592
5164
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5165
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2593
5166
|
schema: EditorSchema
|
|
2594
5167
|
initialReadOnly: boolean
|
|
2595
5168
|
maxBlocks: number | undefined
|
|
@@ -2607,6 +5180,7 @@ declare const editorMachine: StateMachine<
|
|
|
2607
5180
|
},
|
|
2608
5181
|
| InternalPatchEvent
|
|
2609
5182
|
| MutationEvent
|
|
5183
|
+
| PatchesEvent
|
|
2610
5184
|
| {
|
|
2611
5185
|
type: 'add behavior'
|
|
2612
5186
|
behavior: Behavior
|
|
@@ -2623,10 +5197,6 @@ declare const editorMachine: StateMachine<
|
|
|
2623
5197
|
type: 'update schema'
|
|
2624
5198
|
schema: EditorSchema
|
|
2625
5199
|
}
|
|
2626
|
-
| {
|
|
2627
|
-
type: 'update behaviors'
|
|
2628
|
-
behaviors: Array<Behavior>
|
|
2629
|
-
}
|
|
2630
5200
|
| {
|
|
2631
5201
|
type: 'update key generator'
|
|
2632
5202
|
keyGenerator: () => string
|
|
@@ -2639,7 +5209,6 @@ declare const editorMachine: StateMachine<
|
|
|
2639
5209
|
type: 'update maxBlocks'
|
|
2640
5210
|
maxBlocks: number | undefined
|
|
2641
5211
|
}
|
|
2642
|
-
| PatchesEvent
|
|
2643
5212
|
| {
|
|
2644
5213
|
type: 'blur'
|
|
2645
5214
|
editor: PortableTextSlateEditor
|
|
@@ -2655,7 +5224,10 @@ declare const editorMachine: StateMachine<
|
|
|
2655
5224
|
type: 'done normalizing'
|
|
2656
5225
|
}
|
|
2657
5226
|
| {
|
|
2658
|
-
type: 'done syncing
|
|
5227
|
+
type: 'done syncing value'
|
|
5228
|
+
}
|
|
5229
|
+
| {
|
|
5230
|
+
type: 'syncing value'
|
|
2659
5231
|
}
|
|
2660
5232
|
| {
|
|
2661
5233
|
type: 'behavior event'
|
|
@@ -2794,6 +5366,7 @@ declare const editorMachine: StateMachine<
|
|
|
2794
5366
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2795
5367
|
keyGenerator: () => string
|
|
2796
5368
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5369
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2797
5370
|
schema: EditorSchema
|
|
2798
5371
|
initialReadOnly: boolean
|
|
2799
5372
|
maxBlocks: number | undefined
|
|
@@ -2810,6 +5383,7 @@ declare const editorMachine: StateMachine<
|
|
|
2810
5383
|
},
|
|
2811
5384
|
| InternalPatchEvent
|
|
2812
5385
|
| MutationEvent
|
|
5386
|
+
| PatchesEvent
|
|
2813
5387
|
| {
|
|
2814
5388
|
type: 'add behavior'
|
|
2815
5389
|
behavior: Behavior
|
|
@@ -2826,10 +5400,6 @@ declare const editorMachine: StateMachine<
|
|
|
2826
5400
|
type: 'update schema'
|
|
2827
5401
|
schema: EditorSchema
|
|
2828
5402
|
}
|
|
2829
|
-
| {
|
|
2830
|
-
type: 'update behaviors'
|
|
2831
|
-
behaviors: Array<Behavior>
|
|
2832
|
-
}
|
|
2833
5403
|
| {
|
|
2834
5404
|
type: 'update key generator'
|
|
2835
5405
|
keyGenerator: () => string
|
|
@@ -2842,7 +5412,6 @@ declare const editorMachine: StateMachine<
|
|
|
2842
5412
|
type: 'update maxBlocks'
|
|
2843
5413
|
maxBlocks: number | undefined
|
|
2844
5414
|
}
|
|
2845
|
-
| PatchesEvent
|
|
2846
5415
|
| {
|
|
2847
5416
|
type: 'blur'
|
|
2848
5417
|
editor: PortableTextSlateEditor
|
|
@@ -2858,7 +5427,10 @@ declare const editorMachine: StateMachine<
|
|
|
2858
5427
|
type: 'done normalizing'
|
|
2859
5428
|
}
|
|
2860
5429
|
| {
|
|
2861
|
-
type: 'done syncing
|
|
5430
|
+
type: 'done syncing value'
|
|
5431
|
+
}
|
|
5432
|
+
| {
|
|
5433
|
+
type: 'syncing value'
|
|
2862
5434
|
}
|
|
2863
5435
|
| {
|
|
2864
5436
|
type: 'behavior event'
|
|
@@ -2997,6 +5569,7 @@ declare const editorMachine: StateMachine<
|
|
|
2997
5569
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2998
5570
|
keyGenerator: () => string
|
|
2999
5571
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5572
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3000
5573
|
schema: EditorSchema
|
|
3001
5574
|
initialReadOnly: boolean
|
|
3002
5575
|
maxBlocks: number | undefined
|
|
@@ -3014,6 +5587,7 @@ declare const editorMachine: StateMachine<
|
|
|
3014
5587
|
},
|
|
3015
5588
|
| InternalPatchEvent
|
|
3016
5589
|
| MutationEvent
|
|
5590
|
+
| PatchesEvent
|
|
3017
5591
|
| {
|
|
3018
5592
|
type: 'add behavior'
|
|
3019
5593
|
behavior: Behavior
|
|
@@ -3030,10 +5604,6 @@ declare const editorMachine: StateMachine<
|
|
|
3030
5604
|
type: 'update schema'
|
|
3031
5605
|
schema: EditorSchema
|
|
3032
5606
|
}
|
|
3033
|
-
| {
|
|
3034
|
-
type: 'update behaviors'
|
|
3035
|
-
behaviors: Array<Behavior>
|
|
3036
|
-
}
|
|
3037
5607
|
| {
|
|
3038
5608
|
type: 'update key generator'
|
|
3039
5609
|
keyGenerator: () => string
|
|
@@ -3046,7 +5616,6 @@ declare const editorMachine: StateMachine<
|
|
|
3046
5616
|
type: 'update maxBlocks'
|
|
3047
5617
|
maxBlocks: number | undefined
|
|
3048
5618
|
}
|
|
3049
|
-
| PatchesEvent
|
|
3050
5619
|
| {
|
|
3051
5620
|
type: 'blur'
|
|
3052
5621
|
editor: PortableTextSlateEditor
|
|
@@ -3062,7 +5631,10 @@ declare const editorMachine: StateMachine<
|
|
|
3062
5631
|
type: 'done normalizing'
|
|
3063
5632
|
}
|
|
3064
5633
|
| {
|
|
3065
|
-
type: 'done syncing
|
|
5634
|
+
type: 'done syncing value'
|
|
5635
|
+
}
|
|
5636
|
+
| {
|
|
5637
|
+
type: 'syncing value'
|
|
3066
5638
|
}
|
|
3067
5639
|
| {
|
|
3068
5640
|
type: 'behavior event'
|
|
@@ -3199,210 +5771,6 @@ declare const editorMachine: StateMachine<
|
|
|
3199
5771
|
readonly 'remove behavior': {
|
|
3200
5772
|
readonly actions: 'remove behavior from context'
|
|
3201
5773
|
}
|
|
3202
|
-
readonly 'patches': {
|
|
3203
|
-
readonly actions: ActionFunction<
|
|
3204
|
-
{
|
|
3205
|
-
behaviors: Set<Behavior>
|
|
3206
|
-
converters: Set<Converter>
|
|
3207
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3208
|
-
keyGenerator: () => string
|
|
3209
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3210
|
-
schema: EditorSchema
|
|
3211
|
-
initialReadOnly: boolean
|
|
3212
|
-
maxBlocks: number | undefined
|
|
3213
|
-
selection: EditorSelection
|
|
3214
|
-
incomingValue: Array<PortableTextBlock> | undefined
|
|
3215
|
-
internalDrag?: {
|
|
3216
|
-
ghost?: HTMLElement
|
|
3217
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3218
|
-
}
|
|
3219
|
-
slateEditor?: PortableTextSlateEditor
|
|
3220
|
-
},
|
|
3221
|
-
PatchesEvent,
|
|
3222
|
-
| InternalPatchEvent
|
|
3223
|
-
| MutationEvent
|
|
3224
|
-
| {
|
|
3225
|
-
type: 'add behavior'
|
|
3226
|
-
behavior: Behavior
|
|
3227
|
-
}
|
|
3228
|
-
| {
|
|
3229
|
-
type: 'remove behavior'
|
|
3230
|
-
behavior: Behavior
|
|
3231
|
-
}
|
|
3232
|
-
| {
|
|
3233
|
-
type: 'update readOnly'
|
|
3234
|
-
readOnly: boolean
|
|
3235
|
-
}
|
|
3236
|
-
| {
|
|
3237
|
-
type: 'update schema'
|
|
3238
|
-
schema: EditorSchema
|
|
3239
|
-
}
|
|
3240
|
-
| {
|
|
3241
|
-
type: 'update behaviors'
|
|
3242
|
-
behaviors: Array<Behavior>
|
|
3243
|
-
}
|
|
3244
|
-
| {
|
|
3245
|
-
type: 'update key generator'
|
|
3246
|
-
keyGenerator: () => string
|
|
3247
|
-
}
|
|
3248
|
-
| {
|
|
3249
|
-
type: 'update value'
|
|
3250
|
-
value: Array<PortableTextBlock> | undefined
|
|
3251
|
-
}
|
|
3252
|
-
| {
|
|
3253
|
-
type: 'update maxBlocks'
|
|
3254
|
-
maxBlocks: number | undefined
|
|
3255
|
-
}
|
|
3256
|
-
| PatchesEvent
|
|
3257
|
-
| {
|
|
3258
|
-
type: 'blur'
|
|
3259
|
-
editor: PortableTextSlateEditor
|
|
3260
|
-
}
|
|
3261
|
-
| {
|
|
3262
|
-
type: 'focus'
|
|
3263
|
-
editor: PortableTextSlateEditor
|
|
3264
|
-
}
|
|
3265
|
-
| {
|
|
3266
|
-
type: 'normalizing'
|
|
3267
|
-
}
|
|
3268
|
-
| {
|
|
3269
|
-
type: 'done normalizing'
|
|
3270
|
-
}
|
|
3271
|
-
| {
|
|
3272
|
-
type: 'done syncing initial value'
|
|
3273
|
-
}
|
|
3274
|
-
| {
|
|
3275
|
-
type: 'behavior event'
|
|
3276
|
-
behaviorEvent: BehaviorEvent
|
|
3277
|
-
editor: PortableTextSlateEditor
|
|
3278
|
-
nativeEvent?: {
|
|
3279
|
-
preventDefault: () => void
|
|
3280
|
-
}
|
|
3281
|
-
}
|
|
3282
|
-
| {
|
|
3283
|
-
type: 'notify.patch'
|
|
3284
|
-
patch: Patch
|
|
3285
|
-
}
|
|
3286
|
-
| {
|
|
3287
|
-
type: 'notify.mutation'
|
|
3288
|
-
patches: Array<Patch>
|
|
3289
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3290
|
-
value: Array<PortableTextBlock> | undefined
|
|
3291
|
-
}
|
|
3292
|
-
| {
|
|
3293
|
-
type: 'notify.blurred'
|
|
3294
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3295
|
-
}
|
|
3296
|
-
| {
|
|
3297
|
-
type: 'notify.done loading'
|
|
3298
|
-
}
|
|
3299
|
-
| {
|
|
3300
|
-
type: 'notify.editable'
|
|
3301
|
-
}
|
|
3302
|
-
| {
|
|
3303
|
-
type: 'notify.error'
|
|
3304
|
-
name: string
|
|
3305
|
-
description: string
|
|
3306
|
-
data: unknown
|
|
3307
|
-
}
|
|
3308
|
-
| {
|
|
3309
|
-
type: 'notify.focused'
|
|
3310
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3311
|
-
}
|
|
3312
|
-
| {
|
|
3313
|
-
type: 'notify.invalid value'
|
|
3314
|
-
resolution: InvalidValueResolution | null
|
|
3315
|
-
value: Array<PortableTextBlock> | undefined
|
|
3316
|
-
}
|
|
3317
|
-
| {
|
|
3318
|
-
type: 'notify.loading'
|
|
3319
|
-
}
|
|
3320
|
-
| {
|
|
3321
|
-
type: 'notify.read only'
|
|
3322
|
-
}
|
|
3323
|
-
| {
|
|
3324
|
-
type: 'notify.ready'
|
|
3325
|
-
}
|
|
3326
|
-
| {
|
|
3327
|
-
type: 'notify.selection'
|
|
3328
|
-
selection: EditorSelection
|
|
3329
|
-
}
|
|
3330
|
-
| {
|
|
3331
|
-
type: 'notify.value changed'
|
|
3332
|
-
value: Array<PortableTextBlock> | undefined
|
|
3333
|
-
}
|
|
3334
|
-
| {
|
|
3335
|
-
type: 'notify.unset'
|
|
3336
|
-
previousValue: Array<PortableTextBlock>
|
|
3337
|
-
}
|
|
3338
|
-
| {
|
|
3339
|
-
type: 'dragstart'
|
|
3340
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3341
|
-
ghost?: HTMLElement
|
|
3342
|
-
}
|
|
3343
|
-
| {
|
|
3344
|
-
type: 'dragend'
|
|
3345
|
-
}
|
|
3346
|
-
| {
|
|
3347
|
-
type: 'drop'
|
|
3348
|
-
},
|
|
3349
|
-
undefined,
|
|
3350
|
-
never,
|
|
3351
|
-
never,
|
|
3352
|
-
never,
|
|
3353
|
-
never,
|
|
3354
|
-
| PatchEvent
|
|
3355
|
-
| InternalPatchEvent
|
|
3356
|
-
| MutationEvent
|
|
3357
|
-
| PatchesEvent
|
|
3358
|
-
| {
|
|
3359
|
-
type: 'blurred'
|
|
3360
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3361
|
-
}
|
|
3362
|
-
| {
|
|
3363
|
-
type: 'done loading'
|
|
3364
|
-
}
|
|
3365
|
-
| {
|
|
3366
|
-
type: 'editable'
|
|
3367
|
-
}
|
|
3368
|
-
| {
|
|
3369
|
-
type: 'error'
|
|
3370
|
-
name: string
|
|
3371
|
-
description: string
|
|
3372
|
-
data: unknown
|
|
3373
|
-
}
|
|
3374
|
-
| {
|
|
3375
|
-
type: 'focused'
|
|
3376
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3377
|
-
}
|
|
3378
|
-
| {
|
|
3379
|
-
type: 'invalid value'
|
|
3380
|
-
resolution: InvalidValueResolution | null
|
|
3381
|
-
value: Array<PortableTextBlock> | undefined
|
|
3382
|
-
}
|
|
3383
|
-
| {
|
|
3384
|
-
type: 'loading'
|
|
3385
|
-
}
|
|
3386
|
-
| {
|
|
3387
|
-
type: 'read only'
|
|
3388
|
-
}
|
|
3389
|
-
| {
|
|
3390
|
-
type: 'ready'
|
|
3391
|
-
}
|
|
3392
|
-
| {
|
|
3393
|
-
type: 'selection'
|
|
3394
|
-
selection: EditorSelection
|
|
3395
|
-
}
|
|
3396
|
-
| {
|
|
3397
|
-
type: 'value changed'
|
|
3398
|
-
value: Array<PortableTextBlock> | undefined
|
|
3399
|
-
}
|
|
3400
|
-
| UnsetEvent
|
|
3401
|
-
>
|
|
3402
|
-
}
|
|
3403
|
-
readonly 'update behaviors': {
|
|
3404
|
-
readonly actions: 'assign behaviors'
|
|
3405
|
-
}
|
|
3406
5774
|
readonly 'update key generator': {
|
|
3407
5775
|
readonly actions: ActionFunction<
|
|
3408
5776
|
{
|
|
@@ -3411,6 +5779,7 @@ declare const editorMachine: StateMachine<
|
|
|
3411
5779
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3412
5780
|
keyGenerator: () => string
|
|
3413
5781
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5782
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3414
5783
|
schema: EditorSchema
|
|
3415
5784
|
initialReadOnly: boolean
|
|
3416
5785
|
maxBlocks: number | undefined
|
|
@@ -3428,6 +5797,7 @@ declare const editorMachine: StateMachine<
|
|
|
3428
5797
|
},
|
|
3429
5798
|
| InternalPatchEvent
|
|
3430
5799
|
| MutationEvent
|
|
5800
|
+
| PatchesEvent
|
|
3431
5801
|
| {
|
|
3432
5802
|
type: 'add behavior'
|
|
3433
5803
|
behavior: Behavior
|
|
@@ -3444,10 +5814,6 @@ declare const editorMachine: StateMachine<
|
|
|
3444
5814
|
type: 'update schema'
|
|
3445
5815
|
schema: EditorSchema
|
|
3446
5816
|
}
|
|
3447
|
-
| {
|
|
3448
|
-
type: 'update behaviors'
|
|
3449
|
-
behaviors: Array<Behavior>
|
|
3450
|
-
}
|
|
3451
5817
|
| {
|
|
3452
5818
|
type: 'update key generator'
|
|
3453
5819
|
keyGenerator: () => string
|
|
@@ -3460,7 +5826,6 @@ declare const editorMachine: StateMachine<
|
|
|
3460
5826
|
type: 'update maxBlocks'
|
|
3461
5827
|
maxBlocks: number | undefined
|
|
3462
5828
|
}
|
|
3463
|
-
| PatchesEvent
|
|
3464
5829
|
| {
|
|
3465
5830
|
type: 'blur'
|
|
3466
5831
|
editor: PortableTextSlateEditor
|
|
@@ -3476,7 +5841,10 @@ declare const editorMachine: StateMachine<
|
|
|
3476
5841
|
type: 'done normalizing'
|
|
3477
5842
|
}
|
|
3478
5843
|
| {
|
|
3479
|
-
type: 'done syncing
|
|
5844
|
+
type: 'done syncing value'
|
|
5845
|
+
}
|
|
5846
|
+
| {
|
|
5847
|
+
type: 'syncing value'
|
|
3480
5848
|
}
|
|
3481
5849
|
| {
|
|
3482
5850
|
type: 'behavior event'
|
|
@@ -3572,6 +5940,7 @@ declare const editorMachine: StateMachine<
|
|
|
3572
5940
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3573
5941
|
keyGenerator: () => string
|
|
3574
5942
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5943
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3575
5944
|
schema: EditorSchema
|
|
3576
5945
|
initialReadOnly: boolean
|
|
3577
5946
|
maxBlocks: number | undefined
|
|
@@ -3589,6 +5958,7 @@ declare const editorMachine: StateMachine<
|
|
|
3589
5958
|
},
|
|
3590
5959
|
| InternalPatchEvent
|
|
3591
5960
|
| MutationEvent
|
|
5961
|
+
| PatchesEvent
|
|
3592
5962
|
| {
|
|
3593
5963
|
type: 'add behavior'
|
|
3594
5964
|
behavior: Behavior
|
|
@@ -3605,10 +5975,6 @@ declare const editorMachine: StateMachine<
|
|
|
3605
5975
|
type: 'update schema'
|
|
3606
5976
|
schema: EditorSchema
|
|
3607
5977
|
}
|
|
3608
|
-
| {
|
|
3609
|
-
type: 'update behaviors'
|
|
3610
|
-
behaviors: Array<Behavior>
|
|
3611
|
-
}
|
|
3612
5978
|
| {
|
|
3613
5979
|
type: 'update key generator'
|
|
3614
5980
|
keyGenerator: () => string
|
|
@@ -3621,7 +5987,6 @@ declare const editorMachine: StateMachine<
|
|
|
3621
5987
|
type: 'update maxBlocks'
|
|
3622
5988
|
maxBlocks: number | undefined
|
|
3623
5989
|
}
|
|
3624
|
-
| PatchesEvent
|
|
3625
5990
|
| {
|
|
3626
5991
|
type: 'blur'
|
|
3627
5992
|
editor: PortableTextSlateEditor
|
|
@@ -3637,7 +6002,10 @@ declare const editorMachine: StateMachine<
|
|
|
3637
6002
|
type: 'done normalizing'
|
|
3638
6003
|
}
|
|
3639
6004
|
| {
|
|
3640
|
-
type: 'done syncing
|
|
6005
|
+
type: 'done syncing value'
|
|
6006
|
+
}
|
|
6007
|
+
| {
|
|
6008
|
+
type: 'syncing value'
|
|
3641
6009
|
}
|
|
3642
6010
|
| {
|
|
3643
6011
|
type: 'behavior event'
|
|
@@ -3730,6 +6098,7 @@ declare const editorMachine: StateMachine<
|
|
|
3730
6098
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3731
6099
|
keyGenerator: () => string
|
|
3732
6100
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6101
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3733
6102
|
schema: EditorSchema
|
|
3734
6103
|
initialReadOnly: boolean
|
|
3735
6104
|
maxBlocks: number | undefined
|
|
@@ -3747,6 +6116,7 @@ declare const editorMachine: StateMachine<
|
|
|
3747
6116
|
},
|
|
3748
6117
|
| InternalPatchEvent
|
|
3749
6118
|
| MutationEvent
|
|
6119
|
+
| PatchesEvent
|
|
3750
6120
|
| {
|
|
3751
6121
|
type: 'add behavior'
|
|
3752
6122
|
behavior: Behavior
|
|
@@ -3763,10 +6133,6 @@ declare const editorMachine: StateMachine<
|
|
|
3763
6133
|
type: 'update schema'
|
|
3764
6134
|
schema: EditorSchema
|
|
3765
6135
|
}
|
|
3766
|
-
| {
|
|
3767
|
-
type: 'update behaviors'
|
|
3768
|
-
behaviors: Array<Behavior>
|
|
3769
|
-
}
|
|
3770
6136
|
| {
|
|
3771
6137
|
type: 'update key generator'
|
|
3772
6138
|
keyGenerator: () => string
|
|
@@ -3779,7 +6145,6 @@ declare const editorMachine: StateMachine<
|
|
|
3779
6145
|
type: 'update maxBlocks'
|
|
3780
6146
|
maxBlocks: number | undefined
|
|
3781
6147
|
}
|
|
3782
|
-
| PatchesEvent
|
|
3783
6148
|
| {
|
|
3784
6149
|
type: 'blur'
|
|
3785
6150
|
editor: PortableTextSlateEditor
|
|
@@ -3795,7 +6160,10 @@ declare const editorMachine: StateMachine<
|
|
|
3795
6160
|
type: 'done normalizing'
|
|
3796
6161
|
}
|
|
3797
6162
|
| {
|
|
3798
|
-
type: 'done syncing
|
|
6163
|
+
type: 'done syncing value'
|
|
6164
|
+
}
|
|
6165
|
+
| {
|
|
6166
|
+
type: 'syncing value'
|
|
3799
6167
|
}
|
|
3800
6168
|
| {
|
|
3801
6169
|
type: 'behavior event'
|
|
@@ -3900,6 +6268,7 @@ declare const editorMachine: StateMachine<
|
|
|
3900
6268
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3901
6269
|
keyGenerator: () => string
|
|
3902
6270
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6271
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3903
6272
|
schema: EditorSchema
|
|
3904
6273
|
initialReadOnly: boolean
|
|
3905
6274
|
maxBlocks: number | undefined
|
|
@@ -3925,7 +6294,7 @@ declare const editorMachine: StateMachine<
|
|
|
3925
6294
|
readonly states: {
|
|
3926
6295
|
readonly 'determine initial edit mode': {
|
|
3927
6296
|
readonly on: {
|
|
3928
|
-
readonly 'done syncing
|
|
6297
|
+
readonly 'done syncing value': readonly [
|
|
3929
6298
|
{
|
|
3930
6299
|
readonly target: '#editor.edit mode.read only.read only'
|
|
3931
6300
|
readonly guard: ({
|
|
@@ -3939,6 +6308,7 @@ declare const editorMachine: StateMachine<
|
|
|
3939
6308
|
pendingEvents: Array<
|
|
3940
6309
|
InternalPatchEvent | MutationEvent
|
|
3941
6310
|
>
|
|
6311
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3942
6312
|
schema: EditorSchema
|
|
3943
6313
|
initialReadOnly: boolean
|
|
3944
6314
|
maxBlocks: number | undefined
|
|
@@ -3951,7 +6321,7 @@ declare const editorMachine: StateMachine<
|
|
|
3951
6321
|
slateEditor?: PortableTextSlateEditor
|
|
3952
6322
|
},
|
|
3953
6323
|
{
|
|
3954
|
-
type: 'done syncing
|
|
6324
|
+
type: 'done syncing value'
|
|
3955
6325
|
}
|
|
3956
6326
|
>) => boolean
|
|
3957
6327
|
},
|
|
@@ -3973,6 +6343,7 @@ declare const editorMachine: StateMachine<
|
|
|
3973
6343
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3974
6344
|
keyGenerator: () => string
|
|
3975
6345
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6346
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3976
6347
|
schema: EditorSchema
|
|
3977
6348
|
initialReadOnly: boolean
|
|
3978
6349
|
maxBlocks: number | undefined
|
|
@@ -4008,6 +6379,7 @@ declare const editorMachine: StateMachine<
|
|
|
4008
6379
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4009
6380
|
keyGenerator: () => string
|
|
4010
6381
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6382
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4011
6383
|
schema: EditorSchema
|
|
4012
6384
|
initialReadOnly: boolean
|
|
4013
6385
|
maxBlocks: number | undefined
|
|
@@ -4043,6 +6415,7 @@ declare const editorMachine: StateMachine<
|
|
|
4043
6415
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4044
6416
|
keyGenerator: () => string
|
|
4045
6417
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6418
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4046
6419
|
schema: EditorSchema
|
|
4047
6420
|
initialReadOnly: boolean
|
|
4048
6421
|
maxBlocks: number | undefined
|
|
@@ -4060,6 +6433,7 @@ declare const editorMachine: StateMachine<
|
|
|
4060
6433
|
},
|
|
4061
6434
|
| InternalPatchEvent
|
|
4062
6435
|
| MutationEvent
|
|
6436
|
+
| PatchesEvent
|
|
4063
6437
|
| {
|
|
4064
6438
|
type: 'add behavior'
|
|
4065
6439
|
behavior: Behavior
|
|
@@ -4076,10 +6450,6 @@ declare const editorMachine: StateMachine<
|
|
|
4076
6450
|
type: 'update schema'
|
|
4077
6451
|
schema: EditorSchema
|
|
4078
6452
|
}
|
|
4079
|
-
| {
|
|
4080
|
-
type: 'update behaviors'
|
|
4081
|
-
behaviors: Array<Behavior>
|
|
4082
|
-
}
|
|
4083
6453
|
| {
|
|
4084
6454
|
type: 'update key generator'
|
|
4085
6455
|
keyGenerator: () => string
|
|
@@ -4092,7 +6462,6 @@ declare const editorMachine: StateMachine<
|
|
|
4092
6462
|
type: 'update maxBlocks'
|
|
4093
6463
|
maxBlocks: number | undefined
|
|
4094
6464
|
}
|
|
4095
|
-
| PatchesEvent
|
|
4096
6465
|
| {
|
|
4097
6466
|
type: 'blur'
|
|
4098
6467
|
editor: PortableTextSlateEditor
|
|
@@ -4108,7 +6477,10 @@ declare const editorMachine: StateMachine<
|
|
|
4108
6477
|
type: 'done normalizing'
|
|
4109
6478
|
}
|
|
4110
6479
|
| {
|
|
4111
|
-
type: 'done syncing
|
|
6480
|
+
type: 'done syncing value'
|
|
6481
|
+
}
|
|
6482
|
+
| {
|
|
6483
|
+
type: 'syncing value'
|
|
4112
6484
|
}
|
|
4113
6485
|
| {
|
|
4114
6486
|
type: 'behavior event'
|
|
@@ -4210,6 +6582,7 @@ declare const editorMachine: StateMachine<
|
|
|
4210
6582
|
pendingEvents: Array<
|
|
4211
6583
|
InternalPatchEvent | MutationEvent
|
|
4212
6584
|
>
|
|
6585
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4213
6586
|
schema: EditorSchema
|
|
4214
6587
|
initialReadOnly: boolean
|
|
4215
6588
|
maxBlocks: number | undefined
|
|
@@ -4228,6 +6601,7 @@ declare const editorMachine: StateMachine<
|
|
|
4228
6601
|
},
|
|
4229
6602
|
| InternalPatchEvent
|
|
4230
6603
|
| MutationEvent
|
|
6604
|
+
| PatchesEvent
|
|
4231
6605
|
| {
|
|
4232
6606
|
type: 'add behavior'
|
|
4233
6607
|
behavior: Behavior
|
|
@@ -4244,10 +6618,6 @@ declare const editorMachine: StateMachine<
|
|
|
4244
6618
|
type: 'update schema'
|
|
4245
6619
|
schema: EditorSchema
|
|
4246
6620
|
}
|
|
4247
|
-
| {
|
|
4248
|
-
type: 'update behaviors'
|
|
4249
|
-
behaviors: Array<Behavior>
|
|
4250
|
-
}
|
|
4251
6621
|
| {
|
|
4252
6622
|
type: 'update key generator'
|
|
4253
6623
|
keyGenerator: () => string
|
|
@@ -4260,7 +6630,6 @@ declare const editorMachine: StateMachine<
|
|
|
4260
6630
|
type: 'update maxBlocks'
|
|
4261
6631
|
maxBlocks: number | undefined
|
|
4262
6632
|
}
|
|
4263
|
-
| PatchesEvent
|
|
4264
6633
|
| {
|
|
4265
6634
|
type: 'blur'
|
|
4266
6635
|
editor: PortableTextSlateEditor
|
|
@@ -4276,7 +6645,10 @@ declare const editorMachine: StateMachine<
|
|
|
4276
6645
|
type: 'done normalizing'
|
|
4277
6646
|
}
|
|
4278
6647
|
| {
|
|
4279
|
-
type: 'done syncing
|
|
6648
|
+
type: 'done syncing value'
|
|
6649
|
+
}
|
|
6650
|
+
| {
|
|
6651
|
+
type: 'syncing value'
|
|
4280
6652
|
}
|
|
4281
6653
|
| {
|
|
4282
6654
|
type: 'behavior event'
|
|
@@ -4400,6 +6772,7 @@ declare const editorMachine: StateMachine<
|
|
|
4400
6772
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4401
6773
|
keyGenerator: () => string
|
|
4402
6774
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6775
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4403
6776
|
schema: EditorSchema
|
|
4404
6777
|
initialReadOnly: boolean
|
|
4405
6778
|
maxBlocks: number | undefined
|
|
@@ -4413,6 +6786,7 @@ declare const editorMachine: StateMachine<
|
|
|
4413
6786
|
},
|
|
4414
6787
|
| InternalPatchEvent
|
|
4415
6788
|
| MutationEvent
|
|
6789
|
+
| PatchesEvent
|
|
4416
6790
|
| {
|
|
4417
6791
|
type: 'add behavior'
|
|
4418
6792
|
behavior: Behavior
|
|
@@ -4429,10 +6803,6 @@ declare const editorMachine: StateMachine<
|
|
|
4429
6803
|
type: 'update schema'
|
|
4430
6804
|
schema: EditorSchema
|
|
4431
6805
|
}
|
|
4432
|
-
| {
|
|
4433
|
-
type: 'update behaviors'
|
|
4434
|
-
behaviors: Array<Behavior>
|
|
4435
|
-
}
|
|
4436
6806
|
| {
|
|
4437
6807
|
type: 'update key generator'
|
|
4438
6808
|
keyGenerator: () => string
|
|
@@ -4445,7 +6815,6 @@ declare const editorMachine: StateMachine<
|
|
|
4445
6815
|
type: 'update maxBlocks'
|
|
4446
6816
|
maxBlocks: number | undefined
|
|
4447
6817
|
}
|
|
4448
|
-
| PatchesEvent
|
|
4449
6818
|
| {
|
|
4450
6819
|
type: 'blur'
|
|
4451
6820
|
editor: PortableTextSlateEditor
|
|
@@ -4461,7 +6830,10 @@ declare const editorMachine: StateMachine<
|
|
|
4461
6830
|
type: 'done normalizing'
|
|
4462
6831
|
}
|
|
4463
6832
|
| {
|
|
4464
|
-
type: 'done syncing
|
|
6833
|
+
type: 'done syncing value'
|
|
6834
|
+
}
|
|
6835
|
+
| {
|
|
6836
|
+
type: 'syncing value'
|
|
4465
6837
|
}
|
|
4466
6838
|
| {
|
|
4467
6839
|
type: 'behavior event'
|
|
@@ -4540,6 +6912,7 @@ declare const editorMachine: StateMachine<
|
|
|
4540
6912
|
},
|
|
4541
6913
|
| InternalPatchEvent
|
|
4542
6914
|
| MutationEvent
|
|
6915
|
+
| PatchesEvent
|
|
4543
6916
|
| {
|
|
4544
6917
|
type: 'add behavior'
|
|
4545
6918
|
behavior: Behavior
|
|
@@ -4556,10 +6929,6 @@ declare const editorMachine: StateMachine<
|
|
|
4556
6929
|
type: 'update schema'
|
|
4557
6930
|
schema: EditorSchema
|
|
4558
6931
|
}
|
|
4559
|
-
| {
|
|
4560
|
-
type: 'update behaviors'
|
|
4561
|
-
behaviors: Array<Behavior>
|
|
4562
|
-
}
|
|
4563
6932
|
| {
|
|
4564
6933
|
type: 'update key generator'
|
|
4565
6934
|
keyGenerator: () => string
|
|
@@ -4572,7 +6941,6 @@ declare const editorMachine: StateMachine<
|
|
|
4572
6941
|
type: 'update maxBlocks'
|
|
4573
6942
|
maxBlocks: number | undefined
|
|
4574
6943
|
}
|
|
4575
|
-
| PatchesEvent
|
|
4576
6944
|
| {
|
|
4577
6945
|
type: 'blur'
|
|
4578
6946
|
editor: PortableTextSlateEditor
|
|
@@ -4588,7 +6956,10 @@ declare const editorMachine: StateMachine<
|
|
|
4588
6956
|
type: 'done normalizing'
|
|
4589
6957
|
}
|
|
4590
6958
|
| {
|
|
4591
|
-
type: 'done syncing
|
|
6959
|
+
type: 'done syncing value'
|
|
6960
|
+
}
|
|
6961
|
+
| {
|
|
6962
|
+
type: 'syncing value'
|
|
4592
6963
|
}
|
|
4593
6964
|
| {
|
|
4594
6965
|
type: 'behavior event'
|
|
@@ -4673,6 +7044,7 @@ declare const editorMachine: StateMachine<
|
|
|
4673
7044
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4674
7045
|
keyGenerator: () => string
|
|
4675
7046
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7047
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4676
7048
|
schema: EditorSchema
|
|
4677
7049
|
initialReadOnly: boolean
|
|
4678
7050
|
maxBlocks: number | undefined
|
|
@@ -4686,6 +7058,7 @@ declare const editorMachine: StateMachine<
|
|
|
4686
7058
|
},
|
|
4687
7059
|
| InternalPatchEvent
|
|
4688
7060
|
| MutationEvent
|
|
7061
|
+
| PatchesEvent
|
|
4689
7062
|
| {
|
|
4690
7063
|
type: 'add behavior'
|
|
4691
7064
|
behavior: Behavior
|
|
@@ -4702,10 +7075,6 @@ declare const editorMachine: StateMachine<
|
|
|
4702
7075
|
type: 'update schema'
|
|
4703
7076
|
schema: EditorSchema
|
|
4704
7077
|
}
|
|
4705
|
-
| {
|
|
4706
|
-
type: 'update behaviors'
|
|
4707
|
-
behaviors: Array<Behavior>
|
|
4708
|
-
}
|
|
4709
7078
|
| {
|
|
4710
7079
|
type: 'update key generator'
|
|
4711
7080
|
keyGenerator: () => string
|
|
@@ -4718,7 +7087,6 @@ declare const editorMachine: StateMachine<
|
|
|
4718
7087
|
type: 'update maxBlocks'
|
|
4719
7088
|
maxBlocks: number | undefined
|
|
4720
7089
|
}
|
|
4721
|
-
| PatchesEvent
|
|
4722
7090
|
| {
|
|
4723
7091
|
type: 'blur'
|
|
4724
7092
|
editor: PortableTextSlateEditor
|
|
@@ -4734,7 +7102,10 @@ declare const editorMachine: StateMachine<
|
|
|
4734
7102
|
type: 'done normalizing'
|
|
4735
7103
|
}
|
|
4736
7104
|
| {
|
|
4737
|
-
type: 'done syncing
|
|
7105
|
+
type: 'done syncing value'
|
|
7106
|
+
}
|
|
7107
|
+
| {
|
|
7108
|
+
type: 'syncing value'
|
|
4738
7109
|
}
|
|
4739
7110
|
| {
|
|
4740
7111
|
type: 'behavior event'
|
|
@@ -4813,6 +7184,7 @@ declare const editorMachine: StateMachine<
|
|
|
4813
7184
|
},
|
|
4814
7185
|
| InternalPatchEvent
|
|
4815
7186
|
| MutationEvent
|
|
7187
|
+
| PatchesEvent
|
|
4816
7188
|
| {
|
|
4817
7189
|
type: 'add behavior'
|
|
4818
7190
|
behavior: Behavior
|
|
@@ -4829,10 +7201,6 @@ declare const editorMachine: StateMachine<
|
|
|
4829
7201
|
type: 'update schema'
|
|
4830
7202
|
schema: EditorSchema
|
|
4831
7203
|
}
|
|
4832
|
-
| {
|
|
4833
|
-
type: 'update behaviors'
|
|
4834
|
-
behaviors: Array<Behavior>
|
|
4835
|
-
}
|
|
4836
7204
|
| {
|
|
4837
7205
|
type: 'update key generator'
|
|
4838
7206
|
keyGenerator: () => string
|
|
@@ -4845,7 +7213,6 @@ declare const editorMachine: StateMachine<
|
|
|
4845
7213
|
type: 'update maxBlocks'
|
|
4846
7214
|
maxBlocks: number | undefined
|
|
4847
7215
|
}
|
|
4848
|
-
| PatchesEvent
|
|
4849
7216
|
| {
|
|
4850
7217
|
type: 'blur'
|
|
4851
7218
|
editor: PortableTextSlateEditor
|
|
@@ -4861,7 +7228,10 @@ declare const editorMachine: StateMachine<
|
|
|
4861
7228
|
type: 'done normalizing'
|
|
4862
7229
|
}
|
|
4863
7230
|
| {
|
|
4864
|
-
type: 'done syncing
|
|
7231
|
+
type: 'done syncing value'
|
|
7232
|
+
}
|
|
7233
|
+
| {
|
|
7234
|
+
type: 'syncing value'
|
|
4865
7235
|
}
|
|
4866
7236
|
| {
|
|
4867
7237
|
type: 'behavior event'
|
|
@@ -4964,7 +7334,11 @@ declare const editorMachine: StateMachine<
|
|
|
4964
7334
|
readonly initial: 'setting up'
|
|
4965
7335
|
readonly states: {
|
|
4966
7336
|
readonly 'setting up': {
|
|
4967
|
-
readonly exit: readonly [
|
|
7337
|
+
readonly exit: readonly [
|
|
7338
|
+
'emit ready',
|
|
7339
|
+
'emit pending incoming patches',
|
|
7340
|
+
'clear pending incoming patches',
|
|
7341
|
+
]
|
|
4968
7342
|
readonly on: {
|
|
4969
7343
|
readonly 'internal.patch': {
|
|
4970
7344
|
readonly actions: 'defer event'
|
|
@@ -4972,58 +7346,304 @@ declare const editorMachine: StateMachine<
|
|
|
4972
7346
|
readonly 'mutation': {
|
|
4973
7347
|
readonly actions: 'defer event'
|
|
4974
7348
|
}
|
|
4975
|
-
readonly 'done syncing
|
|
4976
|
-
readonly target: '
|
|
7349
|
+
readonly 'done syncing value': {
|
|
7350
|
+
readonly target: 'set up'
|
|
7351
|
+
}
|
|
7352
|
+
readonly 'patches': {
|
|
7353
|
+
readonly actions: readonly ['defer incoming patches']
|
|
4977
7354
|
}
|
|
4978
7355
|
}
|
|
4979
7356
|
}
|
|
4980
|
-
readonly '
|
|
4981
|
-
readonly
|
|
7357
|
+
readonly 'set up': {
|
|
7358
|
+
readonly type: 'parallel'
|
|
4982
7359
|
readonly states: {
|
|
4983
|
-
readonly
|
|
4984
|
-
readonly
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
7360
|
+
readonly 'value sync': {
|
|
7361
|
+
readonly initial: 'idle'
|
|
7362
|
+
readonly states: {
|
|
7363
|
+
readonly 'idle': {
|
|
7364
|
+
readonly on: {
|
|
7365
|
+
readonly 'patches': {
|
|
7366
|
+
readonly actions: readonly [
|
|
7367
|
+
ActionFunction<
|
|
7368
|
+
{
|
|
7369
|
+
behaviors: Set<Behavior>
|
|
7370
|
+
converters: Set<Converter>
|
|
7371
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
7372
|
+
keyGenerator: () => string
|
|
7373
|
+
pendingEvents: Array<
|
|
7374
|
+
InternalPatchEvent | MutationEvent
|
|
7375
|
+
>
|
|
7376
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
7377
|
+
schema: EditorSchema
|
|
7378
|
+
initialReadOnly: boolean
|
|
7379
|
+
maxBlocks: number | undefined
|
|
7380
|
+
selection: EditorSelection
|
|
7381
|
+
incomingValue:
|
|
7382
|
+
| Array<PortableTextBlock>
|
|
7383
|
+
| undefined
|
|
7384
|
+
internalDrag?: {
|
|
7385
|
+
ghost?: HTMLElement
|
|
7386
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7387
|
+
}
|
|
7388
|
+
slateEditor?: PortableTextSlateEditor
|
|
7389
|
+
},
|
|
7390
|
+
PatchesEvent,
|
|
7391
|
+
| InternalPatchEvent
|
|
7392
|
+
| MutationEvent
|
|
7393
|
+
| PatchesEvent
|
|
7394
|
+
| {
|
|
7395
|
+
type: 'add behavior'
|
|
7396
|
+
behavior: Behavior
|
|
7397
|
+
}
|
|
7398
|
+
| {
|
|
7399
|
+
type: 'remove behavior'
|
|
7400
|
+
behavior: Behavior
|
|
7401
|
+
}
|
|
7402
|
+
| {
|
|
7403
|
+
type: 'update readOnly'
|
|
7404
|
+
readOnly: boolean
|
|
7405
|
+
}
|
|
7406
|
+
| {
|
|
7407
|
+
type: 'update schema'
|
|
7408
|
+
schema: EditorSchema
|
|
7409
|
+
}
|
|
7410
|
+
| {
|
|
7411
|
+
type: 'update key generator'
|
|
7412
|
+
keyGenerator: () => string
|
|
7413
|
+
}
|
|
7414
|
+
| {
|
|
7415
|
+
type: 'update value'
|
|
7416
|
+
value: Array<PortableTextBlock> | undefined
|
|
7417
|
+
}
|
|
7418
|
+
| {
|
|
7419
|
+
type: 'update maxBlocks'
|
|
7420
|
+
maxBlocks: number | undefined
|
|
7421
|
+
}
|
|
7422
|
+
| {
|
|
7423
|
+
type: 'blur'
|
|
7424
|
+
editor: PortableTextSlateEditor
|
|
7425
|
+
}
|
|
7426
|
+
| {
|
|
7427
|
+
type: 'focus'
|
|
7428
|
+
editor: PortableTextSlateEditor
|
|
7429
|
+
}
|
|
7430
|
+
| {
|
|
7431
|
+
type: 'normalizing'
|
|
7432
|
+
}
|
|
7433
|
+
| {
|
|
7434
|
+
type: 'done normalizing'
|
|
7435
|
+
}
|
|
7436
|
+
| {
|
|
7437
|
+
type: 'done syncing value'
|
|
7438
|
+
}
|
|
7439
|
+
| {
|
|
7440
|
+
type: 'syncing value'
|
|
7441
|
+
}
|
|
7442
|
+
| {
|
|
7443
|
+
type: 'behavior event'
|
|
7444
|
+
behaviorEvent: BehaviorEvent
|
|
7445
|
+
editor: PortableTextSlateEditor
|
|
7446
|
+
nativeEvent?: {
|
|
7447
|
+
preventDefault: () => void
|
|
7448
|
+
}
|
|
7449
|
+
}
|
|
7450
|
+
| {
|
|
7451
|
+
type: 'notify.patch'
|
|
7452
|
+
patch: Patch
|
|
7453
|
+
}
|
|
7454
|
+
| {
|
|
7455
|
+
type: 'notify.mutation'
|
|
7456
|
+
patches: Array<Patch>
|
|
7457
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
7458
|
+
value: Array<PortableTextBlock> | undefined
|
|
7459
|
+
}
|
|
7460
|
+
| {
|
|
7461
|
+
type: 'notify.blurred'
|
|
7462
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7463
|
+
}
|
|
7464
|
+
| {
|
|
7465
|
+
type: 'notify.done loading'
|
|
7466
|
+
}
|
|
7467
|
+
| {
|
|
7468
|
+
type: 'notify.editable'
|
|
7469
|
+
}
|
|
7470
|
+
| {
|
|
7471
|
+
type: 'notify.error'
|
|
7472
|
+
name: string
|
|
7473
|
+
description: string
|
|
7474
|
+
data: unknown
|
|
7475
|
+
}
|
|
7476
|
+
| {
|
|
7477
|
+
type: 'notify.focused'
|
|
7478
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7479
|
+
}
|
|
7480
|
+
| {
|
|
7481
|
+
type: 'notify.invalid value'
|
|
7482
|
+
resolution: InvalidValueResolution | null
|
|
7483
|
+
value: Array<PortableTextBlock> | undefined
|
|
7484
|
+
}
|
|
7485
|
+
| {
|
|
7486
|
+
type: 'notify.loading'
|
|
7487
|
+
}
|
|
7488
|
+
| {
|
|
7489
|
+
type: 'notify.read only'
|
|
7490
|
+
}
|
|
7491
|
+
| {
|
|
7492
|
+
type: 'notify.ready'
|
|
7493
|
+
}
|
|
7494
|
+
| {
|
|
7495
|
+
type: 'notify.selection'
|
|
7496
|
+
selection: EditorSelection
|
|
7497
|
+
}
|
|
7498
|
+
| {
|
|
7499
|
+
type: 'notify.value changed'
|
|
7500
|
+
value: Array<PortableTextBlock> | undefined
|
|
7501
|
+
}
|
|
7502
|
+
| {
|
|
7503
|
+
type: 'notify.unset'
|
|
7504
|
+
previousValue: Array<PortableTextBlock>
|
|
7505
|
+
}
|
|
7506
|
+
| {
|
|
7507
|
+
type: 'dragstart'
|
|
7508
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7509
|
+
ghost?: HTMLElement
|
|
7510
|
+
}
|
|
7511
|
+
| {
|
|
7512
|
+
type: 'dragend'
|
|
7513
|
+
}
|
|
7514
|
+
| {
|
|
7515
|
+
type: 'drop'
|
|
7516
|
+
},
|
|
7517
|
+
undefined,
|
|
7518
|
+
never,
|
|
7519
|
+
never,
|
|
7520
|
+
never,
|
|
7521
|
+
never,
|
|
7522
|
+
| PatchEvent
|
|
7523
|
+
| InternalPatchEvent
|
|
7524
|
+
| MutationEvent
|
|
7525
|
+
| PatchesEvent
|
|
7526
|
+
| {
|
|
7527
|
+
type: 'blurred'
|
|
7528
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7529
|
+
}
|
|
7530
|
+
| {
|
|
7531
|
+
type: 'done loading'
|
|
7532
|
+
}
|
|
7533
|
+
| {
|
|
7534
|
+
type: 'editable'
|
|
7535
|
+
}
|
|
7536
|
+
| {
|
|
7537
|
+
type: 'error'
|
|
7538
|
+
name: string
|
|
7539
|
+
description: string
|
|
7540
|
+
data: unknown
|
|
7541
|
+
}
|
|
7542
|
+
| {
|
|
7543
|
+
type: 'focused'
|
|
7544
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7545
|
+
}
|
|
7546
|
+
| {
|
|
7547
|
+
type: 'invalid value'
|
|
7548
|
+
resolution: InvalidValueResolution | null
|
|
7549
|
+
value: Array<PortableTextBlock> | undefined
|
|
7550
|
+
}
|
|
7551
|
+
| {
|
|
7552
|
+
type: 'loading'
|
|
7553
|
+
}
|
|
7554
|
+
| {
|
|
7555
|
+
type: 'read only'
|
|
7556
|
+
}
|
|
7557
|
+
| {
|
|
7558
|
+
type: 'ready'
|
|
7559
|
+
}
|
|
7560
|
+
| {
|
|
7561
|
+
type: 'selection'
|
|
7562
|
+
selection: EditorSelection
|
|
7563
|
+
}
|
|
7564
|
+
| {
|
|
7565
|
+
type: 'value changed'
|
|
7566
|
+
value: Array<PortableTextBlock> | undefined
|
|
7567
|
+
}
|
|
7568
|
+
| UnsetEvent
|
|
7569
|
+
>,
|
|
7570
|
+
]
|
|
7571
|
+
}
|
|
7572
|
+
readonly 'syncing value': {
|
|
7573
|
+
readonly target: 'syncing value'
|
|
7574
|
+
}
|
|
7575
|
+
}
|
|
4991
7576
|
}
|
|
4992
|
-
readonly '
|
|
4993
|
-
readonly
|
|
4994
|
-
|
|
7577
|
+
readonly 'syncing value': {
|
|
7578
|
+
readonly exit: readonly [
|
|
7579
|
+
'emit pending incoming patches',
|
|
7580
|
+
'clear pending incoming patches',
|
|
7581
|
+
]
|
|
7582
|
+
readonly on: {
|
|
7583
|
+
readonly 'patches': {
|
|
7584
|
+
readonly actions: readonly ['defer incoming patches']
|
|
7585
|
+
}
|
|
7586
|
+
readonly 'done syncing value': {
|
|
7587
|
+
readonly target: 'idle'
|
|
7588
|
+
}
|
|
7589
|
+
}
|
|
4995
7590
|
}
|
|
4996
7591
|
}
|
|
4997
7592
|
}
|
|
4998
|
-
readonly
|
|
4999
|
-
readonly
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
7593
|
+
readonly 'writing': {
|
|
7594
|
+
readonly initial: 'pristine'
|
|
7595
|
+
readonly states: {
|
|
7596
|
+
readonly pristine: {
|
|
7597
|
+
readonly initial: 'idle'
|
|
7598
|
+
readonly states: {
|
|
7599
|
+
readonly idle: {
|
|
7600
|
+
readonly on: {
|
|
7601
|
+
readonly 'normalizing': {
|
|
7602
|
+
readonly target: 'normalizing'
|
|
7603
|
+
}
|
|
7604
|
+
readonly 'internal.patch': {
|
|
7605
|
+
readonly actions: 'defer event'
|
|
7606
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
7607
|
+
}
|
|
7608
|
+
readonly 'mutation': {
|
|
7609
|
+
readonly actions: 'defer event'
|
|
7610
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
7611
|
+
}
|
|
7612
|
+
}
|
|
7613
|
+
}
|
|
7614
|
+
readonly normalizing: {
|
|
7615
|
+
readonly on: {
|
|
7616
|
+
readonly 'done normalizing': {
|
|
7617
|
+
readonly target: 'idle'
|
|
7618
|
+
}
|
|
7619
|
+
readonly 'internal.patch': {
|
|
7620
|
+
readonly actions: 'defer event'
|
|
7621
|
+
}
|
|
7622
|
+
readonly 'mutation': {
|
|
7623
|
+
readonly actions: 'defer event'
|
|
7624
|
+
}
|
|
7625
|
+
}
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
5005
7628
|
}
|
|
5006
|
-
readonly
|
|
5007
|
-
readonly
|
|
7629
|
+
readonly dirty: {
|
|
7630
|
+
readonly entry: readonly [
|
|
7631
|
+
'emit pending events',
|
|
7632
|
+
'clear pending events',
|
|
7633
|
+
]
|
|
7634
|
+
readonly on: {
|
|
7635
|
+
readonly 'internal.patch': {
|
|
7636
|
+
readonly actions: 'emit patch event'
|
|
7637
|
+
}
|
|
7638
|
+
readonly 'mutation': {
|
|
7639
|
+
readonly actions: 'emit mutation event'
|
|
7640
|
+
}
|
|
7641
|
+
}
|
|
5008
7642
|
}
|
|
5009
7643
|
}
|
|
5010
7644
|
}
|
|
5011
7645
|
}
|
|
5012
7646
|
}
|
|
5013
|
-
readonly 'dirty': {
|
|
5014
|
-
readonly entry: readonly [
|
|
5015
|
-
'emit pending events',
|
|
5016
|
-
'clear pending events',
|
|
5017
|
-
]
|
|
5018
|
-
readonly on: {
|
|
5019
|
-
readonly 'internal.patch': {
|
|
5020
|
-
readonly actions: 'emit patch event'
|
|
5021
|
-
}
|
|
5022
|
-
readonly 'mutation': {
|
|
5023
|
-
readonly actions: 'emit mutation event'
|
|
5024
|
-
}
|
|
5025
|
-
}
|
|
5026
|
-
}
|
|
5027
7647
|
}
|
|
5028
7648
|
}
|
|
5029
7649
|
}
|