@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/index.d.cts
CHANGED
|
@@ -5,7 +5,6 @@ import type {
|
|
|
5
5
|
BlockDecoratorDefinition,
|
|
6
6
|
BlockListDefinition,
|
|
7
7
|
BlockStyleDefinition,
|
|
8
|
-
KeyedSegment,
|
|
9
8
|
ObjectSchemaType,
|
|
10
9
|
Path,
|
|
11
10
|
PortableTextListBlock,
|
|
@@ -13,6 +12,7 @@ import type {
|
|
|
13
12
|
TypedObject,
|
|
14
13
|
} from '@sanity/types'
|
|
15
14
|
import {
|
|
15
|
+
KeyedSegment,
|
|
16
16
|
PortableTextBlock,
|
|
17
17
|
PortableTextChild,
|
|
18
18
|
PortableTextSpan,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
TextareaHTMLAttributes,
|
|
38
38
|
} from 'react'
|
|
39
39
|
import type {Observable, Subject} from 'rxjs'
|
|
40
|
-
import {Descendant} from 'slate'
|
|
41
|
-
import type {Operation
|
|
40
|
+
import {Descendant, TextUnit} from 'slate'
|
|
41
|
+
import type {Operation} from 'slate'
|
|
42
42
|
import type {DOMNode} from 'slate-dom'
|
|
43
43
|
import type {ReactEditor} from 'slate-react'
|
|
44
44
|
import {
|
|
@@ -63,6 +63,22 @@ import {
|
|
|
63
63
|
} from 'xstate'
|
|
64
64
|
import type {EventObject, Snapshot} from 'xstate'
|
|
65
65
|
import {GuardArgs} from 'xstate/guards'
|
|
66
|
+
import {BlockOffset as BlockOffset_2} from '..'
|
|
67
|
+
import {
|
|
68
|
+
CustomBehaviorEvent as CustomBehaviorEvent_2,
|
|
69
|
+
NativeBehaviorEvent as NativeBehaviorEvent_2,
|
|
70
|
+
} from '../behaviors'
|
|
71
|
+
import {
|
|
72
|
+
InputBehaviorEvent as InputBehaviorEvent_2,
|
|
73
|
+
InsertPlacement as InsertPlacement_2,
|
|
74
|
+
MouseBehaviorEvent as MouseBehaviorEvent_2,
|
|
75
|
+
} from '../behaviors/behavior.types.event'
|
|
76
|
+
import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
|
|
77
|
+
import {
|
|
78
|
+
PickFromUnion as PickFromUnion_2,
|
|
79
|
+
StrictExtract as StrictExtract_2,
|
|
80
|
+
} from '../type-utils'
|
|
81
|
+
import {BlockWithOptionalKey as BlockWithOptionalKey_2} from '../types/block-with-optional-key'
|
|
66
82
|
import {Editor as Editor_2} from './create-editor'
|
|
67
83
|
|
|
68
84
|
declare type AbstractBehaviorEvent =
|
|
@@ -768,7 +784,6 @@ export declare type EditorConfig = {
|
|
|
768
784
|
/**
|
|
769
785
|
* @beta
|
|
770
786
|
*/
|
|
771
|
-
behaviors?: Array<Behavior>
|
|
772
787
|
keyGenerator?: () => string
|
|
773
788
|
/**
|
|
774
789
|
* @deprecated Will be removed in the next major version
|
|
@@ -877,6 +892,7 @@ declare const editorMachine: StateMachine<
|
|
|
877
892
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
878
893
|
keyGenerator: () => string
|
|
879
894
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
895
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
880
896
|
schema: EditorSchema
|
|
881
897
|
initialReadOnly: boolean
|
|
882
898
|
maxBlocks: number | undefined
|
|
@@ -890,6 +906,7 @@ declare const editorMachine: StateMachine<
|
|
|
890
906
|
},
|
|
891
907
|
| InternalPatchEvent
|
|
892
908
|
| MutationEvent
|
|
909
|
+
| PatchesEvent
|
|
893
910
|
| {
|
|
894
911
|
type: 'add behavior'
|
|
895
912
|
behavior: Behavior
|
|
@@ -906,10 +923,6 @@ declare const editorMachine: StateMachine<
|
|
|
906
923
|
type: 'update schema'
|
|
907
924
|
schema: EditorSchema
|
|
908
925
|
}
|
|
909
|
-
| {
|
|
910
|
-
type: 'update behaviors'
|
|
911
|
-
behaviors: Array<Behavior>
|
|
912
|
-
}
|
|
913
926
|
| {
|
|
914
927
|
type: 'update key generator'
|
|
915
928
|
keyGenerator: () => string
|
|
@@ -922,7 +935,6 @@ declare const editorMachine: StateMachine<
|
|
|
922
935
|
type: 'update maxBlocks'
|
|
923
936
|
maxBlocks: number | undefined
|
|
924
937
|
}
|
|
925
|
-
| PatchesEvent
|
|
926
938
|
| {
|
|
927
939
|
type: 'blur'
|
|
928
940
|
editor: PortableTextSlateEditor
|
|
@@ -938,7 +950,10 @@ declare const editorMachine: StateMachine<
|
|
|
938
950
|
type: 'done normalizing'
|
|
939
951
|
}
|
|
940
952
|
| {
|
|
941
|
-
type: 'done syncing
|
|
953
|
+
type: 'done syncing value'
|
|
954
|
+
}
|
|
955
|
+
| {
|
|
956
|
+
type: 'syncing value'
|
|
942
957
|
}
|
|
943
958
|
| {
|
|
944
959
|
type: 'behavior event'
|
|
@@ -1026,10 +1041,6 @@ declare const editorMachine: StateMachine<
|
|
|
1026
1041
|
type: 'remove behavior from context'
|
|
1027
1042
|
params: NonReducibleUnknown
|
|
1028
1043
|
}
|
|
1029
|
-
'assign behaviors': {
|
|
1030
|
-
type: 'assign behaviors'
|
|
1031
|
-
params: NonReducibleUnknown
|
|
1032
|
-
}
|
|
1033
1044
|
'assign schema': {
|
|
1034
1045
|
type: 'assign schema'
|
|
1035
1046
|
params: NonReducibleUnknown
|
|
@@ -1066,6 +1077,18 @@ declare const editorMachine: StateMachine<
|
|
|
1066
1077
|
type: 'clear pending events'
|
|
1067
1078
|
params: NonReducibleUnknown
|
|
1068
1079
|
}
|
|
1080
|
+
'defer incoming patches': {
|
|
1081
|
+
type: 'defer incoming patches'
|
|
1082
|
+
params: NonReducibleUnknown
|
|
1083
|
+
}
|
|
1084
|
+
'emit pending incoming patches': {
|
|
1085
|
+
type: 'emit pending incoming patches'
|
|
1086
|
+
params: NonReducibleUnknown
|
|
1087
|
+
}
|
|
1088
|
+
'clear pending incoming patches': {
|
|
1089
|
+
type: 'clear pending incoming patches'
|
|
1090
|
+
params: NonReducibleUnknown
|
|
1091
|
+
}
|
|
1069
1092
|
'handle blur': {
|
|
1070
1093
|
type: 'handle blur'
|
|
1071
1094
|
params: unknown
|
|
@@ -1099,14 +1122,19 @@ declare const editorMachine: StateMachine<
|
|
|
1099
1122
|
}
|
|
1100
1123
|
'setup':
|
|
1101
1124
|
| 'setting up'
|
|
1102
|
-
| 'dirty'
|
|
1103
1125
|
| {
|
|
1104
|
-
|
|
1126
|
+
'set up': {
|
|
1127
|
+
'value sync': 'syncing value' | 'idle'
|
|
1128
|
+
'writing':
|
|
1129
|
+
| 'dirty'
|
|
1130
|
+
| {
|
|
1131
|
+
pristine: 'normalizing' | 'idle'
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1105
1134
|
}
|
|
1106
1135
|
},
|
|
1107
1136
|
'dragging internally',
|
|
1108
1137
|
{
|
|
1109
|
-
behaviors?: Array<Behavior>
|
|
1110
1138
|
converters?: Array<Converter>
|
|
1111
1139
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1112
1140
|
keyGenerator: () => string
|
|
@@ -1192,7 +1220,6 @@ declare const editorMachine: StateMachine<
|
|
|
1192
1220
|
): ActorRefFromLogic<TLogic>
|
|
1193
1221
|
}
|
|
1194
1222
|
input: {
|
|
1195
|
-
behaviors?: Array<Behavior>
|
|
1196
1223
|
converters?: Array<Converter>
|
|
1197
1224
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1198
1225
|
keyGenerator: () => string
|
|
@@ -1209,6 +1236,7 @@ declare const editorMachine: StateMachine<
|
|
|
1209
1236
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1210
1237
|
keyGenerator: () => string
|
|
1211
1238
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1239
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1212
1240
|
schema: EditorSchema
|
|
1213
1241
|
initialReadOnly: boolean
|
|
1214
1242
|
maxBlocks: number | undefined
|
|
@@ -1222,6 +1250,7 @@ declare const editorMachine: StateMachine<
|
|
|
1222
1250
|
},
|
|
1223
1251
|
| InternalPatchEvent
|
|
1224
1252
|
| MutationEvent
|
|
1253
|
+
| PatchesEvent
|
|
1225
1254
|
| {
|
|
1226
1255
|
type: 'add behavior'
|
|
1227
1256
|
behavior: Behavior
|
|
@@ -1238,10 +1267,6 @@ declare const editorMachine: StateMachine<
|
|
|
1238
1267
|
type: 'update schema'
|
|
1239
1268
|
schema: EditorSchema
|
|
1240
1269
|
}
|
|
1241
|
-
| {
|
|
1242
|
-
type: 'update behaviors'
|
|
1243
|
-
behaviors: Array<Behavior>
|
|
1244
|
-
}
|
|
1245
1270
|
| {
|
|
1246
1271
|
type: 'update key generator'
|
|
1247
1272
|
keyGenerator: () => string
|
|
@@ -1254,7 +1279,6 @@ declare const editorMachine: StateMachine<
|
|
|
1254
1279
|
type: 'update maxBlocks'
|
|
1255
1280
|
maxBlocks: number | undefined
|
|
1256
1281
|
}
|
|
1257
|
-
| PatchesEvent
|
|
1258
1282
|
| {
|
|
1259
1283
|
type: 'blur'
|
|
1260
1284
|
editor: PortableTextSlateEditor
|
|
@@ -1270,7 +1294,10 @@ declare const editorMachine: StateMachine<
|
|
|
1270
1294
|
type: 'done normalizing'
|
|
1271
1295
|
}
|
|
1272
1296
|
| {
|
|
1273
|
-
type: 'done syncing
|
|
1297
|
+
type: 'done syncing value'
|
|
1298
|
+
}
|
|
1299
|
+
| {
|
|
1300
|
+
type: 'syncing value'
|
|
1274
1301
|
}
|
|
1275
1302
|
| {
|
|
1276
1303
|
type: 'behavior event'
|
|
@@ -1356,6 +1383,7 @@ declare const editorMachine: StateMachine<
|
|
|
1356
1383
|
>,
|
|
1357
1384
|
| InternalPatchEvent
|
|
1358
1385
|
| MutationEvent
|
|
1386
|
+
| PatchesEvent
|
|
1359
1387
|
| {
|
|
1360
1388
|
type: 'add behavior'
|
|
1361
1389
|
behavior: Behavior
|
|
@@ -1372,10 +1400,6 @@ declare const editorMachine: StateMachine<
|
|
|
1372
1400
|
type: 'update schema'
|
|
1373
1401
|
schema: EditorSchema
|
|
1374
1402
|
}
|
|
1375
|
-
| {
|
|
1376
|
-
type: 'update behaviors'
|
|
1377
|
-
behaviors: Array<Behavior>
|
|
1378
|
-
}
|
|
1379
1403
|
| {
|
|
1380
1404
|
type: 'update key generator'
|
|
1381
1405
|
keyGenerator: () => string
|
|
@@ -1388,7 +1412,6 @@ declare const editorMachine: StateMachine<
|
|
|
1388
1412
|
type: 'update maxBlocks'
|
|
1389
1413
|
maxBlocks: number | undefined
|
|
1390
1414
|
}
|
|
1391
|
-
| PatchesEvent
|
|
1392
1415
|
| {
|
|
1393
1416
|
type: 'blur'
|
|
1394
1417
|
editor: PortableTextSlateEditor
|
|
@@ -1404,7 +1427,10 @@ declare const editorMachine: StateMachine<
|
|
|
1404
1427
|
type: 'done normalizing'
|
|
1405
1428
|
}
|
|
1406
1429
|
| {
|
|
1407
|
-
type: 'done syncing
|
|
1430
|
+
type: 'done syncing value'
|
|
1431
|
+
}
|
|
1432
|
+
| {
|
|
1433
|
+
type: 'syncing value'
|
|
1408
1434
|
}
|
|
1409
1435
|
| {
|
|
1410
1436
|
type: 'behavior event'
|
|
@@ -1484,11 +1510,2555 @@ declare const editorMachine: StateMachine<
|
|
|
1484
1510
|
AnyEventObject
|
|
1485
1511
|
>
|
|
1486
1512
|
}) => {
|
|
1487
|
-
behaviors: Set<
|
|
1513
|
+
behaviors: Set<
|
|
1514
|
+
Behavior<
|
|
1515
|
+
| 'serialize'
|
|
1516
|
+
| 'clipboard.copy'
|
|
1517
|
+
| 'clipboard.cut'
|
|
1518
|
+
| 'drag.dragstart'
|
|
1519
|
+
| 'serialization.failure'
|
|
1520
|
+
| 'serialization.success'
|
|
1521
|
+
| 'deserialize'
|
|
1522
|
+
| 'deserialization.failure'
|
|
1523
|
+
| 'deserialization.success'
|
|
1524
|
+
| 'split'
|
|
1525
|
+
| 'delete'
|
|
1526
|
+
| 'select'
|
|
1527
|
+
| '*'
|
|
1528
|
+
| 'annotation.add'
|
|
1529
|
+
| 'annotation.remove'
|
|
1530
|
+
| 'block.set'
|
|
1531
|
+
| 'block.unset'
|
|
1532
|
+
| 'decorator.add'
|
|
1533
|
+
| 'decorator.remove'
|
|
1534
|
+
| 'delete.backward'
|
|
1535
|
+
| 'delete.block'
|
|
1536
|
+
| 'delete.forward'
|
|
1537
|
+
| 'history.redo'
|
|
1538
|
+
| 'history.undo'
|
|
1539
|
+
| 'insert.inline object'
|
|
1540
|
+
| 'insert.block'
|
|
1541
|
+
| 'insert.span'
|
|
1542
|
+
| 'insert.text'
|
|
1543
|
+
| 'move.backward'
|
|
1544
|
+
| 'move.block'
|
|
1545
|
+
| 'move.forward'
|
|
1546
|
+
| 'annotation.toggle'
|
|
1547
|
+
| 'decorator.toggle'
|
|
1548
|
+
| 'delete.text'
|
|
1549
|
+
| 'insert.blocks'
|
|
1550
|
+
| 'insert.break'
|
|
1551
|
+
| 'insert.soft break'
|
|
1552
|
+
| 'list item.add'
|
|
1553
|
+
| 'list item.remove'
|
|
1554
|
+
| 'list item.toggle'
|
|
1555
|
+
| 'move.block down'
|
|
1556
|
+
| 'move.block up'
|
|
1557
|
+
| 'select.previous block'
|
|
1558
|
+
| 'select.next block'
|
|
1559
|
+
| 'style.add'
|
|
1560
|
+
| 'style.remove'
|
|
1561
|
+
| 'style.toggle'
|
|
1562
|
+
| 'clipboard.paste'
|
|
1563
|
+
| 'drag.drag'
|
|
1564
|
+
| 'drag.dragend'
|
|
1565
|
+
| 'drag.dragenter'
|
|
1566
|
+
| 'drag.dragover'
|
|
1567
|
+
| 'drag.dragleave'
|
|
1568
|
+
| 'drag.drop'
|
|
1569
|
+
| 'input.*'
|
|
1570
|
+
| 'keyboard.keydown'
|
|
1571
|
+
| 'keyboard.keyup'
|
|
1572
|
+
| 'mouse.click'
|
|
1573
|
+
| 'serialize.*'
|
|
1574
|
+
| 'deserialize.*'
|
|
1575
|
+
| 'split.*'
|
|
1576
|
+
| 'block.*'
|
|
1577
|
+
| 'style.*'
|
|
1578
|
+
| 'delete.*'
|
|
1579
|
+
| 'move.*'
|
|
1580
|
+
| 'select.*'
|
|
1581
|
+
| 'history.*'
|
|
1582
|
+
| 'serialization.*'
|
|
1583
|
+
| 'deserialization.*'
|
|
1584
|
+
| 'annotation.*'
|
|
1585
|
+
| 'decorator.*'
|
|
1586
|
+
| 'insert.*'
|
|
1587
|
+
| 'list item.*'
|
|
1588
|
+
| 'clipboard.*'
|
|
1589
|
+
| 'drag.*'
|
|
1590
|
+
| 'keyboard.*'
|
|
1591
|
+
| 'mouse.*'
|
|
1592
|
+
| `custom.${string}`,
|
|
1593
|
+
true,
|
|
1594
|
+
| {
|
|
1595
|
+
type: StrictExtract_2<
|
|
1596
|
+
| 'serialize'
|
|
1597
|
+
| 'serialization.failure'
|
|
1598
|
+
| 'serialization.success'
|
|
1599
|
+
| 'deserialize'
|
|
1600
|
+
| 'deserialization.failure'
|
|
1601
|
+
| 'deserialization.success'
|
|
1602
|
+
| 'split'
|
|
1603
|
+
| 'delete'
|
|
1604
|
+
| 'select'
|
|
1605
|
+
| 'annotation.add'
|
|
1606
|
+
| 'annotation.remove'
|
|
1607
|
+
| 'block.set'
|
|
1608
|
+
| 'block.unset'
|
|
1609
|
+
| 'decorator.add'
|
|
1610
|
+
| 'decorator.remove'
|
|
1611
|
+
| 'delete.backward'
|
|
1612
|
+
| 'delete.block'
|
|
1613
|
+
| 'delete.forward'
|
|
1614
|
+
| 'history.redo'
|
|
1615
|
+
| 'history.undo'
|
|
1616
|
+
| 'insert.inline object'
|
|
1617
|
+
| 'insert.block'
|
|
1618
|
+
| 'insert.span'
|
|
1619
|
+
| 'insert.text'
|
|
1620
|
+
| 'move.backward'
|
|
1621
|
+
| 'move.block'
|
|
1622
|
+
| 'move.forward'
|
|
1623
|
+
| 'annotation.toggle'
|
|
1624
|
+
| 'decorator.toggle'
|
|
1625
|
+
| 'delete.text'
|
|
1626
|
+
| 'insert.blocks'
|
|
1627
|
+
| 'insert.break'
|
|
1628
|
+
| 'insert.soft break'
|
|
1629
|
+
| 'list item.add'
|
|
1630
|
+
| 'list item.remove'
|
|
1631
|
+
| 'list item.toggle'
|
|
1632
|
+
| 'move.block down'
|
|
1633
|
+
| 'move.block up'
|
|
1634
|
+
| 'select.previous block'
|
|
1635
|
+
| 'select.next block'
|
|
1636
|
+
| 'style.add'
|
|
1637
|
+
| 'style.remove'
|
|
1638
|
+
| 'style.toggle',
|
|
1639
|
+
'annotation.add'
|
|
1640
|
+
>
|
|
1641
|
+
annotation: {
|
|
1642
|
+
name: string
|
|
1643
|
+
value: {
|
|
1644
|
+
[prop: string]: unknown
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
| {
|
|
1649
|
+
type: StrictExtract_2<
|
|
1650
|
+
| 'serialize'
|
|
1651
|
+
| 'serialization.failure'
|
|
1652
|
+
| 'serialization.success'
|
|
1653
|
+
| 'deserialize'
|
|
1654
|
+
| 'deserialization.failure'
|
|
1655
|
+
| 'deserialization.success'
|
|
1656
|
+
| 'split'
|
|
1657
|
+
| 'delete'
|
|
1658
|
+
| 'select'
|
|
1659
|
+
| 'annotation.add'
|
|
1660
|
+
| 'annotation.remove'
|
|
1661
|
+
| 'block.set'
|
|
1662
|
+
| 'block.unset'
|
|
1663
|
+
| 'decorator.add'
|
|
1664
|
+
| 'decorator.remove'
|
|
1665
|
+
| 'delete.backward'
|
|
1666
|
+
| 'delete.block'
|
|
1667
|
+
| 'delete.forward'
|
|
1668
|
+
| 'history.redo'
|
|
1669
|
+
| 'history.undo'
|
|
1670
|
+
| 'insert.inline object'
|
|
1671
|
+
| 'insert.block'
|
|
1672
|
+
| 'insert.span'
|
|
1673
|
+
| 'insert.text'
|
|
1674
|
+
| 'move.backward'
|
|
1675
|
+
| 'move.block'
|
|
1676
|
+
| 'move.forward'
|
|
1677
|
+
| 'annotation.toggle'
|
|
1678
|
+
| 'decorator.toggle'
|
|
1679
|
+
| 'delete.text'
|
|
1680
|
+
| 'insert.blocks'
|
|
1681
|
+
| 'insert.break'
|
|
1682
|
+
| 'insert.soft break'
|
|
1683
|
+
| 'list item.add'
|
|
1684
|
+
| 'list item.remove'
|
|
1685
|
+
| 'list item.toggle'
|
|
1686
|
+
| 'move.block down'
|
|
1687
|
+
| 'move.block up'
|
|
1688
|
+
| 'select.previous block'
|
|
1689
|
+
| 'select.next block'
|
|
1690
|
+
| 'style.add'
|
|
1691
|
+
| 'style.remove'
|
|
1692
|
+
| 'style.toggle',
|
|
1693
|
+
'annotation.remove'
|
|
1694
|
+
>
|
|
1695
|
+
annotation: {
|
|
1696
|
+
name: string
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
| {
|
|
1700
|
+
type: StrictExtract_2<
|
|
1701
|
+
| 'serialize'
|
|
1702
|
+
| 'serialization.failure'
|
|
1703
|
+
| 'serialization.success'
|
|
1704
|
+
| 'deserialize'
|
|
1705
|
+
| 'deserialization.failure'
|
|
1706
|
+
| 'deserialization.success'
|
|
1707
|
+
| 'split'
|
|
1708
|
+
| 'delete'
|
|
1709
|
+
| 'select'
|
|
1710
|
+
| 'annotation.add'
|
|
1711
|
+
| 'annotation.remove'
|
|
1712
|
+
| 'block.set'
|
|
1713
|
+
| 'block.unset'
|
|
1714
|
+
| 'decorator.add'
|
|
1715
|
+
| 'decorator.remove'
|
|
1716
|
+
| 'delete.backward'
|
|
1717
|
+
| 'delete.block'
|
|
1718
|
+
| 'delete.forward'
|
|
1719
|
+
| 'history.redo'
|
|
1720
|
+
| 'history.undo'
|
|
1721
|
+
| 'insert.inline object'
|
|
1722
|
+
| 'insert.block'
|
|
1723
|
+
| 'insert.span'
|
|
1724
|
+
| 'insert.text'
|
|
1725
|
+
| 'move.backward'
|
|
1726
|
+
| 'move.block'
|
|
1727
|
+
| 'move.forward'
|
|
1728
|
+
| 'annotation.toggle'
|
|
1729
|
+
| 'decorator.toggle'
|
|
1730
|
+
| 'delete.text'
|
|
1731
|
+
| 'insert.blocks'
|
|
1732
|
+
| 'insert.break'
|
|
1733
|
+
| 'insert.soft break'
|
|
1734
|
+
| 'list item.add'
|
|
1735
|
+
| 'list item.remove'
|
|
1736
|
+
| 'list item.toggle'
|
|
1737
|
+
| 'move.block down'
|
|
1738
|
+
| 'move.block up'
|
|
1739
|
+
| 'select.previous block'
|
|
1740
|
+
| 'select.next block'
|
|
1741
|
+
| 'style.add'
|
|
1742
|
+
| 'style.remove'
|
|
1743
|
+
| 'style.toggle',
|
|
1744
|
+
'block.set'
|
|
1745
|
+
>
|
|
1746
|
+
at: [KeyedSegment]
|
|
1747
|
+
props: Record<string, unknown>
|
|
1748
|
+
}
|
|
1749
|
+
| {
|
|
1750
|
+
type: StrictExtract_2<
|
|
1751
|
+
| 'serialize'
|
|
1752
|
+
| 'serialization.failure'
|
|
1753
|
+
| 'serialization.success'
|
|
1754
|
+
| 'deserialize'
|
|
1755
|
+
| 'deserialization.failure'
|
|
1756
|
+
| 'deserialization.success'
|
|
1757
|
+
| 'split'
|
|
1758
|
+
| 'delete'
|
|
1759
|
+
| 'select'
|
|
1760
|
+
| 'annotation.add'
|
|
1761
|
+
| 'annotation.remove'
|
|
1762
|
+
| 'block.set'
|
|
1763
|
+
| 'block.unset'
|
|
1764
|
+
| 'decorator.add'
|
|
1765
|
+
| 'decorator.remove'
|
|
1766
|
+
| 'delete.backward'
|
|
1767
|
+
| 'delete.block'
|
|
1768
|
+
| 'delete.forward'
|
|
1769
|
+
| 'history.redo'
|
|
1770
|
+
| 'history.undo'
|
|
1771
|
+
| 'insert.inline object'
|
|
1772
|
+
| 'insert.block'
|
|
1773
|
+
| 'insert.span'
|
|
1774
|
+
| 'insert.text'
|
|
1775
|
+
| 'move.backward'
|
|
1776
|
+
| 'move.block'
|
|
1777
|
+
| 'move.forward'
|
|
1778
|
+
| 'annotation.toggle'
|
|
1779
|
+
| 'decorator.toggle'
|
|
1780
|
+
| 'delete.text'
|
|
1781
|
+
| 'insert.blocks'
|
|
1782
|
+
| 'insert.break'
|
|
1783
|
+
| 'insert.soft break'
|
|
1784
|
+
| 'list item.add'
|
|
1785
|
+
| 'list item.remove'
|
|
1786
|
+
| 'list item.toggle'
|
|
1787
|
+
| 'move.block down'
|
|
1788
|
+
| 'move.block up'
|
|
1789
|
+
| 'select.previous block'
|
|
1790
|
+
| 'select.next block'
|
|
1791
|
+
| 'style.add'
|
|
1792
|
+
| 'style.remove'
|
|
1793
|
+
| 'style.toggle',
|
|
1794
|
+
'block.unset'
|
|
1795
|
+
>
|
|
1796
|
+
at: [KeyedSegment]
|
|
1797
|
+
props: Array<string>
|
|
1798
|
+
}
|
|
1799
|
+
| {
|
|
1800
|
+
type: StrictExtract_2<
|
|
1801
|
+
| 'serialize'
|
|
1802
|
+
| 'serialization.failure'
|
|
1803
|
+
| 'serialization.success'
|
|
1804
|
+
| 'deserialize'
|
|
1805
|
+
| 'deserialization.failure'
|
|
1806
|
+
| 'deserialization.success'
|
|
1807
|
+
| 'split'
|
|
1808
|
+
| 'delete'
|
|
1809
|
+
| 'select'
|
|
1810
|
+
| 'annotation.add'
|
|
1811
|
+
| 'annotation.remove'
|
|
1812
|
+
| 'block.set'
|
|
1813
|
+
| 'block.unset'
|
|
1814
|
+
| 'decorator.add'
|
|
1815
|
+
| 'decorator.remove'
|
|
1816
|
+
| 'delete.backward'
|
|
1817
|
+
| 'delete.block'
|
|
1818
|
+
| 'delete.forward'
|
|
1819
|
+
| 'history.redo'
|
|
1820
|
+
| 'history.undo'
|
|
1821
|
+
| 'insert.inline object'
|
|
1822
|
+
| 'insert.block'
|
|
1823
|
+
| 'insert.span'
|
|
1824
|
+
| 'insert.text'
|
|
1825
|
+
| 'move.backward'
|
|
1826
|
+
| 'move.block'
|
|
1827
|
+
| 'move.forward'
|
|
1828
|
+
| 'annotation.toggle'
|
|
1829
|
+
| 'decorator.toggle'
|
|
1830
|
+
| 'delete.text'
|
|
1831
|
+
| 'insert.blocks'
|
|
1832
|
+
| 'insert.break'
|
|
1833
|
+
| 'insert.soft break'
|
|
1834
|
+
| 'list item.add'
|
|
1835
|
+
| 'list item.remove'
|
|
1836
|
+
| 'list item.toggle'
|
|
1837
|
+
| 'move.block down'
|
|
1838
|
+
| 'move.block up'
|
|
1839
|
+
| 'select.previous block'
|
|
1840
|
+
| 'select.next block'
|
|
1841
|
+
| 'style.add'
|
|
1842
|
+
| 'style.remove'
|
|
1843
|
+
| 'style.toggle',
|
|
1844
|
+
'decorator.add'
|
|
1845
|
+
>
|
|
1846
|
+
decorator: string
|
|
1847
|
+
at?: {
|
|
1848
|
+
anchor: BlockOffset_2
|
|
1849
|
+
focus: BlockOffset_2
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
| {
|
|
1853
|
+
type: StrictExtract_2<
|
|
1854
|
+
| 'serialize'
|
|
1855
|
+
| 'serialization.failure'
|
|
1856
|
+
| 'serialization.success'
|
|
1857
|
+
| 'deserialize'
|
|
1858
|
+
| 'deserialization.failure'
|
|
1859
|
+
| 'deserialization.success'
|
|
1860
|
+
| 'split'
|
|
1861
|
+
| 'delete'
|
|
1862
|
+
| 'select'
|
|
1863
|
+
| 'annotation.add'
|
|
1864
|
+
| 'annotation.remove'
|
|
1865
|
+
| 'block.set'
|
|
1866
|
+
| 'block.unset'
|
|
1867
|
+
| 'decorator.add'
|
|
1868
|
+
| 'decorator.remove'
|
|
1869
|
+
| 'delete.backward'
|
|
1870
|
+
| 'delete.block'
|
|
1871
|
+
| 'delete.forward'
|
|
1872
|
+
| 'history.redo'
|
|
1873
|
+
| 'history.undo'
|
|
1874
|
+
| 'insert.inline object'
|
|
1875
|
+
| 'insert.block'
|
|
1876
|
+
| 'insert.span'
|
|
1877
|
+
| 'insert.text'
|
|
1878
|
+
| 'move.backward'
|
|
1879
|
+
| 'move.block'
|
|
1880
|
+
| 'move.forward'
|
|
1881
|
+
| 'annotation.toggle'
|
|
1882
|
+
| 'decorator.toggle'
|
|
1883
|
+
| 'delete.text'
|
|
1884
|
+
| 'insert.blocks'
|
|
1885
|
+
| 'insert.break'
|
|
1886
|
+
| 'insert.soft break'
|
|
1887
|
+
| 'list item.add'
|
|
1888
|
+
| 'list item.remove'
|
|
1889
|
+
| 'list item.toggle'
|
|
1890
|
+
| 'move.block down'
|
|
1891
|
+
| 'move.block up'
|
|
1892
|
+
| 'select.previous block'
|
|
1893
|
+
| 'select.next block'
|
|
1894
|
+
| 'style.add'
|
|
1895
|
+
| 'style.remove'
|
|
1896
|
+
| 'style.toggle',
|
|
1897
|
+
'decorator.remove'
|
|
1898
|
+
>
|
|
1899
|
+
decorator: string
|
|
1900
|
+
}
|
|
1901
|
+
| {
|
|
1902
|
+
type: StrictExtract_2<
|
|
1903
|
+
| 'serialize'
|
|
1904
|
+
| 'serialization.failure'
|
|
1905
|
+
| 'serialization.success'
|
|
1906
|
+
| 'deserialize'
|
|
1907
|
+
| 'deserialization.failure'
|
|
1908
|
+
| 'deserialization.success'
|
|
1909
|
+
| 'split'
|
|
1910
|
+
| 'delete'
|
|
1911
|
+
| 'select'
|
|
1912
|
+
| 'annotation.add'
|
|
1913
|
+
| 'annotation.remove'
|
|
1914
|
+
| 'block.set'
|
|
1915
|
+
| 'block.unset'
|
|
1916
|
+
| 'decorator.add'
|
|
1917
|
+
| 'decorator.remove'
|
|
1918
|
+
| 'delete.backward'
|
|
1919
|
+
| 'delete.block'
|
|
1920
|
+
| 'delete.forward'
|
|
1921
|
+
| 'history.redo'
|
|
1922
|
+
| 'history.undo'
|
|
1923
|
+
| 'insert.inline object'
|
|
1924
|
+
| 'insert.block'
|
|
1925
|
+
| 'insert.span'
|
|
1926
|
+
| 'insert.text'
|
|
1927
|
+
| 'move.backward'
|
|
1928
|
+
| 'move.block'
|
|
1929
|
+
| 'move.forward'
|
|
1930
|
+
| 'annotation.toggle'
|
|
1931
|
+
| 'decorator.toggle'
|
|
1932
|
+
| 'delete.text'
|
|
1933
|
+
| 'insert.blocks'
|
|
1934
|
+
| 'insert.break'
|
|
1935
|
+
| 'insert.soft break'
|
|
1936
|
+
| 'list item.add'
|
|
1937
|
+
| 'list item.remove'
|
|
1938
|
+
| 'list item.toggle'
|
|
1939
|
+
| 'move.block down'
|
|
1940
|
+
| 'move.block up'
|
|
1941
|
+
| 'select.previous block'
|
|
1942
|
+
| 'select.next block'
|
|
1943
|
+
| 'style.add'
|
|
1944
|
+
| 'style.remove'
|
|
1945
|
+
| 'style.toggle',
|
|
1946
|
+
'delete'
|
|
1947
|
+
>
|
|
1948
|
+
at: NonNullable<EditorSelection>
|
|
1949
|
+
}
|
|
1950
|
+
| {
|
|
1951
|
+
type: StrictExtract_2<
|
|
1952
|
+
| 'serialize'
|
|
1953
|
+
| 'serialization.failure'
|
|
1954
|
+
| 'serialization.success'
|
|
1955
|
+
| 'deserialize'
|
|
1956
|
+
| 'deserialization.failure'
|
|
1957
|
+
| 'deserialization.success'
|
|
1958
|
+
| 'split'
|
|
1959
|
+
| 'delete'
|
|
1960
|
+
| 'select'
|
|
1961
|
+
| 'annotation.add'
|
|
1962
|
+
| 'annotation.remove'
|
|
1963
|
+
| 'block.set'
|
|
1964
|
+
| 'block.unset'
|
|
1965
|
+
| 'decorator.add'
|
|
1966
|
+
| 'decorator.remove'
|
|
1967
|
+
| 'delete.backward'
|
|
1968
|
+
| 'delete.block'
|
|
1969
|
+
| 'delete.forward'
|
|
1970
|
+
| 'history.redo'
|
|
1971
|
+
| 'history.undo'
|
|
1972
|
+
| 'insert.inline object'
|
|
1973
|
+
| 'insert.block'
|
|
1974
|
+
| 'insert.span'
|
|
1975
|
+
| 'insert.text'
|
|
1976
|
+
| 'move.backward'
|
|
1977
|
+
| 'move.block'
|
|
1978
|
+
| 'move.forward'
|
|
1979
|
+
| 'annotation.toggle'
|
|
1980
|
+
| 'decorator.toggle'
|
|
1981
|
+
| 'delete.text'
|
|
1982
|
+
| 'insert.blocks'
|
|
1983
|
+
| 'insert.break'
|
|
1984
|
+
| 'insert.soft break'
|
|
1985
|
+
| 'list item.add'
|
|
1986
|
+
| 'list item.remove'
|
|
1987
|
+
| 'list item.toggle'
|
|
1988
|
+
| 'move.block down'
|
|
1989
|
+
| 'move.block up'
|
|
1990
|
+
| 'select.previous block'
|
|
1991
|
+
| 'select.next block'
|
|
1992
|
+
| 'style.add'
|
|
1993
|
+
| 'style.remove'
|
|
1994
|
+
| 'style.toggle',
|
|
1995
|
+
'delete.backward'
|
|
1996
|
+
>
|
|
1997
|
+
unit: TextUnit
|
|
1998
|
+
}
|
|
1999
|
+
| {
|
|
2000
|
+
type: StrictExtract_2<
|
|
2001
|
+
| 'serialize'
|
|
2002
|
+
| 'serialization.failure'
|
|
2003
|
+
| 'serialization.success'
|
|
2004
|
+
| 'deserialize'
|
|
2005
|
+
| 'deserialization.failure'
|
|
2006
|
+
| 'deserialization.success'
|
|
2007
|
+
| 'split'
|
|
2008
|
+
| 'delete'
|
|
2009
|
+
| 'select'
|
|
2010
|
+
| 'annotation.add'
|
|
2011
|
+
| 'annotation.remove'
|
|
2012
|
+
| 'block.set'
|
|
2013
|
+
| 'block.unset'
|
|
2014
|
+
| 'decorator.add'
|
|
2015
|
+
| 'decorator.remove'
|
|
2016
|
+
| 'delete.backward'
|
|
2017
|
+
| 'delete.block'
|
|
2018
|
+
| 'delete.forward'
|
|
2019
|
+
| 'history.redo'
|
|
2020
|
+
| 'history.undo'
|
|
2021
|
+
| 'insert.inline object'
|
|
2022
|
+
| 'insert.block'
|
|
2023
|
+
| 'insert.span'
|
|
2024
|
+
| 'insert.text'
|
|
2025
|
+
| 'move.backward'
|
|
2026
|
+
| 'move.block'
|
|
2027
|
+
| 'move.forward'
|
|
2028
|
+
| 'annotation.toggle'
|
|
2029
|
+
| 'decorator.toggle'
|
|
2030
|
+
| 'delete.text'
|
|
2031
|
+
| 'insert.blocks'
|
|
2032
|
+
| 'insert.break'
|
|
2033
|
+
| 'insert.soft break'
|
|
2034
|
+
| 'list item.add'
|
|
2035
|
+
| 'list item.remove'
|
|
2036
|
+
| 'list item.toggle'
|
|
2037
|
+
| 'move.block down'
|
|
2038
|
+
| 'move.block up'
|
|
2039
|
+
| 'select.previous block'
|
|
2040
|
+
| 'select.next block'
|
|
2041
|
+
| 'style.add'
|
|
2042
|
+
| 'style.remove'
|
|
2043
|
+
| 'style.toggle',
|
|
2044
|
+
'delete.block'
|
|
2045
|
+
>
|
|
2046
|
+
at: [KeyedSegment]
|
|
2047
|
+
}
|
|
2048
|
+
| {
|
|
2049
|
+
type: StrictExtract_2<
|
|
2050
|
+
| 'serialize'
|
|
2051
|
+
| 'serialization.failure'
|
|
2052
|
+
| 'serialization.success'
|
|
2053
|
+
| 'deserialize'
|
|
2054
|
+
| 'deserialization.failure'
|
|
2055
|
+
| 'deserialization.success'
|
|
2056
|
+
| 'split'
|
|
2057
|
+
| 'delete'
|
|
2058
|
+
| 'select'
|
|
2059
|
+
| 'annotation.add'
|
|
2060
|
+
| 'annotation.remove'
|
|
2061
|
+
| 'block.set'
|
|
2062
|
+
| 'block.unset'
|
|
2063
|
+
| 'decorator.add'
|
|
2064
|
+
| 'decorator.remove'
|
|
2065
|
+
| 'delete.backward'
|
|
2066
|
+
| 'delete.block'
|
|
2067
|
+
| 'delete.forward'
|
|
2068
|
+
| 'history.redo'
|
|
2069
|
+
| 'history.undo'
|
|
2070
|
+
| 'insert.inline object'
|
|
2071
|
+
| 'insert.block'
|
|
2072
|
+
| 'insert.span'
|
|
2073
|
+
| 'insert.text'
|
|
2074
|
+
| 'move.backward'
|
|
2075
|
+
| 'move.block'
|
|
2076
|
+
| 'move.forward'
|
|
2077
|
+
| 'annotation.toggle'
|
|
2078
|
+
| 'decorator.toggle'
|
|
2079
|
+
| 'delete.text'
|
|
2080
|
+
| 'insert.blocks'
|
|
2081
|
+
| 'insert.break'
|
|
2082
|
+
| 'insert.soft break'
|
|
2083
|
+
| 'list item.add'
|
|
2084
|
+
| 'list item.remove'
|
|
2085
|
+
| 'list item.toggle'
|
|
2086
|
+
| 'move.block down'
|
|
2087
|
+
| 'move.block up'
|
|
2088
|
+
| 'select.previous block'
|
|
2089
|
+
| 'select.next block'
|
|
2090
|
+
| 'style.add'
|
|
2091
|
+
| 'style.remove'
|
|
2092
|
+
| 'style.toggle',
|
|
2093
|
+
'delete.forward'
|
|
2094
|
+
>
|
|
2095
|
+
unit: TextUnit
|
|
2096
|
+
}
|
|
2097
|
+
| {
|
|
2098
|
+
type: StrictExtract_2<
|
|
2099
|
+
| 'serialize'
|
|
2100
|
+
| 'serialization.failure'
|
|
2101
|
+
| 'serialization.success'
|
|
2102
|
+
| 'deserialize'
|
|
2103
|
+
| 'deserialization.failure'
|
|
2104
|
+
| 'deserialization.success'
|
|
2105
|
+
| 'split'
|
|
2106
|
+
| 'delete'
|
|
2107
|
+
| 'select'
|
|
2108
|
+
| 'annotation.add'
|
|
2109
|
+
| 'annotation.remove'
|
|
2110
|
+
| 'block.set'
|
|
2111
|
+
| 'block.unset'
|
|
2112
|
+
| 'decorator.add'
|
|
2113
|
+
| 'decorator.remove'
|
|
2114
|
+
| 'delete.backward'
|
|
2115
|
+
| 'delete.block'
|
|
2116
|
+
| 'delete.forward'
|
|
2117
|
+
| 'history.redo'
|
|
2118
|
+
| 'history.undo'
|
|
2119
|
+
| 'insert.inline object'
|
|
2120
|
+
| 'insert.block'
|
|
2121
|
+
| 'insert.span'
|
|
2122
|
+
| 'insert.text'
|
|
2123
|
+
| 'move.backward'
|
|
2124
|
+
| 'move.block'
|
|
2125
|
+
| 'move.forward'
|
|
2126
|
+
| 'annotation.toggle'
|
|
2127
|
+
| 'decorator.toggle'
|
|
2128
|
+
| 'delete.text'
|
|
2129
|
+
| 'insert.blocks'
|
|
2130
|
+
| 'insert.break'
|
|
2131
|
+
| 'insert.soft break'
|
|
2132
|
+
| 'list item.add'
|
|
2133
|
+
| 'list item.remove'
|
|
2134
|
+
| 'list item.toggle'
|
|
2135
|
+
| 'move.block down'
|
|
2136
|
+
| 'move.block up'
|
|
2137
|
+
| 'select.previous block'
|
|
2138
|
+
| 'select.next block'
|
|
2139
|
+
| 'style.add'
|
|
2140
|
+
| 'style.remove'
|
|
2141
|
+
| 'style.toggle',
|
|
2142
|
+
'history.redo'
|
|
2143
|
+
>
|
|
2144
|
+
}
|
|
2145
|
+
| {
|
|
2146
|
+
type: StrictExtract_2<
|
|
2147
|
+
| 'serialize'
|
|
2148
|
+
| 'serialization.failure'
|
|
2149
|
+
| 'serialization.success'
|
|
2150
|
+
| 'deserialize'
|
|
2151
|
+
| 'deserialization.failure'
|
|
2152
|
+
| 'deserialization.success'
|
|
2153
|
+
| 'split'
|
|
2154
|
+
| 'delete'
|
|
2155
|
+
| 'select'
|
|
2156
|
+
| 'annotation.add'
|
|
2157
|
+
| 'annotation.remove'
|
|
2158
|
+
| 'block.set'
|
|
2159
|
+
| 'block.unset'
|
|
2160
|
+
| 'decorator.add'
|
|
2161
|
+
| 'decorator.remove'
|
|
2162
|
+
| 'delete.backward'
|
|
2163
|
+
| 'delete.block'
|
|
2164
|
+
| 'delete.forward'
|
|
2165
|
+
| 'history.redo'
|
|
2166
|
+
| 'history.undo'
|
|
2167
|
+
| 'insert.inline object'
|
|
2168
|
+
| 'insert.block'
|
|
2169
|
+
| 'insert.span'
|
|
2170
|
+
| 'insert.text'
|
|
2171
|
+
| 'move.backward'
|
|
2172
|
+
| 'move.block'
|
|
2173
|
+
| 'move.forward'
|
|
2174
|
+
| 'annotation.toggle'
|
|
2175
|
+
| 'decorator.toggle'
|
|
2176
|
+
| 'delete.text'
|
|
2177
|
+
| 'insert.blocks'
|
|
2178
|
+
| 'insert.break'
|
|
2179
|
+
| 'insert.soft break'
|
|
2180
|
+
| 'list item.add'
|
|
2181
|
+
| 'list item.remove'
|
|
2182
|
+
| 'list item.toggle'
|
|
2183
|
+
| 'move.block down'
|
|
2184
|
+
| 'move.block up'
|
|
2185
|
+
| 'select.previous block'
|
|
2186
|
+
| 'select.next block'
|
|
2187
|
+
| 'style.add'
|
|
2188
|
+
| 'style.remove'
|
|
2189
|
+
| 'style.toggle',
|
|
2190
|
+
'history.undo'
|
|
2191
|
+
>
|
|
2192
|
+
}
|
|
2193
|
+
| {
|
|
2194
|
+
type: StrictExtract_2<
|
|
2195
|
+
| 'serialize'
|
|
2196
|
+
| 'serialization.failure'
|
|
2197
|
+
| 'serialization.success'
|
|
2198
|
+
| 'deserialize'
|
|
2199
|
+
| 'deserialization.failure'
|
|
2200
|
+
| 'deserialization.success'
|
|
2201
|
+
| 'split'
|
|
2202
|
+
| 'delete'
|
|
2203
|
+
| 'select'
|
|
2204
|
+
| 'annotation.add'
|
|
2205
|
+
| 'annotation.remove'
|
|
2206
|
+
| 'block.set'
|
|
2207
|
+
| 'block.unset'
|
|
2208
|
+
| 'decorator.add'
|
|
2209
|
+
| 'decorator.remove'
|
|
2210
|
+
| 'delete.backward'
|
|
2211
|
+
| 'delete.block'
|
|
2212
|
+
| 'delete.forward'
|
|
2213
|
+
| 'history.redo'
|
|
2214
|
+
| 'history.undo'
|
|
2215
|
+
| 'insert.inline object'
|
|
2216
|
+
| 'insert.block'
|
|
2217
|
+
| 'insert.span'
|
|
2218
|
+
| 'insert.text'
|
|
2219
|
+
| 'move.backward'
|
|
2220
|
+
| 'move.block'
|
|
2221
|
+
| 'move.forward'
|
|
2222
|
+
| 'annotation.toggle'
|
|
2223
|
+
| 'decorator.toggle'
|
|
2224
|
+
| 'delete.text'
|
|
2225
|
+
| 'insert.blocks'
|
|
2226
|
+
| 'insert.break'
|
|
2227
|
+
| 'insert.soft break'
|
|
2228
|
+
| 'list item.add'
|
|
2229
|
+
| 'list item.remove'
|
|
2230
|
+
| 'list item.toggle'
|
|
2231
|
+
| 'move.block down'
|
|
2232
|
+
| 'move.block up'
|
|
2233
|
+
| 'select.previous block'
|
|
2234
|
+
| 'select.next block'
|
|
2235
|
+
| 'style.add'
|
|
2236
|
+
| 'style.remove'
|
|
2237
|
+
| 'style.toggle',
|
|
2238
|
+
'insert.inline object'
|
|
2239
|
+
>
|
|
2240
|
+
inlineObject: {
|
|
2241
|
+
name: string
|
|
2242
|
+
value?: {
|
|
2243
|
+
[prop: string]: unknown
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
| {
|
|
2248
|
+
type: StrictExtract_2<
|
|
2249
|
+
| 'serialize'
|
|
2250
|
+
| 'serialization.failure'
|
|
2251
|
+
| 'serialization.success'
|
|
2252
|
+
| 'deserialize'
|
|
2253
|
+
| 'deserialization.failure'
|
|
2254
|
+
| 'deserialization.success'
|
|
2255
|
+
| 'split'
|
|
2256
|
+
| 'delete'
|
|
2257
|
+
| 'select'
|
|
2258
|
+
| 'annotation.add'
|
|
2259
|
+
| 'annotation.remove'
|
|
2260
|
+
| 'block.set'
|
|
2261
|
+
| 'block.unset'
|
|
2262
|
+
| 'decorator.add'
|
|
2263
|
+
| 'decorator.remove'
|
|
2264
|
+
| 'delete.backward'
|
|
2265
|
+
| 'delete.block'
|
|
2266
|
+
| 'delete.forward'
|
|
2267
|
+
| 'history.redo'
|
|
2268
|
+
| 'history.undo'
|
|
2269
|
+
| 'insert.inline object'
|
|
2270
|
+
| 'insert.block'
|
|
2271
|
+
| 'insert.span'
|
|
2272
|
+
| 'insert.text'
|
|
2273
|
+
| 'move.backward'
|
|
2274
|
+
| 'move.block'
|
|
2275
|
+
| 'move.forward'
|
|
2276
|
+
| 'annotation.toggle'
|
|
2277
|
+
| 'decorator.toggle'
|
|
2278
|
+
| 'delete.text'
|
|
2279
|
+
| 'insert.blocks'
|
|
2280
|
+
| 'insert.break'
|
|
2281
|
+
| 'insert.soft break'
|
|
2282
|
+
| 'list item.add'
|
|
2283
|
+
| 'list item.remove'
|
|
2284
|
+
| 'list item.toggle'
|
|
2285
|
+
| 'move.block down'
|
|
2286
|
+
| 'move.block up'
|
|
2287
|
+
| 'select.previous block'
|
|
2288
|
+
| 'select.next block'
|
|
2289
|
+
| 'style.add'
|
|
2290
|
+
| 'style.remove'
|
|
2291
|
+
| 'style.toggle',
|
|
2292
|
+
'insert.block'
|
|
2293
|
+
>
|
|
2294
|
+
block: BlockWithOptionalKey_2
|
|
2295
|
+
placement: InsertPlacement_2
|
|
2296
|
+
select?: 'start' | 'end' | 'none'
|
|
2297
|
+
}
|
|
2298
|
+
| {
|
|
2299
|
+
type: StrictExtract_2<
|
|
2300
|
+
| 'serialize'
|
|
2301
|
+
| 'serialization.failure'
|
|
2302
|
+
| 'serialization.success'
|
|
2303
|
+
| 'deserialize'
|
|
2304
|
+
| 'deserialization.failure'
|
|
2305
|
+
| 'deserialization.success'
|
|
2306
|
+
| 'split'
|
|
2307
|
+
| 'delete'
|
|
2308
|
+
| 'select'
|
|
2309
|
+
| 'annotation.add'
|
|
2310
|
+
| 'annotation.remove'
|
|
2311
|
+
| 'block.set'
|
|
2312
|
+
| 'block.unset'
|
|
2313
|
+
| 'decorator.add'
|
|
2314
|
+
| 'decorator.remove'
|
|
2315
|
+
| 'delete.backward'
|
|
2316
|
+
| 'delete.block'
|
|
2317
|
+
| 'delete.forward'
|
|
2318
|
+
| 'history.redo'
|
|
2319
|
+
| 'history.undo'
|
|
2320
|
+
| 'insert.inline object'
|
|
2321
|
+
| 'insert.block'
|
|
2322
|
+
| 'insert.span'
|
|
2323
|
+
| 'insert.text'
|
|
2324
|
+
| 'move.backward'
|
|
2325
|
+
| 'move.block'
|
|
2326
|
+
| 'move.forward'
|
|
2327
|
+
| 'annotation.toggle'
|
|
2328
|
+
| 'decorator.toggle'
|
|
2329
|
+
| 'delete.text'
|
|
2330
|
+
| 'insert.blocks'
|
|
2331
|
+
| 'insert.break'
|
|
2332
|
+
| 'insert.soft break'
|
|
2333
|
+
| 'list item.add'
|
|
2334
|
+
| 'list item.remove'
|
|
2335
|
+
| 'list item.toggle'
|
|
2336
|
+
| 'move.block down'
|
|
2337
|
+
| 'move.block up'
|
|
2338
|
+
| 'select.previous block'
|
|
2339
|
+
| 'select.next block'
|
|
2340
|
+
| 'style.add'
|
|
2341
|
+
| 'style.remove'
|
|
2342
|
+
| 'style.toggle',
|
|
2343
|
+
'insert.span'
|
|
2344
|
+
>
|
|
2345
|
+
text: string
|
|
2346
|
+
annotations?: Array<{
|
|
2347
|
+
name: string
|
|
2348
|
+
value: {
|
|
2349
|
+
[prop: string]: unknown
|
|
2350
|
+
}
|
|
2351
|
+
}>
|
|
2352
|
+
decorators?: Array<string>
|
|
2353
|
+
}
|
|
2354
|
+
| {
|
|
2355
|
+
type: StrictExtract_2<
|
|
2356
|
+
| 'serialize'
|
|
2357
|
+
| 'serialization.failure'
|
|
2358
|
+
| 'serialization.success'
|
|
2359
|
+
| 'deserialize'
|
|
2360
|
+
| 'deserialization.failure'
|
|
2361
|
+
| 'deserialization.success'
|
|
2362
|
+
| 'split'
|
|
2363
|
+
| 'delete'
|
|
2364
|
+
| 'select'
|
|
2365
|
+
| 'annotation.add'
|
|
2366
|
+
| 'annotation.remove'
|
|
2367
|
+
| 'block.set'
|
|
2368
|
+
| 'block.unset'
|
|
2369
|
+
| 'decorator.add'
|
|
2370
|
+
| 'decorator.remove'
|
|
2371
|
+
| 'delete.backward'
|
|
2372
|
+
| 'delete.block'
|
|
2373
|
+
| 'delete.forward'
|
|
2374
|
+
| 'history.redo'
|
|
2375
|
+
| 'history.undo'
|
|
2376
|
+
| 'insert.inline object'
|
|
2377
|
+
| 'insert.block'
|
|
2378
|
+
| 'insert.span'
|
|
2379
|
+
| 'insert.text'
|
|
2380
|
+
| 'move.backward'
|
|
2381
|
+
| 'move.block'
|
|
2382
|
+
| 'move.forward'
|
|
2383
|
+
| 'annotation.toggle'
|
|
2384
|
+
| 'decorator.toggle'
|
|
2385
|
+
| 'delete.text'
|
|
2386
|
+
| 'insert.blocks'
|
|
2387
|
+
| 'insert.break'
|
|
2388
|
+
| 'insert.soft break'
|
|
2389
|
+
| 'list item.add'
|
|
2390
|
+
| 'list item.remove'
|
|
2391
|
+
| 'list item.toggle'
|
|
2392
|
+
| 'move.block down'
|
|
2393
|
+
| 'move.block up'
|
|
2394
|
+
| 'select.previous block'
|
|
2395
|
+
| 'select.next block'
|
|
2396
|
+
| 'style.add'
|
|
2397
|
+
| 'style.remove'
|
|
2398
|
+
| 'style.toggle',
|
|
2399
|
+
'insert.text'
|
|
2400
|
+
>
|
|
2401
|
+
text: string
|
|
2402
|
+
}
|
|
2403
|
+
| {
|
|
2404
|
+
type: StrictExtract_2<
|
|
2405
|
+
| 'serialize'
|
|
2406
|
+
| 'serialization.failure'
|
|
2407
|
+
| 'serialization.success'
|
|
2408
|
+
| 'deserialize'
|
|
2409
|
+
| 'deserialization.failure'
|
|
2410
|
+
| 'deserialization.success'
|
|
2411
|
+
| 'split'
|
|
2412
|
+
| 'delete'
|
|
2413
|
+
| 'select'
|
|
2414
|
+
| 'annotation.add'
|
|
2415
|
+
| 'annotation.remove'
|
|
2416
|
+
| 'block.set'
|
|
2417
|
+
| 'block.unset'
|
|
2418
|
+
| 'decorator.add'
|
|
2419
|
+
| 'decorator.remove'
|
|
2420
|
+
| 'delete.backward'
|
|
2421
|
+
| 'delete.block'
|
|
2422
|
+
| 'delete.forward'
|
|
2423
|
+
| 'history.redo'
|
|
2424
|
+
| 'history.undo'
|
|
2425
|
+
| 'insert.inline object'
|
|
2426
|
+
| 'insert.block'
|
|
2427
|
+
| 'insert.span'
|
|
2428
|
+
| 'insert.text'
|
|
2429
|
+
| 'move.backward'
|
|
2430
|
+
| 'move.block'
|
|
2431
|
+
| 'move.forward'
|
|
2432
|
+
| 'annotation.toggle'
|
|
2433
|
+
| 'decorator.toggle'
|
|
2434
|
+
| 'delete.text'
|
|
2435
|
+
| 'insert.blocks'
|
|
2436
|
+
| 'insert.break'
|
|
2437
|
+
| 'insert.soft break'
|
|
2438
|
+
| 'list item.add'
|
|
2439
|
+
| 'list item.remove'
|
|
2440
|
+
| 'list item.toggle'
|
|
2441
|
+
| 'move.block down'
|
|
2442
|
+
| 'move.block up'
|
|
2443
|
+
| 'select.previous block'
|
|
2444
|
+
| 'select.next block'
|
|
2445
|
+
| 'style.add'
|
|
2446
|
+
| 'style.remove'
|
|
2447
|
+
| 'style.toggle',
|
|
2448
|
+
'move.backward'
|
|
2449
|
+
>
|
|
2450
|
+
distance: number
|
|
2451
|
+
}
|
|
2452
|
+
| {
|
|
2453
|
+
type: StrictExtract_2<
|
|
2454
|
+
| 'serialize'
|
|
2455
|
+
| 'serialization.failure'
|
|
2456
|
+
| 'serialization.success'
|
|
2457
|
+
| 'deserialize'
|
|
2458
|
+
| 'deserialization.failure'
|
|
2459
|
+
| 'deserialization.success'
|
|
2460
|
+
| 'split'
|
|
2461
|
+
| 'delete'
|
|
2462
|
+
| 'select'
|
|
2463
|
+
| 'annotation.add'
|
|
2464
|
+
| 'annotation.remove'
|
|
2465
|
+
| 'block.set'
|
|
2466
|
+
| 'block.unset'
|
|
2467
|
+
| 'decorator.add'
|
|
2468
|
+
| 'decorator.remove'
|
|
2469
|
+
| 'delete.backward'
|
|
2470
|
+
| 'delete.block'
|
|
2471
|
+
| 'delete.forward'
|
|
2472
|
+
| 'history.redo'
|
|
2473
|
+
| 'history.undo'
|
|
2474
|
+
| 'insert.inline object'
|
|
2475
|
+
| 'insert.block'
|
|
2476
|
+
| 'insert.span'
|
|
2477
|
+
| 'insert.text'
|
|
2478
|
+
| 'move.backward'
|
|
2479
|
+
| 'move.block'
|
|
2480
|
+
| 'move.forward'
|
|
2481
|
+
| 'annotation.toggle'
|
|
2482
|
+
| 'decorator.toggle'
|
|
2483
|
+
| 'delete.text'
|
|
2484
|
+
| 'insert.blocks'
|
|
2485
|
+
| 'insert.break'
|
|
2486
|
+
| 'insert.soft break'
|
|
2487
|
+
| 'list item.add'
|
|
2488
|
+
| 'list item.remove'
|
|
2489
|
+
| 'list item.toggle'
|
|
2490
|
+
| 'move.block down'
|
|
2491
|
+
| 'move.block up'
|
|
2492
|
+
| 'select.previous block'
|
|
2493
|
+
| 'select.next block'
|
|
2494
|
+
| 'style.add'
|
|
2495
|
+
| 'style.remove'
|
|
2496
|
+
| 'style.toggle',
|
|
2497
|
+
'move.block'
|
|
2498
|
+
>
|
|
2499
|
+
at: [KeyedSegment]
|
|
2500
|
+
to: [KeyedSegment]
|
|
2501
|
+
}
|
|
2502
|
+
| {
|
|
2503
|
+
type: StrictExtract_2<
|
|
2504
|
+
| 'serialize'
|
|
2505
|
+
| 'serialization.failure'
|
|
2506
|
+
| 'serialization.success'
|
|
2507
|
+
| 'deserialize'
|
|
2508
|
+
| 'deserialization.failure'
|
|
2509
|
+
| 'deserialization.success'
|
|
2510
|
+
| 'split'
|
|
2511
|
+
| 'delete'
|
|
2512
|
+
| 'select'
|
|
2513
|
+
| 'annotation.add'
|
|
2514
|
+
| 'annotation.remove'
|
|
2515
|
+
| 'block.set'
|
|
2516
|
+
| 'block.unset'
|
|
2517
|
+
| 'decorator.add'
|
|
2518
|
+
| 'decorator.remove'
|
|
2519
|
+
| 'delete.backward'
|
|
2520
|
+
| 'delete.block'
|
|
2521
|
+
| 'delete.forward'
|
|
2522
|
+
| 'history.redo'
|
|
2523
|
+
| 'history.undo'
|
|
2524
|
+
| 'insert.inline object'
|
|
2525
|
+
| 'insert.block'
|
|
2526
|
+
| 'insert.span'
|
|
2527
|
+
| 'insert.text'
|
|
2528
|
+
| 'move.backward'
|
|
2529
|
+
| 'move.block'
|
|
2530
|
+
| 'move.forward'
|
|
2531
|
+
| 'annotation.toggle'
|
|
2532
|
+
| 'decorator.toggle'
|
|
2533
|
+
| 'delete.text'
|
|
2534
|
+
| 'insert.blocks'
|
|
2535
|
+
| 'insert.break'
|
|
2536
|
+
| 'insert.soft break'
|
|
2537
|
+
| 'list item.add'
|
|
2538
|
+
| 'list item.remove'
|
|
2539
|
+
| 'list item.toggle'
|
|
2540
|
+
| 'move.block down'
|
|
2541
|
+
| 'move.block up'
|
|
2542
|
+
| 'select.previous block'
|
|
2543
|
+
| 'select.next block'
|
|
2544
|
+
| 'style.add'
|
|
2545
|
+
| 'style.remove'
|
|
2546
|
+
| 'style.toggle',
|
|
2547
|
+
'move.forward'
|
|
2548
|
+
>
|
|
2549
|
+
distance: number
|
|
2550
|
+
}
|
|
2551
|
+
| {
|
|
2552
|
+
type: StrictExtract_2<
|
|
2553
|
+
| 'serialize'
|
|
2554
|
+
| 'serialization.failure'
|
|
2555
|
+
| 'serialization.success'
|
|
2556
|
+
| 'deserialize'
|
|
2557
|
+
| 'deserialization.failure'
|
|
2558
|
+
| 'deserialization.success'
|
|
2559
|
+
| 'split'
|
|
2560
|
+
| 'delete'
|
|
2561
|
+
| 'select'
|
|
2562
|
+
| 'annotation.add'
|
|
2563
|
+
| 'annotation.remove'
|
|
2564
|
+
| 'block.set'
|
|
2565
|
+
| 'block.unset'
|
|
2566
|
+
| 'decorator.add'
|
|
2567
|
+
| 'decorator.remove'
|
|
2568
|
+
| 'delete.backward'
|
|
2569
|
+
| 'delete.block'
|
|
2570
|
+
| 'delete.forward'
|
|
2571
|
+
| 'history.redo'
|
|
2572
|
+
| 'history.undo'
|
|
2573
|
+
| 'insert.inline object'
|
|
2574
|
+
| 'insert.block'
|
|
2575
|
+
| 'insert.span'
|
|
2576
|
+
| 'insert.text'
|
|
2577
|
+
| 'move.backward'
|
|
2578
|
+
| 'move.block'
|
|
2579
|
+
| 'move.forward'
|
|
2580
|
+
| 'annotation.toggle'
|
|
2581
|
+
| 'decorator.toggle'
|
|
2582
|
+
| 'delete.text'
|
|
2583
|
+
| 'insert.blocks'
|
|
2584
|
+
| 'insert.break'
|
|
2585
|
+
| 'insert.soft break'
|
|
2586
|
+
| 'list item.add'
|
|
2587
|
+
| 'list item.remove'
|
|
2588
|
+
| 'list item.toggle'
|
|
2589
|
+
| 'move.block down'
|
|
2590
|
+
| 'move.block up'
|
|
2591
|
+
| 'select.previous block'
|
|
2592
|
+
| 'select.next block'
|
|
2593
|
+
| 'style.add'
|
|
2594
|
+
| 'style.remove'
|
|
2595
|
+
| 'style.toggle',
|
|
2596
|
+
'select'
|
|
2597
|
+
>
|
|
2598
|
+
at: EditorSelection
|
|
2599
|
+
}
|
|
2600
|
+
| {
|
|
2601
|
+
type: StrictExtract_2<
|
|
2602
|
+
| 'serialize'
|
|
2603
|
+
| 'serialization.failure'
|
|
2604
|
+
| 'serialization.success'
|
|
2605
|
+
| 'deserialize'
|
|
2606
|
+
| 'deserialization.failure'
|
|
2607
|
+
| 'deserialization.success'
|
|
2608
|
+
| 'split'
|
|
2609
|
+
| 'delete'
|
|
2610
|
+
| 'select'
|
|
2611
|
+
| 'annotation.add'
|
|
2612
|
+
| 'annotation.remove'
|
|
2613
|
+
| 'block.set'
|
|
2614
|
+
| 'block.unset'
|
|
2615
|
+
| 'decorator.add'
|
|
2616
|
+
| 'decorator.remove'
|
|
2617
|
+
| 'delete.backward'
|
|
2618
|
+
| 'delete.block'
|
|
2619
|
+
| 'delete.forward'
|
|
2620
|
+
| 'history.redo'
|
|
2621
|
+
| 'history.undo'
|
|
2622
|
+
| 'insert.inline object'
|
|
2623
|
+
| 'insert.block'
|
|
2624
|
+
| 'insert.span'
|
|
2625
|
+
| 'insert.text'
|
|
2626
|
+
| 'move.backward'
|
|
2627
|
+
| 'move.block'
|
|
2628
|
+
| 'move.forward'
|
|
2629
|
+
| 'annotation.toggle'
|
|
2630
|
+
| 'decorator.toggle'
|
|
2631
|
+
| 'delete.text'
|
|
2632
|
+
| 'insert.blocks'
|
|
2633
|
+
| 'insert.break'
|
|
2634
|
+
| 'insert.soft break'
|
|
2635
|
+
| 'list item.add'
|
|
2636
|
+
| 'list item.remove'
|
|
2637
|
+
| 'list item.toggle'
|
|
2638
|
+
| 'move.block down'
|
|
2639
|
+
| 'move.block up'
|
|
2640
|
+
| 'select.previous block'
|
|
2641
|
+
| 'select.next block'
|
|
2642
|
+
| 'style.add'
|
|
2643
|
+
| 'style.remove'
|
|
2644
|
+
| 'style.toggle',
|
|
2645
|
+
'annotation.toggle'
|
|
2646
|
+
>
|
|
2647
|
+
annotation: {
|
|
2648
|
+
name: string
|
|
2649
|
+
value: {
|
|
2650
|
+
[prop: string]: unknown
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
| {
|
|
2655
|
+
type: StrictExtract_2<
|
|
2656
|
+
| 'serialize'
|
|
2657
|
+
| 'serialization.failure'
|
|
2658
|
+
| 'serialization.success'
|
|
2659
|
+
| 'deserialize'
|
|
2660
|
+
| 'deserialization.failure'
|
|
2661
|
+
| 'deserialization.success'
|
|
2662
|
+
| 'split'
|
|
2663
|
+
| 'delete'
|
|
2664
|
+
| 'select'
|
|
2665
|
+
| 'annotation.add'
|
|
2666
|
+
| 'annotation.remove'
|
|
2667
|
+
| 'block.set'
|
|
2668
|
+
| 'block.unset'
|
|
2669
|
+
| 'decorator.add'
|
|
2670
|
+
| 'decorator.remove'
|
|
2671
|
+
| 'delete.backward'
|
|
2672
|
+
| 'delete.block'
|
|
2673
|
+
| 'delete.forward'
|
|
2674
|
+
| 'history.redo'
|
|
2675
|
+
| 'history.undo'
|
|
2676
|
+
| 'insert.inline object'
|
|
2677
|
+
| 'insert.block'
|
|
2678
|
+
| 'insert.span'
|
|
2679
|
+
| 'insert.text'
|
|
2680
|
+
| 'move.backward'
|
|
2681
|
+
| 'move.block'
|
|
2682
|
+
| 'move.forward'
|
|
2683
|
+
| 'annotation.toggle'
|
|
2684
|
+
| 'decorator.toggle'
|
|
2685
|
+
| 'delete.text'
|
|
2686
|
+
| 'insert.blocks'
|
|
2687
|
+
| 'insert.break'
|
|
2688
|
+
| 'insert.soft break'
|
|
2689
|
+
| 'list item.add'
|
|
2690
|
+
| 'list item.remove'
|
|
2691
|
+
| 'list item.toggle'
|
|
2692
|
+
| 'move.block down'
|
|
2693
|
+
| 'move.block up'
|
|
2694
|
+
| 'select.previous block'
|
|
2695
|
+
| 'select.next block'
|
|
2696
|
+
| 'style.add'
|
|
2697
|
+
| 'style.remove'
|
|
2698
|
+
| 'style.toggle',
|
|
2699
|
+
'decorator.toggle'
|
|
2700
|
+
>
|
|
2701
|
+
decorator: string
|
|
2702
|
+
at?: {
|
|
2703
|
+
anchor: BlockOffset_2
|
|
2704
|
+
focus: BlockOffset_2
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
| {
|
|
2708
|
+
type: StrictExtract_2<
|
|
2709
|
+
| 'serialize'
|
|
2710
|
+
| 'serialization.failure'
|
|
2711
|
+
| 'serialization.success'
|
|
2712
|
+
| 'deserialize'
|
|
2713
|
+
| 'deserialization.failure'
|
|
2714
|
+
| 'deserialization.success'
|
|
2715
|
+
| 'split'
|
|
2716
|
+
| 'delete'
|
|
2717
|
+
| 'select'
|
|
2718
|
+
| 'annotation.add'
|
|
2719
|
+
| 'annotation.remove'
|
|
2720
|
+
| 'block.set'
|
|
2721
|
+
| 'block.unset'
|
|
2722
|
+
| 'decorator.add'
|
|
2723
|
+
| 'decorator.remove'
|
|
2724
|
+
| 'delete.backward'
|
|
2725
|
+
| 'delete.block'
|
|
2726
|
+
| 'delete.forward'
|
|
2727
|
+
| 'history.redo'
|
|
2728
|
+
| 'history.undo'
|
|
2729
|
+
| 'insert.inline object'
|
|
2730
|
+
| 'insert.block'
|
|
2731
|
+
| 'insert.span'
|
|
2732
|
+
| 'insert.text'
|
|
2733
|
+
| 'move.backward'
|
|
2734
|
+
| 'move.block'
|
|
2735
|
+
| 'move.forward'
|
|
2736
|
+
| 'annotation.toggle'
|
|
2737
|
+
| 'decorator.toggle'
|
|
2738
|
+
| 'delete.text'
|
|
2739
|
+
| 'insert.blocks'
|
|
2740
|
+
| 'insert.break'
|
|
2741
|
+
| 'insert.soft break'
|
|
2742
|
+
| 'list item.add'
|
|
2743
|
+
| 'list item.remove'
|
|
2744
|
+
| 'list item.toggle'
|
|
2745
|
+
| 'move.block down'
|
|
2746
|
+
| 'move.block up'
|
|
2747
|
+
| 'select.previous block'
|
|
2748
|
+
| 'select.next block'
|
|
2749
|
+
| 'style.add'
|
|
2750
|
+
| 'style.remove'
|
|
2751
|
+
| 'style.toggle',
|
|
2752
|
+
'delete.text'
|
|
2753
|
+
>
|
|
2754
|
+
at: {
|
|
2755
|
+
anchor: BlockOffset_2
|
|
2756
|
+
focus: BlockOffset_2
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
| {
|
|
2760
|
+
type: StrictExtract_2<
|
|
2761
|
+
| 'serialize'
|
|
2762
|
+
| 'serialization.failure'
|
|
2763
|
+
| 'serialization.success'
|
|
2764
|
+
| 'deserialize'
|
|
2765
|
+
| 'deserialization.failure'
|
|
2766
|
+
| 'deserialization.success'
|
|
2767
|
+
| 'split'
|
|
2768
|
+
| 'delete'
|
|
2769
|
+
| 'select'
|
|
2770
|
+
| 'annotation.add'
|
|
2771
|
+
| 'annotation.remove'
|
|
2772
|
+
| 'block.set'
|
|
2773
|
+
| 'block.unset'
|
|
2774
|
+
| 'decorator.add'
|
|
2775
|
+
| 'decorator.remove'
|
|
2776
|
+
| 'delete.backward'
|
|
2777
|
+
| 'delete.block'
|
|
2778
|
+
| 'delete.forward'
|
|
2779
|
+
| 'history.redo'
|
|
2780
|
+
| 'history.undo'
|
|
2781
|
+
| 'insert.inline object'
|
|
2782
|
+
| 'insert.block'
|
|
2783
|
+
| 'insert.span'
|
|
2784
|
+
| 'insert.text'
|
|
2785
|
+
| 'move.backward'
|
|
2786
|
+
| 'move.block'
|
|
2787
|
+
| 'move.forward'
|
|
2788
|
+
| 'annotation.toggle'
|
|
2789
|
+
| 'decorator.toggle'
|
|
2790
|
+
| 'delete.text'
|
|
2791
|
+
| 'insert.blocks'
|
|
2792
|
+
| 'insert.break'
|
|
2793
|
+
| 'insert.soft break'
|
|
2794
|
+
| 'list item.add'
|
|
2795
|
+
| 'list item.remove'
|
|
2796
|
+
| 'list item.toggle'
|
|
2797
|
+
| 'move.block down'
|
|
2798
|
+
| 'move.block up'
|
|
2799
|
+
| 'select.previous block'
|
|
2800
|
+
| 'select.next block'
|
|
2801
|
+
| 'style.add'
|
|
2802
|
+
| 'style.remove'
|
|
2803
|
+
| 'style.toggle',
|
|
2804
|
+
'deserialize'
|
|
2805
|
+
>
|
|
2806
|
+
originEvent:
|
|
2807
|
+
| PickFromUnion_2<
|
|
2808
|
+
NativeBehaviorEvent_2,
|
|
2809
|
+
'type',
|
|
2810
|
+
'drag.drop' | 'clipboard.paste'
|
|
2811
|
+
>
|
|
2812
|
+
| InputBehaviorEvent_2
|
|
2813
|
+
}
|
|
2814
|
+
| {
|
|
2815
|
+
type: StrictExtract_2<
|
|
2816
|
+
| 'serialize'
|
|
2817
|
+
| 'serialization.failure'
|
|
2818
|
+
| 'serialization.success'
|
|
2819
|
+
| 'deserialize'
|
|
2820
|
+
| 'deserialization.failure'
|
|
2821
|
+
| 'deserialization.success'
|
|
2822
|
+
| 'split'
|
|
2823
|
+
| 'delete'
|
|
2824
|
+
| 'select'
|
|
2825
|
+
| 'annotation.add'
|
|
2826
|
+
| 'annotation.remove'
|
|
2827
|
+
| 'block.set'
|
|
2828
|
+
| 'block.unset'
|
|
2829
|
+
| 'decorator.add'
|
|
2830
|
+
| 'decorator.remove'
|
|
2831
|
+
| 'delete.backward'
|
|
2832
|
+
| 'delete.block'
|
|
2833
|
+
| 'delete.forward'
|
|
2834
|
+
| 'history.redo'
|
|
2835
|
+
| 'history.undo'
|
|
2836
|
+
| 'insert.inline object'
|
|
2837
|
+
| 'insert.block'
|
|
2838
|
+
| 'insert.span'
|
|
2839
|
+
| 'insert.text'
|
|
2840
|
+
| 'move.backward'
|
|
2841
|
+
| 'move.block'
|
|
2842
|
+
| 'move.forward'
|
|
2843
|
+
| 'annotation.toggle'
|
|
2844
|
+
| 'decorator.toggle'
|
|
2845
|
+
| 'delete.text'
|
|
2846
|
+
| 'insert.blocks'
|
|
2847
|
+
| 'insert.break'
|
|
2848
|
+
| 'insert.soft break'
|
|
2849
|
+
| 'list item.add'
|
|
2850
|
+
| 'list item.remove'
|
|
2851
|
+
| 'list item.toggle'
|
|
2852
|
+
| 'move.block down'
|
|
2853
|
+
| 'move.block up'
|
|
2854
|
+
| 'select.previous block'
|
|
2855
|
+
| 'select.next block'
|
|
2856
|
+
| 'style.add'
|
|
2857
|
+
| 'style.remove'
|
|
2858
|
+
| 'style.toggle',
|
|
2859
|
+
'serialize'
|
|
2860
|
+
>
|
|
2861
|
+
originEvent: PickFromUnion_2<
|
|
2862
|
+
NativeBehaviorEvent_2,
|
|
2863
|
+
'type',
|
|
2864
|
+
'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
|
|
2865
|
+
>
|
|
2866
|
+
}
|
|
2867
|
+
| {
|
|
2868
|
+
type: StrictExtract_2<
|
|
2869
|
+
| 'serialize'
|
|
2870
|
+
| 'serialization.failure'
|
|
2871
|
+
| 'serialization.success'
|
|
2872
|
+
| 'deserialize'
|
|
2873
|
+
| 'deserialization.failure'
|
|
2874
|
+
| 'deserialization.success'
|
|
2875
|
+
| 'split'
|
|
2876
|
+
| 'delete'
|
|
2877
|
+
| 'select'
|
|
2878
|
+
| 'annotation.add'
|
|
2879
|
+
| 'annotation.remove'
|
|
2880
|
+
| 'block.set'
|
|
2881
|
+
| 'block.unset'
|
|
2882
|
+
| 'decorator.add'
|
|
2883
|
+
| 'decorator.remove'
|
|
2884
|
+
| 'delete.backward'
|
|
2885
|
+
| 'delete.block'
|
|
2886
|
+
| 'delete.forward'
|
|
2887
|
+
| 'history.redo'
|
|
2888
|
+
| 'history.undo'
|
|
2889
|
+
| 'insert.inline object'
|
|
2890
|
+
| 'insert.block'
|
|
2891
|
+
| 'insert.span'
|
|
2892
|
+
| 'insert.text'
|
|
2893
|
+
| 'move.backward'
|
|
2894
|
+
| 'move.block'
|
|
2895
|
+
| 'move.forward'
|
|
2896
|
+
| 'annotation.toggle'
|
|
2897
|
+
| 'decorator.toggle'
|
|
2898
|
+
| 'delete.text'
|
|
2899
|
+
| 'insert.blocks'
|
|
2900
|
+
| 'insert.break'
|
|
2901
|
+
| 'insert.soft break'
|
|
2902
|
+
| 'list item.add'
|
|
2903
|
+
| 'list item.remove'
|
|
2904
|
+
| 'list item.toggle'
|
|
2905
|
+
| 'move.block down'
|
|
2906
|
+
| 'move.block up'
|
|
2907
|
+
| 'select.previous block'
|
|
2908
|
+
| 'select.next block'
|
|
2909
|
+
| 'style.add'
|
|
2910
|
+
| 'style.remove'
|
|
2911
|
+
| 'style.toggle',
|
|
2912
|
+
'deserialization.success'
|
|
2913
|
+
>
|
|
2914
|
+
mimeType: MIMEType_2
|
|
2915
|
+
data: Array<PortableTextBlock>
|
|
2916
|
+
originEvent:
|
|
2917
|
+
| PickFromUnion_2<
|
|
2918
|
+
NativeBehaviorEvent_2,
|
|
2919
|
+
'type',
|
|
2920
|
+
'drag.drop' | 'clipboard.paste'
|
|
2921
|
+
>
|
|
2922
|
+
| InputBehaviorEvent_2
|
|
2923
|
+
}
|
|
2924
|
+
| {
|
|
2925
|
+
type: StrictExtract_2<
|
|
2926
|
+
| 'serialize'
|
|
2927
|
+
| 'serialization.failure'
|
|
2928
|
+
| 'serialization.success'
|
|
2929
|
+
| 'deserialize'
|
|
2930
|
+
| 'deserialization.failure'
|
|
2931
|
+
| 'deserialization.success'
|
|
2932
|
+
| 'split'
|
|
2933
|
+
| 'delete'
|
|
2934
|
+
| 'select'
|
|
2935
|
+
| 'annotation.add'
|
|
2936
|
+
| 'annotation.remove'
|
|
2937
|
+
| 'block.set'
|
|
2938
|
+
| 'block.unset'
|
|
2939
|
+
| 'decorator.add'
|
|
2940
|
+
| 'decorator.remove'
|
|
2941
|
+
| 'delete.backward'
|
|
2942
|
+
| 'delete.block'
|
|
2943
|
+
| 'delete.forward'
|
|
2944
|
+
| 'history.redo'
|
|
2945
|
+
| 'history.undo'
|
|
2946
|
+
| 'insert.inline object'
|
|
2947
|
+
| 'insert.block'
|
|
2948
|
+
| 'insert.span'
|
|
2949
|
+
| 'insert.text'
|
|
2950
|
+
| 'move.backward'
|
|
2951
|
+
| 'move.block'
|
|
2952
|
+
| 'move.forward'
|
|
2953
|
+
| 'annotation.toggle'
|
|
2954
|
+
| 'decorator.toggle'
|
|
2955
|
+
| 'delete.text'
|
|
2956
|
+
| 'insert.blocks'
|
|
2957
|
+
| 'insert.break'
|
|
2958
|
+
| 'insert.soft break'
|
|
2959
|
+
| 'list item.add'
|
|
2960
|
+
| 'list item.remove'
|
|
2961
|
+
| 'list item.toggle'
|
|
2962
|
+
| 'move.block down'
|
|
2963
|
+
| 'move.block up'
|
|
2964
|
+
| 'select.previous block'
|
|
2965
|
+
| 'select.next block'
|
|
2966
|
+
| 'style.add'
|
|
2967
|
+
| 'style.remove'
|
|
2968
|
+
| 'style.toggle',
|
|
2969
|
+
'deserialization.failure'
|
|
2970
|
+
>
|
|
2971
|
+
mimeType: MIMEType_2
|
|
2972
|
+
reason: string
|
|
2973
|
+
originEvent:
|
|
2974
|
+
| PickFromUnion_2<
|
|
2975
|
+
NativeBehaviorEvent_2,
|
|
2976
|
+
'type',
|
|
2977
|
+
'drag.drop' | 'clipboard.paste'
|
|
2978
|
+
>
|
|
2979
|
+
| InputBehaviorEvent_2
|
|
2980
|
+
}
|
|
2981
|
+
| {
|
|
2982
|
+
type: StrictExtract_2<
|
|
2983
|
+
| 'serialize'
|
|
2984
|
+
| 'serialization.failure'
|
|
2985
|
+
| 'serialization.success'
|
|
2986
|
+
| 'deserialize'
|
|
2987
|
+
| 'deserialization.failure'
|
|
2988
|
+
| 'deserialization.success'
|
|
2989
|
+
| 'split'
|
|
2990
|
+
| 'delete'
|
|
2991
|
+
| 'select'
|
|
2992
|
+
| 'annotation.add'
|
|
2993
|
+
| 'annotation.remove'
|
|
2994
|
+
| 'block.set'
|
|
2995
|
+
| 'block.unset'
|
|
2996
|
+
| 'decorator.add'
|
|
2997
|
+
| 'decorator.remove'
|
|
2998
|
+
| 'delete.backward'
|
|
2999
|
+
| 'delete.block'
|
|
3000
|
+
| 'delete.forward'
|
|
3001
|
+
| 'history.redo'
|
|
3002
|
+
| 'history.undo'
|
|
3003
|
+
| 'insert.inline object'
|
|
3004
|
+
| 'insert.block'
|
|
3005
|
+
| 'insert.span'
|
|
3006
|
+
| 'insert.text'
|
|
3007
|
+
| 'move.backward'
|
|
3008
|
+
| 'move.block'
|
|
3009
|
+
| 'move.forward'
|
|
3010
|
+
| 'annotation.toggle'
|
|
3011
|
+
| 'decorator.toggle'
|
|
3012
|
+
| 'delete.text'
|
|
3013
|
+
| 'insert.blocks'
|
|
3014
|
+
| 'insert.break'
|
|
3015
|
+
| 'insert.soft break'
|
|
3016
|
+
| 'list item.add'
|
|
3017
|
+
| 'list item.remove'
|
|
3018
|
+
| 'list item.toggle'
|
|
3019
|
+
| 'move.block down'
|
|
3020
|
+
| 'move.block up'
|
|
3021
|
+
| 'select.previous block'
|
|
3022
|
+
| 'select.next block'
|
|
3023
|
+
| 'style.add'
|
|
3024
|
+
| 'style.remove'
|
|
3025
|
+
| 'style.toggle',
|
|
3026
|
+
'serialization.success'
|
|
3027
|
+
>
|
|
3028
|
+
mimeType: MIMEType_2
|
|
3029
|
+
data: string
|
|
3030
|
+
originEvent: PickFromUnion_2<
|
|
3031
|
+
NativeBehaviorEvent_2,
|
|
3032
|
+
'type',
|
|
3033
|
+
'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
|
|
3034
|
+
>
|
|
3035
|
+
}
|
|
3036
|
+
| {
|
|
3037
|
+
type: StrictExtract_2<
|
|
3038
|
+
| 'serialize'
|
|
3039
|
+
| 'serialization.failure'
|
|
3040
|
+
| 'serialization.success'
|
|
3041
|
+
| 'deserialize'
|
|
3042
|
+
| 'deserialization.failure'
|
|
3043
|
+
| 'deserialization.success'
|
|
3044
|
+
| 'split'
|
|
3045
|
+
| 'delete'
|
|
3046
|
+
| 'select'
|
|
3047
|
+
| 'annotation.add'
|
|
3048
|
+
| 'annotation.remove'
|
|
3049
|
+
| 'block.set'
|
|
3050
|
+
| 'block.unset'
|
|
3051
|
+
| 'decorator.add'
|
|
3052
|
+
| 'decorator.remove'
|
|
3053
|
+
| 'delete.backward'
|
|
3054
|
+
| 'delete.block'
|
|
3055
|
+
| 'delete.forward'
|
|
3056
|
+
| 'history.redo'
|
|
3057
|
+
| 'history.undo'
|
|
3058
|
+
| 'insert.inline object'
|
|
3059
|
+
| 'insert.block'
|
|
3060
|
+
| 'insert.span'
|
|
3061
|
+
| 'insert.text'
|
|
3062
|
+
| 'move.backward'
|
|
3063
|
+
| 'move.block'
|
|
3064
|
+
| 'move.forward'
|
|
3065
|
+
| 'annotation.toggle'
|
|
3066
|
+
| 'decorator.toggle'
|
|
3067
|
+
| 'delete.text'
|
|
3068
|
+
| 'insert.blocks'
|
|
3069
|
+
| 'insert.break'
|
|
3070
|
+
| 'insert.soft break'
|
|
3071
|
+
| 'list item.add'
|
|
3072
|
+
| 'list item.remove'
|
|
3073
|
+
| 'list item.toggle'
|
|
3074
|
+
| 'move.block down'
|
|
3075
|
+
| 'move.block up'
|
|
3076
|
+
| 'select.previous block'
|
|
3077
|
+
| 'select.next block'
|
|
3078
|
+
| 'style.add'
|
|
3079
|
+
| 'style.remove'
|
|
3080
|
+
| 'style.toggle',
|
|
3081
|
+
'serialization.failure'
|
|
3082
|
+
>
|
|
3083
|
+
mimeType: MIMEType_2
|
|
3084
|
+
reason: string
|
|
3085
|
+
originEvent: PickFromUnion_2<
|
|
3086
|
+
NativeBehaviorEvent_2,
|
|
3087
|
+
'type',
|
|
3088
|
+
'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
|
|
3089
|
+
>
|
|
3090
|
+
}
|
|
3091
|
+
| {
|
|
3092
|
+
type: StrictExtract_2<
|
|
3093
|
+
| 'serialize'
|
|
3094
|
+
| 'serialization.failure'
|
|
3095
|
+
| 'serialization.success'
|
|
3096
|
+
| 'deserialize'
|
|
3097
|
+
| 'deserialization.failure'
|
|
3098
|
+
| 'deserialization.success'
|
|
3099
|
+
| 'split'
|
|
3100
|
+
| 'delete'
|
|
3101
|
+
| 'select'
|
|
3102
|
+
| 'annotation.add'
|
|
3103
|
+
| 'annotation.remove'
|
|
3104
|
+
| 'block.set'
|
|
3105
|
+
| 'block.unset'
|
|
3106
|
+
| 'decorator.add'
|
|
3107
|
+
| 'decorator.remove'
|
|
3108
|
+
| 'delete.backward'
|
|
3109
|
+
| 'delete.block'
|
|
3110
|
+
| 'delete.forward'
|
|
3111
|
+
| 'history.redo'
|
|
3112
|
+
| 'history.undo'
|
|
3113
|
+
| 'insert.inline object'
|
|
3114
|
+
| 'insert.block'
|
|
3115
|
+
| 'insert.span'
|
|
3116
|
+
| 'insert.text'
|
|
3117
|
+
| 'move.backward'
|
|
3118
|
+
| 'move.block'
|
|
3119
|
+
| 'move.forward'
|
|
3120
|
+
| 'annotation.toggle'
|
|
3121
|
+
| 'decorator.toggle'
|
|
3122
|
+
| 'delete.text'
|
|
3123
|
+
| 'insert.blocks'
|
|
3124
|
+
| 'insert.break'
|
|
3125
|
+
| 'insert.soft break'
|
|
3126
|
+
| 'list item.add'
|
|
3127
|
+
| 'list item.remove'
|
|
3128
|
+
| 'list item.toggle'
|
|
3129
|
+
| 'move.block down'
|
|
3130
|
+
| 'move.block up'
|
|
3131
|
+
| 'select.previous block'
|
|
3132
|
+
| 'select.next block'
|
|
3133
|
+
| 'style.add'
|
|
3134
|
+
| 'style.remove'
|
|
3135
|
+
| 'style.toggle',
|
|
3136
|
+
'insert.blocks'
|
|
3137
|
+
>
|
|
3138
|
+
blocks: Array<BlockWithOptionalKey_2>
|
|
3139
|
+
placement: InsertPlacement_2
|
|
3140
|
+
}
|
|
3141
|
+
| {
|
|
3142
|
+
type: StrictExtract_2<
|
|
3143
|
+
| 'serialize'
|
|
3144
|
+
| 'serialization.failure'
|
|
3145
|
+
| 'serialization.success'
|
|
3146
|
+
| 'deserialize'
|
|
3147
|
+
| 'deserialization.failure'
|
|
3148
|
+
| 'deserialization.success'
|
|
3149
|
+
| 'split'
|
|
3150
|
+
| 'delete'
|
|
3151
|
+
| 'select'
|
|
3152
|
+
| 'annotation.add'
|
|
3153
|
+
| 'annotation.remove'
|
|
3154
|
+
| 'block.set'
|
|
3155
|
+
| 'block.unset'
|
|
3156
|
+
| 'decorator.add'
|
|
3157
|
+
| 'decorator.remove'
|
|
3158
|
+
| 'delete.backward'
|
|
3159
|
+
| 'delete.block'
|
|
3160
|
+
| 'delete.forward'
|
|
3161
|
+
| 'history.redo'
|
|
3162
|
+
| 'history.undo'
|
|
3163
|
+
| 'insert.inline object'
|
|
3164
|
+
| 'insert.block'
|
|
3165
|
+
| 'insert.span'
|
|
3166
|
+
| 'insert.text'
|
|
3167
|
+
| 'move.backward'
|
|
3168
|
+
| 'move.block'
|
|
3169
|
+
| 'move.forward'
|
|
3170
|
+
| 'annotation.toggle'
|
|
3171
|
+
| 'decorator.toggle'
|
|
3172
|
+
| 'delete.text'
|
|
3173
|
+
| 'insert.blocks'
|
|
3174
|
+
| 'insert.break'
|
|
3175
|
+
| 'insert.soft break'
|
|
3176
|
+
| 'list item.add'
|
|
3177
|
+
| 'list item.remove'
|
|
3178
|
+
| 'list item.toggle'
|
|
3179
|
+
| 'move.block down'
|
|
3180
|
+
| 'move.block up'
|
|
3181
|
+
| 'select.previous block'
|
|
3182
|
+
| 'select.next block'
|
|
3183
|
+
| 'style.add'
|
|
3184
|
+
| 'style.remove'
|
|
3185
|
+
| 'style.toggle',
|
|
3186
|
+
'insert.break'
|
|
3187
|
+
>
|
|
3188
|
+
}
|
|
3189
|
+
| {
|
|
3190
|
+
type: StrictExtract_2<
|
|
3191
|
+
| 'serialize'
|
|
3192
|
+
| 'serialization.failure'
|
|
3193
|
+
| 'serialization.success'
|
|
3194
|
+
| 'deserialize'
|
|
3195
|
+
| 'deserialization.failure'
|
|
3196
|
+
| 'deserialization.success'
|
|
3197
|
+
| 'split'
|
|
3198
|
+
| 'delete'
|
|
3199
|
+
| 'select'
|
|
3200
|
+
| 'annotation.add'
|
|
3201
|
+
| 'annotation.remove'
|
|
3202
|
+
| 'block.set'
|
|
3203
|
+
| 'block.unset'
|
|
3204
|
+
| 'decorator.add'
|
|
3205
|
+
| 'decorator.remove'
|
|
3206
|
+
| 'delete.backward'
|
|
3207
|
+
| 'delete.block'
|
|
3208
|
+
| 'delete.forward'
|
|
3209
|
+
| 'history.redo'
|
|
3210
|
+
| 'history.undo'
|
|
3211
|
+
| 'insert.inline object'
|
|
3212
|
+
| 'insert.block'
|
|
3213
|
+
| 'insert.span'
|
|
3214
|
+
| 'insert.text'
|
|
3215
|
+
| 'move.backward'
|
|
3216
|
+
| 'move.block'
|
|
3217
|
+
| 'move.forward'
|
|
3218
|
+
| 'annotation.toggle'
|
|
3219
|
+
| 'decorator.toggle'
|
|
3220
|
+
| 'delete.text'
|
|
3221
|
+
| 'insert.blocks'
|
|
3222
|
+
| 'insert.break'
|
|
3223
|
+
| 'insert.soft break'
|
|
3224
|
+
| 'list item.add'
|
|
3225
|
+
| 'list item.remove'
|
|
3226
|
+
| 'list item.toggle'
|
|
3227
|
+
| 'move.block down'
|
|
3228
|
+
| 'move.block up'
|
|
3229
|
+
| 'select.previous block'
|
|
3230
|
+
| 'select.next block'
|
|
3231
|
+
| 'style.add'
|
|
3232
|
+
| 'style.remove'
|
|
3233
|
+
| 'style.toggle',
|
|
3234
|
+
'insert.soft break'
|
|
3235
|
+
>
|
|
3236
|
+
}
|
|
3237
|
+
| {
|
|
3238
|
+
type: StrictExtract_2<
|
|
3239
|
+
| 'serialize'
|
|
3240
|
+
| 'serialization.failure'
|
|
3241
|
+
| 'serialization.success'
|
|
3242
|
+
| 'deserialize'
|
|
3243
|
+
| 'deserialization.failure'
|
|
3244
|
+
| 'deserialization.success'
|
|
3245
|
+
| 'split'
|
|
3246
|
+
| 'delete'
|
|
3247
|
+
| 'select'
|
|
3248
|
+
| 'annotation.add'
|
|
3249
|
+
| 'annotation.remove'
|
|
3250
|
+
| 'block.set'
|
|
3251
|
+
| 'block.unset'
|
|
3252
|
+
| 'decorator.add'
|
|
3253
|
+
| 'decorator.remove'
|
|
3254
|
+
| 'delete.backward'
|
|
3255
|
+
| 'delete.block'
|
|
3256
|
+
| 'delete.forward'
|
|
3257
|
+
| 'history.redo'
|
|
3258
|
+
| 'history.undo'
|
|
3259
|
+
| 'insert.inline object'
|
|
3260
|
+
| 'insert.block'
|
|
3261
|
+
| 'insert.span'
|
|
3262
|
+
| 'insert.text'
|
|
3263
|
+
| 'move.backward'
|
|
3264
|
+
| 'move.block'
|
|
3265
|
+
| 'move.forward'
|
|
3266
|
+
| 'annotation.toggle'
|
|
3267
|
+
| 'decorator.toggle'
|
|
3268
|
+
| 'delete.text'
|
|
3269
|
+
| 'insert.blocks'
|
|
3270
|
+
| 'insert.break'
|
|
3271
|
+
| 'insert.soft break'
|
|
3272
|
+
| 'list item.add'
|
|
3273
|
+
| 'list item.remove'
|
|
3274
|
+
| 'list item.toggle'
|
|
3275
|
+
| 'move.block down'
|
|
3276
|
+
| 'move.block up'
|
|
3277
|
+
| 'select.previous block'
|
|
3278
|
+
| 'select.next block'
|
|
3279
|
+
| 'style.add'
|
|
3280
|
+
| 'style.remove'
|
|
3281
|
+
| 'style.toggle',
|
|
3282
|
+
'list item.add'
|
|
3283
|
+
>
|
|
3284
|
+
listItem: string
|
|
3285
|
+
}
|
|
3286
|
+
| {
|
|
3287
|
+
type: StrictExtract_2<
|
|
3288
|
+
| 'serialize'
|
|
3289
|
+
| 'serialization.failure'
|
|
3290
|
+
| 'serialization.success'
|
|
3291
|
+
| 'deserialize'
|
|
3292
|
+
| 'deserialization.failure'
|
|
3293
|
+
| 'deserialization.success'
|
|
3294
|
+
| 'split'
|
|
3295
|
+
| 'delete'
|
|
3296
|
+
| 'select'
|
|
3297
|
+
| 'annotation.add'
|
|
3298
|
+
| 'annotation.remove'
|
|
3299
|
+
| 'block.set'
|
|
3300
|
+
| 'block.unset'
|
|
3301
|
+
| 'decorator.add'
|
|
3302
|
+
| 'decorator.remove'
|
|
3303
|
+
| 'delete.backward'
|
|
3304
|
+
| 'delete.block'
|
|
3305
|
+
| 'delete.forward'
|
|
3306
|
+
| 'history.redo'
|
|
3307
|
+
| 'history.undo'
|
|
3308
|
+
| 'insert.inline object'
|
|
3309
|
+
| 'insert.block'
|
|
3310
|
+
| 'insert.span'
|
|
3311
|
+
| 'insert.text'
|
|
3312
|
+
| 'move.backward'
|
|
3313
|
+
| 'move.block'
|
|
3314
|
+
| 'move.forward'
|
|
3315
|
+
| 'annotation.toggle'
|
|
3316
|
+
| 'decorator.toggle'
|
|
3317
|
+
| 'delete.text'
|
|
3318
|
+
| 'insert.blocks'
|
|
3319
|
+
| 'insert.break'
|
|
3320
|
+
| 'insert.soft break'
|
|
3321
|
+
| 'list item.add'
|
|
3322
|
+
| 'list item.remove'
|
|
3323
|
+
| 'list item.toggle'
|
|
3324
|
+
| 'move.block down'
|
|
3325
|
+
| 'move.block up'
|
|
3326
|
+
| 'select.previous block'
|
|
3327
|
+
| 'select.next block'
|
|
3328
|
+
| 'style.add'
|
|
3329
|
+
| 'style.remove'
|
|
3330
|
+
| 'style.toggle',
|
|
3331
|
+
'list item.remove'
|
|
3332
|
+
>
|
|
3333
|
+
listItem: string
|
|
3334
|
+
}
|
|
3335
|
+
| {
|
|
3336
|
+
type: StrictExtract_2<
|
|
3337
|
+
| 'serialize'
|
|
3338
|
+
| 'serialization.failure'
|
|
3339
|
+
| 'serialization.success'
|
|
3340
|
+
| 'deserialize'
|
|
3341
|
+
| 'deserialization.failure'
|
|
3342
|
+
| 'deserialization.success'
|
|
3343
|
+
| 'split'
|
|
3344
|
+
| 'delete'
|
|
3345
|
+
| 'select'
|
|
3346
|
+
| 'annotation.add'
|
|
3347
|
+
| 'annotation.remove'
|
|
3348
|
+
| 'block.set'
|
|
3349
|
+
| 'block.unset'
|
|
3350
|
+
| 'decorator.add'
|
|
3351
|
+
| 'decorator.remove'
|
|
3352
|
+
| 'delete.backward'
|
|
3353
|
+
| 'delete.block'
|
|
3354
|
+
| 'delete.forward'
|
|
3355
|
+
| 'history.redo'
|
|
3356
|
+
| 'history.undo'
|
|
3357
|
+
| 'insert.inline object'
|
|
3358
|
+
| 'insert.block'
|
|
3359
|
+
| 'insert.span'
|
|
3360
|
+
| 'insert.text'
|
|
3361
|
+
| 'move.backward'
|
|
3362
|
+
| 'move.block'
|
|
3363
|
+
| 'move.forward'
|
|
3364
|
+
| 'annotation.toggle'
|
|
3365
|
+
| 'decorator.toggle'
|
|
3366
|
+
| 'delete.text'
|
|
3367
|
+
| 'insert.blocks'
|
|
3368
|
+
| 'insert.break'
|
|
3369
|
+
| 'insert.soft break'
|
|
3370
|
+
| 'list item.add'
|
|
3371
|
+
| 'list item.remove'
|
|
3372
|
+
| 'list item.toggle'
|
|
3373
|
+
| 'move.block down'
|
|
3374
|
+
| 'move.block up'
|
|
3375
|
+
| 'select.previous block'
|
|
3376
|
+
| 'select.next block'
|
|
3377
|
+
| 'style.add'
|
|
3378
|
+
| 'style.remove'
|
|
3379
|
+
| 'style.toggle',
|
|
3380
|
+
'list item.toggle'
|
|
3381
|
+
>
|
|
3382
|
+
listItem: string
|
|
3383
|
+
}
|
|
3384
|
+
| {
|
|
3385
|
+
type: StrictExtract_2<
|
|
3386
|
+
| 'serialize'
|
|
3387
|
+
| 'serialization.failure'
|
|
3388
|
+
| 'serialization.success'
|
|
3389
|
+
| 'deserialize'
|
|
3390
|
+
| 'deserialization.failure'
|
|
3391
|
+
| 'deserialization.success'
|
|
3392
|
+
| 'split'
|
|
3393
|
+
| 'delete'
|
|
3394
|
+
| 'select'
|
|
3395
|
+
| 'annotation.add'
|
|
3396
|
+
| 'annotation.remove'
|
|
3397
|
+
| 'block.set'
|
|
3398
|
+
| 'block.unset'
|
|
3399
|
+
| 'decorator.add'
|
|
3400
|
+
| 'decorator.remove'
|
|
3401
|
+
| 'delete.backward'
|
|
3402
|
+
| 'delete.block'
|
|
3403
|
+
| 'delete.forward'
|
|
3404
|
+
| 'history.redo'
|
|
3405
|
+
| 'history.undo'
|
|
3406
|
+
| 'insert.inline object'
|
|
3407
|
+
| 'insert.block'
|
|
3408
|
+
| 'insert.span'
|
|
3409
|
+
| 'insert.text'
|
|
3410
|
+
| 'move.backward'
|
|
3411
|
+
| 'move.block'
|
|
3412
|
+
| 'move.forward'
|
|
3413
|
+
| 'annotation.toggle'
|
|
3414
|
+
| 'decorator.toggle'
|
|
3415
|
+
| 'delete.text'
|
|
3416
|
+
| 'insert.blocks'
|
|
3417
|
+
| 'insert.break'
|
|
3418
|
+
| 'insert.soft break'
|
|
3419
|
+
| 'list item.add'
|
|
3420
|
+
| 'list item.remove'
|
|
3421
|
+
| 'list item.toggle'
|
|
3422
|
+
| 'move.block down'
|
|
3423
|
+
| 'move.block up'
|
|
3424
|
+
| 'select.previous block'
|
|
3425
|
+
| 'select.next block'
|
|
3426
|
+
| 'style.add'
|
|
3427
|
+
| 'style.remove'
|
|
3428
|
+
| 'style.toggle',
|
|
3429
|
+
'move.block down'
|
|
3430
|
+
>
|
|
3431
|
+
at: [KeyedSegment]
|
|
3432
|
+
}
|
|
3433
|
+
| {
|
|
3434
|
+
type: StrictExtract_2<
|
|
3435
|
+
| 'serialize'
|
|
3436
|
+
| 'serialization.failure'
|
|
3437
|
+
| 'serialization.success'
|
|
3438
|
+
| 'deserialize'
|
|
3439
|
+
| 'deserialization.failure'
|
|
3440
|
+
| 'deserialization.success'
|
|
3441
|
+
| 'split'
|
|
3442
|
+
| 'delete'
|
|
3443
|
+
| 'select'
|
|
3444
|
+
| 'annotation.add'
|
|
3445
|
+
| 'annotation.remove'
|
|
3446
|
+
| 'block.set'
|
|
3447
|
+
| 'block.unset'
|
|
3448
|
+
| 'decorator.add'
|
|
3449
|
+
| 'decorator.remove'
|
|
3450
|
+
| 'delete.backward'
|
|
3451
|
+
| 'delete.block'
|
|
3452
|
+
| 'delete.forward'
|
|
3453
|
+
| 'history.redo'
|
|
3454
|
+
| 'history.undo'
|
|
3455
|
+
| 'insert.inline object'
|
|
3456
|
+
| 'insert.block'
|
|
3457
|
+
| 'insert.span'
|
|
3458
|
+
| 'insert.text'
|
|
3459
|
+
| 'move.backward'
|
|
3460
|
+
| 'move.block'
|
|
3461
|
+
| 'move.forward'
|
|
3462
|
+
| 'annotation.toggle'
|
|
3463
|
+
| 'decorator.toggle'
|
|
3464
|
+
| 'delete.text'
|
|
3465
|
+
| 'insert.blocks'
|
|
3466
|
+
| 'insert.break'
|
|
3467
|
+
| 'insert.soft break'
|
|
3468
|
+
| 'list item.add'
|
|
3469
|
+
| 'list item.remove'
|
|
3470
|
+
| 'list item.toggle'
|
|
3471
|
+
| 'move.block down'
|
|
3472
|
+
| 'move.block up'
|
|
3473
|
+
| 'select.previous block'
|
|
3474
|
+
| 'select.next block'
|
|
3475
|
+
| 'style.add'
|
|
3476
|
+
| 'style.remove'
|
|
3477
|
+
| 'style.toggle',
|
|
3478
|
+
'move.block up'
|
|
3479
|
+
>
|
|
3480
|
+
at: [KeyedSegment]
|
|
3481
|
+
}
|
|
3482
|
+
| {
|
|
3483
|
+
type: StrictExtract_2<
|
|
3484
|
+
| 'serialize'
|
|
3485
|
+
| 'serialization.failure'
|
|
3486
|
+
| 'serialization.success'
|
|
3487
|
+
| 'deserialize'
|
|
3488
|
+
| 'deserialization.failure'
|
|
3489
|
+
| 'deserialization.success'
|
|
3490
|
+
| 'split'
|
|
3491
|
+
| 'delete'
|
|
3492
|
+
| 'select'
|
|
3493
|
+
| 'annotation.add'
|
|
3494
|
+
| 'annotation.remove'
|
|
3495
|
+
| 'block.set'
|
|
3496
|
+
| 'block.unset'
|
|
3497
|
+
| 'decorator.add'
|
|
3498
|
+
| 'decorator.remove'
|
|
3499
|
+
| 'delete.backward'
|
|
3500
|
+
| 'delete.block'
|
|
3501
|
+
| 'delete.forward'
|
|
3502
|
+
| 'history.redo'
|
|
3503
|
+
| 'history.undo'
|
|
3504
|
+
| 'insert.inline object'
|
|
3505
|
+
| 'insert.block'
|
|
3506
|
+
| 'insert.span'
|
|
3507
|
+
| 'insert.text'
|
|
3508
|
+
| 'move.backward'
|
|
3509
|
+
| 'move.block'
|
|
3510
|
+
| 'move.forward'
|
|
3511
|
+
| 'annotation.toggle'
|
|
3512
|
+
| 'decorator.toggle'
|
|
3513
|
+
| 'delete.text'
|
|
3514
|
+
| 'insert.blocks'
|
|
3515
|
+
| 'insert.break'
|
|
3516
|
+
| 'insert.soft break'
|
|
3517
|
+
| 'list item.add'
|
|
3518
|
+
| 'list item.remove'
|
|
3519
|
+
| 'list item.toggle'
|
|
3520
|
+
| 'move.block down'
|
|
3521
|
+
| 'move.block up'
|
|
3522
|
+
| 'select.previous block'
|
|
3523
|
+
| 'select.next block'
|
|
3524
|
+
| 'style.add'
|
|
3525
|
+
| 'style.remove'
|
|
3526
|
+
| 'style.toggle',
|
|
3527
|
+
'select.previous block'
|
|
3528
|
+
>
|
|
3529
|
+
select?: 'start' | 'end'
|
|
3530
|
+
}
|
|
3531
|
+
| {
|
|
3532
|
+
type: StrictExtract_2<
|
|
3533
|
+
| 'serialize'
|
|
3534
|
+
| 'serialization.failure'
|
|
3535
|
+
| 'serialization.success'
|
|
3536
|
+
| 'deserialize'
|
|
3537
|
+
| 'deserialization.failure'
|
|
3538
|
+
| 'deserialization.success'
|
|
3539
|
+
| 'split'
|
|
3540
|
+
| 'delete'
|
|
3541
|
+
| 'select'
|
|
3542
|
+
| 'annotation.add'
|
|
3543
|
+
| 'annotation.remove'
|
|
3544
|
+
| 'block.set'
|
|
3545
|
+
| 'block.unset'
|
|
3546
|
+
| 'decorator.add'
|
|
3547
|
+
| 'decorator.remove'
|
|
3548
|
+
| 'delete.backward'
|
|
3549
|
+
| 'delete.block'
|
|
3550
|
+
| 'delete.forward'
|
|
3551
|
+
| 'history.redo'
|
|
3552
|
+
| 'history.undo'
|
|
3553
|
+
| 'insert.inline object'
|
|
3554
|
+
| 'insert.block'
|
|
3555
|
+
| 'insert.span'
|
|
3556
|
+
| 'insert.text'
|
|
3557
|
+
| 'move.backward'
|
|
3558
|
+
| 'move.block'
|
|
3559
|
+
| 'move.forward'
|
|
3560
|
+
| 'annotation.toggle'
|
|
3561
|
+
| 'decorator.toggle'
|
|
3562
|
+
| 'delete.text'
|
|
3563
|
+
| 'insert.blocks'
|
|
3564
|
+
| 'insert.break'
|
|
3565
|
+
| 'insert.soft break'
|
|
3566
|
+
| 'list item.add'
|
|
3567
|
+
| 'list item.remove'
|
|
3568
|
+
| 'list item.toggle'
|
|
3569
|
+
| 'move.block down'
|
|
3570
|
+
| 'move.block up'
|
|
3571
|
+
| 'select.previous block'
|
|
3572
|
+
| 'select.next block'
|
|
3573
|
+
| 'style.add'
|
|
3574
|
+
| 'style.remove'
|
|
3575
|
+
| 'style.toggle',
|
|
3576
|
+
'select.next block'
|
|
3577
|
+
>
|
|
3578
|
+
select?: 'start' | 'end'
|
|
3579
|
+
}
|
|
3580
|
+
| {
|
|
3581
|
+
type: StrictExtract_2<
|
|
3582
|
+
| 'serialize'
|
|
3583
|
+
| 'serialization.failure'
|
|
3584
|
+
| 'serialization.success'
|
|
3585
|
+
| 'deserialize'
|
|
3586
|
+
| 'deserialization.failure'
|
|
3587
|
+
| 'deserialization.success'
|
|
3588
|
+
| 'split'
|
|
3589
|
+
| 'delete'
|
|
3590
|
+
| 'select'
|
|
3591
|
+
| 'annotation.add'
|
|
3592
|
+
| 'annotation.remove'
|
|
3593
|
+
| 'block.set'
|
|
3594
|
+
| 'block.unset'
|
|
3595
|
+
| 'decorator.add'
|
|
3596
|
+
| 'decorator.remove'
|
|
3597
|
+
| 'delete.backward'
|
|
3598
|
+
| 'delete.block'
|
|
3599
|
+
| 'delete.forward'
|
|
3600
|
+
| 'history.redo'
|
|
3601
|
+
| 'history.undo'
|
|
3602
|
+
| 'insert.inline object'
|
|
3603
|
+
| 'insert.block'
|
|
3604
|
+
| 'insert.span'
|
|
3605
|
+
| 'insert.text'
|
|
3606
|
+
| 'move.backward'
|
|
3607
|
+
| 'move.block'
|
|
3608
|
+
| 'move.forward'
|
|
3609
|
+
| 'annotation.toggle'
|
|
3610
|
+
| 'decorator.toggle'
|
|
3611
|
+
| 'delete.text'
|
|
3612
|
+
| 'insert.blocks'
|
|
3613
|
+
| 'insert.break'
|
|
3614
|
+
| 'insert.soft break'
|
|
3615
|
+
| 'list item.add'
|
|
3616
|
+
| 'list item.remove'
|
|
3617
|
+
| 'list item.toggle'
|
|
3618
|
+
| 'move.block down'
|
|
3619
|
+
| 'move.block up'
|
|
3620
|
+
| 'select.previous block'
|
|
3621
|
+
| 'select.next block'
|
|
3622
|
+
| 'style.add'
|
|
3623
|
+
| 'style.remove'
|
|
3624
|
+
| 'style.toggle',
|
|
3625
|
+
'split'
|
|
3626
|
+
>
|
|
3627
|
+
}
|
|
3628
|
+
| {
|
|
3629
|
+
type: StrictExtract_2<
|
|
3630
|
+
| 'serialize'
|
|
3631
|
+
| 'serialization.failure'
|
|
3632
|
+
| 'serialization.success'
|
|
3633
|
+
| 'deserialize'
|
|
3634
|
+
| 'deserialization.failure'
|
|
3635
|
+
| 'deserialization.success'
|
|
3636
|
+
| 'split'
|
|
3637
|
+
| 'delete'
|
|
3638
|
+
| 'select'
|
|
3639
|
+
| 'annotation.add'
|
|
3640
|
+
| 'annotation.remove'
|
|
3641
|
+
| 'block.set'
|
|
3642
|
+
| 'block.unset'
|
|
3643
|
+
| 'decorator.add'
|
|
3644
|
+
| 'decorator.remove'
|
|
3645
|
+
| 'delete.backward'
|
|
3646
|
+
| 'delete.block'
|
|
3647
|
+
| 'delete.forward'
|
|
3648
|
+
| 'history.redo'
|
|
3649
|
+
| 'history.undo'
|
|
3650
|
+
| 'insert.inline object'
|
|
3651
|
+
| 'insert.block'
|
|
3652
|
+
| 'insert.span'
|
|
3653
|
+
| 'insert.text'
|
|
3654
|
+
| 'move.backward'
|
|
3655
|
+
| 'move.block'
|
|
3656
|
+
| 'move.forward'
|
|
3657
|
+
| 'annotation.toggle'
|
|
3658
|
+
| 'decorator.toggle'
|
|
3659
|
+
| 'delete.text'
|
|
3660
|
+
| 'insert.blocks'
|
|
3661
|
+
| 'insert.break'
|
|
3662
|
+
| 'insert.soft break'
|
|
3663
|
+
| 'list item.add'
|
|
3664
|
+
| 'list item.remove'
|
|
3665
|
+
| 'list item.toggle'
|
|
3666
|
+
| 'move.block down'
|
|
3667
|
+
| 'move.block up'
|
|
3668
|
+
| 'select.previous block'
|
|
3669
|
+
| 'select.next block'
|
|
3670
|
+
| 'style.add'
|
|
3671
|
+
| 'style.remove'
|
|
3672
|
+
| 'style.toggle',
|
|
3673
|
+
'style.add'
|
|
3674
|
+
>
|
|
3675
|
+
style: string
|
|
3676
|
+
}
|
|
3677
|
+
| {
|
|
3678
|
+
type: StrictExtract_2<
|
|
3679
|
+
| 'serialize'
|
|
3680
|
+
| 'serialization.failure'
|
|
3681
|
+
| 'serialization.success'
|
|
3682
|
+
| 'deserialize'
|
|
3683
|
+
| 'deserialization.failure'
|
|
3684
|
+
| 'deserialization.success'
|
|
3685
|
+
| 'split'
|
|
3686
|
+
| 'delete'
|
|
3687
|
+
| 'select'
|
|
3688
|
+
| 'annotation.add'
|
|
3689
|
+
| 'annotation.remove'
|
|
3690
|
+
| 'block.set'
|
|
3691
|
+
| 'block.unset'
|
|
3692
|
+
| 'decorator.add'
|
|
3693
|
+
| 'decorator.remove'
|
|
3694
|
+
| 'delete.backward'
|
|
3695
|
+
| 'delete.block'
|
|
3696
|
+
| 'delete.forward'
|
|
3697
|
+
| 'history.redo'
|
|
3698
|
+
| 'history.undo'
|
|
3699
|
+
| 'insert.inline object'
|
|
3700
|
+
| 'insert.block'
|
|
3701
|
+
| 'insert.span'
|
|
3702
|
+
| 'insert.text'
|
|
3703
|
+
| 'move.backward'
|
|
3704
|
+
| 'move.block'
|
|
3705
|
+
| 'move.forward'
|
|
3706
|
+
| 'annotation.toggle'
|
|
3707
|
+
| 'decorator.toggle'
|
|
3708
|
+
| 'delete.text'
|
|
3709
|
+
| 'insert.blocks'
|
|
3710
|
+
| 'insert.break'
|
|
3711
|
+
| 'insert.soft break'
|
|
3712
|
+
| 'list item.add'
|
|
3713
|
+
| 'list item.remove'
|
|
3714
|
+
| 'list item.toggle'
|
|
3715
|
+
| 'move.block down'
|
|
3716
|
+
| 'move.block up'
|
|
3717
|
+
| 'select.previous block'
|
|
3718
|
+
| 'select.next block'
|
|
3719
|
+
| 'style.add'
|
|
3720
|
+
| 'style.remove'
|
|
3721
|
+
| 'style.toggle',
|
|
3722
|
+
'style.remove'
|
|
3723
|
+
>
|
|
3724
|
+
style: string
|
|
3725
|
+
}
|
|
3726
|
+
| {
|
|
3727
|
+
type: StrictExtract_2<
|
|
3728
|
+
| 'serialize'
|
|
3729
|
+
| 'serialization.failure'
|
|
3730
|
+
| 'serialization.success'
|
|
3731
|
+
| 'deserialize'
|
|
3732
|
+
| 'deserialization.failure'
|
|
3733
|
+
| 'deserialization.success'
|
|
3734
|
+
| 'split'
|
|
3735
|
+
| 'delete'
|
|
3736
|
+
| 'select'
|
|
3737
|
+
| 'annotation.add'
|
|
3738
|
+
| 'annotation.remove'
|
|
3739
|
+
| 'block.set'
|
|
3740
|
+
| 'block.unset'
|
|
3741
|
+
| 'decorator.add'
|
|
3742
|
+
| 'decorator.remove'
|
|
3743
|
+
| 'delete.backward'
|
|
3744
|
+
| 'delete.block'
|
|
3745
|
+
| 'delete.forward'
|
|
3746
|
+
| 'history.redo'
|
|
3747
|
+
| 'history.undo'
|
|
3748
|
+
| 'insert.inline object'
|
|
3749
|
+
| 'insert.block'
|
|
3750
|
+
| 'insert.span'
|
|
3751
|
+
| 'insert.text'
|
|
3752
|
+
| 'move.backward'
|
|
3753
|
+
| 'move.block'
|
|
3754
|
+
| 'move.forward'
|
|
3755
|
+
| 'annotation.toggle'
|
|
3756
|
+
| 'decorator.toggle'
|
|
3757
|
+
| 'delete.text'
|
|
3758
|
+
| 'insert.blocks'
|
|
3759
|
+
| 'insert.break'
|
|
3760
|
+
| 'insert.soft break'
|
|
3761
|
+
| 'list item.add'
|
|
3762
|
+
| 'list item.remove'
|
|
3763
|
+
| 'list item.toggle'
|
|
3764
|
+
| 'move.block down'
|
|
3765
|
+
| 'move.block up'
|
|
3766
|
+
| 'select.previous block'
|
|
3767
|
+
| 'select.next block'
|
|
3768
|
+
| 'style.add'
|
|
3769
|
+
| 'style.remove'
|
|
3770
|
+
| 'style.toggle',
|
|
3771
|
+
'style.toggle'
|
|
3772
|
+
>
|
|
3773
|
+
style: string
|
|
3774
|
+
}
|
|
3775
|
+
| {
|
|
3776
|
+
type: StrictExtract_2<
|
|
3777
|
+
| 'clipboard.copy'
|
|
3778
|
+
| 'clipboard.cut'
|
|
3779
|
+
| 'drag.dragstart'
|
|
3780
|
+
| 'clipboard.paste'
|
|
3781
|
+
| 'drag.drag'
|
|
3782
|
+
| 'drag.dragend'
|
|
3783
|
+
| 'drag.dragenter'
|
|
3784
|
+
| 'drag.dragover'
|
|
3785
|
+
| 'drag.dragleave'
|
|
3786
|
+
| 'drag.drop'
|
|
3787
|
+
| 'input.*'
|
|
3788
|
+
| 'keyboard.keydown'
|
|
3789
|
+
| 'keyboard.keyup'
|
|
3790
|
+
| 'mouse.click',
|
|
3791
|
+
'clipboard.copy'
|
|
3792
|
+
>
|
|
3793
|
+
originEvent: {
|
|
3794
|
+
dataTransfer: DataTransfer
|
|
3795
|
+
}
|
|
3796
|
+
position: Pick<EventPosition, 'selection'>
|
|
3797
|
+
}
|
|
3798
|
+
| {
|
|
3799
|
+
type: StrictExtract_2<
|
|
3800
|
+
| 'clipboard.copy'
|
|
3801
|
+
| 'clipboard.cut'
|
|
3802
|
+
| 'drag.dragstart'
|
|
3803
|
+
| 'clipboard.paste'
|
|
3804
|
+
| 'drag.drag'
|
|
3805
|
+
| 'drag.dragend'
|
|
3806
|
+
| 'drag.dragenter'
|
|
3807
|
+
| 'drag.dragover'
|
|
3808
|
+
| 'drag.dragleave'
|
|
3809
|
+
| 'drag.drop'
|
|
3810
|
+
| 'input.*'
|
|
3811
|
+
| 'keyboard.keydown'
|
|
3812
|
+
| 'keyboard.keyup'
|
|
3813
|
+
| 'mouse.click',
|
|
3814
|
+
'clipboard.cut'
|
|
3815
|
+
>
|
|
3816
|
+
originEvent: {
|
|
3817
|
+
dataTransfer: DataTransfer
|
|
3818
|
+
}
|
|
3819
|
+
position: Pick<EventPosition, 'selection'>
|
|
3820
|
+
}
|
|
3821
|
+
| {
|
|
3822
|
+
type: StrictExtract_2<
|
|
3823
|
+
| 'clipboard.copy'
|
|
3824
|
+
| 'clipboard.cut'
|
|
3825
|
+
| 'drag.dragstart'
|
|
3826
|
+
| 'clipboard.paste'
|
|
3827
|
+
| 'drag.drag'
|
|
3828
|
+
| 'drag.dragend'
|
|
3829
|
+
| 'drag.dragenter'
|
|
3830
|
+
| 'drag.dragover'
|
|
3831
|
+
| 'drag.dragleave'
|
|
3832
|
+
| 'drag.drop'
|
|
3833
|
+
| 'input.*'
|
|
3834
|
+
| 'keyboard.keydown'
|
|
3835
|
+
| 'keyboard.keyup'
|
|
3836
|
+
| 'mouse.click',
|
|
3837
|
+
'clipboard.paste'
|
|
3838
|
+
>
|
|
3839
|
+
originEvent: {
|
|
3840
|
+
dataTransfer: DataTransfer
|
|
3841
|
+
}
|
|
3842
|
+
position: Pick<EventPosition, 'selection'>
|
|
3843
|
+
}
|
|
3844
|
+
| {
|
|
3845
|
+
type: StrictExtract_2<
|
|
3846
|
+
| 'clipboard.copy'
|
|
3847
|
+
| 'clipboard.cut'
|
|
3848
|
+
| 'drag.dragstart'
|
|
3849
|
+
| 'clipboard.paste'
|
|
3850
|
+
| 'drag.drag'
|
|
3851
|
+
| 'drag.dragend'
|
|
3852
|
+
| 'drag.dragenter'
|
|
3853
|
+
| 'drag.dragover'
|
|
3854
|
+
| 'drag.dragleave'
|
|
3855
|
+
| 'drag.drop'
|
|
3856
|
+
| 'input.*'
|
|
3857
|
+
| 'keyboard.keydown'
|
|
3858
|
+
| 'keyboard.keyup'
|
|
3859
|
+
| 'mouse.click',
|
|
3860
|
+
'drag.dragstart'
|
|
3861
|
+
>
|
|
3862
|
+
originEvent: {
|
|
3863
|
+
dataTransfer: DataTransfer
|
|
3864
|
+
}
|
|
3865
|
+
position: Pick<EventPosition, 'selection'>
|
|
3866
|
+
}
|
|
3867
|
+
| {
|
|
3868
|
+
type: StrictExtract_2<
|
|
3869
|
+
| 'clipboard.copy'
|
|
3870
|
+
| 'clipboard.cut'
|
|
3871
|
+
| 'drag.dragstart'
|
|
3872
|
+
| 'clipboard.paste'
|
|
3873
|
+
| 'drag.drag'
|
|
3874
|
+
| 'drag.dragend'
|
|
3875
|
+
| 'drag.dragenter'
|
|
3876
|
+
| 'drag.dragover'
|
|
3877
|
+
| 'drag.dragleave'
|
|
3878
|
+
| 'drag.drop'
|
|
3879
|
+
| 'input.*'
|
|
3880
|
+
| 'keyboard.keydown'
|
|
3881
|
+
| 'keyboard.keyup'
|
|
3882
|
+
| 'mouse.click',
|
|
3883
|
+
'drag.drag'
|
|
3884
|
+
>
|
|
3885
|
+
originEvent: {
|
|
3886
|
+
dataTransfer: DataTransfer
|
|
3887
|
+
}
|
|
3888
|
+
}
|
|
3889
|
+
| {
|
|
3890
|
+
type: StrictExtract_2<
|
|
3891
|
+
| 'clipboard.copy'
|
|
3892
|
+
| 'clipboard.cut'
|
|
3893
|
+
| 'drag.dragstart'
|
|
3894
|
+
| 'clipboard.paste'
|
|
3895
|
+
| 'drag.drag'
|
|
3896
|
+
| 'drag.dragend'
|
|
3897
|
+
| 'drag.dragenter'
|
|
3898
|
+
| 'drag.dragover'
|
|
3899
|
+
| 'drag.dragleave'
|
|
3900
|
+
| 'drag.drop'
|
|
3901
|
+
| 'input.*'
|
|
3902
|
+
| 'keyboard.keydown'
|
|
3903
|
+
| 'keyboard.keyup'
|
|
3904
|
+
| 'mouse.click',
|
|
3905
|
+
'drag.dragend'
|
|
3906
|
+
>
|
|
3907
|
+
originEvent: {
|
|
3908
|
+
dataTransfer: DataTransfer
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
| {
|
|
3912
|
+
type: StrictExtract_2<
|
|
3913
|
+
| 'clipboard.copy'
|
|
3914
|
+
| 'clipboard.cut'
|
|
3915
|
+
| 'drag.dragstart'
|
|
3916
|
+
| 'clipboard.paste'
|
|
3917
|
+
| 'drag.drag'
|
|
3918
|
+
| 'drag.dragend'
|
|
3919
|
+
| 'drag.dragenter'
|
|
3920
|
+
| 'drag.dragover'
|
|
3921
|
+
| 'drag.dragleave'
|
|
3922
|
+
| 'drag.drop'
|
|
3923
|
+
| 'input.*'
|
|
3924
|
+
| 'keyboard.keydown'
|
|
3925
|
+
| 'keyboard.keyup'
|
|
3926
|
+
| 'mouse.click',
|
|
3927
|
+
'drag.dragenter'
|
|
3928
|
+
>
|
|
3929
|
+
originEvent: {
|
|
3930
|
+
dataTransfer: DataTransfer
|
|
3931
|
+
}
|
|
3932
|
+
position: EventPosition
|
|
3933
|
+
}
|
|
3934
|
+
| {
|
|
3935
|
+
type: StrictExtract_2<
|
|
3936
|
+
| 'clipboard.copy'
|
|
3937
|
+
| 'clipboard.cut'
|
|
3938
|
+
| 'drag.dragstart'
|
|
3939
|
+
| 'clipboard.paste'
|
|
3940
|
+
| 'drag.drag'
|
|
3941
|
+
| 'drag.dragend'
|
|
3942
|
+
| 'drag.dragenter'
|
|
3943
|
+
| 'drag.dragover'
|
|
3944
|
+
| 'drag.dragleave'
|
|
3945
|
+
| 'drag.drop'
|
|
3946
|
+
| 'input.*'
|
|
3947
|
+
| 'keyboard.keydown'
|
|
3948
|
+
| 'keyboard.keyup'
|
|
3949
|
+
| 'mouse.click',
|
|
3950
|
+
'drag.dragover'
|
|
3951
|
+
>
|
|
3952
|
+
originEvent: {
|
|
3953
|
+
dataTransfer: DataTransfer
|
|
3954
|
+
}
|
|
3955
|
+
position: EventPosition
|
|
3956
|
+
}
|
|
3957
|
+
| {
|
|
3958
|
+
type: StrictExtract_2<
|
|
3959
|
+
| 'clipboard.copy'
|
|
3960
|
+
| 'clipboard.cut'
|
|
3961
|
+
| 'drag.dragstart'
|
|
3962
|
+
| 'clipboard.paste'
|
|
3963
|
+
| 'drag.drag'
|
|
3964
|
+
| 'drag.dragend'
|
|
3965
|
+
| 'drag.dragenter'
|
|
3966
|
+
| 'drag.dragover'
|
|
3967
|
+
| 'drag.dragleave'
|
|
3968
|
+
| 'drag.drop'
|
|
3969
|
+
| 'input.*'
|
|
3970
|
+
| 'keyboard.keydown'
|
|
3971
|
+
| 'keyboard.keyup'
|
|
3972
|
+
| 'mouse.click',
|
|
3973
|
+
'drag.drop'
|
|
3974
|
+
>
|
|
3975
|
+
originEvent: {
|
|
3976
|
+
dataTransfer: DataTransfer
|
|
3977
|
+
}
|
|
3978
|
+
position: EventPosition
|
|
3979
|
+
}
|
|
3980
|
+
| {
|
|
3981
|
+
type: StrictExtract_2<
|
|
3982
|
+
| 'clipboard.copy'
|
|
3983
|
+
| 'clipboard.cut'
|
|
3984
|
+
| 'drag.dragstart'
|
|
3985
|
+
| 'clipboard.paste'
|
|
3986
|
+
| 'drag.drag'
|
|
3987
|
+
| 'drag.dragend'
|
|
3988
|
+
| 'drag.dragenter'
|
|
3989
|
+
| 'drag.dragover'
|
|
3990
|
+
| 'drag.dragleave'
|
|
3991
|
+
| 'drag.drop'
|
|
3992
|
+
| 'input.*'
|
|
3993
|
+
| 'keyboard.keydown'
|
|
3994
|
+
| 'keyboard.keyup'
|
|
3995
|
+
| 'mouse.click',
|
|
3996
|
+
'drag.dragleave'
|
|
3997
|
+
>
|
|
3998
|
+
originEvent: {
|
|
3999
|
+
dataTransfer: DataTransfer
|
|
4000
|
+
}
|
|
4001
|
+
}
|
|
4002
|
+
| InputBehaviorEvent_2
|
|
4003
|
+
| {
|
|
4004
|
+
type: StrictExtract_2<
|
|
4005
|
+
| 'clipboard.copy'
|
|
4006
|
+
| 'clipboard.cut'
|
|
4007
|
+
| 'drag.dragstart'
|
|
4008
|
+
| 'clipboard.paste'
|
|
4009
|
+
| 'drag.drag'
|
|
4010
|
+
| 'drag.dragend'
|
|
4011
|
+
| 'drag.dragenter'
|
|
4012
|
+
| 'drag.dragover'
|
|
4013
|
+
| 'drag.dragleave'
|
|
4014
|
+
| 'drag.drop'
|
|
4015
|
+
| 'input.*'
|
|
4016
|
+
| 'keyboard.keydown'
|
|
4017
|
+
| 'keyboard.keyup'
|
|
4018
|
+
| 'mouse.click',
|
|
4019
|
+
'keyboard.keydown'
|
|
4020
|
+
>
|
|
4021
|
+
originEvent: Pick<
|
|
4022
|
+
KeyboardEvent,
|
|
4023
|
+
'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
|
|
4024
|
+
>
|
|
4025
|
+
}
|
|
4026
|
+
| {
|
|
4027
|
+
type: StrictExtract_2<
|
|
4028
|
+
| 'clipboard.copy'
|
|
4029
|
+
| 'clipboard.cut'
|
|
4030
|
+
| 'drag.dragstart'
|
|
4031
|
+
| 'clipboard.paste'
|
|
4032
|
+
| 'drag.drag'
|
|
4033
|
+
| 'drag.dragend'
|
|
4034
|
+
| 'drag.dragenter'
|
|
4035
|
+
| 'drag.dragover'
|
|
4036
|
+
| 'drag.dragleave'
|
|
4037
|
+
| 'drag.drop'
|
|
4038
|
+
| 'input.*'
|
|
4039
|
+
| 'keyboard.keydown'
|
|
4040
|
+
| 'keyboard.keyup'
|
|
4041
|
+
| 'mouse.click',
|
|
4042
|
+
'keyboard.keyup'
|
|
4043
|
+
>
|
|
4044
|
+
originEvent: Pick<
|
|
4045
|
+
KeyboardEvent,
|
|
4046
|
+
'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
|
|
4047
|
+
>
|
|
4048
|
+
}
|
|
4049
|
+
| MouseBehaviorEvent_2
|
|
4050
|
+
| CustomBehaviorEvent_2<
|
|
4051
|
+
Record<string, unknown>,
|
|
4052
|
+
string,
|
|
4053
|
+
`custom.${string}`
|
|
4054
|
+
>
|
|
4055
|
+
>
|
|
4056
|
+
>
|
|
1488
4057
|
converters: Set<Converter>
|
|
1489
4058
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1490
4059
|
keyGenerator: () => string
|
|
1491
4060
|
pendingEvents: never[]
|
|
4061
|
+
pendingIncomingPatchesEvents: never[]
|
|
1492
4062
|
schema: EditorSchema
|
|
1493
4063
|
selection: null
|
|
1494
4064
|
initialReadOnly: boolean
|
|
@@ -1504,6 +4074,7 @@ declare const editorMachine: StateMachine<
|
|
|
1504
4074
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1505
4075
|
keyGenerator: () => string
|
|
1506
4076
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4077
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1507
4078
|
schema: EditorSchema
|
|
1508
4079
|
initialReadOnly: boolean
|
|
1509
4080
|
maxBlocks: number | undefined
|
|
@@ -1521,6 +4092,7 @@ declare const editorMachine: StateMachine<
|
|
|
1521
4092
|
},
|
|
1522
4093
|
| InternalPatchEvent
|
|
1523
4094
|
| MutationEvent
|
|
4095
|
+
| PatchesEvent
|
|
1524
4096
|
| {
|
|
1525
4097
|
type: 'add behavior'
|
|
1526
4098
|
behavior: Behavior
|
|
@@ -1537,10 +4109,6 @@ declare const editorMachine: StateMachine<
|
|
|
1537
4109
|
type: 'update schema'
|
|
1538
4110
|
schema: EditorSchema
|
|
1539
4111
|
}
|
|
1540
|
-
| {
|
|
1541
|
-
type: 'update behaviors'
|
|
1542
|
-
behaviors: Array<Behavior>
|
|
1543
|
-
}
|
|
1544
4112
|
| {
|
|
1545
4113
|
type: 'update key generator'
|
|
1546
4114
|
keyGenerator: () => string
|
|
@@ -1553,7 +4121,6 @@ declare const editorMachine: StateMachine<
|
|
|
1553
4121
|
type: 'update maxBlocks'
|
|
1554
4122
|
maxBlocks: number | undefined
|
|
1555
4123
|
}
|
|
1556
|
-
| PatchesEvent
|
|
1557
4124
|
| {
|
|
1558
4125
|
type: 'blur'
|
|
1559
4126
|
editor: PortableTextSlateEditor
|
|
@@ -1569,7 +4136,10 @@ declare const editorMachine: StateMachine<
|
|
|
1569
4136
|
type: 'done normalizing'
|
|
1570
4137
|
}
|
|
1571
4138
|
| {
|
|
1572
|
-
type: 'done syncing
|
|
4139
|
+
type: 'done syncing value'
|
|
4140
|
+
}
|
|
4141
|
+
| {
|
|
4142
|
+
type: 'syncing value'
|
|
1573
4143
|
}
|
|
1574
4144
|
| {
|
|
1575
4145
|
type: 'behavior event'
|
|
@@ -1708,6 +4278,7 @@ declare const editorMachine: StateMachine<
|
|
|
1708
4278
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1709
4279
|
keyGenerator: () => string
|
|
1710
4280
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4281
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1711
4282
|
schema: EditorSchema
|
|
1712
4283
|
initialReadOnly: boolean
|
|
1713
4284
|
maxBlocks: number | undefined
|
|
@@ -1724,6 +4295,7 @@ declare const editorMachine: StateMachine<
|
|
|
1724
4295
|
},
|
|
1725
4296
|
| InternalPatchEvent
|
|
1726
4297
|
| MutationEvent
|
|
4298
|
+
| PatchesEvent
|
|
1727
4299
|
| {
|
|
1728
4300
|
type: 'add behavior'
|
|
1729
4301
|
behavior: Behavior
|
|
@@ -1740,10 +4312,6 @@ declare const editorMachine: StateMachine<
|
|
|
1740
4312
|
type: 'update schema'
|
|
1741
4313
|
schema: EditorSchema
|
|
1742
4314
|
}
|
|
1743
|
-
| {
|
|
1744
|
-
type: 'update behaviors'
|
|
1745
|
-
behaviors: Array<Behavior>
|
|
1746
|
-
}
|
|
1747
4315
|
| {
|
|
1748
4316
|
type: 'update key generator'
|
|
1749
4317
|
keyGenerator: () => string
|
|
@@ -1756,7 +4324,6 @@ declare const editorMachine: StateMachine<
|
|
|
1756
4324
|
type: 'update maxBlocks'
|
|
1757
4325
|
maxBlocks: number | undefined
|
|
1758
4326
|
}
|
|
1759
|
-
| PatchesEvent
|
|
1760
4327
|
| {
|
|
1761
4328
|
type: 'blur'
|
|
1762
4329
|
editor: PortableTextSlateEditor
|
|
@@ -1772,7 +4339,10 @@ declare const editorMachine: StateMachine<
|
|
|
1772
4339
|
type: 'done normalizing'
|
|
1773
4340
|
}
|
|
1774
4341
|
| {
|
|
1775
|
-
type: 'done syncing
|
|
4342
|
+
type: 'done syncing value'
|
|
4343
|
+
}
|
|
4344
|
+
| {
|
|
4345
|
+
type: 'syncing value'
|
|
1776
4346
|
}
|
|
1777
4347
|
| {
|
|
1778
4348
|
type: 'behavior event'
|
|
@@ -1911,6 +4481,7 @@ declare const editorMachine: StateMachine<
|
|
|
1911
4481
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1912
4482
|
keyGenerator: () => string
|
|
1913
4483
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4484
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1914
4485
|
schema: EditorSchema
|
|
1915
4486
|
initialReadOnly: boolean
|
|
1916
4487
|
maxBlocks: number | undefined
|
|
@@ -1930,6 +4501,7 @@ declare const editorMachine: StateMachine<
|
|
|
1930
4501
|
},
|
|
1931
4502
|
| InternalPatchEvent
|
|
1932
4503
|
| MutationEvent
|
|
4504
|
+
| PatchesEvent
|
|
1933
4505
|
| {
|
|
1934
4506
|
type: 'add behavior'
|
|
1935
4507
|
behavior: Behavior
|
|
@@ -1946,10 +4518,6 @@ declare const editorMachine: StateMachine<
|
|
|
1946
4518
|
type: 'update schema'
|
|
1947
4519
|
schema: EditorSchema
|
|
1948
4520
|
}
|
|
1949
|
-
| {
|
|
1950
|
-
type: 'update behaviors'
|
|
1951
|
-
behaviors: Array<Behavior>
|
|
1952
|
-
}
|
|
1953
4521
|
| {
|
|
1954
4522
|
type: 'update key generator'
|
|
1955
4523
|
keyGenerator: () => string
|
|
@@ -1962,7 +4530,6 @@ declare const editorMachine: StateMachine<
|
|
|
1962
4530
|
type: 'update maxBlocks'
|
|
1963
4531
|
maxBlocks: number | undefined
|
|
1964
4532
|
}
|
|
1965
|
-
| PatchesEvent
|
|
1966
4533
|
| {
|
|
1967
4534
|
type: 'blur'
|
|
1968
4535
|
editor: PortableTextSlateEditor
|
|
@@ -1978,7 +4545,10 @@ declare const editorMachine: StateMachine<
|
|
|
1978
4545
|
type: 'done normalizing'
|
|
1979
4546
|
}
|
|
1980
4547
|
| {
|
|
1981
|
-
type: 'done syncing
|
|
4548
|
+
type: 'done syncing value'
|
|
4549
|
+
}
|
|
4550
|
+
| {
|
|
4551
|
+
type: 'syncing value'
|
|
1982
4552
|
}
|
|
1983
4553
|
| {
|
|
1984
4554
|
type: 'behavior event'
|
|
@@ -2117,6 +4687,7 @@ declare const editorMachine: StateMachine<
|
|
|
2117
4687
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2118
4688
|
keyGenerator: () => string
|
|
2119
4689
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4690
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2120
4691
|
schema: EditorSchema
|
|
2121
4692
|
initialReadOnly: boolean
|
|
2122
4693
|
maxBlocks: number | undefined
|
|
@@ -2135,6 +4706,7 @@ declare const editorMachine: StateMachine<
|
|
|
2135
4706
|
},
|
|
2136
4707
|
| InternalPatchEvent
|
|
2137
4708
|
| MutationEvent
|
|
4709
|
+
| PatchesEvent
|
|
2138
4710
|
| {
|
|
2139
4711
|
type: 'add behavior'
|
|
2140
4712
|
behavior: Behavior
|
|
@@ -2151,10 +4723,6 @@ declare const editorMachine: StateMachine<
|
|
|
2151
4723
|
type: 'update schema'
|
|
2152
4724
|
schema: EditorSchema
|
|
2153
4725
|
}
|
|
2154
|
-
| {
|
|
2155
|
-
type: 'update behaviors'
|
|
2156
|
-
behaviors: Array<Behavior>
|
|
2157
|
-
}
|
|
2158
4726
|
| {
|
|
2159
4727
|
type: 'update key generator'
|
|
2160
4728
|
keyGenerator: () => string
|
|
@@ -2167,7 +4735,6 @@ declare const editorMachine: StateMachine<
|
|
|
2167
4735
|
type: 'update maxBlocks'
|
|
2168
4736
|
maxBlocks: number | undefined
|
|
2169
4737
|
}
|
|
2170
|
-
| PatchesEvent
|
|
2171
4738
|
| {
|
|
2172
4739
|
type: 'blur'
|
|
2173
4740
|
editor: PortableTextSlateEditor
|
|
@@ -2183,7 +4750,10 @@ declare const editorMachine: StateMachine<
|
|
|
2183
4750
|
type: 'done normalizing'
|
|
2184
4751
|
}
|
|
2185
4752
|
| {
|
|
2186
|
-
type: 'done syncing
|
|
4753
|
+
type: 'done syncing value'
|
|
4754
|
+
}
|
|
4755
|
+
| {
|
|
4756
|
+
type: 'syncing value'
|
|
2187
4757
|
}
|
|
2188
4758
|
| {
|
|
2189
4759
|
type: 'behavior event'
|
|
@@ -2322,6 +4892,7 @@ declare const editorMachine: StateMachine<
|
|
|
2322
4892
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2323
4893
|
keyGenerator: () => string
|
|
2324
4894
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4895
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2325
4896
|
schema: EditorSchema
|
|
2326
4897
|
initialReadOnly: boolean
|
|
2327
4898
|
maxBlocks: number | undefined
|
|
@@ -2339,6 +4910,7 @@ declare const editorMachine: StateMachine<
|
|
|
2339
4910
|
},
|
|
2340
4911
|
| InternalPatchEvent
|
|
2341
4912
|
| MutationEvent
|
|
4913
|
+
| PatchesEvent
|
|
2342
4914
|
| {
|
|
2343
4915
|
type: 'add behavior'
|
|
2344
4916
|
behavior: Behavior
|
|
@@ -2355,10 +4927,6 @@ declare const editorMachine: StateMachine<
|
|
|
2355
4927
|
type: 'update schema'
|
|
2356
4928
|
schema: EditorSchema
|
|
2357
4929
|
}
|
|
2358
|
-
| {
|
|
2359
|
-
type: 'update behaviors'
|
|
2360
|
-
behaviors: Array<Behavior>
|
|
2361
|
-
}
|
|
2362
4930
|
| {
|
|
2363
4931
|
type: 'update key generator'
|
|
2364
4932
|
keyGenerator: () => string
|
|
@@ -2371,7 +4939,6 @@ declare const editorMachine: StateMachine<
|
|
|
2371
4939
|
type: 'update maxBlocks'
|
|
2372
4940
|
maxBlocks: number | undefined
|
|
2373
4941
|
}
|
|
2374
|
-
| PatchesEvent
|
|
2375
4942
|
| {
|
|
2376
4943
|
type: 'blur'
|
|
2377
4944
|
editor: PortableTextSlateEditor
|
|
@@ -2387,7 +4954,10 @@ declare const editorMachine: StateMachine<
|
|
|
2387
4954
|
type: 'done normalizing'
|
|
2388
4955
|
}
|
|
2389
4956
|
| {
|
|
2390
|
-
type: 'done syncing
|
|
4957
|
+
type: 'done syncing value'
|
|
4958
|
+
}
|
|
4959
|
+
| {
|
|
4960
|
+
type: 'syncing value'
|
|
2391
4961
|
}
|
|
2392
4962
|
| {
|
|
2393
4963
|
type: 'behavior event'
|
|
@@ -2527,6 +5097,7 @@ declare const editorMachine: StateMachine<
|
|
|
2527
5097
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2528
5098
|
keyGenerator: () => string
|
|
2529
5099
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5100
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2530
5101
|
schema: EditorSchema
|
|
2531
5102
|
initialReadOnly: boolean
|
|
2532
5103
|
maxBlocks: number | undefined
|
|
@@ -2544,6 +5115,7 @@ declare const editorMachine: StateMachine<
|
|
|
2544
5115
|
},
|
|
2545
5116
|
| InternalPatchEvent
|
|
2546
5117
|
| MutationEvent
|
|
5118
|
+
| PatchesEvent
|
|
2547
5119
|
| {
|
|
2548
5120
|
type: 'add behavior'
|
|
2549
5121
|
behavior: Behavior
|
|
@@ -2560,10 +5132,6 @@ declare const editorMachine: StateMachine<
|
|
|
2560
5132
|
type: 'update schema'
|
|
2561
5133
|
schema: EditorSchema
|
|
2562
5134
|
}
|
|
2563
|
-
| {
|
|
2564
|
-
type: 'update behaviors'
|
|
2565
|
-
behaviors: Array<Behavior>
|
|
2566
|
-
}
|
|
2567
5135
|
| {
|
|
2568
5136
|
type: 'update key generator'
|
|
2569
5137
|
keyGenerator: () => string
|
|
@@ -2576,7 +5144,6 @@ declare const editorMachine: StateMachine<
|
|
|
2576
5144
|
type: 'update maxBlocks'
|
|
2577
5145
|
maxBlocks: number | undefined
|
|
2578
5146
|
}
|
|
2579
|
-
| PatchesEvent
|
|
2580
5147
|
| {
|
|
2581
5148
|
type: 'blur'
|
|
2582
5149
|
editor: PortableTextSlateEditor
|
|
@@ -2592,7 +5159,10 @@ declare const editorMachine: StateMachine<
|
|
|
2592
5159
|
type: 'done normalizing'
|
|
2593
5160
|
}
|
|
2594
5161
|
| {
|
|
2595
|
-
type: 'done syncing
|
|
5162
|
+
type: 'done syncing value'
|
|
5163
|
+
}
|
|
5164
|
+
| {
|
|
5165
|
+
type: 'syncing value'
|
|
2596
5166
|
}
|
|
2597
5167
|
| {
|
|
2598
5168
|
type: 'behavior event'
|
|
@@ -2683,6 +5253,7 @@ declare const editorMachine: StateMachine<
|
|
|
2683
5253
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2684
5254
|
keyGenerator: () => string
|
|
2685
5255
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5256
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2686
5257
|
schema: EditorSchema
|
|
2687
5258
|
initialReadOnly: boolean
|
|
2688
5259
|
maxBlocks: number | undefined
|
|
@@ -2700,6 +5271,7 @@ declare const editorMachine: StateMachine<
|
|
|
2700
5271
|
},
|
|
2701
5272
|
| InternalPatchEvent
|
|
2702
5273
|
| MutationEvent
|
|
5274
|
+
| PatchesEvent
|
|
2703
5275
|
| {
|
|
2704
5276
|
type: 'add behavior'
|
|
2705
5277
|
behavior: Behavior
|
|
@@ -2716,10 +5288,6 @@ declare const editorMachine: StateMachine<
|
|
|
2716
5288
|
type: 'update schema'
|
|
2717
5289
|
schema: EditorSchema
|
|
2718
5290
|
}
|
|
2719
|
-
| {
|
|
2720
|
-
type: 'update behaviors'
|
|
2721
|
-
behaviors: Array<Behavior>
|
|
2722
|
-
}
|
|
2723
5291
|
| {
|
|
2724
5292
|
type: 'update key generator'
|
|
2725
5293
|
keyGenerator: () => string
|
|
@@ -2732,7 +5300,6 @@ declare const editorMachine: StateMachine<
|
|
|
2732
5300
|
type: 'update maxBlocks'
|
|
2733
5301
|
maxBlocks: number | undefined
|
|
2734
5302
|
}
|
|
2735
|
-
| PatchesEvent
|
|
2736
5303
|
| {
|
|
2737
5304
|
type: 'blur'
|
|
2738
5305
|
editor: PortableTextSlateEditor
|
|
@@ -2748,7 +5315,10 @@ declare const editorMachine: StateMachine<
|
|
|
2748
5315
|
type: 'done normalizing'
|
|
2749
5316
|
}
|
|
2750
5317
|
| {
|
|
2751
|
-
type: 'done syncing
|
|
5318
|
+
type: 'done syncing value'
|
|
5319
|
+
}
|
|
5320
|
+
| {
|
|
5321
|
+
type: 'syncing value'
|
|
2752
5322
|
}
|
|
2753
5323
|
| {
|
|
2754
5324
|
type: 'behavior event'
|
|
@@ -2888,6 +5458,7 @@ declare const editorMachine: StateMachine<
|
|
|
2888
5458
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2889
5459
|
keyGenerator: () => string
|
|
2890
5460
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5461
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2891
5462
|
schema: EditorSchema
|
|
2892
5463
|
initialReadOnly: boolean
|
|
2893
5464
|
maxBlocks: number | undefined
|
|
@@ -2905,6 +5476,7 @@ declare const editorMachine: StateMachine<
|
|
|
2905
5476
|
},
|
|
2906
5477
|
| InternalPatchEvent
|
|
2907
5478
|
| MutationEvent
|
|
5479
|
+
| PatchesEvent
|
|
2908
5480
|
| {
|
|
2909
5481
|
type: 'add behavior'
|
|
2910
5482
|
behavior: Behavior
|
|
@@ -2921,10 +5493,6 @@ declare const editorMachine: StateMachine<
|
|
|
2921
5493
|
type: 'update schema'
|
|
2922
5494
|
schema: EditorSchema
|
|
2923
5495
|
}
|
|
2924
|
-
| {
|
|
2925
|
-
type: 'update behaviors'
|
|
2926
|
-
behaviors: Array<Behavior>
|
|
2927
|
-
}
|
|
2928
5496
|
| {
|
|
2929
5497
|
type: 'update key generator'
|
|
2930
5498
|
keyGenerator: () => string
|
|
@@ -2937,7 +5505,6 @@ declare const editorMachine: StateMachine<
|
|
|
2937
5505
|
type: 'update maxBlocks'
|
|
2938
5506
|
maxBlocks: number | undefined
|
|
2939
5507
|
}
|
|
2940
|
-
| PatchesEvent
|
|
2941
5508
|
| {
|
|
2942
5509
|
type: 'blur'
|
|
2943
5510
|
editor: PortableTextSlateEditor
|
|
@@ -2953,7 +5520,10 @@ declare const editorMachine: StateMachine<
|
|
|
2953
5520
|
type: 'done normalizing'
|
|
2954
5521
|
}
|
|
2955
5522
|
| {
|
|
2956
|
-
type: 'done syncing
|
|
5523
|
+
type: 'done syncing value'
|
|
5524
|
+
}
|
|
5525
|
+
| {
|
|
5526
|
+
type: 'syncing value'
|
|
2957
5527
|
}
|
|
2958
5528
|
| {
|
|
2959
5529
|
type: 'behavior event'
|
|
@@ -3092,6 +5662,7 @@ declare const editorMachine: StateMachine<
|
|
|
3092
5662
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3093
5663
|
keyGenerator: () => string
|
|
3094
5664
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5665
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3095
5666
|
schema: EditorSchema
|
|
3096
5667
|
initialReadOnly: boolean
|
|
3097
5668
|
maxBlocks: number | undefined
|
|
@@ -3108,6 +5679,7 @@ declare const editorMachine: StateMachine<
|
|
|
3108
5679
|
},
|
|
3109
5680
|
| InternalPatchEvent
|
|
3110
5681
|
| MutationEvent
|
|
5682
|
+
| PatchesEvent
|
|
3111
5683
|
| {
|
|
3112
5684
|
type: 'add behavior'
|
|
3113
5685
|
behavior: Behavior
|
|
@@ -3124,10 +5696,6 @@ declare const editorMachine: StateMachine<
|
|
|
3124
5696
|
type: 'update schema'
|
|
3125
5697
|
schema: EditorSchema
|
|
3126
5698
|
}
|
|
3127
|
-
| {
|
|
3128
|
-
type: 'update behaviors'
|
|
3129
|
-
behaviors: Array<Behavior>
|
|
3130
|
-
}
|
|
3131
5699
|
| {
|
|
3132
5700
|
type: 'update key generator'
|
|
3133
5701
|
keyGenerator: () => string
|
|
@@ -3140,7 +5708,6 @@ declare const editorMachine: StateMachine<
|
|
|
3140
5708
|
type: 'update maxBlocks'
|
|
3141
5709
|
maxBlocks: number | undefined
|
|
3142
5710
|
}
|
|
3143
|
-
| PatchesEvent
|
|
3144
5711
|
| {
|
|
3145
5712
|
type: 'blur'
|
|
3146
5713
|
editor: PortableTextSlateEditor
|
|
@@ -3156,7 +5723,10 @@ declare const editorMachine: StateMachine<
|
|
|
3156
5723
|
type: 'done normalizing'
|
|
3157
5724
|
}
|
|
3158
5725
|
| {
|
|
3159
|
-
type: 'done syncing
|
|
5726
|
+
type: 'done syncing value'
|
|
5727
|
+
}
|
|
5728
|
+
| {
|
|
5729
|
+
type: 'syncing value'
|
|
3160
5730
|
}
|
|
3161
5731
|
| {
|
|
3162
5732
|
type: 'behavior event'
|
|
@@ -3295,6 +5865,7 @@ declare const editorMachine: StateMachine<
|
|
|
3295
5865
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3296
5866
|
keyGenerator: () => string
|
|
3297
5867
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5868
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3298
5869
|
schema: EditorSchema
|
|
3299
5870
|
initialReadOnly: boolean
|
|
3300
5871
|
maxBlocks: number | undefined
|
|
@@ -3312,6 +5883,7 @@ declare const editorMachine: StateMachine<
|
|
|
3312
5883
|
},
|
|
3313
5884
|
| InternalPatchEvent
|
|
3314
5885
|
| MutationEvent
|
|
5886
|
+
| PatchesEvent
|
|
3315
5887
|
| {
|
|
3316
5888
|
type: 'add behavior'
|
|
3317
5889
|
behavior: Behavior
|
|
@@ -3328,10 +5900,6 @@ declare const editorMachine: StateMachine<
|
|
|
3328
5900
|
type: 'update schema'
|
|
3329
5901
|
schema: EditorSchema
|
|
3330
5902
|
}
|
|
3331
|
-
| {
|
|
3332
|
-
type: 'update behaviors'
|
|
3333
|
-
behaviors: Array<Behavior>
|
|
3334
|
-
}
|
|
3335
5903
|
| {
|
|
3336
5904
|
type: 'update key generator'
|
|
3337
5905
|
keyGenerator: () => string
|
|
@@ -3344,7 +5912,6 @@ declare const editorMachine: StateMachine<
|
|
|
3344
5912
|
type: 'update maxBlocks'
|
|
3345
5913
|
maxBlocks: number | undefined
|
|
3346
5914
|
}
|
|
3347
|
-
| PatchesEvent
|
|
3348
5915
|
| {
|
|
3349
5916
|
type: 'blur'
|
|
3350
5917
|
editor: PortableTextSlateEditor
|
|
@@ -3360,7 +5927,10 @@ declare const editorMachine: StateMachine<
|
|
|
3360
5927
|
type: 'done normalizing'
|
|
3361
5928
|
}
|
|
3362
5929
|
| {
|
|
3363
|
-
type: 'done syncing
|
|
5930
|
+
type: 'done syncing value'
|
|
5931
|
+
}
|
|
5932
|
+
| {
|
|
5933
|
+
type: 'syncing value'
|
|
3364
5934
|
}
|
|
3365
5935
|
| {
|
|
3366
5936
|
type: 'behavior event'
|
|
@@ -3497,210 +6067,6 @@ declare const editorMachine: StateMachine<
|
|
|
3497
6067
|
readonly 'remove behavior': {
|
|
3498
6068
|
readonly actions: 'remove behavior from context'
|
|
3499
6069
|
}
|
|
3500
|
-
readonly 'patches': {
|
|
3501
|
-
readonly actions: ActionFunction<
|
|
3502
|
-
{
|
|
3503
|
-
behaviors: Set<Behavior>
|
|
3504
|
-
converters: Set<Converter>
|
|
3505
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3506
|
-
keyGenerator: () => string
|
|
3507
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3508
|
-
schema: EditorSchema
|
|
3509
|
-
initialReadOnly: boolean
|
|
3510
|
-
maxBlocks: number | undefined
|
|
3511
|
-
selection: EditorSelection
|
|
3512
|
-
incomingValue: Array<PortableTextBlock> | undefined
|
|
3513
|
-
internalDrag?: {
|
|
3514
|
-
ghost?: HTMLElement
|
|
3515
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3516
|
-
}
|
|
3517
|
-
slateEditor?: PortableTextSlateEditor
|
|
3518
|
-
},
|
|
3519
|
-
PatchesEvent,
|
|
3520
|
-
| InternalPatchEvent
|
|
3521
|
-
| MutationEvent
|
|
3522
|
-
| {
|
|
3523
|
-
type: 'add behavior'
|
|
3524
|
-
behavior: Behavior
|
|
3525
|
-
}
|
|
3526
|
-
| {
|
|
3527
|
-
type: 'remove behavior'
|
|
3528
|
-
behavior: Behavior
|
|
3529
|
-
}
|
|
3530
|
-
| {
|
|
3531
|
-
type: 'update readOnly'
|
|
3532
|
-
readOnly: boolean
|
|
3533
|
-
}
|
|
3534
|
-
| {
|
|
3535
|
-
type: 'update schema'
|
|
3536
|
-
schema: EditorSchema
|
|
3537
|
-
}
|
|
3538
|
-
| {
|
|
3539
|
-
type: 'update behaviors'
|
|
3540
|
-
behaviors: Array<Behavior>
|
|
3541
|
-
}
|
|
3542
|
-
| {
|
|
3543
|
-
type: 'update key generator'
|
|
3544
|
-
keyGenerator: () => string
|
|
3545
|
-
}
|
|
3546
|
-
| {
|
|
3547
|
-
type: 'update value'
|
|
3548
|
-
value: Array<PortableTextBlock> | undefined
|
|
3549
|
-
}
|
|
3550
|
-
| {
|
|
3551
|
-
type: 'update maxBlocks'
|
|
3552
|
-
maxBlocks: number | undefined
|
|
3553
|
-
}
|
|
3554
|
-
| PatchesEvent
|
|
3555
|
-
| {
|
|
3556
|
-
type: 'blur'
|
|
3557
|
-
editor: PortableTextSlateEditor
|
|
3558
|
-
}
|
|
3559
|
-
| {
|
|
3560
|
-
type: 'focus'
|
|
3561
|
-
editor: PortableTextSlateEditor
|
|
3562
|
-
}
|
|
3563
|
-
| {
|
|
3564
|
-
type: 'normalizing'
|
|
3565
|
-
}
|
|
3566
|
-
| {
|
|
3567
|
-
type: 'done normalizing'
|
|
3568
|
-
}
|
|
3569
|
-
| {
|
|
3570
|
-
type: 'done syncing initial value'
|
|
3571
|
-
}
|
|
3572
|
-
| {
|
|
3573
|
-
type: 'behavior event'
|
|
3574
|
-
behaviorEvent: BehaviorEvent
|
|
3575
|
-
editor: PortableTextSlateEditor
|
|
3576
|
-
nativeEvent?: {
|
|
3577
|
-
preventDefault: () => void
|
|
3578
|
-
}
|
|
3579
|
-
}
|
|
3580
|
-
| {
|
|
3581
|
-
type: 'notify.patch'
|
|
3582
|
-
patch: Patch
|
|
3583
|
-
}
|
|
3584
|
-
| {
|
|
3585
|
-
type: 'notify.mutation'
|
|
3586
|
-
patches: Array<Patch>
|
|
3587
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3588
|
-
value: Array<PortableTextBlock> | undefined
|
|
3589
|
-
}
|
|
3590
|
-
| {
|
|
3591
|
-
type: 'notify.blurred'
|
|
3592
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3593
|
-
}
|
|
3594
|
-
| {
|
|
3595
|
-
type: 'notify.done loading'
|
|
3596
|
-
}
|
|
3597
|
-
| {
|
|
3598
|
-
type: 'notify.editable'
|
|
3599
|
-
}
|
|
3600
|
-
| {
|
|
3601
|
-
type: 'notify.error'
|
|
3602
|
-
name: string
|
|
3603
|
-
description: string
|
|
3604
|
-
data: unknown
|
|
3605
|
-
}
|
|
3606
|
-
| {
|
|
3607
|
-
type: 'notify.focused'
|
|
3608
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3609
|
-
}
|
|
3610
|
-
| {
|
|
3611
|
-
type: 'notify.invalid value'
|
|
3612
|
-
resolution: InvalidValueResolution | null
|
|
3613
|
-
value: Array<PortableTextBlock> | undefined
|
|
3614
|
-
}
|
|
3615
|
-
| {
|
|
3616
|
-
type: 'notify.loading'
|
|
3617
|
-
}
|
|
3618
|
-
| {
|
|
3619
|
-
type: 'notify.read only'
|
|
3620
|
-
}
|
|
3621
|
-
| {
|
|
3622
|
-
type: 'notify.ready'
|
|
3623
|
-
}
|
|
3624
|
-
| {
|
|
3625
|
-
type: 'notify.selection'
|
|
3626
|
-
selection: EditorSelection
|
|
3627
|
-
}
|
|
3628
|
-
| {
|
|
3629
|
-
type: 'notify.value changed'
|
|
3630
|
-
value: Array<PortableTextBlock> | undefined
|
|
3631
|
-
}
|
|
3632
|
-
| {
|
|
3633
|
-
type: 'notify.unset'
|
|
3634
|
-
previousValue: Array<PortableTextBlock>
|
|
3635
|
-
}
|
|
3636
|
-
| {
|
|
3637
|
-
type: 'dragstart'
|
|
3638
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3639
|
-
ghost?: HTMLElement
|
|
3640
|
-
}
|
|
3641
|
-
| {
|
|
3642
|
-
type: 'dragend'
|
|
3643
|
-
}
|
|
3644
|
-
| {
|
|
3645
|
-
type: 'drop'
|
|
3646
|
-
},
|
|
3647
|
-
undefined,
|
|
3648
|
-
never,
|
|
3649
|
-
never,
|
|
3650
|
-
never,
|
|
3651
|
-
never,
|
|
3652
|
-
| PatchEvent
|
|
3653
|
-
| InternalPatchEvent
|
|
3654
|
-
| MutationEvent
|
|
3655
|
-
| PatchesEvent
|
|
3656
|
-
| {
|
|
3657
|
-
type: 'blurred'
|
|
3658
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3659
|
-
}
|
|
3660
|
-
| {
|
|
3661
|
-
type: 'done loading'
|
|
3662
|
-
}
|
|
3663
|
-
| {
|
|
3664
|
-
type: 'editable'
|
|
3665
|
-
}
|
|
3666
|
-
| {
|
|
3667
|
-
type: 'error'
|
|
3668
|
-
name: string
|
|
3669
|
-
description: string
|
|
3670
|
-
data: unknown
|
|
3671
|
-
}
|
|
3672
|
-
| {
|
|
3673
|
-
type: 'focused'
|
|
3674
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3675
|
-
}
|
|
3676
|
-
| {
|
|
3677
|
-
type: 'invalid value'
|
|
3678
|
-
resolution: InvalidValueResolution | null
|
|
3679
|
-
value: Array<PortableTextBlock> | undefined
|
|
3680
|
-
}
|
|
3681
|
-
| {
|
|
3682
|
-
type: 'loading'
|
|
3683
|
-
}
|
|
3684
|
-
| {
|
|
3685
|
-
type: 'read only'
|
|
3686
|
-
}
|
|
3687
|
-
| {
|
|
3688
|
-
type: 'ready'
|
|
3689
|
-
}
|
|
3690
|
-
| {
|
|
3691
|
-
type: 'selection'
|
|
3692
|
-
selection: EditorSelection
|
|
3693
|
-
}
|
|
3694
|
-
| {
|
|
3695
|
-
type: 'value changed'
|
|
3696
|
-
value: Array<PortableTextBlock> | undefined
|
|
3697
|
-
}
|
|
3698
|
-
| UnsetEvent
|
|
3699
|
-
>
|
|
3700
|
-
}
|
|
3701
|
-
readonly 'update behaviors': {
|
|
3702
|
-
readonly actions: 'assign behaviors'
|
|
3703
|
-
}
|
|
3704
6070
|
readonly 'update key generator': {
|
|
3705
6071
|
readonly actions: ActionFunction<
|
|
3706
6072
|
{
|
|
@@ -3709,6 +6075,7 @@ declare const editorMachine: StateMachine<
|
|
|
3709
6075
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3710
6076
|
keyGenerator: () => string
|
|
3711
6077
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6078
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3712
6079
|
schema: EditorSchema
|
|
3713
6080
|
initialReadOnly: boolean
|
|
3714
6081
|
maxBlocks: number | undefined
|
|
@@ -3726,6 +6093,7 @@ declare const editorMachine: StateMachine<
|
|
|
3726
6093
|
},
|
|
3727
6094
|
| InternalPatchEvent
|
|
3728
6095
|
| MutationEvent
|
|
6096
|
+
| PatchesEvent
|
|
3729
6097
|
| {
|
|
3730
6098
|
type: 'add behavior'
|
|
3731
6099
|
behavior: Behavior
|
|
@@ -3742,10 +6110,6 @@ declare const editorMachine: StateMachine<
|
|
|
3742
6110
|
type: 'update schema'
|
|
3743
6111
|
schema: EditorSchema
|
|
3744
6112
|
}
|
|
3745
|
-
| {
|
|
3746
|
-
type: 'update behaviors'
|
|
3747
|
-
behaviors: Array<Behavior>
|
|
3748
|
-
}
|
|
3749
6113
|
| {
|
|
3750
6114
|
type: 'update key generator'
|
|
3751
6115
|
keyGenerator: () => string
|
|
@@ -3758,7 +6122,6 @@ declare const editorMachine: StateMachine<
|
|
|
3758
6122
|
type: 'update maxBlocks'
|
|
3759
6123
|
maxBlocks: number | undefined
|
|
3760
6124
|
}
|
|
3761
|
-
| PatchesEvent
|
|
3762
6125
|
| {
|
|
3763
6126
|
type: 'blur'
|
|
3764
6127
|
editor: PortableTextSlateEditor
|
|
@@ -3774,7 +6137,10 @@ declare const editorMachine: StateMachine<
|
|
|
3774
6137
|
type: 'done normalizing'
|
|
3775
6138
|
}
|
|
3776
6139
|
| {
|
|
3777
|
-
type: 'done syncing
|
|
6140
|
+
type: 'done syncing value'
|
|
6141
|
+
}
|
|
6142
|
+
| {
|
|
6143
|
+
type: 'syncing value'
|
|
3778
6144
|
}
|
|
3779
6145
|
| {
|
|
3780
6146
|
type: 'behavior event'
|
|
@@ -3870,6 +6236,7 @@ declare const editorMachine: StateMachine<
|
|
|
3870
6236
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3871
6237
|
keyGenerator: () => string
|
|
3872
6238
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6239
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3873
6240
|
schema: EditorSchema
|
|
3874
6241
|
initialReadOnly: boolean
|
|
3875
6242
|
maxBlocks: number | undefined
|
|
@@ -3887,6 +6254,7 @@ declare const editorMachine: StateMachine<
|
|
|
3887
6254
|
},
|
|
3888
6255
|
| InternalPatchEvent
|
|
3889
6256
|
| MutationEvent
|
|
6257
|
+
| PatchesEvent
|
|
3890
6258
|
| {
|
|
3891
6259
|
type: 'add behavior'
|
|
3892
6260
|
behavior: Behavior
|
|
@@ -3903,10 +6271,6 @@ declare const editorMachine: StateMachine<
|
|
|
3903
6271
|
type: 'update schema'
|
|
3904
6272
|
schema: EditorSchema
|
|
3905
6273
|
}
|
|
3906
|
-
| {
|
|
3907
|
-
type: 'update behaviors'
|
|
3908
|
-
behaviors: Array<Behavior>
|
|
3909
|
-
}
|
|
3910
6274
|
| {
|
|
3911
6275
|
type: 'update key generator'
|
|
3912
6276
|
keyGenerator: () => string
|
|
@@ -3919,7 +6283,6 @@ declare const editorMachine: StateMachine<
|
|
|
3919
6283
|
type: 'update maxBlocks'
|
|
3920
6284
|
maxBlocks: number | undefined
|
|
3921
6285
|
}
|
|
3922
|
-
| PatchesEvent
|
|
3923
6286
|
| {
|
|
3924
6287
|
type: 'blur'
|
|
3925
6288
|
editor: PortableTextSlateEditor
|
|
@@ -3935,7 +6298,10 @@ declare const editorMachine: StateMachine<
|
|
|
3935
6298
|
type: 'done normalizing'
|
|
3936
6299
|
}
|
|
3937
6300
|
| {
|
|
3938
|
-
type: 'done syncing
|
|
6301
|
+
type: 'done syncing value'
|
|
6302
|
+
}
|
|
6303
|
+
| {
|
|
6304
|
+
type: 'syncing value'
|
|
3939
6305
|
}
|
|
3940
6306
|
| {
|
|
3941
6307
|
type: 'behavior event'
|
|
@@ -4028,6 +6394,7 @@ declare const editorMachine: StateMachine<
|
|
|
4028
6394
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4029
6395
|
keyGenerator: () => string
|
|
4030
6396
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6397
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4031
6398
|
schema: EditorSchema
|
|
4032
6399
|
initialReadOnly: boolean
|
|
4033
6400
|
maxBlocks: number | undefined
|
|
@@ -4045,6 +6412,7 @@ declare const editorMachine: StateMachine<
|
|
|
4045
6412
|
},
|
|
4046
6413
|
| InternalPatchEvent
|
|
4047
6414
|
| MutationEvent
|
|
6415
|
+
| PatchesEvent
|
|
4048
6416
|
| {
|
|
4049
6417
|
type: 'add behavior'
|
|
4050
6418
|
behavior: Behavior
|
|
@@ -4061,10 +6429,6 @@ declare const editorMachine: StateMachine<
|
|
|
4061
6429
|
type: 'update schema'
|
|
4062
6430
|
schema: EditorSchema
|
|
4063
6431
|
}
|
|
4064
|
-
| {
|
|
4065
|
-
type: 'update behaviors'
|
|
4066
|
-
behaviors: Array<Behavior>
|
|
4067
|
-
}
|
|
4068
6432
|
| {
|
|
4069
6433
|
type: 'update key generator'
|
|
4070
6434
|
keyGenerator: () => string
|
|
@@ -4077,7 +6441,6 @@ declare const editorMachine: StateMachine<
|
|
|
4077
6441
|
type: 'update maxBlocks'
|
|
4078
6442
|
maxBlocks: number | undefined
|
|
4079
6443
|
}
|
|
4080
|
-
| PatchesEvent
|
|
4081
6444
|
| {
|
|
4082
6445
|
type: 'blur'
|
|
4083
6446
|
editor: PortableTextSlateEditor
|
|
@@ -4093,7 +6456,10 @@ declare const editorMachine: StateMachine<
|
|
|
4093
6456
|
type: 'done normalizing'
|
|
4094
6457
|
}
|
|
4095
6458
|
| {
|
|
4096
|
-
type: 'done syncing
|
|
6459
|
+
type: 'done syncing value'
|
|
6460
|
+
}
|
|
6461
|
+
| {
|
|
6462
|
+
type: 'syncing value'
|
|
4097
6463
|
}
|
|
4098
6464
|
| {
|
|
4099
6465
|
type: 'behavior event'
|
|
@@ -4198,6 +6564,7 @@ declare const editorMachine: StateMachine<
|
|
|
4198
6564
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4199
6565
|
keyGenerator: () => string
|
|
4200
6566
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6567
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4201
6568
|
schema: EditorSchema
|
|
4202
6569
|
initialReadOnly: boolean
|
|
4203
6570
|
maxBlocks: number | undefined
|
|
@@ -4223,7 +6590,7 @@ declare const editorMachine: StateMachine<
|
|
|
4223
6590
|
readonly states: {
|
|
4224
6591
|
readonly 'determine initial edit mode': {
|
|
4225
6592
|
readonly on: {
|
|
4226
|
-
readonly 'done syncing
|
|
6593
|
+
readonly 'done syncing value': readonly [
|
|
4227
6594
|
{
|
|
4228
6595
|
readonly target: '#editor.edit mode.read only.read only'
|
|
4229
6596
|
readonly guard: ({
|
|
@@ -4237,6 +6604,7 @@ declare const editorMachine: StateMachine<
|
|
|
4237
6604
|
pendingEvents: Array<
|
|
4238
6605
|
InternalPatchEvent | MutationEvent
|
|
4239
6606
|
>
|
|
6607
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4240
6608
|
schema: EditorSchema
|
|
4241
6609
|
initialReadOnly: boolean
|
|
4242
6610
|
maxBlocks: number | undefined
|
|
@@ -4249,7 +6617,7 @@ declare const editorMachine: StateMachine<
|
|
|
4249
6617
|
slateEditor?: PortableTextSlateEditor
|
|
4250
6618
|
},
|
|
4251
6619
|
{
|
|
4252
|
-
type: 'done syncing
|
|
6620
|
+
type: 'done syncing value'
|
|
4253
6621
|
}
|
|
4254
6622
|
>) => boolean
|
|
4255
6623
|
},
|
|
@@ -4271,6 +6639,7 @@ declare const editorMachine: StateMachine<
|
|
|
4271
6639
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4272
6640
|
keyGenerator: () => string
|
|
4273
6641
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6642
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4274
6643
|
schema: EditorSchema
|
|
4275
6644
|
initialReadOnly: boolean
|
|
4276
6645
|
maxBlocks: number | undefined
|
|
@@ -4306,6 +6675,7 @@ declare const editorMachine: StateMachine<
|
|
|
4306
6675
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4307
6676
|
keyGenerator: () => string
|
|
4308
6677
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6678
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4309
6679
|
schema: EditorSchema
|
|
4310
6680
|
initialReadOnly: boolean
|
|
4311
6681
|
maxBlocks: number | undefined
|
|
@@ -4341,6 +6711,7 @@ declare const editorMachine: StateMachine<
|
|
|
4341
6711
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4342
6712
|
keyGenerator: () => string
|
|
4343
6713
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6714
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4344
6715
|
schema: EditorSchema
|
|
4345
6716
|
initialReadOnly: boolean
|
|
4346
6717
|
maxBlocks: number | undefined
|
|
@@ -4358,6 +6729,7 @@ declare const editorMachine: StateMachine<
|
|
|
4358
6729
|
},
|
|
4359
6730
|
| InternalPatchEvent
|
|
4360
6731
|
| MutationEvent
|
|
6732
|
+
| PatchesEvent
|
|
4361
6733
|
| {
|
|
4362
6734
|
type: 'add behavior'
|
|
4363
6735
|
behavior: Behavior
|
|
@@ -4374,10 +6746,6 @@ declare const editorMachine: StateMachine<
|
|
|
4374
6746
|
type: 'update schema'
|
|
4375
6747
|
schema: EditorSchema
|
|
4376
6748
|
}
|
|
4377
|
-
| {
|
|
4378
|
-
type: 'update behaviors'
|
|
4379
|
-
behaviors: Array<Behavior>
|
|
4380
|
-
}
|
|
4381
6749
|
| {
|
|
4382
6750
|
type: 'update key generator'
|
|
4383
6751
|
keyGenerator: () => string
|
|
@@ -4390,7 +6758,6 @@ declare const editorMachine: StateMachine<
|
|
|
4390
6758
|
type: 'update maxBlocks'
|
|
4391
6759
|
maxBlocks: number | undefined
|
|
4392
6760
|
}
|
|
4393
|
-
| PatchesEvent
|
|
4394
6761
|
| {
|
|
4395
6762
|
type: 'blur'
|
|
4396
6763
|
editor: PortableTextSlateEditor
|
|
@@ -4406,7 +6773,10 @@ declare const editorMachine: StateMachine<
|
|
|
4406
6773
|
type: 'done normalizing'
|
|
4407
6774
|
}
|
|
4408
6775
|
| {
|
|
4409
|
-
type: 'done syncing
|
|
6776
|
+
type: 'done syncing value'
|
|
6777
|
+
}
|
|
6778
|
+
| {
|
|
6779
|
+
type: 'syncing value'
|
|
4410
6780
|
}
|
|
4411
6781
|
| {
|
|
4412
6782
|
type: 'behavior event'
|
|
@@ -4508,6 +6878,7 @@ declare const editorMachine: StateMachine<
|
|
|
4508
6878
|
pendingEvents: Array<
|
|
4509
6879
|
InternalPatchEvent | MutationEvent
|
|
4510
6880
|
>
|
|
6881
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4511
6882
|
schema: EditorSchema
|
|
4512
6883
|
initialReadOnly: boolean
|
|
4513
6884
|
maxBlocks: number | undefined
|
|
@@ -4526,6 +6897,7 @@ declare const editorMachine: StateMachine<
|
|
|
4526
6897
|
},
|
|
4527
6898
|
| InternalPatchEvent
|
|
4528
6899
|
| MutationEvent
|
|
6900
|
+
| PatchesEvent
|
|
4529
6901
|
| {
|
|
4530
6902
|
type: 'add behavior'
|
|
4531
6903
|
behavior: Behavior
|
|
@@ -4542,10 +6914,6 @@ declare const editorMachine: StateMachine<
|
|
|
4542
6914
|
type: 'update schema'
|
|
4543
6915
|
schema: EditorSchema
|
|
4544
6916
|
}
|
|
4545
|
-
| {
|
|
4546
|
-
type: 'update behaviors'
|
|
4547
|
-
behaviors: Array<Behavior>
|
|
4548
|
-
}
|
|
4549
6917
|
| {
|
|
4550
6918
|
type: 'update key generator'
|
|
4551
6919
|
keyGenerator: () => string
|
|
@@ -4558,7 +6926,6 @@ declare const editorMachine: StateMachine<
|
|
|
4558
6926
|
type: 'update maxBlocks'
|
|
4559
6927
|
maxBlocks: number | undefined
|
|
4560
6928
|
}
|
|
4561
|
-
| PatchesEvent
|
|
4562
6929
|
| {
|
|
4563
6930
|
type: 'blur'
|
|
4564
6931
|
editor: PortableTextSlateEditor
|
|
@@ -4574,7 +6941,10 @@ declare const editorMachine: StateMachine<
|
|
|
4574
6941
|
type: 'done normalizing'
|
|
4575
6942
|
}
|
|
4576
6943
|
| {
|
|
4577
|
-
type: 'done syncing
|
|
6944
|
+
type: 'done syncing value'
|
|
6945
|
+
}
|
|
6946
|
+
| {
|
|
6947
|
+
type: 'syncing value'
|
|
4578
6948
|
}
|
|
4579
6949
|
| {
|
|
4580
6950
|
type: 'behavior event'
|
|
@@ -4698,6 +7068,7 @@ declare const editorMachine: StateMachine<
|
|
|
4698
7068
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4699
7069
|
keyGenerator: () => string
|
|
4700
7070
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7071
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4701
7072
|
schema: EditorSchema
|
|
4702
7073
|
initialReadOnly: boolean
|
|
4703
7074
|
maxBlocks: number | undefined
|
|
@@ -4711,6 +7082,7 @@ declare const editorMachine: StateMachine<
|
|
|
4711
7082
|
},
|
|
4712
7083
|
| InternalPatchEvent
|
|
4713
7084
|
| MutationEvent
|
|
7085
|
+
| PatchesEvent
|
|
4714
7086
|
| {
|
|
4715
7087
|
type: 'add behavior'
|
|
4716
7088
|
behavior: Behavior
|
|
@@ -4727,10 +7099,6 @@ declare const editorMachine: StateMachine<
|
|
|
4727
7099
|
type: 'update schema'
|
|
4728
7100
|
schema: EditorSchema
|
|
4729
7101
|
}
|
|
4730
|
-
| {
|
|
4731
|
-
type: 'update behaviors'
|
|
4732
|
-
behaviors: Array<Behavior>
|
|
4733
|
-
}
|
|
4734
7102
|
| {
|
|
4735
7103
|
type: 'update key generator'
|
|
4736
7104
|
keyGenerator: () => string
|
|
@@ -4743,7 +7111,6 @@ declare const editorMachine: StateMachine<
|
|
|
4743
7111
|
type: 'update maxBlocks'
|
|
4744
7112
|
maxBlocks: number | undefined
|
|
4745
7113
|
}
|
|
4746
|
-
| PatchesEvent
|
|
4747
7114
|
| {
|
|
4748
7115
|
type: 'blur'
|
|
4749
7116
|
editor: PortableTextSlateEditor
|
|
@@ -4759,7 +7126,10 @@ declare const editorMachine: StateMachine<
|
|
|
4759
7126
|
type: 'done normalizing'
|
|
4760
7127
|
}
|
|
4761
7128
|
| {
|
|
4762
|
-
type: 'done syncing
|
|
7129
|
+
type: 'done syncing value'
|
|
7130
|
+
}
|
|
7131
|
+
| {
|
|
7132
|
+
type: 'syncing value'
|
|
4763
7133
|
}
|
|
4764
7134
|
| {
|
|
4765
7135
|
type: 'behavior event'
|
|
@@ -4838,6 +7208,7 @@ declare const editorMachine: StateMachine<
|
|
|
4838
7208
|
},
|
|
4839
7209
|
| InternalPatchEvent
|
|
4840
7210
|
| MutationEvent
|
|
7211
|
+
| PatchesEvent
|
|
4841
7212
|
| {
|
|
4842
7213
|
type: 'add behavior'
|
|
4843
7214
|
behavior: Behavior
|
|
@@ -4854,10 +7225,6 @@ declare const editorMachine: StateMachine<
|
|
|
4854
7225
|
type: 'update schema'
|
|
4855
7226
|
schema: EditorSchema
|
|
4856
7227
|
}
|
|
4857
|
-
| {
|
|
4858
|
-
type: 'update behaviors'
|
|
4859
|
-
behaviors: Array<Behavior>
|
|
4860
|
-
}
|
|
4861
7228
|
| {
|
|
4862
7229
|
type: 'update key generator'
|
|
4863
7230
|
keyGenerator: () => string
|
|
@@ -4870,7 +7237,6 @@ declare const editorMachine: StateMachine<
|
|
|
4870
7237
|
type: 'update maxBlocks'
|
|
4871
7238
|
maxBlocks: number | undefined
|
|
4872
7239
|
}
|
|
4873
|
-
| PatchesEvent
|
|
4874
7240
|
| {
|
|
4875
7241
|
type: 'blur'
|
|
4876
7242
|
editor: PortableTextSlateEditor
|
|
@@ -4886,7 +7252,10 @@ declare const editorMachine: StateMachine<
|
|
|
4886
7252
|
type: 'done normalizing'
|
|
4887
7253
|
}
|
|
4888
7254
|
| {
|
|
4889
|
-
type: 'done syncing
|
|
7255
|
+
type: 'done syncing value'
|
|
7256
|
+
}
|
|
7257
|
+
| {
|
|
7258
|
+
type: 'syncing value'
|
|
4890
7259
|
}
|
|
4891
7260
|
| {
|
|
4892
7261
|
type: 'behavior event'
|
|
@@ -4971,6 +7340,7 @@ declare const editorMachine: StateMachine<
|
|
|
4971
7340
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4972
7341
|
keyGenerator: () => string
|
|
4973
7342
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7343
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4974
7344
|
schema: EditorSchema
|
|
4975
7345
|
initialReadOnly: boolean
|
|
4976
7346
|
maxBlocks: number | undefined
|
|
@@ -4984,6 +7354,7 @@ declare const editorMachine: StateMachine<
|
|
|
4984
7354
|
},
|
|
4985
7355
|
| InternalPatchEvent
|
|
4986
7356
|
| MutationEvent
|
|
7357
|
+
| PatchesEvent
|
|
4987
7358
|
| {
|
|
4988
7359
|
type: 'add behavior'
|
|
4989
7360
|
behavior: Behavior
|
|
@@ -5000,10 +7371,6 @@ declare const editorMachine: StateMachine<
|
|
|
5000
7371
|
type: 'update schema'
|
|
5001
7372
|
schema: EditorSchema
|
|
5002
7373
|
}
|
|
5003
|
-
| {
|
|
5004
|
-
type: 'update behaviors'
|
|
5005
|
-
behaviors: Array<Behavior>
|
|
5006
|
-
}
|
|
5007
7374
|
| {
|
|
5008
7375
|
type: 'update key generator'
|
|
5009
7376
|
keyGenerator: () => string
|
|
@@ -5016,7 +7383,6 @@ declare const editorMachine: StateMachine<
|
|
|
5016
7383
|
type: 'update maxBlocks'
|
|
5017
7384
|
maxBlocks: number | undefined
|
|
5018
7385
|
}
|
|
5019
|
-
| PatchesEvent
|
|
5020
7386
|
| {
|
|
5021
7387
|
type: 'blur'
|
|
5022
7388
|
editor: PortableTextSlateEditor
|
|
@@ -5032,7 +7398,10 @@ declare const editorMachine: StateMachine<
|
|
|
5032
7398
|
type: 'done normalizing'
|
|
5033
7399
|
}
|
|
5034
7400
|
| {
|
|
5035
|
-
type: 'done syncing
|
|
7401
|
+
type: 'done syncing value'
|
|
7402
|
+
}
|
|
7403
|
+
| {
|
|
7404
|
+
type: 'syncing value'
|
|
5036
7405
|
}
|
|
5037
7406
|
| {
|
|
5038
7407
|
type: 'behavior event'
|
|
@@ -5111,6 +7480,7 @@ declare const editorMachine: StateMachine<
|
|
|
5111
7480
|
},
|
|
5112
7481
|
| InternalPatchEvent
|
|
5113
7482
|
| MutationEvent
|
|
7483
|
+
| PatchesEvent
|
|
5114
7484
|
| {
|
|
5115
7485
|
type: 'add behavior'
|
|
5116
7486
|
behavior: Behavior
|
|
@@ -5127,10 +7497,6 @@ declare const editorMachine: StateMachine<
|
|
|
5127
7497
|
type: 'update schema'
|
|
5128
7498
|
schema: EditorSchema
|
|
5129
7499
|
}
|
|
5130
|
-
| {
|
|
5131
|
-
type: 'update behaviors'
|
|
5132
|
-
behaviors: Array<Behavior>
|
|
5133
|
-
}
|
|
5134
7500
|
| {
|
|
5135
7501
|
type: 'update key generator'
|
|
5136
7502
|
keyGenerator: () => string
|
|
@@ -5143,7 +7509,6 @@ declare const editorMachine: StateMachine<
|
|
|
5143
7509
|
type: 'update maxBlocks'
|
|
5144
7510
|
maxBlocks: number | undefined
|
|
5145
7511
|
}
|
|
5146
|
-
| PatchesEvent
|
|
5147
7512
|
| {
|
|
5148
7513
|
type: 'blur'
|
|
5149
7514
|
editor: PortableTextSlateEditor
|
|
@@ -5159,7 +7524,10 @@ declare const editorMachine: StateMachine<
|
|
|
5159
7524
|
type: 'done normalizing'
|
|
5160
7525
|
}
|
|
5161
7526
|
| {
|
|
5162
|
-
type: 'done syncing
|
|
7527
|
+
type: 'done syncing value'
|
|
7528
|
+
}
|
|
7529
|
+
| {
|
|
7530
|
+
type: 'syncing value'
|
|
5163
7531
|
}
|
|
5164
7532
|
| {
|
|
5165
7533
|
type: 'behavior event'
|
|
@@ -5262,7 +7630,11 @@ declare const editorMachine: StateMachine<
|
|
|
5262
7630
|
readonly initial: 'setting up'
|
|
5263
7631
|
readonly states: {
|
|
5264
7632
|
readonly 'setting up': {
|
|
5265
|
-
readonly exit: readonly [
|
|
7633
|
+
readonly exit: readonly [
|
|
7634
|
+
'emit ready',
|
|
7635
|
+
'emit pending incoming patches',
|
|
7636
|
+
'clear pending incoming patches',
|
|
7637
|
+
]
|
|
5266
7638
|
readonly on: {
|
|
5267
7639
|
readonly 'internal.patch': {
|
|
5268
7640
|
readonly actions: 'defer event'
|
|
@@ -5270,58 +7642,304 @@ declare const editorMachine: StateMachine<
|
|
|
5270
7642
|
readonly 'mutation': {
|
|
5271
7643
|
readonly actions: 'defer event'
|
|
5272
7644
|
}
|
|
5273
|
-
readonly 'done syncing
|
|
5274
|
-
readonly target: '
|
|
7645
|
+
readonly 'done syncing value': {
|
|
7646
|
+
readonly target: 'set up'
|
|
7647
|
+
}
|
|
7648
|
+
readonly 'patches': {
|
|
7649
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5275
7650
|
}
|
|
5276
7651
|
}
|
|
5277
7652
|
}
|
|
5278
|
-
readonly '
|
|
5279
|
-
readonly
|
|
7653
|
+
readonly 'set up': {
|
|
7654
|
+
readonly type: 'parallel'
|
|
5280
7655
|
readonly states: {
|
|
5281
|
-
readonly
|
|
5282
|
-
readonly
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
7656
|
+
readonly 'value sync': {
|
|
7657
|
+
readonly initial: 'idle'
|
|
7658
|
+
readonly states: {
|
|
7659
|
+
readonly 'idle': {
|
|
7660
|
+
readonly on: {
|
|
7661
|
+
readonly 'patches': {
|
|
7662
|
+
readonly actions: readonly [
|
|
7663
|
+
ActionFunction<
|
|
7664
|
+
{
|
|
7665
|
+
behaviors: Set<Behavior>
|
|
7666
|
+
converters: Set<Converter>
|
|
7667
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
7668
|
+
keyGenerator: () => string
|
|
7669
|
+
pendingEvents: Array<
|
|
7670
|
+
InternalPatchEvent | MutationEvent
|
|
7671
|
+
>
|
|
7672
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
7673
|
+
schema: EditorSchema
|
|
7674
|
+
initialReadOnly: boolean
|
|
7675
|
+
maxBlocks: number | undefined
|
|
7676
|
+
selection: EditorSelection
|
|
7677
|
+
incomingValue:
|
|
7678
|
+
| Array<PortableTextBlock>
|
|
7679
|
+
| undefined
|
|
7680
|
+
internalDrag?: {
|
|
7681
|
+
ghost?: HTMLElement
|
|
7682
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7683
|
+
}
|
|
7684
|
+
slateEditor?: PortableTextSlateEditor
|
|
7685
|
+
},
|
|
7686
|
+
PatchesEvent,
|
|
7687
|
+
| InternalPatchEvent
|
|
7688
|
+
| MutationEvent
|
|
7689
|
+
| PatchesEvent
|
|
7690
|
+
| {
|
|
7691
|
+
type: 'add behavior'
|
|
7692
|
+
behavior: Behavior
|
|
7693
|
+
}
|
|
7694
|
+
| {
|
|
7695
|
+
type: 'remove behavior'
|
|
7696
|
+
behavior: Behavior
|
|
7697
|
+
}
|
|
7698
|
+
| {
|
|
7699
|
+
type: 'update readOnly'
|
|
7700
|
+
readOnly: boolean
|
|
7701
|
+
}
|
|
7702
|
+
| {
|
|
7703
|
+
type: 'update schema'
|
|
7704
|
+
schema: EditorSchema
|
|
7705
|
+
}
|
|
7706
|
+
| {
|
|
7707
|
+
type: 'update key generator'
|
|
7708
|
+
keyGenerator: () => string
|
|
7709
|
+
}
|
|
7710
|
+
| {
|
|
7711
|
+
type: 'update value'
|
|
7712
|
+
value: Array<PortableTextBlock> | undefined
|
|
7713
|
+
}
|
|
7714
|
+
| {
|
|
7715
|
+
type: 'update maxBlocks'
|
|
7716
|
+
maxBlocks: number | undefined
|
|
7717
|
+
}
|
|
7718
|
+
| {
|
|
7719
|
+
type: 'blur'
|
|
7720
|
+
editor: PortableTextSlateEditor
|
|
7721
|
+
}
|
|
7722
|
+
| {
|
|
7723
|
+
type: 'focus'
|
|
7724
|
+
editor: PortableTextSlateEditor
|
|
7725
|
+
}
|
|
7726
|
+
| {
|
|
7727
|
+
type: 'normalizing'
|
|
7728
|
+
}
|
|
7729
|
+
| {
|
|
7730
|
+
type: 'done normalizing'
|
|
7731
|
+
}
|
|
7732
|
+
| {
|
|
7733
|
+
type: 'done syncing value'
|
|
7734
|
+
}
|
|
7735
|
+
| {
|
|
7736
|
+
type: 'syncing value'
|
|
7737
|
+
}
|
|
7738
|
+
| {
|
|
7739
|
+
type: 'behavior event'
|
|
7740
|
+
behaviorEvent: BehaviorEvent
|
|
7741
|
+
editor: PortableTextSlateEditor
|
|
7742
|
+
nativeEvent?: {
|
|
7743
|
+
preventDefault: () => void
|
|
7744
|
+
}
|
|
7745
|
+
}
|
|
7746
|
+
| {
|
|
7747
|
+
type: 'notify.patch'
|
|
7748
|
+
patch: Patch
|
|
7749
|
+
}
|
|
7750
|
+
| {
|
|
7751
|
+
type: 'notify.mutation'
|
|
7752
|
+
patches: Array<Patch>
|
|
7753
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
7754
|
+
value: Array<PortableTextBlock> | undefined
|
|
7755
|
+
}
|
|
7756
|
+
| {
|
|
7757
|
+
type: 'notify.blurred'
|
|
7758
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7759
|
+
}
|
|
7760
|
+
| {
|
|
7761
|
+
type: 'notify.done loading'
|
|
7762
|
+
}
|
|
7763
|
+
| {
|
|
7764
|
+
type: 'notify.editable'
|
|
7765
|
+
}
|
|
7766
|
+
| {
|
|
7767
|
+
type: 'notify.error'
|
|
7768
|
+
name: string
|
|
7769
|
+
description: string
|
|
7770
|
+
data: unknown
|
|
7771
|
+
}
|
|
7772
|
+
| {
|
|
7773
|
+
type: 'notify.focused'
|
|
7774
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7775
|
+
}
|
|
7776
|
+
| {
|
|
7777
|
+
type: 'notify.invalid value'
|
|
7778
|
+
resolution: InvalidValueResolution | null
|
|
7779
|
+
value: Array<PortableTextBlock> | undefined
|
|
7780
|
+
}
|
|
7781
|
+
| {
|
|
7782
|
+
type: 'notify.loading'
|
|
7783
|
+
}
|
|
7784
|
+
| {
|
|
7785
|
+
type: 'notify.read only'
|
|
7786
|
+
}
|
|
7787
|
+
| {
|
|
7788
|
+
type: 'notify.ready'
|
|
7789
|
+
}
|
|
7790
|
+
| {
|
|
7791
|
+
type: 'notify.selection'
|
|
7792
|
+
selection: EditorSelection
|
|
7793
|
+
}
|
|
7794
|
+
| {
|
|
7795
|
+
type: 'notify.value changed'
|
|
7796
|
+
value: Array<PortableTextBlock> | undefined
|
|
7797
|
+
}
|
|
7798
|
+
| {
|
|
7799
|
+
type: 'notify.unset'
|
|
7800
|
+
previousValue: Array<PortableTextBlock>
|
|
7801
|
+
}
|
|
7802
|
+
| {
|
|
7803
|
+
type: 'dragstart'
|
|
7804
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7805
|
+
ghost?: HTMLElement
|
|
7806
|
+
}
|
|
7807
|
+
| {
|
|
7808
|
+
type: 'dragend'
|
|
7809
|
+
}
|
|
7810
|
+
| {
|
|
7811
|
+
type: 'drop'
|
|
7812
|
+
},
|
|
7813
|
+
undefined,
|
|
7814
|
+
never,
|
|
7815
|
+
never,
|
|
7816
|
+
never,
|
|
7817
|
+
never,
|
|
7818
|
+
| PatchEvent
|
|
7819
|
+
| InternalPatchEvent
|
|
7820
|
+
| MutationEvent
|
|
7821
|
+
| PatchesEvent
|
|
7822
|
+
| {
|
|
7823
|
+
type: 'blurred'
|
|
7824
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7825
|
+
}
|
|
7826
|
+
| {
|
|
7827
|
+
type: 'done loading'
|
|
7828
|
+
}
|
|
7829
|
+
| {
|
|
7830
|
+
type: 'editable'
|
|
7831
|
+
}
|
|
7832
|
+
| {
|
|
7833
|
+
type: 'error'
|
|
7834
|
+
name: string
|
|
7835
|
+
description: string
|
|
7836
|
+
data: unknown
|
|
7837
|
+
}
|
|
7838
|
+
| {
|
|
7839
|
+
type: 'focused'
|
|
7840
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
7841
|
+
}
|
|
7842
|
+
| {
|
|
7843
|
+
type: 'invalid value'
|
|
7844
|
+
resolution: InvalidValueResolution | null
|
|
7845
|
+
value: Array<PortableTextBlock> | undefined
|
|
7846
|
+
}
|
|
7847
|
+
| {
|
|
7848
|
+
type: 'loading'
|
|
7849
|
+
}
|
|
7850
|
+
| {
|
|
7851
|
+
type: 'read only'
|
|
7852
|
+
}
|
|
7853
|
+
| {
|
|
7854
|
+
type: 'ready'
|
|
7855
|
+
}
|
|
7856
|
+
| {
|
|
7857
|
+
type: 'selection'
|
|
7858
|
+
selection: EditorSelection
|
|
7859
|
+
}
|
|
7860
|
+
| {
|
|
7861
|
+
type: 'value changed'
|
|
7862
|
+
value: Array<PortableTextBlock> | undefined
|
|
7863
|
+
}
|
|
7864
|
+
| UnsetEvent
|
|
7865
|
+
>,
|
|
7866
|
+
]
|
|
7867
|
+
}
|
|
7868
|
+
readonly 'syncing value': {
|
|
7869
|
+
readonly target: 'syncing value'
|
|
7870
|
+
}
|
|
7871
|
+
}
|
|
5289
7872
|
}
|
|
5290
|
-
readonly '
|
|
5291
|
-
readonly
|
|
5292
|
-
|
|
7873
|
+
readonly 'syncing value': {
|
|
7874
|
+
readonly exit: readonly [
|
|
7875
|
+
'emit pending incoming patches',
|
|
7876
|
+
'clear pending incoming patches',
|
|
7877
|
+
]
|
|
7878
|
+
readonly on: {
|
|
7879
|
+
readonly 'patches': {
|
|
7880
|
+
readonly actions: readonly ['defer incoming patches']
|
|
7881
|
+
}
|
|
7882
|
+
readonly 'done syncing value': {
|
|
7883
|
+
readonly target: 'idle'
|
|
7884
|
+
}
|
|
7885
|
+
}
|
|
5293
7886
|
}
|
|
5294
7887
|
}
|
|
5295
7888
|
}
|
|
5296
|
-
readonly
|
|
5297
|
-
readonly
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
7889
|
+
readonly 'writing': {
|
|
7890
|
+
readonly initial: 'pristine'
|
|
7891
|
+
readonly states: {
|
|
7892
|
+
readonly pristine: {
|
|
7893
|
+
readonly initial: 'idle'
|
|
7894
|
+
readonly states: {
|
|
7895
|
+
readonly idle: {
|
|
7896
|
+
readonly on: {
|
|
7897
|
+
readonly 'normalizing': {
|
|
7898
|
+
readonly target: 'normalizing'
|
|
7899
|
+
}
|
|
7900
|
+
readonly 'internal.patch': {
|
|
7901
|
+
readonly actions: 'defer event'
|
|
7902
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
7903
|
+
}
|
|
7904
|
+
readonly 'mutation': {
|
|
7905
|
+
readonly actions: 'defer event'
|
|
7906
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7909
|
+
}
|
|
7910
|
+
readonly normalizing: {
|
|
7911
|
+
readonly on: {
|
|
7912
|
+
readonly 'done normalizing': {
|
|
7913
|
+
readonly target: 'idle'
|
|
7914
|
+
}
|
|
7915
|
+
readonly 'internal.patch': {
|
|
7916
|
+
readonly actions: 'defer event'
|
|
7917
|
+
}
|
|
7918
|
+
readonly 'mutation': {
|
|
7919
|
+
readonly actions: 'defer event'
|
|
7920
|
+
}
|
|
7921
|
+
}
|
|
7922
|
+
}
|
|
7923
|
+
}
|
|
5303
7924
|
}
|
|
5304
|
-
readonly
|
|
5305
|
-
readonly
|
|
7925
|
+
readonly dirty: {
|
|
7926
|
+
readonly entry: readonly [
|
|
7927
|
+
'emit pending events',
|
|
7928
|
+
'clear pending events',
|
|
7929
|
+
]
|
|
7930
|
+
readonly on: {
|
|
7931
|
+
readonly 'internal.patch': {
|
|
7932
|
+
readonly actions: 'emit patch event'
|
|
7933
|
+
}
|
|
7934
|
+
readonly 'mutation': {
|
|
7935
|
+
readonly actions: 'emit mutation event'
|
|
7936
|
+
}
|
|
7937
|
+
}
|
|
5306
7938
|
}
|
|
5307
7939
|
}
|
|
5308
7940
|
}
|
|
5309
7941
|
}
|
|
5310
7942
|
}
|
|
5311
|
-
readonly 'dirty': {
|
|
5312
|
-
readonly entry: readonly [
|
|
5313
|
-
'emit pending events',
|
|
5314
|
-
'clear pending events',
|
|
5315
|
-
]
|
|
5316
|
-
readonly on: {
|
|
5317
|
-
readonly 'internal.patch': {
|
|
5318
|
-
readonly actions: 'emit patch event'
|
|
5319
|
-
}
|
|
5320
|
-
readonly 'mutation': {
|
|
5321
|
-
readonly actions: 'emit mutation event'
|
|
5322
|
-
}
|
|
5323
|
-
}
|
|
5324
|
-
}
|
|
5325
7943
|
}
|
|
5326
7944
|
}
|
|
5327
7945
|
}
|
|
@@ -5530,10 +8148,6 @@ declare type ExternalEditorEvent =
|
|
|
5530
8148
|
type: 'update schema'
|
|
5531
8149
|
schema: EditorSchema
|
|
5532
8150
|
}
|
|
5533
|
-
| {
|
|
5534
|
-
type: 'update behaviors'
|
|
5535
|
-
behaviors: Array<Behavior>
|
|
5536
|
-
}
|
|
5537
8151
|
| {
|
|
5538
8152
|
type: 'update key generator'
|
|
5539
8153
|
keyGenerator: () => string
|