@portabletext/editor 1.49.9 → 1.49.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/behaviors/index.d.cts +160 -2885
- package/lib/behaviors/index.d.ts +160 -2885
- package/lib/index.cjs +356 -311
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +170 -2874
- package/lib/index.d.ts +170 -2874
- package/lib/index.js +359 -314
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +162 -2879
- package/lib/plugins/index.d.ts +162 -2879
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.cts +160 -2885
- package/lib/selectors/index.d.ts +160 -2885
- package/lib/utils/index.d.cts +160 -2885
- package/lib/utils/index.d.ts +160 -2885
- package/package.json +7 -7
- package/src/editor/Editable.tsx +14 -12
- package/src/editor/PortableTextEditor.tsx +21 -26
- package/src/editor/__tests__/self-solving.test.tsx +9 -9
- package/src/editor/create-editor.ts +91 -53
- package/src/editor/create-slate-editor.tsx +3 -0
- package/src/editor/editor-machine.ts +15 -127
- package/src/editor/editor-provider.tsx +20 -15
- package/src/editor/mutation-machine.ts +125 -7
- package/src/editor/plugins/createWithPatches.ts +5 -2
- package/src/editor/plugins/createWithPortableTextSelections.ts +4 -2
- package/src/editor/plugins/with-plugins.ts +8 -3
- package/src/editor/relay-actor-context.ts +4 -0
- package/src/editor/relay-machine.ts +89 -0
- package/src/editor/route-events-to-changes.tsx +4 -10
- package/src/editor/sync-machine.ts +2 -2
- package/src/editor-event-listener.tsx +1 -1
- package/src/editor.ts +2 -4
- package/src/index.ts +3 -6
- package/src/internal-utils/__tests__/operationToPatches.test.ts +3 -1
- package/src/internal-utils/__tests__/patchToOperations.test.ts +2 -0
- package/src/internal-utils/applyPatch.ts +6 -2
- package/src/plugins/plugin.event-listener.tsx +1 -1
- package/src/types/editor.ts +12 -4
package/lib/utils/index.d.ts
CHANGED
|
@@ -13,10 +13,8 @@ import type {
|
|
|
13
13
|
PortableTextTextBlock,
|
|
14
14
|
} from '@sanity/types'
|
|
15
15
|
import {PortableTextObject, PortableTextSpan} from '@sanity/types'
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
KeyboardEvent as KeyboardEvent_2,
|
|
19
|
-
} from 'react'
|
|
16
|
+
import {FocusEvent as FocusEvent_2} from 'react'
|
|
17
|
+
import type {KeyboardEvent as KeyboardEvent_2} from 'react'
|
|
20
18
|
import type {Descendant, Operation, TextUnit} from 'slate'
|
|
21
19
|
import type {DOMNode} from 'slate-dom'
|
|
22
20
|
import type {ReactEditor} from 'slate-react'
|
|
@@ -41,6 +39,7 @@ import {
|
|
|
41
39
|
Values,
|
|
42
40
|
} from 'xstate'
|
|
43
41
|
import {GuardArgs} from 'xstate/guards'
|
|
42
|
+
import {InvalidValueResolution} from '..'
|
|
44
43
|
|
|
45
44
|
declare type AbstractBehaviorEvent =
|
|
46
45
|
| {
|
|
@@ -673,14 +672,6 @@ declare const editorMachine: StateMachine<
|
|
|
673
672
|
type: 'update readOnly'
|
|
674
673
|
readOnly: boolean
|
|
675
674
|
}
|
|
676
|
-
| {
|
|
677
|
-
type: 'update schema'
|
|
678
|
-
schema: EditorSchema
|
|
679
|
-
}
|
|
680
|
-
| {
|
|
681
|
-
type: 'update key generator'
|
|
682
|
-
keyGenerator: () => string
|
|
683
|
-
}
|
|
684
675
|
| {
|
|
685
676
|
type: 'update maxBlocks'
|
|
686
677
|
maxBlocks: number | undefined
|
|
@@ -704,6 +695,10 @@ declare const editorMachine: StateMachine<
|
|
|
704
695
|
| {
|
|
705
696
|
type: 'normalizing'
|
|
706
697
|
}
|
|
698
|
+
| {
|
|
699
|
+
type: 'update selection'
|
|
700
|
+
selection: EditorSelection
|
|
701
|
+
}
|
|
707
702
|
| {
|
|
708
703
|
type: 'done normalizing'
|
|
709
704
|
}
|
|
@@ -721,62 +716,6 @@ declare const editorMachine: StateMachine<
|
|
|
721
716
|
preventDefault: () => void
|
|
722
717
|
}
|
|
723
718
|
}
|
|
724
|
-
| {
|
|
725
|
-
type: 'notify.patch'
|
|
726
|
-
patch: Patch
|
|
727
|
-
}
|
|
728
|
-
| {
|
|
729
|
-
type: 'notify.mutation'
|
|
730
|
-
patches: Array<Patch>
|
|
731
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
732
|
-
value: Array<PortableTextBlock> | undefined
|
|
733
|
-
}
|
|
734
|
-
| {
|
|
735
|
-
type: 'notify.blurred'
|
|
736
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
737
|
-
}
|
|
738
|
-
| {
|
|
739
|
-
type: 'notify.done loading'
|
|
740
|
-
}
|
|
741
|
-
| {
|
|
742
|
-
type: 'notify.editable'
|
|
743
|
-
}
|
|
744
|
-
| {
|
|
745
|
-
type: 'notify.error'
|
|
746
|
-
name: string
|
|
747
|
-
description: string
|
|
748
|
-
data: unknown
|
|
749
|
-
}
|
|
750
|
-
| {
|
|
751
|
-
type: 'notify.focused'
|
|
752
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
753
|
-
}
|
|
754
|
-
| {
|
|
755
|
-
type: 'notify.invalid value'
|
|
756
|
-
resolution: InvalidValueResolution | null
|
|
757
|
-
value: Array<PortableTextBlock> | undefined
|
|
758
|
-
}
|
|
759
|
-
| {
|
|
760
|
-
type: 'notify.loading'
|
|
761
|
-
}
|
|
762
|
-
| {
|
|
763
|
-
type: 'notify.read only'
|
|
764
|
-
}
|
|
765
|
-
| {
|
|
766
|
-
type: 'notify.ready'
|
|
767
|
-
}
|
|
768
|
-
| {
|
|
769
|
-
type: 'notify.selection'
|
|
770
|
-
selection: EditorSelection
|
|
771
|
-
}
|
|
772
|
-
| {
|
|
773
|
-
type: 'notify.value changed'
|
|
774
|
-
value: Array<PortableTextBlock> | undefined
|
|
775
|
-
}
|
|
776
|
-
| {
|
|
777
|
-
type: 'notify.unset'
|
|
778
|
-
previousValue: Array<PortableTextBlock>
|
|
779
|
-
}
|
|
780
719
|
| {
|
|
781
720
|
type: 'dragstart'
|
|
782
721
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -799,10 +738,6 @@ declare const editorMachine: StateMachine<
|
|
|
799
738
|
type: 'remove behavior from context'
|
|
800
739
|
params: NonReducibleUnknown
|
|
801
740
|
}
|
|
802
|
-
'assign schema': {
|
|
803
|
-
type: 'assign schema'
|
|
804
|
-
params: NonReducibleUnknown
|
|
805
|
-
}
|
|
806
741
|
'emit patch event': {
|
|
807
742
|
type: 'emit patch event'
|
|
808
743
|
params: NonReducibleUnknown
|
|
@@ -902,7 +837,6 @@ declare const editorMachine: StateMachine<
|
|
|
902
837
|
initialValue?: Array<PortableTextBlock>
|
|
903
838
|
},
|
|
904
839
|
NonReducibleUnknown,
|
|
905
|
-
| PatchEvent
|
|
906
840
|
| InternalPatchEvent
|
|
907
841
|
| MutationEvent
|
|
908
842
|
| PatchesEvent
|
|
@@ -916,12 +850,6 @@ declare const editorMachine: StateMachine<
|
|
|
916
850
|
| {
|
|
917
851
|
type: 'editable'
|
|
918
852
|
}
|
|
919
|
-
| {
|
|
920
|
-
type: 'error'
|
|
921
|
-
name: string
|
|
922
|
-
description: string
|
|
923
|
-
data: unknown
|
|
924
|
-
}
|
|
925
853
|
| {
|
|
926
854
|
type: 'focused'
|
|
927
855
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
@@ -947,8 +875,7 @@ declare const editorMachine: StateMachine<
|
|
|
947
875
|
| {
|
|
948
876
|
type: 'value changed'
|
|
949
877
|
value: Array<PortableTextBlock> | undefined
|
|
950
|
-
}
|
|
951
|
-
| UnsetEvent,
|
|
878
|
+
},
|
|
952
879
|
MetaObject,
|
|
953
880
|
{
|
|
954
881
|
readonly id: 'editor'
|
|
@@ -1013,14 +940,6 @@ declare const editorMachine: StateMachine<
|
|
|
1013
940
|
type: 'update readOnly'
|
|
1014
941
|
readOnly: boolean
|
|
1015
942
|
}
|
|
1016
|
-
| {
|
|
1017
|
-
type: 'update schema'
|
|
1018
|
-
schema: EditorSchema
|
|
1019
|
-
}
|
|
1020
|
-
| {
|
|
1021
|
-
type: 'update key generator'
|
|
1022
|
-
keyGenerator: () => string
|
|
1023
|
-
}
|
|
1024
943
|
| {
|
|
1025
944
|
type: 'update maxBlocks'
|
|
1026
945
|
maxBlocks: number | undefined
|
|
@@ -1044,6 +963,10 @@ declare const editorMachine: StateMachine<
|
|
|
1044
963
|
| {
|
|
1045
964
|
type: 'normalizing'
|
|
1046
965
|
}
|
|
966
|
+
| {
|
|
967
|
+
type: 'update selection'
|
|
968
|
+
selection: EditorSelection
|
|
969
|
+
}
|
|
1047
970
|
| {
|
|
1048
971
|
type: 'done normalizing'
|
|
1049
972
|
}
|
|
@@ -1061,62 +984,6 @@ declare const editorMachine: StateMachine<
|
|
|
1061
984
|
preventDefault: () => void
|
|
1062
985
|
}
|
|
1063
986
|
}
|
|
1064
|
-
| {
|
|
1065
|
-
type: 'notify.patch'
|
|
1066
|
-
patch: Patch
|
|
1067
|
-
}
|
|
1068
|
-
| {
|
|
1069
|
-
type: 'notify.mutation'
|
|
1070
|
-
patches: Array<Patch>
|
|
1071
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
1072
|
-
value: Array<PortableTextBlock> | undefined
|
|
1073
|
-
}
|
|
1074
|
-
| {
|
|
1075
|
-
type: 'notify.blurred'
|
|
1076
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1077
|
-
}
|
|
1078
|
-
| {
|
|
1079
|
-
type: 'notify.done loading'
|
|
1080
|
-
}
|
|
1081
|
-
| {
|
|
1082
|
-
type: 'notify.editable'
|
|
1083
|
-
}
|
|
1084
|
-
| {
|
|
1085
|
-
type: 'notify.error'
|
|
1086
|
-
name: string
|
|
1087
|
-
description: string
|
|
1088
|
-
data: unknown
|
|
1089
|
-
}
|
|
1090
|
-
| {
|
|
1091
|
-
type: 'notify.focused'
|
|
1092
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1093
|
-
}
|
|
1094
|
-
| {
|
|
1095
|
-
type: 'notify.invalid value'
|
|
1096
|
-
resolution: InvalidValueResolution | null
|
|
1097
|
-
value: Array<PortableTextBlock> | undefined
|
|
1098
|
-
}
|
|
1099
|
-
| {
|
|
1100
|
-
type: 'notify.loading'
|
|
1101
|
-
}
|
|
1102
|
-
| {
|
|
1103
|
-
type: 'notify.read only'
|
|
1104
|
-
}
|
|
1105
|
-
| {
|
|
1106
|
-
type: 'notify.ready'
|
|
1107
|
-
}
|
|
1108
|
-
| {
|
|
1109
|
-
type: 'notify.selection'
|
|
1110
|
-
selection: EditorSelection
|
|
1111
|
-
}
|
|
1112
|
-
| {
|
|
1113
|
-
type: 'notify.value changed'
|
|
1114
|
-
value: Array<PortableTextBlock> | undefined
|
|
1115
|
-
}
|
|
1116
|
-
| {
|
|
1117
|
-
type: 'notify.unset'
|
|
1118
|
-
previousValue: Array<PortableTextBlock>
|
|
1119
|
-
}
|
|
1120
987
|
| {
|
|
1121
988
|
type: 'dragstart'
|
|
1122
989
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1142,14 +1009,6 @@ declare const editorMachine: StateMachine<
|
|
|
1142
1009
|
type: 'update readOnly'
|
|
1143
1010
|
readOnly: boolean
|
|
1144
1011
|
}
|
|
1145
|
-
| {
|
|
1146
|
-
type: 'update schema'
|
|
1147
|
-
schema: EditorSchema
|
|
1148
|
-
}
|
|
1149
|
-
| {
|
|
1150
|
-
type: 'update key generator'
|
|
1151
|
-
keyGenerator: () => string
|
|
1152
|
-
}
|
|
1153
1012
|
| {
|
|
1154
1013
|
type: 'update maxBlocks'
|
|
1155
1014
|
maxBlocks: number | undefined
|
|
@@ -1173,6 +1032,10 @@ declare const editorMachine: StateMachine<
|
|
|
1173
1032
|
| {
|
|
1174
1033
|
type: 'normalizing'
|
|
1175
1034
|
}
|
|
1035
|
+
| {
|
|
1036
|
+
type: 'update selection'
|
|
1037
|
+
selection: EditorSelection
|
|
1038
|
+
}
|
|
1176
1039
|
| {
|
|
1177
1040
|
type: 'done normalizing'
|
|
1178
1041
|
}
|
|
@@ -1190,62 +1053,6 @@ declare const editorMachine: StateMachine<
|
|
|
1190
1053
|
preventDefault: () => void
|
|
1191
1054
|
}
|
|
1192
1055
|
}
|
|
1193
|
-
| {
|
|
1194
|
-
type: 'notify.patch'
|
|
1195
|
-
patch: Patch
|
|
1196
|
-
}
|
|
1197
|
-
| {
|
|
1198
|
-
type: 'notify.mutation'
|
|
1199
|
-
patches: Array<Patch>
|
|
1200
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
1201
|
-
value: Array<PortableTextBlock> | undefined
|
|
1202
|
-
}
|
|
1203
|
-
| {
|
|
1204
|
-
type: 'notify.blurred'
|
|
1205
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1206
|
-
}
|
|
1207
|
-
| {
|
|
1208
|
-
type: 'notify.done loading'
|
|
1209
|
-
}
|
|
1210
|
-
| {
|
|
1211
|
-
type: 'notify.editable'
|
|
1212
|
-
}
|
|
1213
|
-
| {
|
|
1214
|
-
type: 'notify.error'
|
|
1215
|
-
name: string
|
|
1216
|
-
description: string
|
|
1217
|
-
data: unknown
|
|
1218
|
-
}
|
|
1219
|
-
| {
|
|
1220
|
-
type: 'notify.focused'
|
|
1221
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1222
|
-
}
|
|
1223
|
-
| {
|
|
1224
|
-
type: 'notify.invalid value'
|
|
1225
|
-
resolution: InvalidValueResolution | null
|
|
1226
|
-
value: Array<PortableTextBlock> | undefined
|
|
1227
|
-
}
|
|
1228
|
-
| {
|
|
1229
|
-
type: 'notify.loading'
|
|
1230
|
-
}
|
|
1231
|
-
| {
|
|
1232
|
-
type: 'notify.read only'
|
|
1233
|
-
}
|
|
1234
|
-
| {
|
|
1235
|
-
type: 'notify.ready'
|
|
1236
|
-
}
|
|
1237
|
-
| {
|
|
1238
|
-
type: 'notify.selection'
|
|
1239
|
-
selection: EditorSelection
|
|
1240
|
-
}
|
|
1241
|
-
| {
|
|
1242
|
-
type: 'notify.value changed'
|
|
1243
|
-
value: Array<PortableTextBlock> | undefined
|
|
1244
|
-
}
|
|
1245
|
-
| {
|
|
1246
|
-
type: 'notify.unset'
|
|
1247
|
-
previousValue: Array<PortableTextBlock>
|
|
1248
|
-
}
|
|
1249
1056
|
| {
|
|
1250
1057
|
type: 'dragstart'
|
|
1251
1058
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1273,7 +1080,13 @@ declare const editorMachine: StateMachine<
|
|
|
1273
1080
|
initialValue: PortableTextBlock[] | undefined
|
|
1274
1081
|
}
|
|
1275
1082
|
readonly on: {
|
|
1276
|
-
readonly '
|
|
1083
|
+
readonly 'add behavior': {
|
|
1084
|
+
readonly actions: 'add behavior to context'
|
|
1085
|
+
}
|
|
1086
|
+
readonly 'remove behavior': {
|
|
1087
|
+
readonly actions: 'remove behavior from context'
|
|
1088
|
+
}
|
|
1089
|
+
readonly 'update maxBlocks': {
|
|
1277
1090
|
readonly actions: ActionFunction<
|
|
1278
1091
|
{
|
|
1279
1092
|
behaviors: Set<BehaviorConfig>
|
|
@@ -1294,8 +1107,8 @@ declare const editorMachine: StateMachine<
|
|
|
1294
1107
|
slateEditor?: PortableTextSlateEditor
|
|
1295
1108
|
},
|
|
1296
1109
|
{
|
|
1297
|
-
type: '
|
|
1298
|
-
|
|
1110
|
+
type: 'update maxBlocks'
|
|
1111
|
+
maxBlocks: number | undefined
|
|
1299
1112
|
},
|
|
1300
1113
|
| InternalPatchEvent
|
|
1301
1114
|
| MutationEvent
|
|
@@ -1304,14 +1117,6 @@ declare const editorMachine: StateMachine<
|
|
|
1304
1117
|
type: 'update readOnly'
|
|
1305
1118
|
readOnly: boolean
|
|
1306
1119
|
}
|
|
1307
|
-
| {
|
|
1308
|
-
type: 'update schema'
|
|
1309
|
-
schema: EditorSchema
|
|
1310
|
-
}
|
|
1311
|
-
| {
|
|
1312
|
-
type: 'update key generator'
|
|
1313
|
-
keyGenerator: () => string
|
|
1314
|
-
}
|
|
1315
1120
|
| {
|
|
1316
1121
|
type: 'update maxBlocks'
|
|
1317
1122
|
maxBlocks: number | undefined
|
|
@@ -1335,6 +1140,10 @@ declare const editorMachine: StateMachine<
|
|
|
1335
1140
|
| {
|
|
1336
1141
|
type: 'normalizing'
|
|
1337
1142
|
}
|
|
1143
|
+
| {
|
|
1144
|
+
type: 'update selection'
|
|
1145
|
+
selection: EditorSelection
|
|
1146
|
+
}
|
|
1338
1147
|
| {
|
|
1339
1148
|
type: 'done normalizing'
|
|
1340
1149
|
}
|
|
@@ -1352,62 +1161,6 @@ declare const editorMachine: StateMachine<
|
|
|
1352
1161
|
preventDefault: () => void
|
|
1353
1162
|
}
|
|
1354
1163
|
}
|
|
1355
|
-
| {
|
|
1356
|
-
type: 'notify.patch'
|
|
1357
|
-
patch: Patch
|
|
1358
|
-
}
|
|
1359
|
-
| {
|
|
1360
|
-
type: 'notify.mutation'
|
|
1361
|
-
patches: Array<Patch>
|
|
1362
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
1363
|
-
value: Array<PortableTextBlock> | undefined
|
|
1364
|
-
}
|
|
1365
|
-
| {
|
|
1366
|
-
type: 'notify.blurred'
|
|
1367
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1368
|
-
}
|
|
1369
|
-
| {
|
|
1370
|
-
type: 'notify.done loading'
|
|
1371
|
-
}
|
|
1372
|
-
| {
|
|
1373
|
-
type: 'notify.editable'
|
|
1374
|
-
}
|
|
1375
|
-
| {
|
|
1376
|
-
type: 'notify.error'
|
|
1377
|
-
name: string
|
|
1378
|
-
description: string
|
|
1379
|
-
data: unknown
|
|
1380
|
-
}
|
|
1381
|
-
| {
|
|
1382
|
-
type: 'notify.focused'
|
|
1383
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1384
|
-
}
|
|
1385
|
-
| {
|
|
1386
|
-
type: 'notify.invalid value'
|
|
1387
|
-
resolution: InvalidValueResolution | null
|
|
1388
|
-
value: Array<PortableTextBlock> | undefined
|
|
1389
|
-
}
|
|
1390
|
-
| {
|
|
1391
|
-
type: 'notify.loading'
|
|
1392
|
-
}
|
|
1393
|
-
| {
|
|
1394
|
-
type: 'notify.read only'
|
|
1395
|
-
}
|
|
1396
|
-
| {
|
|
1397
|
-
type: 'notify.ready'
|
|
1398
|
-
}
|
|
1399
|
-
| {
|
|
1400
|
-
type: 'notify.selection'
|
|
1401
|
-
selection: EditorSelection
|
|
1402
|
-
}
|
|
1403
|
-
| {
|
|
1404
|
-
type: 'notify.value changed'
|
|
1405
|
-
value: Array<PortableTextBlock> | undefined
|
|
1406
|
-
}
|
|
1407
|
-
| {
|
|
1408
|
-
type: 'notify.unset'
|
|
1409
|
-
previousValue: Array<PortableTextBlock>
|
|
1410
|
-
}
|
|
1411
1164
|
| {
|
|
1412
1165
|
type: 'dragstart'
|
|
1413
1166
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1424,2126 +1177,104 @@ declare const editorMachine: StateMachine<
|
|
|
1424
1177
|
never,
|
|
1425
1178
|
never,
|
|
1426
1179
|
never,
|
|
1427
|
-
|
|
1428
|
-
| InternalPatchEvent
|
|
1429
|
-
| MutationEvent
|
|
1430
|
-
| PatchesEvent
|
|
1431
|
-
| {
|
|
1432
|
-
type: 'blurred'
|
|
1433
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1434
|
-
}
|
|
1435
|
-
| {
|
|
1436
|
-
type: 'done loading'
|
|
1437
|
-
}
|
|
1438
|
-
| {
|
|
1439
|
-
type: 'editable'
|
|
1440
|
-
}
|
|
1441
|
-
| {
|
|
1442
|
-
type: 'error'
|
|
1443
|
-
name: string
|
|
1444
|
-
description: string
|
|
1445
|
-
data: unknown
|
|
1446
|
-
}
|
|
1447
|
-
| {
|
|
1448
|
-
type: 'focused'
|
|
1449
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1450
|
-
}
|
|
1451
|
-
| {
|
|
1452
|
-
type: 'invalid value'
|
|
1453
|
-
resolution: InvalidValueResolution | null
|
|
1454
|
-
value: Array<PortableTextBlock> | undefined
|
|
1455
|
-
}
|
|
1456
|
-
| {
|
|
1457
|
-
type: 'loading'
|
|
1458
|
-
}
|
|
1459
|
-
| {
|
|
1460
|
-
type: 'read only'
|
|
1461
|
-
}
|
|
1462
|
-
| {
|
|
1463
|
-
type: 'ready'
|
|
1464
|
-
}
|
|
1465
|
-
| {
|
|
1466
|
-
type: 'selection'
|
|
1467
|
-
selection: EditorSelection
|
|
1468
|
-
}
|
|
1469
|
-
| {
|
|
1470
|
-
type: 'value changed'
|
|
1471
|
-
value: Array<PortableTextBlock> | undefined
|
|
1472
|
-
}
|
|
1473
|
-
| UnsetEvent
|
|
1180
|
+
never
|
|
1474
1181
|
>
|
|
1475
1182
|
}
|
|
1476
|
-
readonly '
|
|
1477
|
-
readonly actions:
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1484
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1485
|
-
schema: EditorSchema
|
|
1486
|
-
initialReadOnly: boolean
|
|
1487
|
-
maxBlocks: number | undefined
|
|
1488
|
-
selection: EditorSelection
|
|
1489
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
1490
|
-
internalDrag?: {
|
|
1491
|
-
ghost?: HTMLElement
|
|
1492
|
-
origin: Pick<EventPosition, 'selection'>
|
|
1493
|
-
}
|
|
1494
|
-
slateEditor?: PortableTextSlateEditor
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
type: 'notify.done loading'
|
|
1498
|
-
},
|
|
1499
|
-
| InternalPatchEvent
|
|
1500
|
-
| MutationEvent
|
|
1501
|
-
| PatchesEvent
|
|
1502
|
-
| {
|
|
1503
|
-
type: 'update readOnly'
|
|
1504
|
-
readOnly: boolean
|
|
1505
|
-
}
|
|
1506
|
-
| {
|
|
1507
|
-
type: 'update schema'
|
|
1508
|
-
schema: EditorSchema
|
|
1509
|
-
}
|
|
1510
|
-
| {
|
|
1511
|
-
type: 'update key generator'
|
|
1183
|
+
readonly 'update selection': {
|
|
1184
|
+
readonly actions: readonly [
|
|
1185
|
+
ActionFunction<
|
|
1186
|
+
{
|
|
1187
|
+
behaviors: Set<BehaviorConfig>
|
|
1188
|
+
converters: Set<Converter>
|
|
1189
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1512
1190
|
keyGenerator: () => string
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1191
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1192
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1193
|
+
schema: EditorSchema
|
|
1194
|
+
initialReadOnly: boolean
|
|
1516
1195
|
maxBlocks: number | undefined
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
| {
|
|
1523
|
-
type: 'remove behavior'
|
|
1524
|
-
behaviorConfig: BehaviorConfig
|
|
1525
|
-
}
|
|
1526
|
-
| {
|
|
1527
|
-
type: 'blur'
|
|
1528
|
-
editor: PortableTextSlateEditor
|
|
1529
|
-
}
|
|
1530
|
-
| {
|
|
1531
|
-
type: 'focus'
|
|
1532
|
-
editor: PortableTextSlateEditor
|
|
1533
|
-
}
|
|
1534
|
-
| {
|
|
1535
|
-
type: 'normalizing'
|
|
1536
|
-
}
|
|
1537
|
-
| {
|
|
1538
|
-
type: 'done normalizing'
|
|
1539
|
-
}
|
|
1540
|
-
| {
|
|
1541
|
-
type: 'done syncing value'
|
|
1542
|
-
}
|
|
1543
|
-
| {
|
|
1544
|
-
type: 'syncing value'
|
|
1545
|
-
}
|
|
1546
|
-
| {
|
|
1547
|
-
type: 'behavior event'
|
|
1548
|
-
behaviorEvent: BehaviorEvent
|
|
1549
|
-
editor: PortableTextSlateEditor
|
|
1550
|
-
nativeEvent?: {
|
|
1551
|
-
preventDefault: () => void
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
| {
|
|
1555
|
-
type: 'notify.patch'
|
|
1556
|
-
patch: Patch
|
|
1557
|
-
}
|
|
1558
|
-
| {
|
|
1559
|
-
type: 'notify.mutation'
|
|
1560
|
-
patches: Array<Patch>
|
|
1561
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
1562
|
-
value: Array<PortableTextBlock> | undefined
|
|
1563
|
-
}
|
|
1564
|
-
| {
|
|
1565
|
-
type: 'notify.blurred'
|
|
1566
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1567
|
-
}
|
|
1568
|
-
| {
|
|
1569
|
-
type: 'notify.done loading'
|
|
1570
|
-
}
|
|
1571
|
-
| {
|
|
1572
|
-
type: 'notify.editable'
|
|
1573
|
-
}
|
|
1574
|
-
| {
|
|
1575
|
-
type: 'notify.error'
|
|
1576
|
-
name: string
|
|
1577
|
-
description: string
|
|
1578
|
-
data: unknown
|
|
1579
|
-
}
|
|
1580
|
-
| {
|
|
1581
|
-
type: 'notify.focused'
|
|
1582
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1583
|
-
}
|
|
1584
|
-
| {
|
|
1585
|
-
type: 'notify.invalid value'
|
|
1586
|
-
resolution: InvalidValueResolution | null
|
|
1587
|
-
value: Array<PortableTextBlock> | undefined
|
|
1588
|
-
}
|
|
1589
|
-
| {
|
|
1590
|
-
type: 'notify.loading'
|
|
1591
|
-
}
|
|
1592
|
-
| {
|
|
1593
|
-
type: 'notify.read only'
|
|
1594
|
-
}
|
|
1595
|
-
| {
|
|
1596
|
-
type: 'notify.ready'
|
|
1597
|
-
}
|
|
1598
|
-
| {
|
|
1599
|
-
type: 'notify.selection'
|
|
1600
|
-
selection: EditorSelection
|
|
1601
|
-
}
|
|
1602
|
-
| {
|
|
1603
|
-
type: 'notify.value changed'
|
|
1604
|
-
value: Array<PortableTextBlock> | undefined
|
|
1605
|
-
}
|
|
1606
|
-
| {
|
|
1607
|
-
type: 'notify.unset'
|
|
1608
|
-
previousValue: Array<PortableTextBlock>
|
|
1609
|
-
}
|
|
1610
|
-
| {
|
|
1611
|
-
type: 'dragstart'
|
|
1612
|
-
origin: Pick<EventPosition, 'selection'>
|
|
1613
|
-
ghost?: HTMLElement
|
|
1614
|
-
}
|
|
1615
|
-
| {
|
|
1616
|
-
type: 'dragend'
|
|
1617
|
-
}
|
|
1618
|
-
| {
|
|
1619
|
-
type: 'drop'
|
|
1620
|
-
},
|
|
1621
|
-
undefined,
|
|
1622
|
-
never,
|
|
1623
|
-
never,
|
|
1624
|
-
never,
|
|
1625
|
-
never,
|
|
1626
|
-
| PatchEvent
|
|
1627
|
-
| InternalPatchEvent
|
|
1628
|
-
| MutationEvent
|
|
1629
|
-
| PatchesEvent
|
|
1630
|
-
| {
|
|
1631
|
-
type: 'blurred'
|
|
1632
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1633
|
-
}
|
|
1634
|
-
| {
|
|
1635
|
-
type: 'done loading'
|
|
1636
|
-
}
|
|
1637
|
-
| {
|
|
1638
|
-
type: 'editable'
|
|
1639
|
-
}
|
|
1640
|
-
| {
|
|
1641
|
-
type: 'error'
|
|
1642
|
-
name: string
|
|
1643
|
-
description: string
|
|
1644
|
-
data: unknown
|
|
1645
|
-
}
|
|
1646
|
-
| {
|
|
1647
|
-
type: 'focused'
|
|
1648
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1649
|
-
}
|
|
1650
|
-
| {
|
|
1651
|
-
type: 'invalid value'
|
|
1652
|
-
resolution: InvalidValueResolution | null
|
|
1653
|
-
value: Array<PortableTextBlock> | undefined
|
|
1654
|
-
}
|
|
1655
|
-
| {
|
|
1656
|
-
type: 'loading'
|
|
1657
|
-
}
|
|
1658
|
-
| {
|
|
1659
|
-
type: 'read only'
|
|
1660
|
-
}
|
|
1661
|
-
| {
|
|
1662
|
-
type: 'ready'
|
|
1663
|
-
}
|
|
1664
|
-
| {
|
|
1665
|
-
type: 'selection'
|
|
1666
|
-
selection: EditorSelection
|
|
1667
|
-
}
|
|
1668
|
-
| {
|
|
1669
|
-
type: 'value changed'
|
|
1670
|
-
value: Array<PortableTextBlock> | undefined
|
|
1671
|
-
}
|
|
1672
|
-
| UnsetEvent
|
|
1673
|
-
>
|
|
1674
|
-
}
|
|
1675
|
-
readonly 'notify.error': {
|
|
1676
|
-
readonly actions: ActionFunction<
|
|
1677
|
-
{
|
|
1678
|
-
behaviors: Set<BehaviorConfig>
|
|
1679
|
-
converters: Set<Converter>
|
|
1680
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1681
|
-
keyGenerator: () => string
|
|
1682
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1683
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1684
|
-
schema: EditorSchema
|
|
1685
|
-
initialReadOnly: boolean
|
|
1686
|
-
maxBlocks: number | undefined
|
|
1687
|
-
selection: EditorSelection
|
|
1688
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
1689
|
-
internalDrag?: {
|
|
1690
|
-
ghost?: HTMLElement
|
|
1691
|
-
origin: Pick<EventPosition, 'selection'>
|
|
1692
|
-
}
|
|
1693
|
-
slateEditor?: PortableTextSlateEditor
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
type: 'notify.error'
|
|
1697
|
-
name: string
|
|
1698
|
-
description: string
|
|
1699
|
-
data: unknown
|
|
1700
|
-
},
|
|
1701
|
-
| InternalPatchEvent
|
|
1702
|
-
| MutationEvent
|
|
1703
|
-
| PatchesEvent
|
|
1704
|
-
| {
|
|
1705
|
-
type: 'update readOnly'
|
|
1706
|
-
readOnly: boolean
|
|
1707
|
-
}
|
|
1708
|
-
| {
|
|
1709
|
-
type: 'update schema'
|
|
1710
|
-
schema: EditorSchema
|
|
1711
|
-
}
|
|
1712
|
-
| {
|
|
1713
|
-
type: 'update key generator'
|
|
1714
|
-
keyGenerator: () => string
|
|
1715
|
-
}
|
|
1716
|
-
| {
|
|
1717
|
-
type: 'update maxBlocks'
|
|
1718
|
-
maxBlocks: number | undefined
|
|
1719
|
-
}
|
|
1720
|
-
| {
|
|
1721
|
-
type: 'add behavior'
|
|
1722
|
-
behaviorConfig: BehaviorConfig
|
|
1723
|
-
}
|
|
1724
|
-
| {
|
|
1725
|
-
type: 'remove behavior'
|
|
1726
|
-
behaviorConfig: BehaviorConfig
|
|
1727
|
-
}
|
|
1728
|
-
| {
|
|
1729
|
-
type: 'blur'
|
|
1730
|
-
editor: PortableTextSlateEditor
|
|
1731
|
-
}
|
|
1732
|
-
| {
|
|
1733
|
-
type: 'focus'
|
|
1734
|
-
editor: PortableTextSlateEditor
|
|
1735
|
-
}
|
|
1736
|
-
| {
|
|
1737
|
-
type: 'normalizing'
|
|
1738
|
-
}
|
|
1739
|
-
| {
|
|
1740
|
-
type: 'done normalizing'
|
|
1741
|
-
}
|
|
1742
|
-
| {
|
|
1743
|
-
type: 'done syncing value'
|
|
1744
|
-
}
|
|
1745
|
-
| {
|
|
1746
|
-
type: 'syncing value'
|
|
1747
|
-
}
|
|
1748
|
-
| {
|
|
1749
|
-
type: 'behavior event'
|
|
1750
|
-
behaviorEvent: BehaviorEvent
|
|
1751
|
-
editor: PortableTextSlateEditor
|
|
1752
|
-
nativeEvent?: {
|
|
1753
|
-
preventDefault: () => void
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
| {
|
|
1757
|
-
type: 'notify.patch'
|
|
1758
|
-
patch: Patch
|
|
1759
|
-
}
|
|
1760
|
-
| {
|
|
1761
|
-
type: 'notify.mutation'
|
|
1762
|
-
patches: Array<Patch>
|
|
1763
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
1764
|
-
value: Array<PortableTextBlock> | undefined
|
|
1765
|
-
}
|
|
1766
|
-
| {
|
|
1767
|
-
type: 'notify.blurred'
|
|
1768
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1769
|
-
}
|
|
1770
|
-
| {
|
|
1771
|
-
type: 'notify.done loading'
|
|
1772
|
-
}
|
|
1773
|
-
| {
|
|
1774
|
-
type: 'notify.editable'
|
|
1775
|
-
}
|
|
1776
|
-
| {
|
|
1777
|
-
type: 'notify.error'
|
|
1778
|
-
name: string
|
|
1779
|
-
description: string
|
|
1780
|
-
data: unknown
|
|
1781
|
-
}
|
|
1782
|
-
| {
|
|
1783
|
-
type: 'notify.focused'
|
|
1784
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1785
|
-
}
|
|
1786
|
-
| {
|
|
1787
|
-
type: 'notify.invalid value'
|
|
1788
|
-
resolution: InvalidValueResolution | null
|
|
1789
|
-
value: Array<PortableTextBlock> | undefined
|
|
1790
|
-
}
|
|
1791
|
-
| {
|
|
1792
|
-
type: 'notify.loading'
|
|
1793
|
-
}
|
|
1794
|
-
| {
|
|
1795
|
-
type: 'notify.read only'
|
|
1796
|
-
}
|
|
1797
|
-
| {
|
|
1798
|
-
type: 'notify.ready'
|
|
1799
|
-
}
|
|
1800
|
-
| {
|
|
1801
|
-
type: 'notify.selection'
|
|
1802
|
-
selection: EditorSelection
|
|
1803
|
-
}
|
|
1804
|
-
| {
|
|
1805
|
-
type: 'notify.value changed'
|
|
1806
|
-
value: Array<PortableTextBlock> | undefined
|
|
1807
|
-
}
|
|
1808
|
-
| {
|
|
1809
|
-
type: 'notify.unset'
|
|
1810
|
-
previousValue: Array<PortableTextBlock>
|
|
1811
|
-
}
|
|
1812
|
-
| {
|
|
1813
|
-
type: 'dragstart'
|
|
1814
|
-
origin: Pick<EventPosition, 'selection'>
|
|
1815
|
-
ghost?: HTMLElement
|
|
1816
|
-
}
|
|
1817
|
-
| {
|
|
1818
|
-
type: 'dragend'
|
|
1819
|
-
}
|
|
1820
|
-
| {
|
|
1821
|
-
type: 'drop'
|
|
1822
|
-
},
|
|
1823
|
-
undefined,
|
|
1824
|
-
never,
|
|
1825
|
-
never,
|
|
1826
|
-
never,
|
|
1827
|
-
never,
|
|
1828
|
-
| PatchEvent
|
|
1829
|
-
| InternalPatchEvent
|
|
1830
|
-
| MutationEvent
|
|
1831
|
-
| PatchesEvent
|
|
1832
|
-
| {
|
|
1833
|
-
type: 'blurred'
|
|
1834
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1835
|
-
}
|
|
1836
|
-
| {
|
|
1837
|
-
type: 'done loading'
|
|
1838
|
-
}
|
|
1839
|
-
| {
|
|
1840
|
-
type: 'editable'
|
|
1841
|
-
}
|
|
1842
|
-
| {
|
|
1843
|
-
type: 'error'
|
|
1844
|
-
name: string
|
|
1845
|
-
description: string
|
|
1846
|
-
data: unknown
|
|
1847
|
-
}
|
|
1848
|
-
| {
|
|
1849
|
-
type: 'focused'
|
|
1850
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1851
|
-
}
|
|
1852
|
-
| {
|
|
1853
|
-
type: 'invalid value'
|
|
1854
|
-
resolution: InvalidValueResolution | null
|
|
1855
|
-
value: Array<PortableTextBlock> | undefined
|
|
1856
|
-
}
|
|
1857
|
-
| {
|
|
1858
|
-
type: 'loading'
|
|
1859
|
-
}
|
|
1860
|
-
| {
|
|
1861
|
-
type: 'read only'
|
|
1862
|
-
}
|
|
1863
|
-
| {
|
|
1864
|
-
type: 'ready'
|
|
1865
|
-
}
|
|
1866
|
-
| {
|
|
1867
|
-
type: 'selection'
|
|
1868
|
-
selection: EditorSelection
|
|
1869
|
-
}
|
|
1870
|
-
| {
|
|
1871
|
-
type: 'value changed'
|
|
1872
|
-
value: Array<PortableTextBlock> | undefined
|
|
1873
|
-
}
|
|
1874
|
-
| UnsetEvent
|
|
1875
|
-
>
|
|
1876
|
-
}
|
|
1877
|
-
readonly 'notify.invalid value': {
|
|
1878
|
-
readonly actions: ActionFunction<
|
|
1879
|
-
{
|
|
1880
|
-
behaviors: Set<BehaviorConfig>
|
|
1881
|
-
converters: Set<Converter>
|
|
1882
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1883
|
-
keyGenerator: () => string
|
|
1884
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1885
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1886
|
-
schema: EditorSchema
|
|
1887
|
-
initialReadOnly: boolean
|
|
1888
|
-
maxBlocks: number | undefined
|
|
1889
|
-
selection: EditorSelection
|
|
1890
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
1891
|
-
internalDrag?: {
|
|
1892
|
-
ghost?: HTMLElement
|
|
1893
|
-
origin: Pick<EventPosition, 'selection'>
|
|
1894
|
-
}
|
|
1895
|
-
slateEditor?: PortableTextSlateEditor
|
|
1896
|
-
},
|
|
1897
|
-
{
|
|
1898
|
-
type: 'notify.invalid value'
|
|
1899
|
-
resolution: InvalidValueResolution | null
|
|
1900
|
-
value: Array<PortableTextBlock> | undefined
|
|
1901
|
-
},
|
|
1902
|
-
| InternalPatchEvent
|
|
1903
|
-
| MutationEvent
|
|
1904
|
-
| PatchesEvent
|
|
1905
|
-
| {
|
|
1906
|
-
type: 'update readOnly'
|
|
1907
|
-
readOnly: boolean
|
|
1908
|
-
}
|
|
1909
|
-
| {
|
|
1910
|
-
type: 'update schema'
|
|
1911
|
-
schema: EditorSchema
|
|
1912
|
-
}
|
|
1913
|
-
| {
|
|
1914
|
-
type: 'update key generator'
|
|
1915
|
-
keyGenerator: () => string
|
|
1916
|
-
}
|
|
1917
|
-
| {
|
|
1918
|
-
type: 'update maxBlocks'
|
|
1919
|
-
maxBlocks: number | undefined
|
|
1920
|
-
}
|
|
1921
|
-
| {
|
|
1922
|
-
type: 'add behavior'
|
|
1923
|
-
behaviorConfig: BehaviorConfig
|
|
1924
|
-
}
|
|
1925
|
-
| {
|
|
1926
|
-
type: 'remove behavior'
|
|
1927
|
-
behaviorConfig: BehaviorConfig
|
|
1928
|
-
}
|
|
1929
|
-
| {
|
|
1930
|
-
type: 'blur'
|
|
1931
|
-
editor: PortableTextSlateEditor
|
|
1932
|
-
}
|
|
1933
|
-
| {
|
|
1934
|
-
type: 'focus'
|
|
1935
|
-
editor: PortableTextSlateEditor
|
|
1936
|
-
}
|
|
1937
|
-
| {
|
|
1938
|
-
type: 'normalizing'
|
|
1939
|
-
}
|
|
1940
|
-
| {
|
|
1941
|
-
type: 'done normalizing'
|
|
1942
|
-
}
|
|
1943
|
-
| {
|
|
1944
|
-
type: 'done syncing value'
|
|
1945
|
-
}
|
|
1946
|
-
| {
|
|
1947
|
-
type: 'syncing value'
|
|
1948
|
-
}
|
|
1949
|
-
| {
|
|
1950
|
-
type: 'behavior event'
|
|
1951
|
-
behaviorEvent: BehaviorEvent
|
|
1952
|
-
editor: PortableTextSlateEditor
|
|
1953
|
-
nativeEvent?: {
|
|
1954
|
-
preventDefault: () => void
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
| {
|
|
1958
|
-
type: 'notify.patch'
|
|
1959
|
-
patch: Patch
|
|
1960
|
-
}
|
|
1961
|
-
| {
|
|
1962
|
-
type: 'notify.mutation'
|
|
1963
|
-
patches: Array<Patch>
|
|
1964
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
1965
|
-
value: Array<PortableTextBlock> | undefined
|
|
1966
|
-
}
|
|
1967
|
-
| {
|
|
1968
|
-
type: 'notify.blurred'
|
|
1969
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1970
|
-
}
|
|
1971
|
-
| {
|
|
1972
|
-
type: 'notify.done loading'
|
|
1973
|
-
}
|
|
1974
|
-
| {
|
|
1975
|
-
type: 'notify.editable'
|
|
1976
|
-
}
|
|
1977
|
-
| {
|
|
1978
|
-
type: 'notify.error'
|
|
1979
|
-
name: string
|
|
1980
|
-
description: string
|
|
1981
|
-
data: unknown
|
|
1982
|
-
}
|
|
1983
|
-
| {
|
|
1984
|
-
type: 'notify.focused'
|
|
1985
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1986
|
-
}
|
|
1987
|
-
| {
|
|
1988
|
-
type: 'notify.invalid value'
|
|
1989
|
-
resolution: InvalidValueResolution | null
|
|
1990
|
-
value: Array<PortableTextBlock> | undefined
|
|
1991
|
-
}
|
|
1992
|
-
| {
|
|
1993
|
-
type: 'notify.loading'
|
|
1994
|
-
}
|
|
1995
|
-
| {
|
|
1996
|
-
type: 'notify.read only'
|
|
1997
|
-
}
|
|
1998
|
-
| {
|
|
1999
|
-
type: 'notify.ready'
|
|
2000
|
-
}
|
|
2001
|
-
| {
|
|
2002
|
-
type: 'notify.selection'
|
|
2003
|
-
selection: EditorSelection
|
|
2004
|
-
}
|
|
2005
|
-
| {
|
|
2006
|
-
type: 'notify.value changed'
|
|
2007
|
-
value: Array<PortableTextBlock> | undefined
|
|
2008
|
-
}
|
|
2009
|
-
| {
|
|
2010
|
-
type: 'notify.unset'
|
|
2011
|
-
previousValue: Array<PortableTextBlock>
|
|
2012
|
-
}
|
|
2013
|
-
| {
|
|
2014
|
-
type: 'dragstart'
|
|
2015
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2016
|
-
ghost?: HTMLElement
|
|
2017
|
-
}
|
|
2018
|
-
| {
|
|
2019
|
-
type: 'dragend'
|
|
2020
|
-
}
|
|
2021
|
-
| {
|
|
2022
|
-
type: 'drop'
|
|
2023
|
-
},
|
|
2024
|
-
undefined,
|
|
2025
|
-
never,
|
|
2026
|
-
never,
|
|
2027
|
-
never,
|
|
2028
|
-
never,
|
|
2029
|
-
| PatchEvent
|
|
2030
|
-
| InternalPatchEvent
|
|
2031
|
-
| MutationEvent
|
|
2032
|
-
| PatchesEvent
|
|
2033
|
-
| {
|
|
2034
|
-
type: 'blurred'
|
|
2035
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2036
|
-
}
|
|
2037
|
-
| {
|
|
2038
|
-
type: 'done loading'
|
|
2039
|
-
}
|
|
2040
|
-
| {
|
|
2041
|
-
type: 'editable'
|
|
2042
|
-
}
|
|
2043
|
-
| {
|
|
2044
|
-
type: 'error'
|
|
2045
|
-
name: string
|
|
2046
|
-
description: string
|
|
2047
|
-
data: unknown
|
|
2048
|
-
}
|
|
2049
|
-
| {
|
|
2050
|
-
type: 'focused'
|
|
2051
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2052
|
-
}
|
|
2053
|
-
| {
|
|
2054
|
-
type: 'invalid value'
|
|
2055
|
-
resolution: InvalidValueResolution | null
|
|
2056
|
-
value: Array<PortableTextBlock> | undefined
|
|
2057
|
-
}
|
|
2058
|
-
| {
|
|
2059
|
-
type: 'loading'
|
|
2060
|
-
}
|
|
2061
|
-
| {
|
|
2062
|
-
type: 'read only'
|
|
2063
|
-
}
|
|
2064
|
-
| {
|
|
2065
|
-
type: 'ready'
|
|
2066
|
-
}
|
|
2067
|
-
| {
|
|
2068
|
-
type: 'selection'
|
|
2069
|
-
selection: EditorSelection
|
|
2070
|
-
}
|
|
2071
|
-
| {
|
|
2072
|
-
type: 'value changed'
|
|
2073
|
-
value: Array<PortableTextBlock> | undefined
|
|
2074
|
-
}
|
|
2075
|
-
| UnsetEvent
|
|
2076
|
-
>
|
|
2077
|
-
}
|
|
2078
|
-
readonly 'notify.focused': {
|
|
2079
|
-
readonly actions: ActionFunction<
|
|
2080
|
-
{
|
|
2081
|
-
behaviors: Set<BehaviorConfig>
|
|
2082
|
-
converters: Set<Converter>
|
|
2083
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2084
|
-
keyGenerator: () => string
|
|
2085
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2086
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2087
|
-
schema: EditorSchema
|
|
2088
|
-
initialReadOnly: boolean
|
|
2089
|
-
maxBlocks: number | undefined
|
|
2090
|
-
selection: EditorSelection
|
|
2091
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
2092
|
-
internalDrag?: {
|
|
2093
|
-
ghost?: HTMLElement
|
|
2094
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2095
|
-
}
|
|
2096
|
-
slateEditor?: PortableTextSlateEditor
|
|
2097
|
-
},
|
|
2098
|
-
{
|
|
2099
|
-
type: 'notify.focused'
|
|
2100
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2101
|
-
},
|
|
2102
|
-
| InternalPatchEvent
|
|
2103
|
-
| MutationEvent
|
|
2104
|
-
| PatchesEvent
|
|
2105
|
-
| {
|
|
2106
|
-
type: 'update readOnly'
|
|
2107
|
-
readOnly: boolean
|
|
2108
|
-
}
|
|
2109
|
-
| {
|
|
2110
|
-
type: 'update schema'
|
|
2111
|
-
schema: EditorSchema
|
|
2112
|
-
}
|
|
2113
|
-
| {
|
|
2114
|
-
type: 'update key generator'
|
|
2115
|
-
keyGenerator: () => string
|
|
2116
|
-
}
|
|
2117
|
-
| {
|
|
2118
|
-
type: 'update maxBlocks'
|
|
2119
|
-
maxBlocks: number | undefined
|
|
2120
|
-
}
|
|
2121
|
-
| {
|
|
2122
|
-
type: 'add behavior'
|
|
2123
|
-
behaviorConfig: BehaviorConfig
|
|
2124
|
-
}
|
|
2125
|
-
| {
|
|
2126
|
-
type: 'remove behavior'
|
|
2127
|
-
behaviorConfig: BehaviorConfig
|
|
2128
|
-
}
|
|
2129
|
-
| {
|
|
2130
|
-
type: 'blur'
|
|
2131
|
-
editor: PortableTextSlateEditor
|
|
2132
|
-
}
|
|
2133
|
-
| {
|
|
2134
|
-
type: 'focus'
|
|
2135
|
-
editor: PortableTextSlateEditor
|
|
2136
|
-
}
|
|
2137
|
-
| {
|
|
2138
|
-
type: 'normalizing'
|
|
2139
|
-
}
|
|
2140
|
-
| {
|
|
2141
|
-
type: 'done normalizing'
|
|
2142
|
-
}
|
|
2143
|
-
| {
|
|
2144
|
-
type: 'done syncing value'
|
|
2145
|
-
}
|
|
2146
|
-
| {
|
|
2147
|
-
type: 'syncing value'
|
|
2148
|
-
}
|
|
2149
|
-
| {
|
|
2150
|
-
type: 'behavior event'
|
|
2151
|
-
behaviorEvent: BehaviorEvent
|
|
2152
|
-
editor: PortableTextSlateEditor
|
|
2153
|
-
nativeEvent?: {
|
|
2154
|
-
preventDefault: () => void
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
| {
|
|
2158
|
-
type: 'notify.patch'
|
|
2159
|
-
patch: Patch
|
|
2160
|
-
}
|
|
2161
|
-
| {
|
|
2162
|
-
type: 'notify.mutation'
|
|
2163
|
-
patches: Array<Patch>
|
|
2164
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
2165
|
-
value: Array<PortableTextBlock> | undefined
|
|
2166
|
-
}
|
|
2167
|
-
| {
|
|
2168
|
-
type: 'notify.blurred'
|
|
2169
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2170
|
-
}
|
|
2171
|
-
| {
|
|
2172
|
-
type: 'notify.done loading'
|
|
2173
|
-
}
|
|
2174
|
-
| {
|
|
2175
|
-
type: 'notify.editable'
|
|
2176
|
-
}
|
|
2177
|
-
| {
|
|
2178
|
-
type: 'notify.error'
|
|
2179
|
-
name: string
|
|
2180
|
-
description: string
|
|
2181
|
-
data: unknown
|
|
2182
|
-
}
|
|
2183
|
-
| {
|
|
2184
|
-
type: 'notify.focused'
|
|
2185
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2186
|
-
}
|
|
2187
|
-
| {
|
|
2188
|
-
type: 'notify.invalid value'
|
|
2189
|
-
resolution: InvalidValueResolution | null
|
|
2190
|
-
value: Array<PortableTextBlock> | undefined
|
|
2191
|
-
}
|
|
2192
|
-
| {
|
|
2193
|
-
type: 'notify.loading'
|
|
2194
|
-
}
|
|
2195
|
-
| {
|
|
2196
|
-
type: 'notify.read only'
|
|
2197
|
-
}
|
|
2198
|
-
| {
|
|
2199
|
-
type: 'notify.ready'
|
|
2200
|
-
}
|
|
2201
|
-
| {
|
|
2202
|
-
type: 'notify.selection'
|
|
2203
|
-
selection: EditorSelection
|
|
2204
|
-
}
|
|
2205
|
-
| {
|
|
2206
|
-
type: 'notify.value changed'
|
|
2207
|
-
value: Array<PortableTextBlock> | undefined
|
|
2208
|
-
}
|
|
2209
|
-
| {
|
|
2210
|
-
type: 'notify.unset'
|
|
2211
|
-
previousValue: Array<PortableTextBlock>
|
|
2212
|
-
}
|
|
2213
|
-
| {
|
|
2214
|
-
type: 'dragstart'
|
|
2215
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2216
|
-
ghost?: HTMLElement
|
|
2217
|
-
}
|
|
2218
|
-
| {
|
|
2219
|
-
type: 'dragend'
|
|
2220
|
-
}
|
|
2221
|
-
| {
|
|
2222
|
-
type: 'drop'
|
|
2223
|
-
},
|
|
2224
|
-
undefined,
|
|
2225
|
-
never,
|
|
2226
|
-
never,
|
|
2227
|
-
never,
|
|
2228
|
-
never,
|
|
2229
|
-
| PatchEvent
|
|
2230
|
-
| InternalPatchEvent
|
|
2231
|
-
| MutationEvent
|
|
2232
|
-
| PatchesEvent
|
|
2233
|
-
| {
|
|
2234
|
-
type: 'blurred'
|
|
2235
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2236
|
-
}
|
|
2237
|
-
| {
|
|
2238
|
-
type: 'done loading'
|
|
2239
|
-
}
|
|
2240
|
-
| {
|
|
2241
|
-
type: 'editable'
|
|
2242
|
-
}
|
|
2243
|
-
| {
|
|
2244
|
-
type: 'error'
|
|
2245
|
-
name: string
|
|
2246
|
-
description: string
|
|
2247
|
-
data: unknown
|
|
2248
|
-
}
|
|
2249
|
-
| {
|
|
2250
|
-
type: 'focused'
|
|
2251
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2252
|
-
}
|
|
2253
|
-
| {
|
|
2254
|
-
type: 'invalid value'
|
|
2255
|
-
resolution: InvalidValueResolution | null
|
|
2256
|
-
value: Array<PortableTextBlock> | undefined
|
|
2257
|
-
}
|
|
2258
|
-
| {
|
|
2259
|
-
type: 'loading'
|
|
2260
|
-
}
|
|
2261
|
-
| {
|
|
2262
|
-
type: 'read only'
|
|
2263
|
-
}
|
|
2264
|
-
| {
|
|
2265
|
-
type: 'ready'
|
|
2266
|
-
}
|
|
2267
|
-
| {
|
|
2268
|
-
type: 'selection'
|
|
2269
|
-
selection: EditorSelection
|
|
2270
|
-
}
|
|
2271
|
-
| {
|
|
2272
|
-
type: 'value changed'
|
|
2273
|
-
value: Array<PortableTextBlock> | undefined
|
|
2274
|
-
}
|
|
2275
|
-
| UnsetEvent
|
|
2276
|
-
>
|
|
2277
|
-
}
|
|
2278
|
-
readonly 'notify.selection': {
|
|
2279
|
-
readonly actions: readonly [
|
|
2280
|
-
ActionFunction<
|
|
2281
|
-
{
|
|
2282
|
-
behaviors: Set<BehaviorConfig>
|
|
2283
|
-
converters: Set<Converter>
|
|
2284
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2285
|
-
keyGenerator: () => string
|
|
2286
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2287
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2288
|
-
schema: EditorSchema
|
|
2289
|
-
initialReadOnly: boolean
|
|
2290
|
-
maxBlocks: number | undefined
|
|
2291
|
-
selection: EditorSelection
|
|
2292
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
2293
|
-
internalDrag?: {
|
|
2294
|
-
ghost?: HTMLElement
|
|
2295
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2296
|
-
}
|
|
2297
|
-
slateEditor?: PortableTextSlateEditor
|
|
2298
|
-
},
|
|
2299
|
-
{
|
|
2300
|
-
type: 'notify.selection'
|
|
2301
|
-
selection: EditorSelection
|
|
2302
|
-
},
|
|
2303
|
-
| InternalPatchEvent
|
|
2304
|
-
| MutationEvent
|
|
2305
|
-
| PatchesEvent
|
|
2306
|
-
| {
|
|
2307
|
-
type: 'update readOnly'
|
|
2308
|
-
readOnly: boolean
|
|
2309
|
-
}
|
|
2310
|
-
| {
|
|
2311
|
-
type: 'update schema'
|
|
2312
|
-
schema: EditorSchema
|
|
2313
|
-
}
|
|
2314
|
-
| {
|
|
2315
|
-
type: 'update key generator'
|
|
2316
|
-
keyGenerator: () => string
|
|
2317
|
-
}
|
|
2318
|
-
| {
|
|
2319
|
-
type: 'update maxBlocks'
|
|
2320
|
-
maxBlocks: number | undefined
|
|
2321
|
-
}
|
|
2322
|
-
| {
|
|
2323
|
-
type: 'add behavior'
|
|
2324
|
-
behaviorConfig: BehaviorConfig
|
|
2325
|
-
}
|
|
2326
|
-
| {
|
|
2327
|
-
type: 'remove behavior'
|
|
2328
|
-
behaviorConfig: BehaviorConfig
|
|
2329
|
-
}
|
|
2330
|
-
| {
|
|
2331
|
-
type: 'blur'
|
|
2332
|
-
editor: PortableTextSlateEditor
|
|
2333
|
-
}
|
|
2334
|
-
| {
|
|
2335
|
-
type: 'focus'
|
|
2336
|
-
editor: PortableTextSlateEditor
|
|
2337
|
-
}
|
|
2338
|
-
| {
|
|
2339
|
-
type: 'normalizing'
|
|
2340
|
-
}
|
|
2341
|
-
| {
|
|
2342
|
-
type: 'done normalizing'
|
|
2343
|
-
}
|
|
2344
|
-
| {
|
|
2345
|
-
type: 'done syncing value'
|
|
2346
|
-
}
|
|
2347
|
-
| {
|
|
2348
|
-
type: 'syncing value'
|
|
2349
|
-
}
|
|
2350
|
-
| {
|
|
2351
|
-
type: 'behavior event'
|
|
2352
|
-
behaviorEvent: BehaviorEvent
|
|
2353
|
-
editor: PortableTextSlateEditor
|
|
2354
|
-
nativeEvent?: {
|
|
2355
|
-
preventDefault: () => void
|
|
2356
|
-
}
|
|
2357
|
-
}
|
|
2358
|
-
| {
|
|
2359
|
-
type: 'notify.patch'
|
|
2360
|
-
patch: Patch
|
|
2361
|
-
}
|
|
2362
|
-
| {
|
|
2363
|
-
type: 'notify.mutation'
|
|
2364
|
-
patches: Array<Patch>
|
|
2365
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
2366
|
-
value: Array<PortableTextBlock> | undefined
|
|
2367
|
-
}
|
|
2368
|
-
| {
|
|
2369
|
-
type: 'notify.blurred'
|
|
2370
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2371
|
-
}
|
|
2372
|
-
| {
|
|
2373
|
-
type: 'notify.done loading'
|
|
2374
|
-
}
|
|
2375
|
-
| {
|
|
2376
|
-
type: 'notify.editable'
|
|
2377
|
-
}
|
|
2378
|
-
| {
|
|
2379
|
-
type: 'notify.error'
|
|
2380
|
-
name: string
|
|
2381
|
-
description: string
|
|
2382
|
-
data: unknown
|
|
2383
|
-
}
|
|
2384
|
-
| {
|
|
2385
|
-
type: 'notify.focused'
|
|
2386
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2387
|
-
}
|
|
2388
|
-
| {
|
|
2389
|
-
type: 'notify.invalid value'
|
|
2390
|
-
resolution: InvalidValueResolution | null
|
|
2391
|
-
value: Array<PortableTextBlock> | undefined
|
|
2392
|
-
}
|
|
2393
|
-
| {
|
|
2394
|
-
type: 'notify.loading'
|
|
2395
|
-
}
|
|
2396
|
-
| {
|
|
2397
|
-
type: 'notify.read only'
|
|
2398
|
-
}
|
|
2399
|
-
| {
|
|
2400
|
-
type: 'notify.ready'
|
|
2401
|
-
}
|
|
2402
|
-
| {
|
|
2403
|
-
type: 'notify.selection'
|
|
2404
|
-
selection: EditorSelection
|
|
2405
|
-
}
|
|
2406
|
-
| {
|
|
2407
|
-
type: 'notify.value changed'
|
|
2408
|
-
value: Array<PortableTextBlock> | undefined
|
|
2409
|
-
}
|
|
2410
|
-
| {
|
|
2411
|
-
type: 'notify.unset'
|
|
2412
|
-
previousValue: Array<PortableTextBlock>
|
|
2413
|
-
}
|
|
2414
|
-
| {
|
|
2415
|
-
type: 'dragstart'
|
|
2416
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2417
|
-
ghost?: HTMLElement
|
|
2418
|
-
}
|
|
2419
|
-
| {
|
|
2420
|
-
type: 'dragend'
|
|
2421
|
-
}
|
|
2422
|
-
| {
|
|
2423
|
-
type: 'drop'
|
|
2424
|
-
},
|
|
2425
|
-
undefined,
|
|
2426
|
-
never,
|
|
2427
|
-
never,
|
|
2428
|
-
never,
|
|
2429
|
-
never,
|
|
2430
|
-
never
|
|
2431
|
-
>,
|
|
2432
|
-
ActionFunction<
|
|
2433
|
-
{
|
|
2434
|
-
behaviors: Set<BehaviorConfig>
|
|
2435
|
-
converters: Set<Converter>
|
|
2436
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2437
|
-
keyGenerator: () => string
|
|
2438
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2439
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2440
|
-
schema: EditorSchema
|
|
2441
|
-
initialReadOnly: boolean
|
|
2442
|
-
maxBlocks: number | undefined
|
|
2443
|
-
selection: EditorSelection
|
|
2444
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
2445
|
-
internalDrag?: {
|
|
2446
|
-
ghost?: HTMLElement
|
|
2447
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2448
|
-
}
|
|
2449
|
-
slateEditor?: PortableTextSlateEditor
|
|
2450
|
-
},
|
|
2451
|
-
{
|
|
2452
|
-
type: 'notify.selection'
|
|
2453
|
-
selection: EditorSelection
|
|
2454
|
-
},
|
|
2455
|
-
| InternalPatchEvent
|
|
2456
|
-
| MutationEvent
|
|
2457
|
-
| PatchesEvent
|
|
2458
|
-
| {
|
|
2459
|
-
type: 'update readOnly'
|
|
2460
|
-
readOnly: boolean
|
|
2461
|
-
}
|
|
2462
|
-
| {
|
|
2463
|
-
type: 'update schema'
|
|
2464
|
-
schema: EditorSchema
|
|
2465
|
-
}
|
|
2466
|
-
| {
|
|
2467
|
-
type: 'update key generator'
|
|
2468
|
-
keyGenerator: () => string
|
|
2469
|
-
}
|
|
2470
|
-
| {
|
|
2471
|
-
type: 'update maxBlocks'
|
|
2472
|
-
maxBlocks: number | undefined
|
|
2473
|
-
}
|
|
2474
|
-
| {
|
|
2475
|
-
type: 'add behavior'
|
|
2476
|
-
behaviorConfig: BehaviorConfig
|
|
2477
|
-
}
|
|
2478
|
-
| {
|
|
2479
|
-
type: 'remove behavior'
|
|
2480
|
-
behaviorConfig: BehaviorConfig
|
|
2481
|
-
}
|
|
2482
|
-
| {
|
|
2483
|
-
type: 'blur'
|
|
2484
|
-
editor: PortableTextSlateEditor
|
|
2485
|
-
}
|
|
2486
|
-
| {
|
|
2487
|
-
type: 'focus'
|
|
2488
|
-
editor: PortableTextSlateEditor
|
|
2489
|
-
}
|
|
2490
|
-
| {
|
|
2491
|
-
type: 'normalizing'
|
|
2492
|
-
}
|
|
2493
|
-
| {
|
|
2494
|
-
type: 'done normalizing'
|
|
2495
|
-
}
|
|
2496
|
-
| {
|
|
2497
|
-
type: 'done syncing value'
|
|
2498
|
-
}
|
|
2499
|
-
| {
|
|
2500
|
-
type: 'syncing value'
|
|
2501
|
-
}
|
|
2502
|
-
| {
|
|
2503
|
-
type: 'behavior event'
|
|
2504
|
-
behaviorEvent: BehaviorEvent
|
|
2505
|
-
editor: PortableTextSlateEditor
|
|
2506
|
-
nativeEvent?: {
|
|
2507
|
-
preventDefault: () => void
|
|
2508
|
-
}
|
|
2509
|
-
}
|
|
2510
|
-
| {
|
|
2511
|
-
type: 'notify.patch'
|
|
2512
|
-
patch: Patch
|
|
2513
|
-
}
|
|
2514
|
-
| {
|
|
2515
|
-
type: 'notify.mutation'
|
|
2516
|
-
patches: Array<Patch>
|
|
2517
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
2518
|
-
value: Array<PortableTextBlock> | undefined
|
|
2519
|
-
}
|
|
2520
|
-
| {
|
|
2521
|
-
type: 'notify.blurred'
|
|
2522
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2523
|
-
}
|
|
2524
|
-
| {
|
|
2525
|
-
type: 'notify.done loading'
|
|
2526
|
-
}
|
|
2527
|
-
| {
|
|
2528
|
-
type: 'notify.editable'
|
|
2529
|
-
}
|
|
2530
|
-
| {
|
|
2531
|
-
type: 'notify.error'
|
|
2532
|
-
name: string
|
|
2533
|
-
description: string
|
|
2534
|
-
data: unknown
|
|
2535
|
-
}
|
|
2536
|
-
| {
|
|
2537
|
-
type: 'notify.focused'
|
|
2538
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2539
|
-
}
|
|
2540
|
-
| {
|
|
2541
|
-
type: 'notify.invalid value'
|
|
2542
|
-
resolution: InvalidValueResolution | null
|
|
2543
|
-
value: Array<PortableTextBlock> | undefined
|
|
2544
|
-
}
|
|
2545
|
-
| {
|
|
2546
|
-
type: 'notify.loading'
|
|
2547
|
-
}
|
|
2548
|
-
| {
|
|
2549
|
-
type: 'notify.read only'
|
|
2550
|
-
}
|
|
2551
|
-
| {
|
|
2552
|
-
type: 'notify.ready'
|
|
2553
|
-
}
|
|
2554
|
-
| {
|
|
2555
|
-
type: 'notify.selection'
|
|
2556
|
-
selection: EditorSelection
|
|
2557
|
-
}
|
|
2558
|
-
| {
|
|
2559
|
-
type: 'notify.value changed'
|
|
2560
|
-
value: Array<PortableTextBlock> | undefined
|
|
2561
|
-
}
|
|
2562
|
-
| {
|
|
2563
|
-
type: 'notify.unset'
|
|
2564
|
-
previousValue: Array<PortableTextBlock>
|
|
2565
|
-
}
|
|
2566
|
-
| {
|
|
2567
|
-
type: 'dragstart'
|
|
2568
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2569
|
-
ghost?: HTMLElement
|
|
2570
|
-
}
|
|
2571
|
-
| {
|
|
2572
|
-
type: 'dragend'
|
|
2573
|
-
}
|
|
2574
|
-
| {
|
|
2575
|
-
type: 'drop'
|
|
2576
|
-
},
|
|
2577
|
-
undefined,
|
|
2578
|
-
never,
|
|
2579
|
-
never,
|
|
2580
|
-
never,
|
|
2581
|
-
never,
|
|
2582
|
-
| PatchEvent
|
|
2583
|
-
| InternalPatchEvent
|
|
2584
|
-
| MutationEvent
|
|
2585
|
-
| PatchesEvent
|
|
2586
|
-
| {
|
|
2587
|
-
type: 'blurred'
|
|
2588
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2589
|
-
}
|
|
2590
|
-
| {
|
|
2591
|
-
type: 'done loading'
|
|
2592
|
-
}
|
|
2593
|
-
| {
|
|
2594
|
-
type: 'editable'
|
|
2595
|
-
}
|
|
2596
|
-
| {
|
|
2597
|
-
type: 'error'
|
|
2598
|
-
name: string
|
|
2599
|
-
description: string
|
|
2600
|
-
data: unknown
|
|
2601
|
-
}
|
|
2602
|
-
| {
|
|
2603
|
-
type: 'focused'
|
|
2604
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2605
|
-
}
|
|
2606
|
-
| {
|
|
2607
|
-
type: 'invalid value'
|
|
2608
|
-
resolution: InvalidValueResolution | null
|
|
2609
|
-
value: Array<PortableTextBlock> | undefined
|
|
2610
|
-
}
|
|
2611
|
-
| {
|
|
2612
|
-
type: 'loading'
|
|
2613
|
-
}
|
|
2614
|
-
| {
|
|
2615
|
-
type: 'read only'
|
|
2616
|
-
}
|
|
2617
|
-
| {
|
|
2618
|
-
type: 'ready'
|
|
2619
|
-
}
|
|
2620
|
-
| {
|
|
2621
|
-
type: 'selection'
|
|
2622
|
-
selection: EditorSelection
|
|
2623
|
-
}
|
|
2624
|
-
| {
|
|
2625
|
-
type: 'value changed'
|
|
2626
|
-
value: Array<PortableTextBlock> | undefined
|
|
2627
|
-
}
|
|
2628
|
-
| UnsetEvent
|
|
2629
|
-
>,
|
|
2630
|
-
]
|
|
2631
|
-
}
|
|
2632
|
-
readonly 'notify.unset': {
|
|
2633
|
-
readonly actions: ActionFunction<
|
|
2634
|
-
{
|
|
2635
|
-
behaviors: Set<BehaviorConfig>
|
|
2636
|
-
converters: Set<Converter>
|
|
2637
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2638
|
-
keyGenerator: () => string
|
|
2639
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2640
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2641
|
-
schema: EditorSchema
|
|
2642
|
-
initialReadOnly: boolean
|
|
2643
|
-
maxBlocks: number | undefined
|
|
2644
|
-
selection: EditorSelection
|
|
2645
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
2646
|
-
internalDrag?: {
|
|
2647
|
-
ghost?: HTMLElement
|
|
2648
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2649
|
-
}
|
|
2650
|
-
slateEditor?: PortableTextSlateEditor
|
|
2651
|
-
},
|
|
2652
|
-
{
|
|
2653
|
-
type: 'notify.unset'
|
|
2654
|
-
previousValue: Array<PortableTextBlock>
|
|
2655
|
-
},
|
|
2656
|
-
| InternalPatchEvent
|
|
2657
|
-
| MutationEvent
|
|
2658
|
-
| PatchesEvent
|
|
2659
|
-
| {
|
|
2660
|
-
type: 'update readOnly'
|
|
2661
|
-
readOnly: boolean
|
|
2662
|
-
}
|
|
2663
|
-
| {
|
|
2664
|
-
type: 'update schema'
|
|
2665
|
-
schema: EditorSchema
|
|
2666
|
-
}
|
|
2667
|
-
| {
|
|
2668
|
-
type: 'update key generator'
|
|
2669
|
-
keyGenerator: () => string
|
|
2670
|
-
}
|
|
2671
|
-
| {
|
|
2672
|
-
type: 'update maxBlocks'
|
|
2673
|
-
maxBlocks: number | undefined
|
|
2674
|
-
}
|
|
2675
|
-
| {
|
|
2676
|
-
type: 'add behavior'
|
|
2677
|
-
behaviorConfig: BehaviorConfig
|
|
2678
|
-
}
|
|
2679
|
-
| {
|
|
2680
|
-
type: 'remove behavior'
|
|
2681
|
-
behaviorConfig: BehaviorConfig
|
|
2682
|
-
}
|
|
2683
|
-
| {
|
|
2684
|
-
type: 'blur'
|
|
2685
|
-
editor: PortableTextSlateEditor
|
|
2686
|
-
}
|
|
2687
|
-
| {
|
|
2688
|
-
type: 'focus'
|
|
2689
|
-
editor: PortableTextSlateEditor
|
|
2690
|
-
}
|
|
2691
|
-
| {
|
|
2692
|
-
type: 'normalizing'
|
|
2693
|
-
}
|
|
2694
|
-
| {
|
|
2695
|
-
type: 'done normalizing'
|
|
2696
|
-
}
|
|
2697
|
-
| {
|
|
2698
|
-
type: 'done syncing value'
|
|
2699
|
-
}
|
|
2700
|
-
| {
|
|
2701
|
-
type: 'syncing value'
|
|
2702
|
-
}
|
|
2703
|
-
| {
|
|
2704
|
-
type: 'behavior event'
|
|
2705
|
-
behaviorEvent: BehaviorEvent
|
|
2706
|
-
editor: PortableTextSlateEditor
|
|
2707
|
-
nativeEvent?: {
|
|
2708
|
-
preventDefault: () => void
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
| {
|
|
2712
|
-
type: 'notify.patch'
|
|
2713
|
-
patch: Patch
|
|
2714
|
-
}
|
|
2715
|
-
| {
|
|
2716
|
-
type: 'notify.mutation'
|
|
2717
|
-
patches: Array<Patch>
|
|
2718
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
2719
|
-
value: Array<PortableTextBlock> | undefined
|
|
2720
|
-
}
|
|
2721
|
-
| {
|
|
2722
|
-
type: 'notify.blurred'
|
|
2723
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2724
|
-
}
|
|
2725
|
-
| {
|
|
2726
|
-
type: 'notify.done loading'
|
|
2727
|
-
}
|
|
2728
|
-
| {
|
|
2729
|
-
type: 'notify.editable'
|
|
2730
|
-
}
|
|
2731
|
-
| {
|
|
2732
|
-
type: 'notify.error'
|
|
2733
|
-
name: string
|
|
2734
|
-
description: string
|
|
2735
|
-
data: unknown
|
|
2736
|
-
}
|
|
2737
|
-
| {
|
|
2738
|
-
type: 'notify.focused'
|
|
2739
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2740
|
-
}
|
|
2741
|
-
| {
|
|
2742
|
-
type: 'notify.invalid value'
|
|
2743
|
-
resolution: InvalidValueResolution | null
|
|
2744
|
-
value: Array<PortableTextBlock> | undefined
|
|
2745
|
-
}
|
|
2746
|
-
| {
|
|
2747
|
-
type: 'notify.loading'
|
|
2748
|
-
}
|
|
2749
|
-
| {
|
|
2750
|
-
type: 'notify.read only'
|
|
2751
|
-
}
|
|
2752
|
-
| {
|
|
2753
|
-
type: 'notify.ready'
|
|
2754
|
-
}
|
|
2755
|
-
| {
|
|
2756
|
-
type: 'notify.selection'
|
|
2757
|
-
selection: EditorSelection
|
|
2758
|
-
}
|
|
2759
|
-
| {
|
|
2760
|
-
type: 'notify.value changed'
|
|
2761
|
-
value: Array<PortableTextBlock> | undefined
|
|
2762
|
-
}
|
|
2763
|
-
| {
|
|
2764
|
-
type: 'notify.unset'
|
|
2765
|
-
previousValue: Array<PortableTextBlock>
|
|
2766
|
-
}
|
|
2767
|
-
| {
|
|
2768
|
-
type: 'dragstart'
|
|
2769
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2770
|
-
ghost?: HTMLElement
|
|
2771
|
-
}
|
|
2772
|
-
| {
|
|
2773
|
-
type: 'dragend'
|
|
2774
|
-
}
|
|
2775
|
-
| {
|
|
2776
|
-
type: 'drop'
|
|
2777
|
-
},
|
|
2778
|
-
undefined,
|
|
2779
|
-
never,
|
|
2780
|
-
never,
|
|
2781
|
-
never,
|
|
2782
|
-
never,
|
|
2783
|
-
| PatchEvent
|
|
2784
|
-
| InternalPatchEvent
|
|
2785
|
-
| MutationEvent
|
|
2786
|
-
| PatchesEvent
|
|
2787
|
-
| {
|
|
2788
|
-
type: 'blurred'
|
|
2789
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2790
|
-
}
|
|
2791
|
-
| {
|
|
2792
|
-
type: 'done loading'
|
|
2793
|
-
}
|
|
2794
|
-
| {
|
|
2795
|
-
type: 'editable'
|
|
2796
|
-
}
|
|
2797
|
-
| {
|
|
2798
|
-
type: 'error'
|
|
2799
|
-
name: string
|
|
2800
|
-
description: string
|
|
2801
|
-
data: unknown
|
|
2802
|
-
}
|
|
2803
|
-
| {
|
|
2804
|
-
type: 'focused'
|
|
2805
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2806
|
-
}
|
|
2807
|
-
| {
|
|
2808
|
-
type: 'invalid value'
|
|
2809
|
-
resolution: InvalidValueResolution | null
|
|
2810
|
-
value: Array<PortableTextBlock> | undefined
|
|
2811
|
-
}
|
|
2812
|
-
| {
|
|
2813
|
-
type: 'loading'
|
|
2814
|
-
}
|
|
2815
|
-
| {
|
|
2816
|
-
type: 'read only'
|
|
2817
|
-
}
|
|
2818
|
-
| {
|
|
2819
|
-
type: 'ready'
|
|
2820
|
-
}
|
|
2821
|
-
| {
|
|
2822
|
-
type: 'selection'
|
|
2823
|
-
selection: EditorSelection
|
|
2824
|
-
}
|
|
2825
|
-
| {
|
|
2826
|
-
type: 'value changed'
|
|
2827
|
-
value: Array<PortableTextBlock> | undefined
|
|
2828
|
-
}
|
|
2829
|
-
| UnsetEvent
|
|
2830
|
-
>
|
|
2831
|
-
}
|
|
2832
|
-
readonly 'notify.loading': {
|
|
2833
|
-
readonly actions: ActionFunction<
|
|
2834
|
-
{
|
|
2835
|
-
behaviors: Set<BehaviorConfig>
|
|
2836
|
-
converters: Set<Converter>
|
|
2837
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2838
|
-
keyGenerator: () => string
|
|
2839
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2840
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2841
|
-
schema: EditorSchema
|
|
2842
|
-
initialReadOnly: boolean
|
|
2843
|
-
maxBlocks: number | undefined
|
|
2844
|
-
selection: EditorSelection
|
|
2845
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
2846
|
-
internalDrag?: {
|
|
2847
|
-
ghost?: HTMLElement
|
|
2848
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2849
|
-
}
|
|
2850
|
-
slateEditor?: PortableTextSlateEditor
|
|
2851
|
-
},
|
|
2852
|
-
{
|
|
2853
|
-
type: 'notify.loading'
|
|
2854
|
-
},
|
|
2855
|
-
| InternalPatchEvent
|
|
2856
|
-
| MutationEvent
|
|
2857
|
-
| PatchesEvent
|
|
2858
|
-
| {
|
|
2859
|
-
type: 'update readOnly'
|
|
2860
|
-
readOnly: boolean
|
|
2861
|
-
}
|
|
2862
|
-
| {
|
|
2863
|
-
type: 'update schema'
|
|
2864
|
-
schema: EditorSchema
|
|
2865
|
-
}
|
|
2866
|
-
| {
|
|
2867
|
-
type: 'update key generator'
|
|
2868
|
-
keyGenerator: () => string
|
|
2869
|
-
}
|
|
2870
|
-
| {
|
|
2871
|
-
type: 'update maxBlocks'
|
|
2872
|
-
maxBlocks: number | undefined
|
|
2873
|
-
}
|
|
2874
|
-
| {
|
|
2875
|
-
type: 'add behavior'
|
|
2876
|
-
behaviorConfig: BehaviorConfig
|
|
2877
|
-
}
|
|
2878
|
-
| {
|
|
2879
|
-
type: 'remove behavior'
|
|
2880
|
-
behaviorConfig: BehaviorConfig
|
|
2881
|
-
}
|
|
2882
|
-
| {
|
|
2883
|
-
type: 'blur'
|
|
2884
|
-
editor: PortableTextSlateEditor
|
|
2885
|
-
}
|
|
2886
|
-
| {
|
|
2887
|
-
type: 'focus'
|
|
2888
|
-
editor: PortableTextSlateEditor
|
|
2889
|
-
}
|
|
2890
|
-
| {
|
|
2891
|
-
type: 'normalizing'
|
|
2892
|
-
}
|
|
2893
|
-
| {
|
|
2894
|
-
type: 'done normalizing'
|
|
2895
|
-
}
|
|
2896
|
-
| {
|
|
2897
|
-
type: 'done syncing value'
|
|
2898
|
-
}
|
|
2899
|
-
| {
|
|
2900
|
-
type: 'syncing value'
|
|
2901
|
-
}
|
|
2902
|
-
| {
|
|
2903
|
-
type: 'behavior event'
|
|
2904
|
-
behaviorEvent: BehaviorEvent
|
|
2905
|
-
editor: PortableTextSlateEditor
|
|
2906
|
-
nativeEvent?: {
|
|
2907
|
-
preventDefault: () => void
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
| {
|
|
2911
|
-
type: 'notify.patch'
|
|
2912
|
-
patch: Patch
|
|
2913
|
-
}
|
|
2914
|
-
| {
|
|
2915
|
-
type: 'notify.mutation'
|
|
2916
|
-
patches: Array<Patch>
|
|
2917
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
2918
|
-
value: Array<PortableTextBlock> | undefined
|
|
2919
|
-
}
|
|
2920
|
-
| {
|
|
2921
|
-
type: 'notify.blurred'
|
|
2922
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2923
|
-
}
|
|
2924
|
-
| {
|
|
2925
|
-
type: 'notify.done loading'
|
|
2926
|
-
}
|
|
2927
|
-
| {
|
|
2928
|
-
type: 'notify.editable'
|
|
2929
|
-
}
|
|
2930
|
-
| {
|
|
2931
|
-
type: 'notify.error'
|
|
2932
|
-
name: string
|
|
2933
|
-
description: string
|
|
2934
|
-
data: unknown
|
|
2935
|
-
}
|
|
2936
|
-
| {
|
|
2937
|
-
type: 'notify.focused'
|
|
2938
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2939
|
-
}
|
|
2940
|
-
| {
|
|
2941
|
-
type: 'notify.invalid value'
|
|
2942
|
-
resolution: InvalidValueResolution | null
|
|
2943
|
-
value: Array<PortableTextBlock> | undefined
|
|
2944
|
-
}
|
|
2945
|
-
| {
|
|
2946
|
-
type: 'notify.loading'
|
|
2947
|
-
}
|
|
2948
|
-
| {
|
|
2949
|
-
type: 'notify.read only'
|
|
2950
|
-
}
|
|
2951
|
-
| {
|
|
2952
|
-
type: 'notify.ready'
|
|
2953
|
-
}
|
|
2954
|
-
| {
|
|
2955
|
-
type: 'notify.selection'
|
|
2956
|
-
selection: EditorSelection
|
|
2957
|
-
}
|
|
2958
|
-
| {
|
|
2959
|
-
type: 'notify.value changed'
|
|
2960
|
-
value: Array<PortableTextBlock> | undefined
|
|
2961
|
-
}
|
|
2962
|
-
| {
|
|
2963
|
-
type: 'notify.unset'
|
|
2964
|
-
previousValue: Array<PortableTextBlock>
|
|
2965
|
-
}
|
|
2966
|
-
| {
|
|
2967
|
-
type: 'dragstart'
|
|
2968
|
-
origin: Pick<EventPosition, 'selection'>
|
|
2969
|
-
ghost?: HTMLElement
|
|
2970
|
-
}
|
|
2971
|
-
| {
|
|
2972
|
-
type: 'dragend'
|
|
2973
|
-
}
|
|
2974
|
-
| {
|
|
2975
|
-
type: 'drop'
|
|
2976
|
-
},
|
|
2977
|
-
undefined,
|
|
2978
|
-
never,
|
|
2979
|
-
never,
|
|
2980
|
-
never,
|
|
2981
|
-
never,
|
|
2982
|
-
| PatchEvent
|
|
2983
|
-
| InternalPatchEvent
|
|
2984
|
-
| MutationEvent
|
|
2985
|
-
| PatchesEvent
|
|
2986
|
-
| {
|
|
2987
|
-
type: 'blurred'
|
|
2988
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2989
|
-
}
|
|
2990
|
-
| {
|
|
2991
|
-
type: 'done loading'
|
|
2992
|
-
}
|
|
2993
|
-
| {
|
|
2994
|
-
type: 'editable'
|
|
2995
|
-
}
|
|
2996
|
-
| {
|
|
2997
|
-
type: 'error'
|
|
2998
|
-
name: string
|
|
2999
|
-
description: string
|
|
3000
|
-
data: unknown
|
|
3001
|
-
}
|
|
3002
|
-
| {
|
|
3003
|
-
type: 'focused'
|
|
3004
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3005
|
-
}
|
|
3006
|
-
| {
|
|
3007
|
-
type: 'invalid value'
|
|
3008
|
-
resolution: InvalidValueResolution | null
|
|
3009
|
-
value: Array<PortableTextBlock> | undefined
|
|
3010
|
-
}
|
|
3011
|
-
| {
|
|
3012
|
-
type: 'loading'
|
|
3013
|
-
}
|
|
3014
|
-
| {
|
|
3015
|
-
type: 'read only'
|
|
3016
|
-
}
|
|
3017
|
-
| {
|
|
3018
|
-
type: 'ready'
|
|
3019
|
-
}
|
|
3020
|
-
| {
|
|
3021
|
-
type: 'selection'
|
|
3022
|
-
selection: EditorSelection
|
|
3023
|
-
}
|
|
3024
|
-
| {
|
|
3025
|
-
type: 'value changed'
|
|
3026
|
-
value: Array<PortableTextBlock> | undefined
|
|
3027
|
-
}
|
|
3028
|
-
| UnsetEvent
|
|
3029
|
-
>
|
|
3030
|
-
}
|
|
3031
|
-
readonly 'notify.value changed': {
|
|
3032
|
-
readonly actions: ActionFunction<
|
|
3033
|
-
{
|
|
3034
|
-
behaviors: Set<BehaviorConfig>
|
|
3035
|
-
converters: Set<Converter>
|
|
3036
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3037
|
-
keyGenerator: () => string
|
|
3038
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3039
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3040
|
-
schema: EditorSchema
|
|
3041
|
-
initialReadOnly: boolean
|
|
3042
|
-
maxBlocks: number | undefined
|
|
3043
|
-
selection: EditorSelection
|
|
3044
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
3045
|
-
internalDrag?: {
|
|
3046
|
-
ghost?: HTMLElement
|
|
3047
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3048
|
-
}
|
|
3049
|
-
slateEditor?: PortableTextSlateEditor
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
type: 'notify.value changed'
|
|
3053
|
-
value: Array<PortableTextBlock> | undefined
|
|
3054
|
-
},
|
|
3055
|
-
| InternalPatchEvent
|
|
3056
|
-
| MutationEvent
|
|
3057
|
-
| PatchesEvent
|
|
3058
|
-
| {
|
|
3059
|
-
type: 'update readOnly'
|
|
3060
|
-
readOnly: boolean
|
|
3061
|
-
}
|
|
3062
|
-
| {
|
|
3063
|
-
type: 'update schema'
|
|
3064
|
-
schema: EditorSchema
|
|
3065
|
-
}
|
|
3066
|
-
| {
|
|
3067
|
-
type: 'update key generator'
|
|
3068
|
-
keyGenerator: () => string
|
|
3069
|
-
}
|
|
3070
|
-
| {
|
|
3071
|
-
type: 'update maxBlocks'
|
|
3072
|
-
maxBlocks: number | undefined
|
|
3073
|
-
}
|
|
3074
|
-
| {
|
|
3075
|
-
type: 'add behavior'
|
|
3076
|
-
behaviorConfig: BehaviorConfig
|
|
3077
|
-
}
|
|
3078
|
-
| {
|
|
3079
|
-
type: 'remove behavior'
|
|
3080
|
-
behaviorConfig: BehaviorConfig
|
|
3081
|
-
}
|
|
3082
|
-
| {
|
|
3083
|
-
type: 'blur'
|
|
3084
|
-
editor: PortableTextSlateEditor
|
|
3085
|
-
}
|
|
3086
|
-
| {
|
|
3087
|
-
type: 'focus'
|
|
3088
|
-
editor: PortableTextSlateEditor
|
|
3089
|
-
}
|
|
3090
|
-
| {
|
|
3091
|
-
type: 'normalizing'
|
|
3092
|
-
}
|
|
3093
|
-
| {
|
|
3094
|
-
type: 'done normalizing'
|
|
3095
|
-
}
|
|
3096
|
-
| {
|
|
3097
|
-
type: 'done syncing value'
|
|
3098
|
-
}
|
|
3099
|
-
| {
|
|
3100
|
-
type: 'syncing value'
|
|
3101
|
-
}
|
|
3102
|
-
| {
|
|
3103
|
-
type: 'behavior event'
|
|
3104
|
-
behaviorEvent: BehaviorEvent
|
|
3105
|
-
editor: PortableTextSlateEditor
|
|
3106
|
-
nativeEvent?: {
|
|
3107
|
-
preventDefault: () => void
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
| {
|
|
3111
|
-
type: 'notify.patch'
|
|
3112
|
-
patch: Patch
|
|
3113
|
-
}
|
|
3114
|
-
| {
|
|
3115
|
-
type: 'notify.mutation'
|
|
3116
|
-
patches: Array<Patch>
|
|
3117
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3118
|
-
value: Array<PortableTextBlock> | undefined
|
|
3119
|
-
}
|
|
3120
|
-
| {
|
|
3121
|
-
type: 'notify.blurred'
|
|
3122
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3123
|
-
}
|
|
3124
|
-
| {
|
|
3125
|
-
type: 'notify.done loading'
|
|
3126
|
-
}
|
|
3127
|
-
| {
|
|
3128
|
-
type: 'notify.editable'
|
|
3129
|
-
}
|
|
3130
|
-
| {
|
|
3131
|
-
type: 'notify.error'
|
|
3132
|
-
name: string
|
|
3133
|
-
description: string
|
|
3134
|
-
data: unknown
|
|
3135
|
-
}
|
|
3136
|
-
| {
|
|
3137
|
-
type: 'notify.focused'
|
|
3138
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3139
|
-
}
|
|
3140
|
-
| {
|
|
3141
|
-
type: 'notify.invalid value'
|
|
3142
|
-
resolution: InvalidValueResolution | null
|
|
3143
|
-
value: Array<PortableTextBlock> | undefined
|
|
3144
|
-
}
|
|
3145
|
-
| {
|
|
3146
|
-
type: 'notify.loading'
|
|
3147
|
-
}
|
|
3148
|
-
| {
|
|
3149
|
-
type: 'notify.read only'
|
|
3150
|
-
}
|
|
3151
|
-
| {
|
|
3152
|
-
type: 'notify.ready'
|
|
3153
|
-
}
|
|
3154
|
-
| {
|
|
3155
|
-
type: 'notify.selection'
|
|
3156
|
-
selection: EditorSelection
|
|
3157
|
-
}
|
|
3158
|
-
| {
|
|
3159
|
-
type: 'notify.value changed'
|
|
3160
|
-
value: Array<PortableTextBlock> | undefined
|
|
3161
|
-
}
|
|
3162
|
-
| {
|
|
3163
|
-
type: 'notify.unset'
|
|
3164
|
-
previousValue: Array<PortableTextBlock>
|
|
3165
|
-
}
|
|
3166
|
-
| {
|
|
3167
|
-
type: 'dragstart'
|
|
3168
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3169
|
-
ghost?: HTMLElement
|
|
3170
|
-
}
|
|
3171
|
-
| {
|
|
3172
|
-
type: 'dragend'
|
|
3173
|
-
}
|
|
3174
|
-
| {
|
|
3175
|
-
type: 'drop'
|
|
3176
|
-
},
|
|
3177
|
-
undefined,
|
|
3178
|
-
never,
|
|
3179
|
-
never,
|
|
3180
|
-
never,
|
|
3181
|
-
never,
|
|
3182
|
-
| PatchEvent
|
|
3183
|
-
| InternalPatchEvent
|
|
3184
|
-
| MutationEvent
|
|
3185
|
-
| PatchesEvent
|
|
3186
|
-
| {
|
|
3187
|
-
type: 'blurred'
|
|
3188
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3189
|
-
}
|
|
3190
|
-
| {
|
|
3191
|
-
type: 'done loading'
|
|
3192
|
-
}
|
|
3193
|
-
| {
|
|
3194
|
-
type: 'editable'
|
|
3195
|
-
}
|
|
3196
|
-
| {
|
|
3197
|
-
type: 'error'
|
|
3198
|
-
name: string
|
|
3199
|
-
description: string
|
|
3200
|
-
data: unknown
|
|
3201
|
-
}
|
|
3202
|
-
| {
|
|
3203
|
-
type: 'focused'
|
|
3204
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3205
|
-
}
|
|
3206
|
-
| {
|
|
3207
|
-
type: 'invalid value'
|
|
3208
|
-
resolution: InvalidValueResolution | null
|
|
3209
|
-
value: Array<PortableTextBlock> | undefined
|
|
3210
|
-
}
|
|
3211
|
-
| {
|
|
3212
|
-
type: 'loading'
|
|
3213
|
-
}
|
|
3214
|
-
| {
|
|
3215
|
-
type: 'read only'
|
|
3216
|
-
}
|
|
3217
|
-
| {
|
|
3218
|
-
type: 'ready'
|
|
3219
|
-
}
|
|
3220
|
-
| {
|
|
3221
|
-
type: 'selection'
|
|
3222
|
-
selection: EditorSelection
|
|
3223
|
-
}
|
|
3224
|
-
| {
|
|
3225
|
-
type: 'value changed'
|
|
3226
|
-
value: Array<PortableTextBlock> | undefined
|
|
3227
|
-
}
|
|
3228
|
-
| UnsetEvent
|
|
3229
|
-
>
|
|
3230
|
-
}
|
|
3231
|
-
readonly 'add behavior': {
|
|
3232
|
-
readonly actions: 'add behavior to context'
|
|
3233
|
-
}
|
|
3234
|
-
readonly 'remove behavior': {
|
|
3235
|
-
readonly actions: 'remove behavior from context'
|
|
3236
|
-
}
|
|
3237
|
-
readonly 'update key generator': {
|
|
3238
|
-
readonly actions: ActionFunction<
|
|
3239
|
-
{
|
|
3240
|
-
behaviors: Set<BehaviorConfig>
|
|
3241
|
-
converters: Set<Converter>
|
|
3242
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3243
|
-
keyGenerator: () => string
|
|
3244
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3245
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3246
|
-
schema: EditorSchema
|
|
3247
|
-
initialReadOnly: boolean
|
|
3248
|
-
maxBlocks: number | undefined
|
|
3249
|
-
selection: EditorSelection
|
|
3250
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
3251
|
-
internalDrag?: {
|
|
3252
|
-
ghost?: HTMLElement
|
|
3253
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3254
|
-
}
|
|
3255
|
-
slateEditor?: PortableTextSlateEditor
|
|
3256
|
-
},
|
|
3257
|
-
{
|
|
3258
|
-
type: 'update key generator'
|
|
3259
|
-
keyGenerator: () => string
|
|
3260
|
-
},
|
|
3261
|
-
| InternalPatchEvent
|
|
3262
|
-
| MutationEvent
|
|
3263
|
-
| PatchesEvent
|
|
3264
|
-
| {
|
|
3265
|
-
type: 'update readOnly'
|
|
3266
|
-
readOnly: boolean
|
|
3267
|
-
}
|
|
3268
|
-
| {
|
|
3269
|
-
type: 'update schema'
|
|
3270
|
-
schema: EditorSchema
|
|
3271
|
-
}
|
|
3272
|
-
| {
|
|
3273
|
-
type: 'update key generator'
|
|
3274
|
-
keyGenerator: () => string
|
|
3275
|
-
}
|
|
3276
|
-
| {
|
|
3277
|
-
type: 'update maxBlocks'
|
|
3278
|
-
maxBlocks: number | undefined
|
|
3279
|
-
}
|
|
3280
|
-
| {
|
|
3281
|
-
type: 'add behavior'
|
|
3282
|
-
behaviorConfig: BehaviorConfig
|
|
3283
|
-
}
|
|
3284
|
-
| {
|
|
3285
|
-
type: 'remove behavior'
|
|
3286
|
-
behaviorConfig: BehaviorConfig
|
|
3287
|
-
}
|
|
3288
|
-
| {
|
|
3289
|
-
type: 'blur'
|
|
3290
|
-
editor: PortableTextSlateEditor
|
|
3291
|
-
}
|
|
3292
|
-
| {
|
|
3293
|
-
type: 'focus'
|
|
3294
|
-
editor: PortableTextSlateEditor
|
|
3295
|
-
}
|
|
3296
|
-
| {
|
|
3297
|
-
type: 'normalizing'
|
|
3298
|
-
}
|
|
3299
|
-
| {
|
|
3300
|
-
type: 'done normalizing'
|
|
3301
|
-
}
|
|
3302
|
-
| {
|
|
3303
|
-
type: 'done syncing value'
|
|
3304
|
-
}
|
|
3305
|
-
| {
|
|
3306
|
-
type: 'syncing value'
|
|
3307
|
-
}
|
|
3308
|
-
| {
|
|
3309
|
-
type: 'behavior event'
|
|
3310
|
-
behaviorEvent: BehaviorEvent
|
|
3311
|
-
editor: PortableTextSlateEditor
|
|
3312
|
-
nativeEvent?: {
|
|
3313
|
-
preventDefault: () => void
|
|
3314
|
-
}
|
|
3315
|
-
}
|
|
3316
|
-
| {
|
|
3317
|
-
type: 'notify.patch'
|
|
3318
|
-
patch: Patch
|
|
3319
|
-
}
|
|
3320
|
-
| {
|
|
3321
|
-
type: 'notify.mutation'
|
|
3322
|
-
patches: Array<Patch>
|
|
3323
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3324
|
-
value: Array<PortableTextBlock> | undefined
|
|
3325
|
-
}
|
|
3326
|
-
| {
|
|
3327
|
-
type: 'notify.blurred'
|
|
3328
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3329
|
-
}
|
|
3330
|
-
| {
|
|
3331
|
-
type: 'notify.done loading'
|
|
3332
|
-
}
|
|
3333
|
-
| {
|
|
3334
|
-
type: 'notify.editable'
|
|
3335
|
-
}
|
|
3336
|
-
| {
|
|
3337
|
-
type: 'notify.error'
|
|
3338
|
-
name: string
|
|
3339
|
-
description: string
|
|
3340
|
-
data: unknown
|
|
3341
|
-
}
|
|
3342
|
-
| {
|
|
3343
|
-
type: 'notify.focused'
|
|
3344
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3345
|
-
}
|
|
3346
|
-
| {
|
|
3347
|
-
type: 'notify.invalid value'
|
|
3348
|
-
resolution: InvalidValueResolution | null
|
|
3349
|
-
value: Array<PortableTextBlock> | undefined
|
|
3350
|
-
}
|
|
3351
|
-
| {
|
|
3352
|
-
type: 'notify.loading'
|
|
3353
|
-
}
|
|
3354
|
-
| {
|
|
3355
|
-
type: 'notify.read only'
|
|
3356
|
-
}
|
|
3357
|
-
| {
|
|
3358
|
-
type: 'notify.ready'
|
|
3359
|
-
}
|
|
3360
|
-
| {
|
|
3361
|
-
type: 'notify.selection'
|
|
3362
|
-
selection: EditorSelection
|
|
3363
|
-
}
|
|
3364
|
-
| {
|
|
3365
|
-
type: 'notify.value changed'
|
|
3366
|
-
value: Array<PortableTextBlock> | undefined
|
|
3367
|
-
}
|
|
3368
|
-
| {
|
|
3369
|
-
type: 'notify.unset'
|
|
3370
|
-
previousValue: Array<PortableTextBlock>
|
|
3371
|
-
}
|
|
3372
|
-
| {
|
|
3373
|
-
type: 'dragstart'
|
|
3374
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3375
|
-
ghost?: HTMLElement
|
|
3376
|
-
}
|
|
3377
|
-
| {
|
|
3378
|
-
type: 'dragend'
|
|
3379
|
-
}
|
|
3380
|
-
| {
|
|
3381
|
-
type: 'drop'
|
|
3382
|
-
},
|
|
3383
|
-
undefined,
|
|
3384
|
-
never,
|
|
3385
|
-
never,
|
|
3386
|
-
never,
|
|
3387
|
-
never,
|
|
3388
|
-
never
|
|
3389
|
-
>
|
|
3390
|
-
}
|
|
3391
|
-
readonly 'update schema': {
|
|
3392
|
-
readonly actions: 'assign schema'
|
|
3393
|
-
}
|
|
3394
|
-
readonly 'update maxBlocks': {
|
|
3395
|
-
readonly actions: ActionFunction<
|
|
3396
|
-
{
|
|
3397
|
-
behaviors: Set<BehaviorConfig>
|
|
3398
|
-
converters: Set<Converter>
|
|
3399
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3400
|
-
keyGenerator: () => string
|
|
3401
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3402
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3403
|
-
schema: EditorSchema
|
|
3404
|
-
initialReadOnly: boolean
|
|
3405
|
-
maxBlocks: number | undefined
|
|
3406
|
-
selection: EditorSelection
|
|
3407
|
-
initialValue: Array<PortableTextBlock> | undefined
|
|
3408
|
-
internalDrag?: {
|
|
3409
|
-
ghost?: HTMLElement
|
|
3410
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3411
|
-
}
|
|
3412
|
-
slateEditor?: PortableTextSlateEditor
|
|
3413
|
-
},
|
|
3414
|
-
{
|
|
3415
|
-
type: 'update maxBlocks'
|
|
3416
|
-
maxBlocks: number | undefined
|
|
3417
|
-
},
|
|
3418
|
-
| InternalPatchEvent
|
|
3419
|
-
| MutationEvent
|
|
3420
|
-
| PatchesEvent
|
|
3421
|
-
| {
|
|
3422
|
-
type: 'update readOnly'
|
|
3423
|
-
readOnly: boolean
|
|
3424
|
-
}
|
|
3425
|
-
| {
|
|
3426
|
-
type: 'update schema'
|
|
3427
|
-
schema: EditorSchema
|
|
3428
|
-
}
|
|
3429
|
-
| {
|
|
3430
|
-
type: 'update key generator'
|
|
3431
|
-
keyGenerator: () => string
|
|
3432
|
-
}
|
|
3433
|
-
| {
|
|
3434
|
-
type: 'update maxBlocks'
|
|
3435
|
-
maxBlocks: number | undefined
|
|
3436
|
-
}
|
|
3437
|
-
| {
|
|
3438
|
-
type: 'add behavior'
|
|
3439
|
-
behaviorConfig: BehaviorConfig
|
|
3440
|
-
}
|
|
3441
|
-
| {
|
|
3442
|
-
type: 'remove behavior'
|
|
3443
|
-
behaviorConfig: BehaviorConfig
|
|
3444
|
-
}
|
|
3445
|
-
| {
|
|
3446
|
-
type: 'blur'
|
|
3447
|
-
editor: PortableTextSlateEditor
|
|
3448
|
-
}
|
|
3449
|
-
| {
|
|
3450
|
-
type: 'focus'
|
|
3451
|
-
editor: PortableTextSlateEditor
|
|
3452
|
-
}
|
|
3453
|
-
| {
|
|
3454
|
-
type: 'normalizing'
|
|
3455
|
-
}
|
|
3456
|
-
| {
|
|
3457
|
-
type: 'done normalizing'
|
|
3458
|
-
}
|
|
3459
|
-
| {
|
|
3460
|
-
type: 'done syncing value'
|
|
3461
|
-
}
|
|
3462
|
-
| {
|
|
3463
|
-
type: 'syncing value'
|
|
3464
|
-
}
|
|
3465
|
-
| {
|
|
3466
|
-
type: 'behavior event'
|
|
3467
|
-
behaviorEvent: BehaviorEvent
|
|
3468
|
-
editor: PortableTextSlateEditor
|
|
3469
|
-
nativeEvent?: {
|
|
3470
|
-
preventDefault: () => void
|
|
1196
|
+
selection: EditorSelection
|
|
1197
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
1198
|
+
internalDrag?: {
|
|
1199
|
+
ghost?: HTMLElement
|
|
1200
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3471
1201
|
}
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
}
|
|
3477
|
-
| {
|
|
3478
|
-
type: 'notify.mutation'
|
|
3479
|
-
patches: Array<Patch>
|
|
3480
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3481
|
-
value: Array<PortableTextBlock> | undefined
|
|
3482
|
-
}
|
|
3483
|
-
| {
|
|
3484
|
-
type: 'notify.blurred'
|
|
3485
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3486
|
-
}
|
|
3487
|
-
| {
|
|
3488
|
-
type: 'notify.done loading'
|
|
3489
|
-
}
|
|
3490
|
-
| {
|
|
3491
|
-
type: 'notify.editable'
|
|
3492
|
-
}
|
|
3493
|
-
| {
|
|
3494
|
-
type: 'notify.error'
|
|
3495
|
-
name: string
|
|
3496
|
-
description: string
|
|
3497
|
-
data: unknown
|
|
3498
|
-
}
|
|
3499
|
-
| {
|
|
3500
|
-
type: 'notify.focused'
|
|
3501
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3502
|
-
}
|
|
3503
|
-
| {
|
|
3504
|
-
type: 'notify.invalid value'
|
|
3505
|
-
resolution: InvalidValueResolution | null
|
|
3506
|
-
value: Array<PortableTextBlock> | undefined
|
|
3507
|
-
}
|
|
3508
|
-
| {
|
|
3509
|
-
type: 'notify.loading'
|
|
3510
|
-
}
|
|
3511
|
-
| {
|
|
3512
|
-
type: 'notify.read only'
|
|
3513
|
-
}
|
|
3514
|
-
| {
|
|
3515
|
-
type: 'notify.ready'
|
|
3516
|
-
}
|
|
3517
|
-
| {
|
|
3518
|
-
type: 'notify.selection'
|
|
1202
|
+
slateEditor?: PortableTextSlateEditor
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
type: 'update selection'
|
|
3519
1206
|
selection: EditorSelection
|
|
3520
|
-
}
|
|
3521
|
-
| {
|
|
3522
|
-
type: 'notify.value changed'
|
|
3523
|
-
value: Array<PortableTextBlock> | undefined
|
|
3524
|
-
}
|
|
3525
|
-
| {
|
|
3526
|
-
type: 'notify.unset'
|
|
3527
|
-
previousValue: Array<PortableTextBlock>
|
|
3528
|
-
}
|
|
3529
|
-
| {
|
|
3530
|
-
type: 'dragstart'
|
|
3531
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3532
|
-
ghost?: HTMLElement
|
|
3533
|
-
}
|
|
3534
|
-
| {
|
|
3535
|
-
type: 'dragend'
|
|
3536
|
-
}
|
|
3537
|
-
| {
|
|
3538
|
-
type: 'drop'
|
|
3539
1207
|
},
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
1208
|
+
| InternalPatchEvent
|
|
1209
|
+
| MutationEvent
|
|
1210
|
+
| PatchesEvent
|
|
1211
|
+
| {
|
|
1212
|
+
type: 'update readOnly'
|
|
1213
|
+
readOnly: boolean
|
|
1214
|
+
}
|
|
1215
|
+
| {
|
|
1216
|
+
type: 'update maxBlocks'
|
|
1217
|
+
maxBlocks: number | undefined
|
|
1218
|
+
}
|
|
1219
|
+
| {
|
|
1220
|
+
type: 'add behavior'
|
|
1221
|
+
behaviorConfig: BehaviorConfig
|
|
1222
|
+
}
|
|
1223
|
+
| {
|
|
1224
|
+
type: 'remove behavior'
|
|
1225
|
+
behaviorConfig: BehaviorConfig
|
|
1226
|
+
}
|
|
1227
|
+
| {
|
|
1228
|
+
type: 'blur'
|
|
1229
|
+
editor: PortableTextSlateEditor
|
|
1230
|
+
}
|
|
1231
|
+
| {
|
|
1232
|
+
type: 'focus'
|
|
1233
|
+
editor: PortableTextSlateEditor
|
|
1234
|
+
}
|
|
1235
|
+
| {
|
|
1236
|
+
type: 'normalizing'
|
|
1237
|
+
}
|
|
1238
|
+
| {
|
|
1239
|
+
type: 'update selection'
|
|
1240
|
+
selection: EditorSelection
|
|
1241
|
+
}
|
|
1242
|
+
| {
|
|
1243
|
+
type: 'done normalizing'
|
|
1244
|
+
}
|
|
1245
|
+
| {
|
|
1246
|
+
type: 'done syncing value'
|
|
1247
|
+
}
|
|
1248
|
+
| {
|
|
1249
|
+
type: 'syncing value'
|
|
1250
|
+
}
|
|
1251
|
+
| {
|
|
1252
|
+
type: 'behavior event'
|
|
1253
|
+
behaviorEvent: BehaviorEvent
|
|
1254
|
+
editor: PortableTextSlateEditor
|
|
1255
|
+
nativeEvent?: {
|
|
1256
|
+
preventDefault: () => void
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
| {
|
|
1260
|
+
type: 'dragstart'
|
|
1261
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1262
|
+
ghost?: HTMLElement
|
|
1263
|
+
}
|
|
1264
|
+
| {
|
|
1265
|
+
type: 'dragend'
|
|
1266
|
+
}
|
|
1267
|
+
| {
|
|
1268
|
+
type: 'drop'
|
|
1269
|
+
},
|
|
1270
|
+
undefined,
|
|
1271
|
+
never,
|
|
1272
|
+
never,
|
|
1273
|
+
never,
|
|
1274
|
+
never,
|
|
1275
|
+
never
|
|
1276
|
+
>,
|
|
1277
|
+
]
|
|
3547
1278
|
}
|
|
3548
1279
|
}
|
|
3549
1280
|
readonly type: 'parallel'
|
|
@@ -3739,14 +1470,6 @@ declare const editorMachine: StateMachine<
|
|
|
3739
1470
|
type: 'update readOnly'
|
|
3740
1471
|
readOnly: boolean
|
|
3741
1472
|
}
|
|
3742
|
-
| {
|
|
3743
|
-
type: 'update schema'
|
|
3744
|
-
schema: EditorSchema
|
|
3745
|
-
}
|
|
3746
|
-
| {
|
|
3747
|
-
type: 'update key generator'
|
|
3748
|
-
keyGenerator: () => string
|
|
3749
|
-
}
|
|
3750
1473
|
| {
|
|
3751
1474
|
type: 'update maxBlocks'
|
|
3752
1475
|
maxBlocks: number | undefined
|
|
@@ -3760,88 +1483,36 @@ declare const editorMachine: StateMachine<
|
|
|
3760
1483
|
behaviorConfig: BehaviorConfig
|
|
3761
1484
|
}
|
|
3762
1485
|
| {
|
|
3763
|
-
type: 'blur'
|
|
3764
|
-
editor: PortableTextSlateEditor
|
|
3765
|
-
}
|
|
3766
|
-
| {
|
|
3767
|
-
type: 'focus'
|
|
3768
|
-
editor: PortableTextSlateEditor
|
|
3769
|
-
}
|
|
3770
|
-
| {
|
|
3771
|
-
type: 'normalizing'
|
|
3772
|
-
}
|
|
3773
|
-
| {
|
|
3774
|
-
type: 'done normalizing'
|
|
3775
|
-
}
|
|
3776
|
-
| {
|
|
3777
|
-
type: 'done syncing value'
|
|
3778
|
-
}
|
|
3779
|
-
| {
|
|
3780
|
-
type: 'syncing value'
|
|
3781
|
-
}
|
|
3782
|
-
| {
|
|
3783
|
-
type: 'behavior event'
|
|
3784
|
-
behaviorEvent: BehaviorEvent
|
|
3785
|
-
editor: PortableTextSlateEditor
|
|
3786
|
-
nativeEvent?: {
|
|
3787
|
-
preventDefault: () => void
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
| {
|
|
3791
|
-
type: 'notify.patch'
|
|
3792
|
-
patch: Patch
|
|
3793
|
-
}
|
|
3794
|
-
| {
|
|
3795
|
-
type: 'notify.mutation'
|
|
3796
|
-
patches: Array<Patch>
|
|
3797
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3798
|
-
value: Array<PortableTextBlock> | undefined
|
|
3799
|
-
}
|
|
3800
|
-
| {
|
|
3801
|
-
type: 'notify.blurred'
|
|
3802
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3803
|
-
}
|
|
3804
|
-
| {
|
|
3805
|
-
type: 'notify.done loading'
|
|
3806
|
-
}
|
|
3807
|
-
| {
|
|
3808
|
-
type: 'notify.editable'
|
|
3809
|
-
}
|
|
3810
|
-
| {
|
|
3811
|
-
type: 'notify.error'
|
|
3812
|
-
name: string
|
|
3813
|
-
description: string
|
|
3814
|
-
data: unknown
|
|
3815
|
-
}
|
|
3816
|
-
| {
|
|
3817
|
-
type: 'notify.focused'
|
|
3818
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1486
|
+
type: 'blur'
|
|
1487
|
+
editor: PortableTextSlateEditor
|
|
3819
1488
|
}
|
|
3820
1489
|
| {
|
|
3821
|
-
type: '
|
|
3822
|
-
|
|
3823
|
-
value: Array<PortableTextBlock> | undefined
|
|
1490
|
+
type: 'focus'
|
|
1491
|
+
editor: PortableTextSlateEditor
|
|
3824
1492
|
}
|
|
3825
1493
|
| {
|
|
3826
|
-
type: '
|
|
1494
|
+
type: 'normalizing'
|
|
3827
1495
|
}
|
|
3828
1496
|
| {
|
|
3829
|
-
type: '
|
|
1497
|
+
type: 'update selection'
|
|
1498
|
+
selection: EditorSelection
|
|
3830
1499
|
}
|
|
3831
1500
|
| {
|
|
3832
|
-
type: '
|
|
1501
|
+
type: 'done normalizing'
|
|
3833
1502
|
}
|
|
3834
1503
|
| {
|
|
3835
|
-
type: '
|
|
3836
|
-
selection: EditorSelection
|
|
1504
|
+
type: 'done syncing value'
|
|
3837
1505
|
}
|
|
3838
1506
|
| {
|
|
3839
|
-
type: '
|
|
3840
|
-
value: Array<PortableTextBlock> | undefined
|
|
1507
|
+
type: 'syncing value'
|
|
3841
1508
|
}
|
|
3842
1509
|
| {
|
|
3843
|
-
type: '
|
|
3844
|
-
|
|
1510
|
+
type: 'behavior event'
|
|
1511
|
+
behaviorEvent: BehaviorEvent
|
|
1512
|
+
editor: PortableTextSlateEditor
|
|
1513
|
+
nativeEvent?: {
|
|
1514
|
+
preventDefault: () => void
|
|
1515
|
+
}
|
|
3845
1516
|
}
|
|
3846
1517
|
| {
|
|
3847
1518
|
type: 'dragstart'
|
|
@@ -3905,14 +1576,6 @@ declare const editorMachine: StateMachine<
|
|
|
3905
1576
|
type: 'update readOnly'
|
|
3906
1577
|
readOnly: boolean
|
|
3907
1578
|
}
|
|
3908
|
-
| {
|
|
3909
|
-
type: 'update schema'
|
|
3910
|
-
schema: EditorSchema
|
|
3911
|
-
}
|
|
3912
|
-
| {
|
|
3913
|
-
type: 'update key generator'
|
|
3914
|
-
keyGenerator: () => string
|
|
3915
|
-
}
|
|
3916
1579
|
| {
|
|
3917
1580
|
type: 'update maxBlocks'
|
|
3918
1581
|
maxBlocks: number | undefined
|
|
@@ -3936,6 +1599,10 @@ declare const editorMachine: StateMachine<
|
|
|
3936
1599
|
| {
|
|
3937
1600
|
type: 'normalizing'
|
|
3938
1601
|
}
|
|
1602
|
+
| {
|
|
1603
|
+
type: 'update selection'
|
|
1604
|
+
selection: EditorSelection
|
|
1605
|
+
}
|
|
3939
1606
|
| {
|
|
3940
1607
|
type: 'done normalizing'
|
|
3941
1608
|
}
|
|
@@ -3953,62 +1620,6 @@ declare const editorMachine: StateMachine<
|
|
|
3953
1620
|
preventDefault: () => void
|
|
3954
1621
|
}
|
|
3955
1622
|
}
|
|
3956
|
-
| {
|
|
3957
|
-
type: 'notify.patch'
|
|
3958
|
-
patch: Patch
|
|
3959
|
-
}
|
|
3960
|
-
| {
|
|
3961
|
-
type: 'notify.mutation'
|
|
3962
|
-
patches: Array<Patch>
|
|
3963
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3964
|
-
value: Array<PortableTextBlock> | undefined
|
|
3965
|
-
}
|
|
3966
|
-
| {
|
|
3967
|
-
type: 'notify.blurred'
|
|
3968
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3969
|
-
}
|
|
3970
|
-
| {
|
|
3971
|
-
type: 'notify.done loading'
|
|
3972
|
-
}
|
|
3973
|
-
| {
|
|
3974
|
-
type: 'notify.editable'
|
|
3975
|
-
}
|
|
3976
|
-
| {
|
|
3977
|
-
type: 'notify.error'
|
|
3978
|
-
name: string
|
|
3979
|
-
description: string
|
|
3980
|
-
data: unknown
|
|
3981
|
-
}
|
|
3982
|
-
| {
|
|
3983
|
-
type: 'notify.focused'
|
|
3984
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3985
|
-
}
|
|
3986
|
-
| {
|
|
3987
|
-
type: 'notify.invalid value'
|
|
3988
|
-
resolution: InvalidValueResolution | null
|
|
3989
|
-
value: Array<PortableTextBlock> | undefined
|
|
3990
|
-
}
|
|
3991
|
-
| {
|
|
3992
|
-
type: 'notify.loading'
|
|
3993
|
-
}
|
|
3994
|
-
| {
|
|
3995
|
-
type: 'notify.read only'
|
|
3996
|
-
}
|
|
3997
|
-
| {
|
|
3998
|
-
type: 'notify.ready'
|
|
3999
|
-
}
|
|
4000
|
-
| {
|
|
4001
|
-
type: 'notify.selection'
|
|
4002
|
-
selection: EditorSelection
|
|
4003
|
-
}
|
|
4004
|
-
| {
|
|
4005
|
-
type: 'notify.value changed'
|
|
4006
|
-
value: Array<PortableTextBlock> | undefined
|
|
4007
|
-
}
|
|
4008
|
-
| {
|
|
4009
|
-
type: 'notify.unset'
|
|
4010
|
-
previousValue: Array<PortableTextBlock>
|
|
4011
|
-
}
|
|
4012
1623
|
| {
|
|
4013
1624
|
type: 'dragstart'
|
|
4014
1625
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4092,14 +1703,6 @@ declare const editorMachine: StateMachine<
|
|
|
4092
1703
|
type: 'update readOnly'
|
|
4093
1704
|
readOnly: boolean
|
|
4094
1705
|
}
|
|
4095
|
-
| {
|
|
4096
|
-
type: 'update schema'
|
|
4097
|
-
schema: EditorSchema
|
|
4098
|
-
}
|
|
4099
|
-
| {
|
|
4100
|
-
type: 'update key generator'
|
|
4101
|
-
keyGenerator: () => string
|
|
4102
|
-
}
|
|
4103
1706
|
| {
|
|
4104
1707
|
type: 'update maxBlocks'
|
|
4105
1708
|
maxBlocks: number | undefined
|
|
@@ -4123,6 +1726,10 @@ declare const editorMachine: StateMachine<
|
|
|
4123
1726
|
| {
|
|
4124
1727
|
type: 'normalizing'
|
|
4125
1728
|
}
|
|
1729
|
+
| {
|
|
1730
|
+
type: 'update selection'
|
|
1731
|
+
selection: EditorSelection
|
|
1732
|
+
}
|
|
4126
1733
|
| {
|
|
4127
1734
|
type: 'done normalizing'
|
|
4128
1735
|
}
|
|
@@ -4140,62 +1747,6 @@ declare const editorMachine: StateMachine<
|
|
|
4140
1747
|
preventDefault: () => void
|
|
4141
1748
|
}
|
|
4142
1749
|
}
|
|
4143
|
-
| {
|
|
4144
|
-
type: 'notify.patch'
|
|
4145
|
-
patch: Patch
|
|
4146
|
-
}
|
|
4147
|
-
| {
|
|
4148
|
-
type: 'notify.mutation'
|
|
4149
|
-
patches: Array<Patch>
|
|
4150
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
4151
|
-
value: Array<PortableTextBlock> | undefined
|
|
4152
|
-
}
|
|
4153
|
-
| {
|
|
4154
|
-
type: 'notify.blurred'
|
|
4155
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4156
|
-
}
|
|
4157
|
-
| {
|
|
4158
|
-
type: 'notify.done loading'
|
|
4159
|
-
}
|
|
4160
|
-
| {
|
|
4161
|
-
type: 'notify.editable'
|
|
4162
|
-
}
|
|
4163
|
-
| {
|
|
4164
|
-
type: 'notify.error'
|
|
4165
|
-
name: string
|
|
4166
|
-
description: string
|
|
4167
|
-
data: unknown
|
|
4168
|
-
}
|
|
4169
|
-
| {
|
|
4170
|
-
type: 'notify.focused'
|
|
4171
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4172
|
-
}
|
|
4173
|
-
| {
|
|
4174
|
-
type: 'notify.invalid value'
|
|
4175
|
-
resolution: InvalidValueResolution | null
|
|
4176
|
-
value: Array<PortableTextBlock> | undefined
|
|
4177
|
-
}
|
|
4178
|
-
| {
|
|
4179
|
-
type: 'notify.loading'
|
|
4180
|
-
}
|
|
4181
|
-
| {
|
|
4182
|
-
type: 'notify.read only'
|
|
4183
|
-
}
|
|
4184
|
-
| {
|
|
4185
|
-
type: 'notify.ready'
|
|
4186
|
-
}
|
|
4187
|
-
| {
|
|
4188
|
-
type: 'notify.selection'
|
|
4189
|
-
selection: EditorSelection
|
|
4190
|
-
}
|
|
4191
|
-
| {
|
|
4192
|
-
type: 'notify.value changed'
|
|
4193
|
-
value: Array<PortableTextBlock> | undefined
|
|
4194
|
-
}
|
|
4195
|
-
| {
|
|
4196
|
-
type: 'notify.unset'
|
|
4197
|
-
previousValue: Array<PortableTextBlock>
|
|
4198
|
-
}
|
|
4199
1750
|
| {
|
|
4200
1751
|
type: 'dragstart'
|
|
4201
1752
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4214,14 +1765,6 @@ declare const editorMachine: StateMachine<
|
|
|
4214
1765
|
type: 'update readOnly'
|
|
4215
1766
|
readOnly: boolean
|
|
4216
1767
|
}
|
|
4217
|
-
| {
|
|
4218
|
-
type: 'update schema'
|
|
4219
|
-
schema: EditorSchema
|
|
4220
|
-
}
|
|
4221
|
-
| {
|
|
4222
|
-
type: 'update key generator'
|
|
4223
|
-
keyGenerator: () => string
|
|
4224
|
-
}
|
|
4225
1768
|
| {
|
|
4226
1769
|
type: 'update maxBlocks'
|
|
4227
1770
|
maxBlocks: number | undefined
|
|
@@ -4245,6 +1788,10 @@ declare const editorMachine: StateMachine<
|
|
|
4245
1788
|
| {
|
|
4246
1789
|
type: 'normalizing'
|
|
4247
1790
|
}
|
|
1791
|
+
| {
|
|
1792
|
+
type: 'update selection'
|
|
1793
|
+
selection: EditorSelection
|
|
1794
|
+
}
|
|
4248
1795
|
| {
|
|
4249
1796
|
type: 'done normalizing'
|
|
4250
1797
|
}
|
|
@@ -4262,62 +1809,6 @@ declare const editorMachine: StateMachine<
|
|
|
4262
1809
|
preventDefault: () => void
|
|
4263
1810
|
}
|
|
4264
1811
|
}
|
|
4265
|
-
| {
|
|
4266
|
-
type: 'notify.patch'
|
|
4267
|
-
patch: Patch
|
|
4268
|
-
}
|
|
4269
|
-
| {
|
|
4270
|
-
type: 'notify.mutation'
|
|
4271
|
-
patches: Array<Patch>
|
|
4272
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
4273
|
-
value: Array<PortableTextBlock> | undefined
|
|
4274
|
-
}
|
|
4275
|
-
| {
|
|
4276
|
-
type: 'notify.blurred'
|
|
4277
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4278
|
-
}
|
|
4279
|
-
| {
|
|
4280
|
-
type: 'notify.done loading'
|
|
4281
|
-
}
|
|
4282
|
-
| {
|
|
4283
|
-
type: 'notify.editable'
|
|
4284
|
-
}
|
|
4285
|
-
| {
|
|
4286
|
-
type: 'notify.error'
|
|
4287
|
-
name: string
|
|
4288
|
-
description: string
|
|
4289
|
-
data: unknown
|
|
4290
|
-
}
|
|
4291
|
-
| {
|
|
4292
|
-
type: 'notify.focused'
|
|
4293
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4294
|
-
}
|
|
4295
|
-
| {
|
|
4296
|
-
type: 'notify.invalid value'
|
|
4297
|
-
resolution: InvalidValueResolution | null
|
|
4298
|
-
value: Array<PortableTextBlock> | undefined
|
|
4299
|
-
}
|
|
4300
|
-
| {
|
|
4301
|
-
type: 'notify.loading'
|
|
4302
|
-
}
|
|
4303
|
-
| {
|
|
4304
|
-
type: 'notify.read only'
|
|
4305
|
-
}
|
|
4306
|
-
| {
|
|
4307
|
-
type: 'notify.ready'
|
|
4308
|
-
}
|
|
4309
|
-
| {
|
|
4310
|
-
type: 'notify.selection'
|
|
4311
|
-
selection: EditorSelection
|
|
4312
|
-
}
|
|
4313
|
-
| {
|
|
4314
|
-
type: 'notify.value changed'
|
|
4315
|
-
value: Array<PortableTextBlock> | undefined
|
|
4316
|
-
}
|
|
4317
|
-
| {
|
|
4318
|
-
type: 'notify.unset'
|
|
4319
|
-
previousValue: Array<PortableTextBlock>
|
|
4320
|
-
}
|
|
4321
1812
|
| {
|
|
4322
1813
|
type: 'dragstart'
|
|
4323
1814
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4356,14 +1847,6 @@ declare const editorMachine: StateMachine<
|
|
|
4356
1847
|
type: 'update readOnly'
|
|
4357
1848
|
readOnly: boolean
|
|
4358
1849
|
}
|
|
4359
|
-
| {
|
|
4360
|
-
type: 'update schema'
|
|
4361
|
-
schema: EditorSchema
|
|
4362
|
-
}
|
|
4363
|
-
| {
|
|
4364
|
-
type: 'update key generator'
|
|
4365
|
-
keyGenerator: () => string
|
|
4366
|
-
}
|
|
4367
1850
|
| {
|
|
4368
1851
|
type: 'update maxBlocks'
|
|
4369
1852
|
maxBlocks: number | undefined
|
|
@@ -4387,6 +1870,10 @@ declare const editorMachine: StateMachine<
|
|
|
4387
1870
|
| {
|
|
4388
1871
|
type: 'normalizing'
|
|
4389
1872
|
}
|
|
1873
|
+
| {
|
|
1874
|
+
type: 'update selection'
|
|
1875
|
+
selection: EditorSelection
|
|
1876
|
+
}
|
|
4390
1877
|
| {
|
|
4391
1878
|
type: 'done normalizing'
|
|
4392
1879
|
}
|
|
@@ -4404,62 +1891,6 @@ declare const editorMachine: StateMachine<
|
|
|
4404
1891
|
preventDefault: () => void
|
|
4405
1892
|
}
|
|
4406
1893
|
}
|
|
4407
|
-
| {
|
|
4408
|
-
type: 'notify.patch'
|
|
4409
|
-
patch: Patch
|
|
4410
|
-
}
|
|
4411
|
-
| {
|
|
4412
|
-
type: 'notify.mutation'
|
|
4413
|
-
patches: Array<Patch>
|
|
4414
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
4415
|
-
value: Array<PortableTextBlock> | undefined
|
|
4416
|
-
}
|
|
4417
|
-
| {
|
|
4418
|
-
type: 'notify.blurred'
|
|
4419
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4420
|
-
}
|
|
4421
|
-
| {
|
|
4422
|
-
type: 'notify.done loading'
|
|
4423
|
-
}
|
|
4424
|
-
| {
|
|
4425
|
-
type: 'notify.editable'
|
|
4426
|
-
}
|
|
4427
|
-
| {
|
|
4428
|
-
type: 'notify.error'
|
|
4429
|
-
name: string
|
|
4430
|
-
description: string
|
|
4431
|
-
data: unknown
|
|
4432
|
-
}
|
|
4433
|
-
| {
|
|
4434
|
-
type: 'notify.focused'
|
|
4435
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4436
|
-
}
|
|
4437
|
-
| {
|
|
4438
|
-
type: 'notify.invalid value'
|
|
4439
|
-
resolution: InvalidValueResolution | null
|
|
4440
|
-
value: Array<PortableTextBlock> | undefined
|
|
4441
|
-
}
|
|
4442
|
-
| {
|
|
4443
|
-
type: 'notify.loading'
|
|
4444
|
-
}
|
|
4445
|
-
| {
|
|
4446
|
-
type: 'notify.read only'
|
|
4447
|
-
}
|
|
4448
|
-
| {
|
|
4449
|
-
type: 'notify.ready'
|
|
4450
|
-
}
|
|
4451
|
-
| {
|
|
4452
|
-
type: 'notify.selection'
|
|
4453
|
-
selection: EditorSelection
|
|
4454
|
-
}
|
|
4455
|
-
| {
|
|
4456
|
-
type: 'notify.value changed'
|
|
4457
|
-
value: Array<PortableTextBlock> | undefined
|
|
4458
|
-
}
|
|
4459
|
-
| {
|
|
4460
|
-
type: 'notify.unset'
|
|
4461
|
-
previousValue: Array<PortableTextBlock>
|
|
4462
|
-
}
|
|
4463
1894
|
| {
|
|
4464
1895
|
type: 'dragstart'
|
|
4465
1896
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4478,14 +1909,6 @@ declare const editorMachine: StateMachine<
|
|
|
4478
1909
|
type: 'update readOnly'
|
|
4479
1910
|
readOnly: boolean
|
|
4480
1911
|
}
|
|
4481
|
-
| {
|
|
4482
|
-
type: 'update schema'
|
|
4483
|
-
schema: EditorSchema
|
|
4484
|
-
}
|
|
4485
|
-
| {
|
|
4486
|
-
type: 'update key generator'
|
|
4487
|
-
keyGenerator: () => string
|
|
4488
|
-
}
|
|
4489
1912
|
| {
|
|
4490
1913
|
type: 'update maxBlocks'
|
|
4491
1914
|
maxBlocks: number | undefined
|
|
@@ -4509,6 +1932,10 @@ declare const editorMachine: StateMachine<
|
|
|
4509
1932
|
| {
|
|
4510
1933
|
type: 'normalizing'
|
|
4511
1934
|
}
|
|
1935
|
+
| {
|
|
1936
|
+
type: 'update selection'
|
|
1937
|
+
selection: EditorSelection
|
|
1938
|
+
}
|
|
4512
1939
|
| {
|
|
4513
1940
|
type: 'done normalizing'
|
|
4514
1941
|
}
|
|
@@ -4526,62 +1953,6 @@ declare const editorMachine: StateMachine<
|
|
|
4526
1953
|
preventDefault: () => void
|
|
4527
1954
|
}
|
|
4528
1955
|
}
|
|
4529
|
-
| {
|
|
4530
|
-
type: 'notify.patch'
|
|
4531
|
-
patch: Patch
|
|
4532
|
-
}
|
|
4533
|
-
| {
|
|
4534
|
-
type: 'notify.mutation'
|
|
4535
|
-
patches: Array<Patch>
|
|
4536
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
4537
|
-
value: Array<PortableTextBlock> | undefined
|
|
4538
|
-
}
|
|
4539
|
-
| {
|
|
4540
|
-
type: 'notify.blurred'
|
|
4541
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4542
|
-
}
|
|
4543
|
-
| {
|
|
4544
|
-
type: 'notify.done loading'
|
|
4545
|
-
}
|
|
4546
|
-
| {
|
|
4547
|
-
type: 'notify.editable'
|
|
4548
|
-
}
|
|
4549
|
-
| {
|
|
4550
|
-
type: 'notify.error'
|
|
4551
|
-
name: string
|
|
4552
|
-
description: string
|
|
4553
|
-
data: unknown
|
|
4554
|
-
}
|
|
4555
|
-
| {
|
|
4556
|
-
type: 'notify.focused'
|
|
4557
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4558
|
-
}
|
|
4559
|
-
| {
|
|
4560
|
-
type: 'notify.invalid value'
|
|
4561
|
-
resolution: InvalidValueResolution | null
|
|
4562
|
-
value: Array<PortableTextBlock> | undefined
|
|
4563
|
-
}
|
|
4564
|
-
| {
|
|
4565
|
-
type: 'notify.loading'
|
|
4566
|
-
}
|
|
4567
|
-
| {
|
|
4568
|
-
type: 'notify.read only'
|
|
4569
|
-
}
|
|
4570
|
-
| {
|
|
4571
|
-
type: 'notify.ready'
|
|
4572
|
-
}
|
|
4573
|
-
| {
|
|
4574
|
-
type: 'notify.selection'
|
|
4575
|
-
selection: EditorSelection
|
|
4576
|
-
}
|
|
4577
|
-
| {
|
|
4578
|
-
type: 'notify.value changed'
|
|
4579
|
-
value: Array<PortableTextBlock> | undefined
|
|
4580
|
-
}
|
|
4581
|
-
| {
|
|
4582
|
-
type: 'notify.unset'
|
|
4583
|
-
previousValue: Array<PortableTextBlock>
|
|
4584
|
-
}
|
|
4585
1956
|
| {
|
|
4586
1957
|
type: 'dragstart'
|
|
4587
1958
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4682,14 +2053,6 @@ declare const editorMachine: StateMachine<
|
|
|
4682
2053
|
type: 'update readOnly'
|
|
4683
2054
|
readOnly: boolean
|
|
4684
2055
|
}
|
|
4685
|
-
| {
|
|
4686
|
-
type: 'update schema'
|
|
4687
|
-
schema: EditorSchema
|
|
4688
|
-
}
|
|
4689
|
-
| {
|
|
4690
|
-
type: 'update key generator'
|
|
4691
|
-
keyGenerator: () => string
|
|
4692
|
-
}
|
|
4693
2056
|
| {
|
|
4694
2057
|
type: 'update maxBlocks'
|
|
4695
2058
|
maxBlocks: number | undefined
|
|
@@ -4713,6 +2076,10 @@ declare const editorMachine: StateMachine<
|
|
|
4713
2076
|
| {
|
|
4714
2077
|
type: 'normalizing'
|
|
4715
2078
|
}
|
|
2079
|
+
| {
|
|
2080
|
+
type: 'update selection'
|
|
2081
|
+
selection: EditorSelection
|
|
2082
|
+
}
|
|
4716
2083
|
| {
|
|
4717
2084
|
type: 'done normalizing'
|
|
4718
2085
|
}
|
|
@@ -4730,62 +2097,6 @@ declare const editorMachine: StateMachine<
|
|
|
4730
2097
|
preventDefault: () => void
|
|
4731
2098
|
}
|
|
4732
2099
|
}
|
|
4733
|
-
| {
|
|
4734
|
-
type: 'notify.patch'
|
|
4735
|
-
patch: Patch
|
|
4736
|
-
}
|
|
4737
|
-
| {
|
|
4738
|
-
type: 'notify.mutation'
|
|
4739
|
-
patches: Array<Patch>
|
|
4740
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
4741
|
-
value: Array<PortableTextBlock> | undefined
|
|
4742
|
-
}
|
|
4743
|
-
| {
|
|
4744
|
-
type: 'notify.blurred'
|
|
4745
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4746
|
-
}
|
|
4747
|
-
| {
|
|
4748
|
-
type: 'notify.done loading'
|
|
4749
|
-
}
|
|
4750
|
-
| {
|
|
4751
|
-
type: 'notify.editable'
|
|
4752
|
-
}
|
|
4753
|
-
| {
|
|
4754
|
-
type: 'notify.error'
|
|
4755
|
-
name: string
|
|
4756
|
-
description: string
|
|
4757
|
-
data: unknown
|
|
4758
|
-
}
|
|
4759
|
-
| {
|
|
4760
|
-
type: 'notify.focused'
|
|
4761
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4762
|
-
}
|
|
4763
|
-
| {
|
|
4764
|
-
type: 'notify.invalid value'
|
|
4765
|
-
resolution: InvalidValueResolution | null
|
|
4766
|
-
value: Array<PortableTextBlock> | undefined
|
|
4767
|
-
}
|
|
4768
|
-
| {
|
|
4769
|
-
type: 'notify.loading'
|
|
4770
|
-
}
|
|
4771
|
-
| {
|
|
4772
|
-
type: 'notify.read only'
|
|
4773
|
-
}
|
|
4774
|
-
| {
|
|
4775
|
-
type: 'notify.ready'
|
|
4776
|
-
}
|
|
4777
|
-
| {
|
|
4778
|
-
type: 'notify.selection'
|
|
4779
|
-
selection: EditorSelection
|
|
4780
|
-
}
|
|
4781
|
-
| {
|
|
4782
|
-
type: 'notify.value changed'
|
|
4783
|
-
value: Array<PortableTextBlock> | undefined
|
|
4784
|
-
}
|
|
4785
|
-
| {
|
|
4786
|
-
type: 'notify.unset'
|
|
4787
|
-
previousValue: Array<PortableTextBlock>
|
|
4788
|
-
}
|
|
4789
2100
|
| {
|
|
4790
2101
|
type: 'dragstart'
|
|
4791
2102
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4802,7 +2113,6 @@ declare const editorMachine: StateMachine<
|
|
|
4802
2113
|
never,
|
|
4803
2114
|
never,
|
|
4804
2115
|
never,
|
|
4805
|
-
| PatchEvent
|
|
4806
2116
|
| InternalPatchEvent
|
|
4807
2117
|
| MutationEvent
|
|
4808
2118
|
| PatchesEvent
|
|
@@ -4816,12 +2126,6 @@ declare const editorMachine: StateMachine<
|
|
|
4816
2126
|
| {
|
|
4817
2127
|
type: 'editable'
|
|
4818
2128
|
}
|
|
4819
|
-
| {
|
|
4820
|
-
type: 'error'
|
|
4821
|
-
name: string
|
|
4822
|
-
description: string
|
|
4823
|
-
data: unknown
|
|
4824
|
-
}
|
|
4825
2129
|
| {
|
|
4826
2130
|
type: 'focused'
|
|
4827
2131
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
@@ -4848,7 +2152,6 @@ declare const editorMachine: StateMachine<
|
|
|
4848
2152
|
type: 'value changed'
|
|
4849
2153
|
value: Array<PortableTextBlock> | undefined
|
|
4850
2154
|
}
|
|
4851
|
-
| UnsetEvent
|
|
4852
2155
|
>,
|
|
4853
2156
|
]
|
|
4854
2157
|
}
|
|
@@ -5149,29 +2452,6 @@ declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
|
5149
2452
|
value: Array<PortableTextBlock>
|
|
5150
2453
|
}
|
|
5151
2454
|
|
|
5152
|
-
/**
|
|
5153
|
-
* The editor has invalid data in the value that can be resolved by the user
|
|
5154
|
-
* @beta */
|
|
5155
|
-
declare type InvalidValueResolution = {
|
|
5156
|
-
autoResolve?: boolean
|
|
5157
|
-
patches: Patch[]
|
|
5158
|
-
description: string
|
|
5159
|
-
action: string
|
|
5160
|
-
item: PortableTextBlock[] | PortableTextBlock | PortableTextChild | undefined
|
|
5161
|
-
/**
|
|
5162
|
-
* i18n keys for the description and action
|
|
5163
|
-
*
|
|
5164
|
-
* These are in addition to the description and action properties, to decouple the editor from
|
|
5165
|
-
* the i18n system, and allow usage without it. The i18n keys take precedence over the
|
|
5166
|
-
* description and action properties, if i18n framework is available.
|
|
5167
|
-
*/
|
|
5168
|
-
i18n: {
|
|
5169
|
-
description: `inputs.portable-text.invalid-value.${Lowercase<string>}.description`
|
|
5170
|
-
action: `inputs.portable-text.invalid-value.${Lowercase<string>}.action`
|
|
5171
|
-
values?: Record<string, string | number | string[]>
|
|
5172
|
-
}
|
|
5173
|
-
}
|
|
5174
|
-
|
|
5175
2455
|
/**
|
|
5176
2456
|
* @public
|
|
5177
2457
|
*/
|
|
@@ -5650,9 +2930,4 @@ declare type TextBlockWithOptionalKey = Omit<PortableTextTextBlock, '_key'> & {
|
|
|
5650
2930
|
_key?: PortableTextTextBlock['_key']
|
|
5651
2931
|
}
|
|
5652
2932
|
|
|
5653
|
-
declare type UnsetEvent = {
|
|
5654
|
-
type: 'unset'
|
|
5655
|
-
previousValue: Array<PortableTextBlock>
|
|
5656
|
-
}
|
|
5657
|
-
|
|
5658
2933
|
export {}
|