@portabletext/editor 1.10.0 → 1.10.2
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/README.md +21 -6
- package/lib/index.d.mts +163 -653
- package/lib/index.d.ts +163 -653
- package/lib/index.esm.js +48 -91
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +47 -90
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +48 -91
- package/lib/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/editor/PortableTextEditor.tsx +26 -16
- package/src/editor/components/Synchronizer.tsx +2 -25
- package/src/editor/editor-machine.ts +8 -29
- package/src/editor/use-editor.ts +3 -0
package/lib/index.d.ts
CHANGED
|
@@ -50,16 +50,10 @@ import {
|
|
|
50
50
|
AnyActorLogic,
|
|
51
51
|
AnyActorRef,
|
|
52
52
|
AnyEventObject,
|
|
53
|
-
CallbackActorLogic,
|
|
54
|
-
ConditionalRequired,
|
|
55
|
-
EventObject,
|
|
56
|
-
GetConcreteByKey,
|
|
57
53
|
InputFrom,
|
|
58
|
-
IsNotNever,
|
|
59
54
|
MachineSnapshot,
|
|
60
55
|
MetaObject,
|
|
61
56
|
NonReducibleUnknown,
|
|
62
|
-
RequiredActorOptions,
|
|
63
57
|
StateMachine,
|
|
64
58
|
StateValue,
|
|
65
59
|
Values,
|
|
@@ -752,6 +746,7 @@ export declare type EditorChanges = Subject<EditorChange>
|
|
|
752
746
|
export declare type EditorConfig = {
|
|
753
747
|
behaviors?: Array<Behavior>
|
|
754
748
|
keyGenerator?: () => string
|
|
749
|
+
initialValue?: Array<PortableTextBlock>
|
|
755
750
|
} & (
|
|
756
751
|
| {
|
|
757
752
|
schemaDefinition: SchemaDefinition
|
|
@@ -774,6 +769,7 @@ export declare type EditorEvent = PickFromUnion<
|
|
|
774
769
|
| 'patches'
|
|
775
770
|
| 'toggle readOnly'
|
|
776
771
|
| 'update behaviors'
|
|
772
|
+
| 'update value'
|
|
777
773
|
>
|
|
778
774
|
|
|
779
775
|
/**
|
|
@@ -787,6 +783,7 @@ export declare const editorMachine: StateMachine<
|
|
|
787
783
|
schema: PortableTextMemberSchemaTypes
|
|
788
784
|
readOnly: boolean
|
|
789
785
|
maxBlocks: number | undefined
|
|
786
|
+
value: Array<PortableTextBlock> | undefined
|
|
790
787
|
},
|
|
791
788
|
| {
|
|
792
789
|
type: 'annotation.add'
|
|
@@ -841,6 +838,10 @@ export declare const editorMachine: StateMachine<
|
|
|
841
838
|
type: 'update behaviors'
|
|
842
839
|
behaviors: Array<Behavior>
|
|
843
840
|
}
|
|
841
|
+
| {
|
|
842
|
+
type: 'update value'
|
|
843
|
+
value: Array<PortableTextBlock> | undefined
|
|
844
|
+
}
|
|
844
845
|
| {
|
|
845
846
|
type: 'toggle readOnly'
|
|
846
847
|
}
|
|
@@ -883,30 +884,14 @@ export declare const editorMachine: StateMachine<
|
|
|
883
884
|
type: 'focused'
|
|
884
885
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
885
886
|
}
|
|
886
|
-
| {
|
|
887
|
-
type: 'online'
|
|
888
|
-
}
|
|
889
|
-
| {
|
|
890
|
-
type: 'offline'
|
|
891
|
-
}
|
|
892
887
|
| {
|
|
893
888
|
type: 'loading'
|
|
894
889
|
}
|
|
895
890
|
| {
|
|
896
891
|
type: 'done loading'
|
|
897
892
|
},
|
|
898
|
-
{
|
|
899
|
-
|
|
900
|
-
| ActorRefFromLogic<
|
|
901
|
-
CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>
|
|
902
|
-
>
|
|
903
|
-
| undefined
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
src: 'networkLogic'
|
|
907
|
-
logic: CallbackActorLogic<EventObject, NonReducibleUnknown, EventObject>
|
|
908
|
-
id: string | undefined
|
|
909
|
-
},
|
|
893
|
+
{},
|
|
894
|
+
never,
|
|
910
895
|
Values<{
|
|
911
896
|
'assign behaviors': {
|
|
912
897
|
type: 'assign behaviors'
|
|
@@ -952,6 +937,7 @@ export declare const editorMachine: StateMachine<
|
|
|
952
937
|
behaviors?: Array<Behavior>
|
|
953
938
|
keyGenerator: () => string
|
|
954
939
|
schema: PortableTextMemberSchemaTypes
|
|
940
|
+
value?: Array<PortableTextBlock>
|
|
955
941
|
},
|
|
956
942
|
NonReducibleUnknown,
|
|
957
943
|
| {
|
|
@@ -1018,12 +1004,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1018
1004
|
type: 'focused'
|
|
1019
1005
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1020
1006
|
}
|
|
1021
|
-
| {
|
|
1022
|
-
type: 'online'
|
|
1023
|
-
}
|
|
1024
|
-
| {
|
|
1025
|
-
type: 'offline'
|
|
1026
|
-
}
|
|
1027
1007
|
| {
|
|
1028
1008
|
type: 'loading'
|
|
1029
1009
|
}
|
|
@@ -1037,60 +1017,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1037
1017
|
input,
|
|
1038
1018
|
}: {
|
|
1039
1019
|
spawn: {
|
|
1040
|
-
<TSrc extends
|
|
1020
|
+
<TSrc extends never>(
|
|
1041
1021
|
logic: TSrc,
|
|
1042
|
-
...[options]:
|
|
1043
|
-
|
|
1044
|
-
logic: CallbackActorLogic<
|
|
1045
|
-
EventObject,
|
|
1046
|
-
NonReducibleUnknown,
|
|
1047
|
-
EventObject
|
|
1048
|
-
>
|
|
1049
|
-
id: string | undefined
|
|
1050
|
-
} extends infer T
|
|
1051
|
-
? T extends {
|
|
1052
|
-
src: 'networkLogic'
|
|
1053
|
-
logic: CallbackActorLogic<
|
|
1054
|
-
EventObject,
|
|
1055
|
-
NonReducibleUnknown,
|
|
1056
|
-
EventObject
|
|
1057
|
-
>
|
|
1058
|
-
id: string | undefined
|
|
1059
|
-
}
|
|
1060
|
-
? T extends {
|
|
1061
|
-
src: TSrc
|
|
1062
|
-
}
|
|
1063
|
-
? ConditionalRequired<
|
|
1064
|
-
[
|
|
1065
|
-
options?:
|
|
1066
|
-
| ({
|
|
1067
|
-
id?: T['id'] | undefined
|
|
1068
|
-
systemId?: string
|
|
1069
|
-
input?: InputFrom<T['logic']> | undefined
|
|
1070
|
-
syncSnapshot?: boolean
|
|
1071
|
-
} & {[K in RequiredActorOptions<T>]: unknown})
|
|
1072
|
-
| undefined,
|
|
1073
|
-
],
|
|
1074
|
-
IsNotNever<RequiredActorOptions<T>>
|
|
1075
|
-
>
|
|
1076
|
-
: never
|
|
1077
|
-
: never
|
|
1078
|
-
: never
|
|
1079
|
-
): ActorRefFromLogic<
|
|
1080
|
-
GetConcreteByKey<
|
|
1081
|
-
{
|
|
1082
|
-
src: 'networkLogic'
|
|
1083
|
-
logic: CallbackActorLogic<
|
|
1084
|
-
EventObject,
|
|
1085
|
-
NonReducibleUnknown,
|
|
1086
|
-
EventObject
|
|
1087
|
-
>
|
|
1088
|
-
id: string | undefined
|
|
1089
|
-
},
|
|
1090
|
-
'src',
|
|
1091
|
-
TSrc
|
|
1092
|
-
>['logic']
|
|
1093
|
-
>
|
|
1022
|
+
...[options]: never
|
|
1023
|
+
): ActorRefFromLogic<never>
|
|
1094
1024
|
<TLogic extends AnyActorLogic>(
|
|
1095
1025
|
src: TLogic,
|
|
1096
1026
|
options?:
|
|
@@ -1107,6 +1037,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1107
1037
|
behaviors?: Array<Behavior>
|
|
1108
1038
|
keyGenerator: () => string
|
|
1109
1039
|
schema: PortableTextMemberSchemaTypes
|
|
1040
|
+
value?: Array<PortableTextBlock>
|
|
1110
1041
|
}
|
|
1111
1042
|
self: ActorRef<
|
|
1112
1043
|
MachineSnapshot<
|
|
@@ -1117,6 +1048,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1117
1048
|
schema: PortableTextMemberSchemaTypes
|
|
1118
1049
|
readOnly: boolean
|
|
1119
1050
|
maxBlocks: number | undefined
|
|
1051
|
+
value: Array<PortableTextBlock> | undefined
|
|
1120
1052
|
},
|
|
1121
1053
|
| {
|
|
1122
1054
|
type: 'annotation.add'
|
|
@@ -1171,6 +1103,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1171
1103
|
type: 'update behaviors'
|
|
1172
1104
|
behaviors: Array<Behavior>
|
|
1173
1105
|
}
|
|
1106
|
+
| {
|
|
1107
|
+
type: 'update value'
|
|
1108
|
+
value: Array<PortableTextBlock> | undefined
|
|
1109
|
+
}
|
|
1174
1110
|
| {
|
|
1175
1111
|
type: 'toggle readOnly'
|
|
1176
1112
|
}
|
|
@@ -1213,12 +1149,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1213
1149
|
type: 'focused'
|
|
1214
1150
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1215
1151
|
}
|
|
1216
|
-
| {
|
|
1217
|
-
type: 'online'
|
|
1218
|
-
}
|
|
1219
|
-
| {
|
|
1220
|
-
type: 'offline'
|
|
1221
|
-
}
|
|
1222
1152
|
| {
|
|
1223
1153
|
type: 'loading'
|
|
1224
1154
|
}
|
|
@@ -1285,6 +1215,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1285
1215
|
type: 'update behaviors'
|
|
1286
1216
|
behaviors: Array<Behavior>
|
|
1287
1217
|
}
|
|
1218
|
+
| {
|
|
1219
|
+
type: 'update value'
|
|
1220
|
+
value: Array<PortableTextBlock> | undefined
|
|
1221
|
+
}
|
|
1288
1222
|
| {
|
|
1289
1223
|
type: 'toggle readOnly'
|
|
1290
1224
|
}
|
|
@@ -1327,12 +1261,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1327
1261
|
type: 'focused'
|
|
1328
1262
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1329
1263
|
}
|
|
1330
|
-
| {
|
|
1331
|
-
type: 'online'
|
|
1332
|
-
}
|
|
1333
|
-
| {
|
|
1334
|
-
type: 'offline'
|
|
1335
|
-
}
|
|
1336
1264
|
| {
|
|
1337
1265
|
type: 'loading'
|
|
1338
1266
|
}
|
|
@@ -1348,10 +1276,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1348
1276
|
schema: PortableTextMemberSchemaTypes
|
|
1349
1277
|
readOnly: false
|
|
1350
1278
|
maxBlocks: undefined
|
|
1351
|
-
|
|
1352
|
-
readonly invoke: {
|
|
1353
|
-
readonly id: 'networkLogic'
|
|
1354
|
-
readonly src: 'networkLogic'
|
|
1279
|
+
value: PortableTextBlock[] | undefined
|
|
1355
1280
|
}
|
|
1356
1281
|
readonly on: {
|
|
1357
1282
|
readonly 'annotation.add': {
|
|
@@ -1363,6 +1288,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1363
1288
|
schema: PortableTextMemberSchemaTypes
|
|
1364
1289
|
readOnly: boolean
|
|
1365
1290
|
maxBlocks: number | undefined
|
|
1291
|
+
value: Array<PortableTextBlock> | undefined
|
|
1366
1292
|
},
|
|
1367
1293
|
{
|
|
1368
1294
|
type: 'annotation.add'
|
|
@@ -1426,6 +1352,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1426
1352
|
type: 'update behaviors'
|
|
1427
1353
|
behaviors: Array<Behavior>
|
|
1428
1354
|
}
|
|
1355
|
+
| {
|
|
1356
|
+
type: 'update value'
|
|
1357
|
+
value: Array<PortableTextBlock> | undefined
|
|
1358
|
+
}
|
|
1429
1359
|
| {
|
|
1430
1360
|
type: 'toggle readOnly'
|
|
1431
1361
|
}
|
|
@@ -1468,12 +1398,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1468
1398
|
type: 'focused'
|
|
1469
1399
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1470
1400
|
}
|
|
1471
|
-
| {
|
|
1472
|
-
type: 'online'
|
|
1473
|
-
}
|
|
1474
|
-
| {
|
|
1475
|
-
type: 'offline'
|
|
1476
|
-
}
|
|
1477
1401
|
| {
|
|
1478
1402
|
type: 'loading'
|
|
1479
1403
|
}
|
|
@@ -1549,12 +1473,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1549
1473
|
type: 'focused'
|
|
1550
1474
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1551
1475
|
}
|
|
1552
|
-
| {
|
|
1553
|
-
type: 'online'
|
|
1554
|
-
}
|
|
1555
|
-
| {
|
|
1556
|
-
type: 'offline'
|
|
1557
|
-
}
|
|
1558
1476
|
| {
|
|
1559
1477
|
type: 'loading'
|
|
1560
1478
|
}
|
|
@@ -1572,6 +1490,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1572
1490
|
schema: PortableTextMemberSchemaTypes
|
|
1573
1491
|
readOnly: boolean
|
|
1574
1492
|
maxBlocks: number | undefined
|
|
1493
|
+
value: Array<PortableTextBlock> | undefined
|
|
1575
1494
|
},
|
|
1576
1495
|
{
|
|
1577
1496
|
type: 'annotation.add'
|
|
@@ -1593,6 +1512,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1593
1512
|
schema: PortableTextMemberSchemaTypes
|
|
1594
1513
|
readOnly: boolean
|
|
1595
1514
|
maxBlocks: number | undefined
|
|
1515
|
+
value: Array<PortableTextBlock> | undefined
|
|
1596
1516
|
},
|
|
1597
1517
|
{
|
|
1598
1518
|
type: 'annotation.remove'
|
|
@@ -1653,6 +1573,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1653
1573
|
type: 'update behaviors'
|
|
1654
1574
|
behaviors: Array<Behavior>
|
|
1655
1575
|
}
|
|
1576
|
+
| {
|
|
1577
|
+
type: 'update value'
|
|
1578
|
+
value: Array<PortableTextBlock> | undefined
|
|
1579
|
+
}
|
|
1656
1580
|
| {
|
|
1657
1581
|
type: 'toggle readOnly'
|
|
1658
1582
|
}
|
|
@@ -1695,12 +1619,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1695
1619
|
type: 'focused'
|
|
1696
1620
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1697
1621
|
}
|
|
1698
|
-
| {
|
|
1699
|
-
type: 'online'
|
|
1700
|
-
}
|
|
1701
|
-
| {
|
|
1702
|
-
type: 'offline'
|
|
1703
|
-
}
|
|
1704
1622
|
| {
|
|
1705
1623
|
type: 'loading'
|
|
1706
1624
|
}
|
|
@@ -1776,12 +1694,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1776
1694
|
type: 'focused'
|
|
1777
1695
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1778
1696
|
}
|
|
1779
|
-
| {
|
|
1780
|
-
type: 'online'
|
|
1781
|
-
}
|
|
1782
|
-
| {
|
|
1783
|
-
type: 'offline'
|
|
1784
|
-
}
|
|
1785
1697
|
| {
|
|
1786
1698
|
type: 'loading'
|
|
1787
1699
|
}
|
|
@@ -1799,6 +1711,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1799
1711
|
schema: PortableTextMemberSchemaTypes
|
|
1800
1712
|
readOnly: boolean
|
|
1801
1713
|
maxBlocks: number | undefined
|
|
1714
|
+
value: Array<PortableTextBlock> | undefined
|
|
1802
1715
|
},
|
|
1803
1716
|
{
|
|
1804
1717
|
type: 'annotation.remove'
|
|
@@ -1817,6 +1730,7 @@ export declare const editorMachine: StateMachine<
|
|
|
1817
1730
|
schema: PortableTextMemberSchemaTypes
|
|
1818
1731
|
readOnly: boolean
|
|
1819
1732
|
maxBlocks: number | undefined
|
|
1733
|
+
value: Array<PortableTextBlock> | undefined
|
|
1820
1734
|
},
|
|
1821
1735
|
{
|
|
1822
1736
|
type: 'annotation.toggle'
|
|
@@ -1880,6 +1794,10 @@ export declare const editorMachine: StateMachine<
|
|
|
1880
1794
|
type: 'update behaviors'
|
|
1881
1795
|
behaviors: Array<Behavior>
|
|
1882
1796
|
}
|
|
1797
|
+
| {
|
|
1798
|
+
type: 'update value'
|
|
1799
|
+
value: Array<PortableTextBlock> | undefined
|
|
1800
|
+
}
|
|
1883
1801
|
| {
|
|
1884
1802
|
type: 'toggle readOnly'
|
|
1885
1803
|
}
|
|
@@ -1922,12 +1840,6 @@ export declare const editorMachine: StateMachine<
|
|
|
1922
1840
|
type: 'focused'
|
|
1923
1841
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
1924
1842
|
}
|
|
1925
|
-
| {
|
|
1926
|
-
type: 'online'
|
|
1927
|
-
}
|
|
1928
|
-
| {
|
|
1929
|
-
type: 'offline'
|
|
1930
|
-
}
|
|
1931
1843
|
| {
|
|
1932
1844
|
type: 'loading'
|
|
1933
1845
|
}
|
|
@@ -2003,12 +1915,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2003
1915
|
type: 'focused'
|
|
2004
1916
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2005
1917
|
}
|
|
2006
|
-
| {
|
|
2007
|
-
type: 'online'
|
|
2008
|
-
}
|
|
2009
|
-
| {
|
|
2010
|
-
type: 'offline'
|
|
2011
|
-
}
|
|
2012
1918
|
| {
|
|
2013
1919
|
type: 'loading'
|
|
2014
1920
|
}
|
|
@@ -2026,6 +1932,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2026
1932
|
schema: PortableTextMemberSchemaTypes
|
|
2027
1933
|
readOnly: boolean
|
|
2028
1934
|
maxBlocks: number | undefined
|
|
1935
|
+
value: Array<PortableTextBlock> | undefined
|
|
2029
1936
|
},
|
|
2030
1937
|
{
|
|
2031
1938
|
type: 'annotation.toggle'
|
|
@@ -2047,6 +1954,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2047
1954
|
schema: PortableTextMemberSchemaTypes
|
|
2048
1955
|
readOnly: boolean
|
|
2049
1956
|
maxBlocks: number | undefined
|
|
1957
|
+
value: Array<PortableTextBlock> | undefined
|
|
2050
1958
|
},
|
|
2051
1959
|
{
|
|
2052
1960
|
type: 'focus'
|
|
@@ -2104,6 +2012,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2104
2012
|
type: 'update behaviors'
|
|
2105
2013
|
behaviors: Array<Behavior>
|
|
2106
2014
|
}
|
|
2015
|
+
| {
|
|
2016
|
+
type: 'update value'
|
|
2017
|
+
value: Array<PortableTextBlock> | undefined
|
|
2018
|
+
}
|
|
2107
2019
|
| {
|
|
2108
2020
|
type: 'toggle readOnly'
|
|
2109
2021
|
}
|
|
@@ -2146,12 +2058,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2146
2058
|
type: 'focused'
|
|
2147
2059
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2148
2060
|
}
|
|
2149
|
-
| {
|
|
2150
|
-
type: 'online'
|
|
2151
|
-
}
|
|
2152
|
-
| {
|
|
2153
|
-
type: 'offline'
|
|
2154
|
-
}
|
|
2155
2061
|
| {
|
|
2156
2062
|
type: 'loading'
|
|
2157
2063
|
}
|
|
@@ -2227,12 +2133,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2227
2133
|
type: 'focused'
|
|
2228
2134
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2229
2135
|
}
|
|
2230
|
-
| {
|
|
2231
|
-
type: 'online'
|
|
2232
|
-
}
|
|
2233
|
-
| {
|
|
2234
|
-
type: 'offline'
|
|
2235
|
-
}
|
|
2236
2136
|
| {
|
|
2237
2137
|
type: 'loading'
|
|
2238
2138
|
}
|
|
@@ -2250,6 +2150,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2250
2150
|
schema: PortableTextMemberSchemaTypes
|
|
2251
2151
|
readOnly: boolean
|
|
2252
2152
|
maxBlocks: number | undefined
|
|
2153
|
+
value: Array<PortableTextBlock> | undefined
|
|
2253
2154
|
},
|
|
2254
2155
|
{
|
|
2255
2156
|
type: 'focus'
|
|
@@ -2265,6 +2166,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2265
2166
|
schema: PortableTextMemberSchemaTypes
|
|
2266
2167
|
readOnly: boolean
|
|
2267
2168
|
maxBlocks: number | undefined
|
|
2169
|
+
value: Array<PortableTextBlock> | undefined
|
|
2268
2170
|
},
|
|
2269
2171
|
{
|
|
2270
2172
|
type: 'ready'
|
|
@@ -2322,6 +2224,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2322
2224
|
type: 'update behaviors'
|
|
2323
2225
|
behaviors: Array<Behavior>
|
|
2324
2226
|
}
|
|
2227
|
+
| {
|
|
2228
|
+
type: 'update value'
|
|
2229
|
+
value: Array<PortableTextBlock> | undefined
|
|
2230
|
+
}
|
|
2325
2231
|
| {
|
|
2326
2232
|
type: 'toggle readOnly'
|
|
2327
2233
|
}
|
|
@@ -2364,12 +2270,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2364
2270
|
type: 'focused'
|
|
2365
2271
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2366
2272
|
}
|
|
2367
|
-
| {
|
|
2368
|
-
type: 'online'
|
|
2369
|
-
}
|
|
2370
|
-
| {
|
|
2371
|
-
type: 'offline'
|
|
2372
|
-
}
|
|
2373
2273
|
| {
|
|
2374
2274
|
type: 'loading'
|
|
2375
2275
|
}
|
|
@@ -2445,12 +2345,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2445
2345
|
type: 'focused'
|
|
2446
2346
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2447
2347
|
}
|
|
2448
|
-
| {
|
|
2449
|
-
type: 'online'
|
|
2450
|
-
}
|
|
2451
|
-
| {
|
|
2452
|
-
type: 'offline'
|
|
2453
|
-
}
|
|
2454
2348
|
| {
|
|
2455
2349
|
type: 'loading'
|
|
2456
2350
|
}
|
|
@@ -2468,6 +2362,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2468
2362
|
schema: PortableTextMemberSchemaTypes
|
|
2469
2363
|
readOnly: boolean
|
|
2470
2364
|
maxBlocks: number | undefined
|
|
2365
|
+
value: Array<PortableTextBlock> | undefined
|
|
2471
2366
|
},
|
|
2472
2367
|
{
|
|
2473
2368
|
type: 'unset'
|
|
@@ -2526,6 +2421,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2526
2421
|
type: 'update behaviors'
|
|
2527
2422
|
behaviors: Array<Behavior>
|
|
2528
2423
|
}
|
|
2424
|
+
| {
|
|
2425
|
+
type: 'update value'
|
|
2426
|
+
value: Array<PortableTextBlock> | undefined
|
|
2427
|
+
}
|
|
2529
2428
|
| {
|
|
2530
2429
|
type: 'toggle readOnly'
|
|
2531
2430
|
}
|
|
@@ -2568,12 +2467,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2568
2467
|
type: 'focused'
|
|
2569
2468
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2570
2469
|
}
|
|
2571
|
-
| {
|
|
2572
|
-
type: 'online'
|
|
2573
|
-
}
|
|
2574
|
-
| {
|
|
2575
|
-
type: 'offline'
|
|
2576
|
-
}
|
|
2577
2470
|
| {
|
|
2578
2471
|
type: 'loading'
|
|
2579
2472
|
}
|
|
@@ -2649,12 +2542,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2649
2542
|
type: 'focused'
|
|
2650
2543
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2651
2544
|
}
|
|
2652
|
-
| {
|
|
2653
|
-
type: 'online'
|
|
2654
|
-
}
|
|
2655
|
-
| {
|
|
2656
|
-
type: 'offline'
|
|
2657
|
-
}
|
|
2658
2545
|
| {
|
|
2659
2546
|
type: 'loading'
|
|
2660
2547
|
}
|
|
@@ -2672,6 +2559,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2672
2559
|
schema: PortableTextMemberSchemaTypes
|
|
2673
2560
|
readOnly: boolean
|
|
2674
2561
|
maxBlocks: number | undefined
|
|
2562
|
+
value: Array<PortableTextBlock> | undefined
|
|
2675
2563
|
},
|
|
2676
2564
|
{
|
|
2677
2565
|
type: 'value changed'
|
|
@@ -2730,6 +2618,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2730
2618
|
type: 'update behaviors'
|
|
2731
2619
|
behaviors: Array<Behavior>
|
|
2732
2620
|
}
|
|
2621
|
+
| {
|
|
2622
|
+
type: 'update value'
|
|
2623
|
+
value: Array<PortableTextBlock> | undefined
|
|
2624
|
+
}
|
|
2733
2625
|
| {
|
|
2734
2626
|
type: 'toggle readOnly'
|
|
2735
2627
|
}
|
|
@@ -2772,12 +2664,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2772
2664
|
type: 'focused'
|
|
2773
2665
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2774
2666
|
}
|
|
2775
|
-
| {
|
|
2776
|
-
type: 'online'
|
|
2777
|
-
}
|
|
2778
|
-
| {
|
|
2779
|
-
type: 'offline'
|
|
2780
|
-
}
|
|
2781
2667
|
| {
|
|
2782
2668
|
type: 'loading'
|
|
2783
2669
|
}
|
|
@@ -2853,12 +2739,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2853
2739
|
type: 'focused'
|
|
2854
2740
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2855
2741
|
}
|
|
2856
|
-
| {
|
|
2857
|
-
type: 'online'
|
|
2858
|
-
}
|
|
2859
|
-
| {
|
|
2860
|
-
type: 'offline'
|
|
2861
|
-
}
|
|
2862
2742
|
| {
|
|
2863
2743
|
type: 'loading'
|
|
2864
2744
|
}
|
|
@@ -2876,6 +2756,7 @@ export declare const editorMachine: StateMachine<
|
|
|
2876
2756
|
schema: PortableTextMemberSchemaTypes
|
|
2877
2757
|
readOnly: boolean
|
|
2878
2758
|
maxBlocks: number | undefined
|
|
2759
|
+
value: Array<PortableTextBlock> | undefined
|
|
2879
2760
|
},
|
|
2880
2761
|
{
|
|
2881
2762
|
type: 'invalid value'
|
|
@@ -2935,6 +2816,10 @@ export declare const editorMachine: StateMachine<
|
|
|
2935
2816
|
type: 'update behaviors'
|
|
2936
2817
|
behaviors: Array<Behavior>
|
|
2937
2818
|
}
|
|
2819
|
+
| {
|
|
2820
|
+
type: 'update value'
|
|
2821
|
+
value: Array<PortableTextBlock> | undefined
|
|
2822
|
+
}
|
|
2938
2823
|
| {
|
|
2939
2824
|
type: 'toggle readOnly'
|
|
2940
2825
|
}
|
|
@@ -2977,12 +2862,6 @@ export declare const editorMachine: StateMachine<
|
|
|
2977
2862
|
type: 'focused'
|
|
2978
2863
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
2979
2864
|
}
|
|
2980
|
-
| {
|
|
2981
|
-
type: 'online'
|
|
2982
|
-
}
|
|
2983
|
-
| {
|
|
2984
|
-
type: 'offline'
|
|
2985
|
-
}
|
|
2986
2865
|
| {
|
|
2987
2866
|
type: 'loading'
|
|
2988
2867
|
}
|
|
@@ -3058,12 +2937,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3058
2937
|
type: 'focused'
|
|
3059
2938
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3060
2939
|
}
|
|
3061
|
-
| {
|
|
3062
|
-
type: 'online'
|
|
3063
|
-
}
|
|
3064
|
-
| {
|
|
3065
|
-
type: 'offline'
|
|
3066
|
-
}
|
|
3067
2940
|
| {
|
|
3068
2941
|
type: 'loading'
|
|
3069
2942
|
}
|
|
@@ -3081,6 +2954,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3081
2954
|
schema: PortableTextMemberSchemaTypes
|
|
3082
2955
|
readOnly: boolean
|
|
3083
2956
|
maxBlocks: number | undefined
|
|
2957
|
+
value: Array<PortableTextBlock> | undefined
|
|
3084
2958
|
},
|
|
3085
2959
|
{
|
|
3086
2960
|
type: 'error'
|
|
@@ -3141,6 +3015,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3141
3015
|
type: 'update behaviors'
|
|
3142
3016
|
behaviors: Array<Behavior>
|
|
3143
3017
|
}
|
|
3018
|
+
| {
|
|
3019
|
+
type: 'update value'
|
|
3020
|
+
value: Array<PortableTextBlock> | undefined
|
|
3021
|
+
}
|
|
3144
3022
|
| {
|
|
3145
3023
|
type: 'toggle readOnly'
|
|
3146
3024
|
}
|
|
@@ -3183,12 +3061,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3183
3061
|
type: 'focused'
|
|
3184
3062
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3185
3063
|
}
|
|
3186
|
-
| {
|
|
3187
|
-
type: 'online'
|
|
3188
|
-
}
|
|
3189
|
-
| {
|
|
3190
|
-
type: 'offline'
|
|
3191
|
-
}
|
|
3192
3064
|
| {
|
|
3193
3065
|
type: 'loading'
|
|
3194
3066
|
}
|
|
@@ -3264,12 +3136,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3264
3136
|
type: 'focused'
|
|
3265
3137
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3266
3138
|
}
|
|
3267
|
-
| {
|
|
3268
|
-
type: 'online'
|
|
3269
|
-
}
|
|
3270
|
-
| {
|
|
3271
|
-
type: 'offline'
|
|
3272
|
-
}
|
|
3273
3139
|
| {
|
|
3274
3140
|
type: 'loading'
|
|
3275
3141
|
}
|
|
@@ -3287,6 +3153,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3287
3153
|
schema: PortableTextMemberSchemaTypes
|
|
3288
3154
|
readOnly: boolean
|
|
3289
3155
|
maxBlocks: number | undefined
|
|
3156
|
+
value: Array<PortableTextBlock> | undefined
|
|
3290
3157
|
},
|
|
3291
3158
|
{
|
|
3292
3159
|
type: 'selection'
|
|
@@ -3345,6 +3212,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3345
3212
|
type: 'update behaviors'
|
|
3346
3213
|
behaviors: Array<Behavior>
|
|
3347
3214
|
}
|
|
3215
|
+
| {
|
|
3216
|
+
type: 'update value'
|
|
3217
|
+
value: Array<PortableTextBlock> | undefined
|
|
3218
|
+
}
|
|
3348
3219
|
| {
|
|
3349
3220
|
type: 'toggle readOnly'
|
|
3350
3221
|
}
|
|
@@ -3387,12 +3258,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3387
3258
|
type: 'focused'
|
|
3388
3259
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3389
3260
|
}
|
|
3390
|
-
| {
|
|
3391
|
-
type: 'online'
|
|
3392
|
-
}
|
|
3393
|
-
| {
|
|
3394
|
-
type: 'offline'
|
|
3395
|
-
}
|
|
3396
3261
|
| {
|
|
3397
3262
|
type: 'loading'
|
|
3398
3263
|
}
|
|
@@ -3468,12 +3333,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3468
3333
|
type: 'focused'
|
|
3469
3334
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3470
3335
|
}
|
|
3471
|
-
| {
|
|
3472
|
-
type: 'online'
|
|
3473
|
-
}
|
|
3474
|
-
| {
|
|
3475
|
-
type: 'offline'
|
|
3476
|
-
}
|
|
3477
3336
|
| {
|
|
3478
3337
|
type: 'loading'
|
|
3479
3338
|
}
|
|
@@ -3491,6 +3350,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3491
3350
|
schema: PortableTextMemberSchemaTypes
|
|
3492
3351
|
readOnly: boolean
|
|
3493
3352
|
maxBlocks: number | undefined
|
|
3353
|
+
value: Array<PortableTextBlock> | undefined
|
|
3494
3354
|
},
|
|
3495
3355
|
{
|
|
3496
3356
|
type: 'blur'
|
|
@@ -3549,6 +3409,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3549
3409
|
type: 'update behaviors'
|
|
3550
3410
|
behaviors: Array<Behavior>
|
|
3551
3411
|
}
|
|
3412
|
+
| {
|
|
3413
|
+
type: 'update value'
|
|
3414
|
+
value: Array<PortableTextBlock> | undefined
|
|
3415
|
+
}
|
|
3552
3416
|
| {
|
|
3553
3417
|
type: 'toggle readOnly'
|
|
3554
3418
|
}
|
|
@@ -3591,12 +3455,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3591
3455
|
type: 'focused'
|
|
3592
3456
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3593
3457
|
}
|
|
3594
|
-
| {
|
|
3595
|
-
type: 'online'
|
|
3596
|
-
}
|
|
3597
|
-
| {
|
|
3598
|
-
type: 'offline'
|
|
3599
|
-
}
|
|
3600
3458
|
| {
|
|
3601
3459
|
type: 'loading'
|
|
3602
3460
|
}
|
|
@@ -3672,12 +3530,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3672
3530
|
type: 'focused'
|
|
3673
3531
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3674
3532
|
}
|
|
3675
|
-
| {
|
|
3676
|
-
type: 'online'
|
|
3677
|
-
}
|
|
3678
|
-
| {
|
|
3679
|
-
type: 'offline'
|
|
3680
|
-
}
|
|
3681
3533
|
| {
|
|
3682
3534
|
type: 'loading'
|
|
3683
3535
|
}
|
|
@@ -3695,6 +3547,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3695
3547
|
schema: PortableTextMemberSchemaTypes
|
|
3696
3548
|
readOnly: boolean
|
|
3697
3549
|
maxBlocks: number | undefined
|
|
3550
|
+
value: Array<PortableTextBlock> | undefined
|
|
3698
3551
|
},
|
|
3699
3552
|
{
|
|
3700
3553
|
type: 'focused'
|
|
@@ -3753,6 +3606,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3753
3606
|
type: 'update behaviors'
|
|
3754
3607
|
behaviors: Array<Behavior>
|
|
3755
3608
|
}
|
|
3609
|
+
| {
|
|
3610
|
+
type: 'update value'
|
|
3611
|
+
value: Array<PortableTextBlock> | undefined
|
|
3612
|
+
}
|
|
3756
3613
|
| {
|
|
3757
3614
|
type: 'toggle readOnly'
|
|
3758
3615
|
}
|
|
@@ -3795,12 +3652,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3795
3652
|
type: 'focused'
|
|
3796
3653
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3797
3654
|
}
|
|
3798
|
-
| {
|
|
3799
|
-
type: 'online'
|
|
3800
|
-
}
|
|
3801
|
-
| {
|
|
3802
|
-
type: 'offline'
|
|
3803
|
-
}
|
|
3804
3655
|
| {
|
|
3805
3656
|
type: 'loading'
|
|
3806
3657
|
}
|
|
@@ -3876,12 +3727,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3876
3727
|
type: 'focused'
|
|
3877
3728
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3878
3729
|
}
|
|
3879
|
-
| {
|
|
3880
|
-
type: 'online'
|
|
3881
|
-
}
|
|
3882
|
-
| {
|
|
3883
|
-
type: 'offline'
|
|
3884
|
-
}
|
|
3885
3730
|
| {
|
|
3886
3731
|
type: 'loading'
|
|
3887
3732
|
}
|
|
@@ -3890,7 +3735,7 @@ export declare const editorMachine: StateMachine<
|
|
|
3890
3735
|
}
|
|
3891
3736
|
>
|
|
3892
3737
|
}
|
|
3893
|
-
readonly '
|
|
3738
|
+
readonly 'loading': {
|
|
3894
3739
|
readonly actions: ActionFunction<
|
|
3895
3740
|
{
|
|
3896
3741
|
behaviors: Array<Behavior>
|
|
@@ -3899,9 +3744,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3899
3744
|
schema: PortableTextMemberSchemaTypes
|
|
3900
3745
|
readOnly: boolean
|
|
3901
3746
|
maxBlocks: number | undefined
|
|
3747
|
+
value: Array<PortableTextBlock> | undefined
|
|
3902
3748
|
},
|
|
3903
3749
|
{
|
|
3904
|
-
type: '
|
|
3750
|
+
type: 'loading'
|
|
3905
3751
|
},
|
|
3906
3752
|
| {
|
|
3907
3753
|
type: 'annotation.add'
|
|
@@ -3956,6 +3802,10 @@ export declare const editorMachine: StateMachine<
|
|
|
3956
3802
|
type: 'update behaviors'
|
|
3957
3803
|
behaviors: Array<Behavior>
|
|
3958
3804
|
}
|
|
3805
|
+
| {
|
|
3806
|
+
type: 'update value'
|
|
3807
|
+
value: Array<PortableTextBlock> | undefined
|
|
3808
|
+
}
|
|
3959
3809
|
| {
|
|
3960
3810
|
type: 'toggle readOnly'
|
|
3961
3811
|
}
|
|
@@ -3998,12 +3848,6 @@ export declare const editorMachine: StateMachine<
|
|
|
3998
3848
|
type: 'focused'
|
|
3999
3849
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4000
3850
|
}
|
|
4001
|
-
| {
|
|
4002
|
-
type: 'online'
|
|
4003
|
-
}
|
|
4004
|
-
| {
|
|
4005
|
-
type: 'offline'
|
|
4006
|
-
}
|
|
4007
3851
|
| {
|
|
4008
3852
|
type: 'loading'
|
|
4009
3853
|
}
|
|
@@ -4079,12 +3923,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4079
3923
|
type: 'focused'
|
|
4080
3924
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4081
3925
|
}
|
|
4082
|
-
| {
|
|
4083
|
-
type: 'online'
|
|
4084
|
-
}
|
|
4085
|
-
| {
|
|
4086
|
-
type: 'offline'
|
|
4087
|
-
}
|
|
4088
3926
|
| {
|
|
4089
3927
|
type: 'loading'
|
|
4090
3928
|
}
|
|
@@ -4093,7 +3931,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4093
3931
|
}
|
|
4094
3932
|
>
|
|
4095
3933
|
}
|
|
4096
|
-
readonly '
|
|
3934
|
+
readonly 'patches': {
|
|
4097
3935
|
readonly actions: ActionFunction<
|
|
4098
3936
|
{
|
|
4099
3937
|
behaviors: Array<Behavior>
|
|
@@ -4102,10 +3940,9 @@ export declare const editorMachine: StateMachine<
|
|
|
4102
3940
|
schema: PortableTextMemberSchemaTypes
|
|
4103
3941
|
readOnly: boolean
|
|
4104
3942
|
maxBlocks: number | undefined
|
|
3943
|
+
value: Array<PortableTextBlock> | undefined
|
|
4105
3944
|
},
|
|
4106
|
-
|
|
4107
|
-
type: 'offline'
|
|
4108
|
-
},
|
|
3945
|
+
PatchesEvent,
|
|
4109
3946
|
| {
|
|
4110
3947
|
type: 'annotation.add'
|
|
4111
3948
|
annotation: {
|
|
@@ -4159,6 +3996,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4159
3996
|
type: 'update behaviors'
|
|
4160
3997
|
behaviors: Array<Behavior>
|
|
4161
3998
|
}
|
|
3999
|
+
| {
|
|
4000
|
+
type: 'update value'
|
|
4001
|
+
value: Array<PortableTextBlock> | undefined
|
|
4002
|
+
}
|
|
4162
4003
|
| {
|
|
4163
4004
|
type: 'toggle readOnly'
|
|
4164
4005
|
}
|
|
@@ -4201,12 +4042,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4201
4042
|
type: 'focused'
|
|
4202
4043
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4203
4044
|
}
|
|
4204
|
-
| {
|
|
4205
|
-
type: 'online'
|
|
4206
|
-
}
|
|
4207
|
-
| {
|
|
4208
|
-
type: 'offline'
|
|
4209
|
-
}
|
|
4210
4045
|
| {
|
|
4211
4046
|
type: 'loading'
|
|
4212
4047
|
}
|
|
@@ -4282,12 +4117,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4282
4117
|
type: 'focused'
|
|
4283
4118
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4284
4119
|
}
|
|
4285
|
-
| {
|
|
4286
|
-
type: 'online'
|
|
4287
|
-
}
|
|
4288
|
-
| {
|
|
4289
|
-
type: 'offline'
|
|
4290
|
-
}
|
|
4291
4120
|
| {
|
|
4292
4121
|
type: 'loading'
|
|
4293
4122
|
}
|
|
@@ -4296,7 +4125,7 @@ export declare const editorMachine: StateMachine<
|
|
|
4296
4125
|
}
|
|
4297
4126
|
>
|
|
4298
4127
|
}
|
|
4299
|
-
readonly 'loading': {
|
|
4128
|
+
readonly 'done loading': {
|
|
4300
4129
|
readonly actions: ActionFunction<
|
|
4301
4130
|
{
|
|
4302
4131
|
behaviors: Array<Behavior>
|
|
@@ -4305,9 +4134,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4305
4134
|
schema: PortableTextMemberSchemaTypes
|
|
4306
4135
|
readOnly: boolean
|
|
4307
4136
|
maxBlocks: number | undefined
|
|
4137
|
+
value: Array<PortableTextBlock> | undefined
|
|
4308
4138
|
},
|
|
4309
4139
|
{
|
|
4310
|
-
type: 'loading'
|
|
4140
|
+
type: 'done loading'
|
|
4311
4141
|
},
|
|
4312
4142
|
| {
|
|
4313
4143
|
type: 'annotation.add'
|
|
@@ -4362,6 +4192,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4362
4192
|
type: 'update behaviors'
|
|
4363
4193
|
behaviors: Array<Behavior>
|
|
4364
4194
|
}
|
|
4195
|
+
| {
|
|
4196
|
+
type: 'update value'
|
|
4197
|
+
value: Array<PortableTextBlock> | undefined
|
|
4198
|
+
}
|
|
4365
4199
|
| {
|
|
4366
4200
|
type: 'toggle readOnly'
|
|
4367
4201
|
}
|
|
@@ -4404,12 +4238,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4404
4238
|
type: 'focused'
|
|
4405
4239
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4406
4240
|
}
|
|
4407
|
-
| {
|
|
4408
|
-
type: 'online'
|
|
4409
|
-
}
|
|
4410
|
-
| {
|
|
4411
|
-
type: 'offline'
|
|
4412
|
-
}
|
|
4413
4241
|
| {
|
|
4414
4242
|
type: 'loading'
|
|
4415
4243
|
}
|
|
@@ -4485,12 +4313,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4485
4313
|
type: 'focused'
|
|
4486
4314
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4487
4315
|
}
|
|
4488
|
-
| {
|
|
4489
|
-
type: 'online'
|
|
4490
|
-
}
|
|
4491
|
-
| {
|
|
4492
|
-
type: 'offline'
|
|
4493
|
-
}
|
|
4494
4316
|
| {
|
|
4495
4317
|
type: 'loading'
|
|
4496
4318
|
}
|
|
@@ -4499,7 +4321,13 @@ export declare const editorMachine: StateMachine<
|
|
|
4499
4321
|
}
|
|
4500
4322
|
>
|
|
4501
4323
|
}
|
|
4502
|
-
readonly '
|
|
4324
|
+
readonly 'update behaviors': {
|
|
4325
|
+
readonly actions: 'assign behaviors'
|
|
4326
|
+
}
|
|
4327
|
+
readonly 'update schema': {
|
|
4328
|
+
readonly actions: 'assign schema'
|
|
4329
|
+
}
|
|
4330
|
+
readonly 'update value': {
|
|
4503
4331
|
readonly actions: ActionFunction<
|
|
4504
4332
|
{
|
|
4505
4333
|
behaviors: Array<Behavior>
|
|
@@ -4508,8 +4336,12 @@ export declare const editorMachine: StateMachine<
|
|
|
4508
4336
|
schema: PortableTextMemberSchemaTypes
|
|
4509
4337
|
readOnly: boolean
|
|
4510
4338
|
maxBlocks: number | undefined
|
|
4339
|
+
value: Array<PortableTextBlock> | undefined
|
|
4340
|
+
},
|
|
4341
|
+
{
|
|
4342
|
+
type: 'update value'
|
|
4343
|
+
value: Array<PortableTextBlock> | undefined
|
|
4511
4344
|
},
|
|
4512
|
-
PatchesEvent,
|
|
4513
4345
|
| {
|
|
4514
4346
|
type: 'annotation.add'
|
|
4515
4347
|
annotation: {
|
|
@@ -4563,6 +4395,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4563
4395
|
type: 'update behaviors'
|
|
4564
4396
|
behaviors: Array<Behavior>
|
|
4565
4397
|
}
|
|
4398
|
+
| {
|
|
4399
|
+
type: 'update value'
|
|
4400
|
+
value: Array<PortableTextBlock> | undefined
|
|
4401
|
+
}
|
|
4566
4402
|
| {
|
|
4567
4403
|
type: 'toggle readOnly'
|
|
4568
4404
|
}
|
|
@@ -4605,12 +4441,6 @@ export declare const editorMachine: StateMachine<
|
|
|
4605
4441
|
type: 'focused'
|
|
4606
4442
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4607
4443
|
}
|
|
4608
|
-
| {
|
|
4609
|
-
type: 'online'
|
|
4610
|
-
}
|
|
4611
|
-
| {
|
|
4612
|
-
type: 'offline'
|
|
4613
|
-
}
|
|
4614
4444
|
| {
|
|
4615
4445
|
type: 'loading'
|
|
4616
4446
|
}
|
|
@@ -4622,85 +4452,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4622
4452
|
never,
|
|
4623
4453
|
never,
|
|
4624
4454
|
never,
|
|
4625
|
-
|
|
4626
|
-
type: 'annotation.add'
|
|
4627
|
-
annotation: {
|
|
4628
|
-
name: string
|
|
4629
|
-
value: {
|
|
4630
|
-
[prop: string]: unknown
|
|
4631
|
-
}
|
|
4632
|
-
}
|
|
4633
|
-
}
|
|
4634
|
-
| {
|
|
4635
|
-
type: 'annotation.remove'
|
|
4636
|
-
annotation: {
|
|
4637
|
-
name: string
|
|
4638
|
-
}
|
|
4639
|
-
}
|
|
4640
|
-
| {
|
|
4641
|
-
type: 'annotation.toggle'
|
|
4642
|
-
annotation: {
|
|
4643
|
-
name: string
|
|
4644
|
-
value: {
|
|
4645
|
-
[prop: string]: unknown
|
|
4646
|
-
}
|
|
4647
|
-
}
|
|
4648
|
-
}
|
|
4649
|
-
| {
|
|
4650
|
-
type: 'focus'
|
|
4651
|
-
}
|
|
4652
|
-
| PatchEvent
|
|
4653
|
-
| MutationEvent_2
|
|
4654
|
-
| {
|
|
4655
|
-
type: 'ready'
|
|
4656
|
-
}
|
|
4657
|
-
| PatchesEvent
|
|
4658
|
-
| {
|
|
4659
|
-
type: 'unset'
|
|
4660
|
-
previousValue: Array<PortableTextBlock>
|
|
4661
|
-
}
|
|
4662
|
-
| {
|
|
4663
|
-
type: 'value changed'
|
|
4664
|
-
value: Array<PortableTextBlock> | undefined
|
|
4665
|
-
}
|
|
4666
|
-
| {
|
|
4667
|
-
type: 'invalid value'
|
|
4668
|
-
resolution: InvalidValueResolution | null
|
|
4669
|
-
value: Array<PortableTextBlock> | undefined
|
|
4670
|
-
}
|
|
4671
|
-
| {
|
|
4672
|
-
type: 'error'
|
|
4673
|
-
name: string
|
|
4674
|
-
description: string
|
|
4675
|
-
data: unknown
|
|
4676
|
-
}
|
|
4677
|
-
| {
|
|
4678
|
-
type: 'selection'
|
|
4679
|
-
selection: EditorSelection
|
|
4680
|
-
}
|
|
4681
|
-
| {
|
|
4682
|
-
type: 'blur'
|
|
4683
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4684
|
-
}
|
|
4685
|
-
| {
|
|
4686
|
-
type: 'focused'
|
|
4687
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4688
|
-
}
|
|
4689
|
-
| {
|
|
4690
|
-
type: 'online'
|
|
4691
|
-
}
|
|
4692
|
-
| {
|
|
4693
|
-
type: 'offline'
|
|
4694
|
-
}
|
|
4695
|
-
| {
|
|
4696
|
-
type: 'loading'
|
|
4697
|
-
}
|
|
4698
|
-
| {
|
|
4699
|
-
type: 'done loading'
|
|
4700
|
-
}
|
|
4455
|
+
never
|
|
4701
4456
|
>
|
|
4702
4457
|
}
|
|
4703
|
-
readonly '
|
|
4458
|
+
readonly 'toggle readOnly': {
|
|
4704
4459
|
readonly actions: ActionFunction<
|
|
4705
4460
|
{
|
|
4706
4461
|
behaviors: Array<Behavior>
|
|
@@ -4709,9 +4464,10 @@ export declare const editorMachine: StateMachine<
|
|
|
4709
4464
|
schema: PortableTextMemberSchemaTypes
|
|
4710
4465
|
readOnly: boolean
|
|
4711
4466
|
maxBlocks: number | undefined
|
|
4467
|
+
value: Array<PortableTextBlock> | undefined
|
|
4712
4468
|
},
|
|
4713
4469
|
{
|
|
4714
|
-
type: '
|
|
4470
|
+
type: 'toggle readOnly'
|
|
4715
4471
|
},
|
|
4716
4472
|
| {
|
|
4717
4473
|
type: 'annotation.add'
|
|
@@ -4767,214 +4523,9 @@ export declare const editorMachine: StateMachine<
|
|
|
4767
4523
|
behaviors: Array<Behavior>
|
|
4768
4524
|
}
|
|
4769
4525
|
| {
|
|
4770
|
-
type: '
|
|
4771
|
-
}
|
|
4772
|
-
| {
|
|
4773
|
-
type: 'update maxBlocks'
|
|
4774
|
-
maxBlocks: number | undefined
|
|
4775
|
-
}
|
|
4776
|
-
| {
|
|
4777
|
-
type: 'ready'
|
|
4778
|
-
}
|
|
4779
|
-
| PatchesEvent
|
|
4780
|
-
| {
|
|
4781
|
-
type: 'unset'
|
|
4782
|
-
previousValue: Array<PortableTextBlock>
|
|
4783
|
-
}
|
|
4784
|
-
| {
|
|
4785
|
-
type: 'value changed'
|
|
4526
|
+
type: 'update value'
|
|
4786
4527
|
value: Array<PortableTextBlock> | undefined
|
|
4787
4528
|
}
|
|
4788
|
-
| {
|
|
4789
|
-
type: 'invalid value'
|
|
4790
|
-
resolution: InvalidValueResolution | null
|
|
4791
|
-
value: Array<PortableTextBlock> | undefined
|
|
4792
|
-
}
|
|
4793
|
-
| {
|
|
4794
|
-
type: 'error'
|
|
4795
|
-
name: string
|
|
4796
|
-
description: string
|
|
4797
|
-
data: unknown
|
|
4798
|
-
}
|
|
4799
|
-
| {
|
|
4800
|
-
type: 'selection'
|
|
4801
|
-
selection: EditorSelection
|
|
4802
|
-
}
|
|
4803
|
-
| {
|
|
4804
|
-
type: 'blur'
|
|
4805
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4806
|
-
}
|
|
4807
|
-
| {
|
|
4808
|
-
type: 'focused'
|
|
4809
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4810
|
-
}
|
|
4811
|
-
| {
|
|
4812
|
-
type: 'online'
|
|
4813
|
-
}
|
|
4814
|
-
| {
|
|
4815
|
-
type: 'offline'
|
|
4816
|
-
}
|
|
4817
|
-
| {
|
|
4818
|
-
type: 'loading'
|
|
4819
|
-
}
|
|
4820
|
-
| {
|
|
4821
|
-
type: 'done loading'
|
|
4822
|
-
},
|
|
4823
|
-
undefined,
|
|
4824
|
-
never,
|
|
4825
|
-
never,
|
|
4826
|
-
never,
|
|
4827
|
-
never,
|
|
4828
|
-
| {
|
|
4829
|
-
type: 'annotation.add'
|
|
4830
|
-
annotation: {
|
|
4831
|
-
name: string
|
|
4832
|
-
value: {
|
|
4833
|
-
[prop: string]: unknown
|
|
4834
|
-
}
|
|
4835
|
-
}
|
|
4836
|
-
}
|
|
4837
|
-
| {
|
|
4838
|
-
type: 'annotation.remove'
|
|
4839
|
-
annotation: {
|
|
4840
|
-
name: string
|
|
4841
|
-
}
|
|
4842
|
-
}
|
|
4843
|
-
| {
|
|
4844
|
-
type: 'annotation.toggle'
|
|
4845
|
-
annotation: {
|
|
4846
|
-
name: string
|
|
4847
|
-
value: {
|
|
4848
|
-
[prop: string]: unknown
|
|
4849
|
-
}
|
|
4850
|
-
}
|
|
4851
|
-
}
|
|
4852
|
-
| {
|
|
4853
|
-
type: 'focus'
|
|
4854
|
-
}
|
|
4855
|
-
| PatchEvent
|
|
4856
|
-
| MutationEvent_2
|
|
4857
|
-
| {
|
|
4858
|
-
type: 'ready'
|
|
4859
|
-
}
|
|
4860
|
-
| PatchesEvent
|
|
4861
|
-
| {
|
|
4862
|
-
type: 'unset'
|
|
4863
|
-
previousValue: Array<PortableTextBlock>
|
|
4864
|
-
}
|
|
4865
|
-
| {
|
|
4866
|
-
type: 'value changed'
|
|
4867
|
-
value: Array<PortableTextBlock> | undefined
|
|
4868
|
-
}
|
|
4869
|
-
| {
|
|
4870
|
-
type: 'invalid value'
|
|
4871
|
-
resolution: InvalidValueResolution | null
|
|
4872
|
-
value: Array<PortableTextBlock> | undefined
|
|
4873
|
-
}
|
|
4874
|
-
| {
|
|
4875
|
-
type: 'error'
|
|
4876
|
-
name: string
|
|
4877
|
-
description: string
|
|
4878
|
-
data: unknown
|
|
4879
|
-
}
|
|
4880
|
-
| {
|
|
4881
|
-
type: 'selection'
|
|
4882
|
-
selection: EditorSelection
|
|
4883
|
-
}
|
|
4884
|
-
| {
|
|
4885
|
-
type: 'blur'
|
|
4886
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4887
|
-
}
|
|
4888
|
-
| {
|
|
4889
|
-
type: 'focused'
|
|
4890
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
4891
|
-
}
|
|
4892
|
-
| {
|
|
4893
|
-
type: 'online'
|
|
4894
|
-
}
|
|
4895
|
-
| {
|
|
4896
|
-
type: 'offline'
|
|
4897
|
-
}
|
|
4898
|
-
| {
|
|
4899
|
-
type: 'loading'
|
|
4900
|
-
}
|
|
4901
|
-
| {
|
|
4902
|
-
type: 'done loading'
|
|
4903
|
-
}
|
|
4904
|
-
>
|
|
4905
|
-
}
|
|
4906
|
-
readonly 'update behaviors': {
|
|
4907
|
-
readonly actions: 'assign behaviors'
|
|
4908
|
-
}
|
|
4909
|
-
readonly 'update schema': {
|
|
4910
|
-
readonly actions: 'assign schema'
|
|
4911
|
-
}
|
|
4912
|
-
readonly 'toggle readOnly': {
|
|
4913
|
-
readonly actions: ActionFunction<
|
|
4914
|
-
{
|
|
4915
|
-
behaviors: Array<Behavior>
|
|
4916
|
-
keyGenerator: () => string
|
|
4917
|
-
pendingEvents: Array<PatchEvent | MutationEvent_2>
|
|
4918
|
-
schema: PortableTextMemberSchemaTypes
|
|
4919
|
-
readOnly: boolean
|
|
4920
|
-
maxBlocks: number | undefined
|
|
4921
|
-
},
|
|
4922
|
-
{
|
|
4923
|
-
type: 'toggle readOnly'
|
|
4924
|
-
},
|
|
4925
|
-
| {
|
|
4926
|
-
type: 'annotation.add'
|
|
4927
|
-
annotation: {
|
|
4928
|
-
name: string
|
|
4929
|
-
value: {
|
|
4930
|
-
[prop: string]: unknown
|
|
4931
|
-
}
|
|
4932
|
-
}
|
|
4933
|
-
}
|
|
4934
|
-
| {
|
|
4935
|
-
type: 'annotation.remove'
|
|
4936
|
-
annotation: {
|
|
4937
|
-
name: string
|
|
4938
|
-
}
|
|
4939
|
-
}
|
|
4940
|
-
| {
|
|
4941
|
-
type: 'annotation.toggle'
|
|
4942
|
-
annotation: {
|
|
4943
|
-
name: string
|
|
4944
|
-
value: {
|
|
4945
|
-
[prop: string]: unknown
|
|
4946
|
-
}
|
|
4947
|
-
}
|
|
4948
|
-
}
|
|
4949
|
-
| {
|
|
4950
|
-
type: 'focus'
|
|
4951
|
-
}
|
|
4952
|
-
| PatchEvent
|
|
4953
|
-
| MutationEvent_2
|
|
4954
|
-
| {
|
|
4955
|
-
type: 'normalizing'
|
|
4956
|
-
}
|
|
4957
|
-
| {
|
|
4958
|
-
type: 'done normalizing'
|
|
4959
|
-
}
|
|
4960
|
-
| {
|
|
4961
|
-
type: 'behavior event'
|
|
4962
|
-
behaviorEvent: BehaviorEvent
|
|
4963
|
-
editor: PortableTextSlateEditor
|
|
4964
|
-
}
|
|
4965
|
-
| {
|
|
4966
|
-
type: 'behavior action intends'
|
|
4967
|
-
editor: PortableTextSlateEditor
|
|
4968
|
-
actionIntends: Array<BehaviorActionIntend>
|
|
4969
|
-
}
|
|
4970
|
-
| {
|
|
4971
|
-
type: 'update schema'
|
|
4972
|
-
schema: PortableTextMemberSchemaTypes
|
|
4973
|
-
}
|
|
4974
|
-
| {
|
|
4975
|
-
type: 'update behaviors'
|
|
4976
|
-
behaviors: Array<Behavior>
|
|
4977
|
-
}
|
|
4978
4529
|
| {
|
|
4979
4530
|
type: 'toggle readOnly'
|
|
4980
4531
|
}
|
|
@@ -5017,12 +4568,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5017
4568
|
type: 'focused'
|
|
5018
4569
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5019
4570
|
}
|
|
5020
|
-
| {
|
|
5021
|
-
type: 'online'
|
|
5022
|
-
}
|
|
5023
|
-
| {
|
|
5024
|
-
type: 'offline'
|
|
5025
|
-
}
|
|
5026
4571
|
| {
|
|
5027
4572
|
type: 'loading'
|
|
5028
4573
|
}
|
|
@@ -5030,15 +4575,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5030
4575
|
type: 'done loading'
|
|
5031
4576
|
},
|
|
5032
4577
|
undefined,
|
|
5033
|
-
|
|
5034
|
-
src: 'networkLogic'
|
|
5035
|
-
logic: CallbackActorLogic<
|
|
5036
|
-
EventObject,
|
|
5037
|
-
NonReducibleUnknown,
|
|
5038
|
-
EventObject
|
|
5039
|
-
>
|
|
5040
|
-
id: string | undefined
|
|
5041
|
-
},
|
|
4578
|
+
never,
|
|
5042
4579
|
never,
|
|
5043
4580
|
never,
|
|
5044
4581
|
never,
|
|
@@ -5054,6 +4591,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5054
4591
|
schema: PortableTextMemberSchemaTypes
|
|
5055
4592
|
readOnly: boolean
|
|
5056
4593
|
maxBlocks: number | undefined
|
|
4594
|
+
value: Array<PortableTextBlock> | undefined
|
|
5057
4595
|
},
|
|
5058
4596
|
{
|
|
5059
4597
|
type: 'update maxBlocks'
|
|
@@ -5112,6 +4650,10 @@ export declare const editorMachine: StateMachine<
|
|
|
5112
4650
|
type: 'update behaviors'
|
|
5113
4651
|
behaviors: Array<Behavior>
|
|
5114
4652
|
}
|
|
4653
|
+
| {
|
|
4654
|
+
type: 'update value'
|
|
4655
|
+
value: Array<PortableTextBlock> | undefined
|
|
4656
|
+
}
|
|
5115
4657
|
| {
|
|
5116
4658
|
type: 'toggle readOnly'
|
|
5117
4659
|
}
|
|
@@ -5154,12 +4696,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5154
4696
|
type: 'focused'
|
|
5155
4697
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5156
4698
|
}
|
|
5157
|
-
| {
|
|
5158
|
-
type: 'online'
|
|
5159
|
-
}
|
|
5160
|
-
| {
|
|
5161
|
-
type: 'offline'
|
|
5162
|
-
}
|
|
5163
4699
|
| {
|
|
5164
4700
|
type: 'loading'
|
|
5165
4701
|
}
|
|
@@ -5167,15 +4703,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5167
4703
|
type: 'done loading'
|
|
5168
4704
|
},
|
|
5169
4705
|
undefined,
|
|
5170
|
-
|
|
5171
|
-
src: 'networkLogic'
|
|
5172
|
-
logic: CallbackActorLogic<
|
|
5173
|
-
EventObject,
|
|
5174
|
-
NonReducibleUnknown,
|
|
5175
|
-
EventObject
|
|
5176
|
-
>
|
|
5177
|
-
id: string | undefined
|
|
5178
|
-
},
|
|
4706
|
+
never,
|
|
5179
4707
|
never,
|
|
5180
4708
|
never,
|
|
5181
4709
|
never,
|
|
@@ -5194,6 +4722,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5194
4722
|
schema: PortableTextMemberSchemaTypes
|
|
5195
4723
|
readOnly: boolean
|
|
5196
4724
|
maxBlocks: number | undefined
|
|
4725
|
+
value: Array<PortableTextBlock> | undefined
|
|
5197
4726
|
},
|
|
5198
4727
|
{
|
|
5199
4728
|
type: 'behavior event'
|
|
@@ -5215,6 +4744,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5215
4744
|
schema: PortableTextMemberSchemaTypes
|
|
5216
4745
|
readOnly: boolean
|
|
5217
4746
|
maxBlocks: number | undefined
|
|
4747
|
+
value: Array<PortableTextBlock> | undefined
|
|
5218
4748
|
},
|
|
5219
4749
|
{
|
|
5220
4750
|
type: 'behavior action intends'
|
|
@@ -5274,6 +4804,10 @@ export declare const editorMachine: StateMachine<
|
|
|
5274
4804
|
type: 'update behaviors'
|
|
5275
4805
|
behaviors: Array<Behavior>
|
|
5276
4806
|
}
|
|
4807
|
+
| {
|
|
4808
|
+
type: 'update value'
|
|
4809
|
+
value: Array<PortableTextBlock> | undefined
|
|
4810
|
+
}
|
|
5277
4811
|
| {
|
|
5278
4812
|
type: 'toggle readOnly'
|
|
5279
4813
|
}
|
|
@@ -5316,12 +4850,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5316
4850
|
type: 'focused'
|
|
5317
4851
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5318
4852
|
}
|
|
5319
|
-
| {
|
|
5320
|
-
type: 'online'
|
|
5321
|
-
}
|
|
5322
|
-
| {
|
|
5323
|
-
type: 'offline'
|
|
5324
|
-
}
|
|
5325
4853
|
| {
|
|
5326
4854
|
type: 'loading'
|
|
5327
4855
|
}
|
|
@@ -5337,6 +4865,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5337
4865
|
schema: PortableTextMemberSchemaTypes
|
|
5338
4866
|
readOnly: boolean
|
|
5339
4867
|
maxBlocks: number | undefined
|
|
4868
|
+
value: Array<PortableTextBlock> | undefined
|
|
5340
4869
|
},
|
|
5341
4870
|
{
|
|
5342
4871
|
type: 'behavior action intends'
|
|
@@ -5396,6 +4925,10 @@ export declare const editorMachine: StateMachine<
|
|
|
5396
4925
|
type: 'update behaviors'
|
|
5397
4926
|
behaviors: Array<Behavior>
|
|
5398
4927
|
}
|
|
4928
|
+
| {
|
|
4929
|
+
type: 'update value'
|
|
4930
|
+
value: Array<PortableTextBlock> | undefined
|
|
4931
|
+
}
|
|
5399
4932
|
| {
|
|
5400
4933
|
type: 'toggle readOnly'
|
|
5401
4934
|
}
|
|
@@ -5438,12 +4971,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5438
4971
|
type: 'focused'
|
|
5439
4972
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5440
4973
|
}
|
|
5441
|
-
| {
|
|
5442
|
-
type: 'online'
|
|
5443
|
-
}
|
|
5444
|
-
| {
|
|
5445
|
-
type: 'offline'
|
|
5446
|
-
}
|
|
5447
4974
|
| {
|
|
5448
4975
|
type: 'loading'
|
|
5449
4976
|
}
|
|
@@ -5451,15 +4978,7 @@ export declare const editorMachine: StateMachine<
|
|
|
5451
4978
|
type: 'done loading'
|
|
5452
4979
|
},
|
|
5453
4980
|
undefined,
|
|
5454
|
-
|
|
5455
|
-
src: 'networkLogic'
|
|
5456
|
-
logic: CallbackActorLogic<
|
|
5457
|
-
EventObject,
|
|
5458
|
-
NonReducibleUnknown,
|
|
5459
|
-
EventObject
|
|
5460
|
-
>
|
|
5461
|
-
id: string | undefined
|
|
5462
|
-
},
|
|
4981
|
+
never,
|
|
5463
4982
|
Values<{
|
|
5464
4983
|
'assign behaviors': {
|
|
5465
4984
|
type: 'assign behaviors'
|
|
@@ -5560,12 +5079,6 @@ export declare const editorMachine: StateMachine<
|
|
|
5560
5079
|
type: 'focused'
|
|
5561
5080
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5562
5081
|
}
|
|
5563
|
-
| {
|
|
5564
|
-
type: 'online'
|
|
5565
|
-
}
|
|
5566
|
-
| {
|
|
5567
|
-
type: 'offline'
|
|
5568
|
-
}
|
|
5569
5082
|
| {
|
|
5570
5083
|
type: 'loading'
|
|
5571
5084
|
}
|
|
@@ -5729,12 +5242,6 @@ export declare type InternalEditorEmittedEvent =
|
|
|
5729
5242
|
type: 'focused'
|
|
5730
5243
|
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5731
5244
|
}
|
|
5732
|
-
| {
|
|
5733
|
-
type: 'online'
|
|
5734
|
-
}
|
|
5735
|
-
| {
|
|
5736
|
-
type: 'offline'
|
|
5737
|
-
}
|
|
5738
5245
|
| {
|
|
5739
5246
|
type: 'loading'
|
|
5740
5247
|
}
|
|
@@ -5775,6 +5282,10 @@ export declare type InternalEditorEvent =
|
|
|
5775
5282
|
type: 'update behaviors'
|
|
5776
5283
|
behaviors: Array<Behavior>
|
|
5777
5284
|
}
|
|
5285
|
+
| {
|
|
5286
|
+
type: 'update value'
|
|
5287
|
+
value: Array<PortableTextBlock> | undefined
|
|
5288
|
+
}
|
|
5778
5289
|
| {
|
|
5779
5290
|
type: 'toggle readOnly'
|
|
5780
5291
|
}
|
|
@@ -6177,7 +5688,7 @@ export declare class PortableTextEditor extends Component<
|
|
|
6177
5688
|
export declare type PortableTextEditorProps<
|
|
6178
5689
|
TEditor extends Editor | undefined = undefined,
|
|
6179
5690
|
> = PropsWithChildren<
|
|
6180
|
-
|
|
5691
|
+
TEditor extends Editor
|
|
6181
5692
|
? {
|
|
6182
5693
|
/**
|
|
6183
5694
|
* @alpha
|
|
@@ -6214,16 +5725,15 @@ export declare type PortableTextEditorProps<
|
|
|
6214
5725
|
* Whether or not the editor should be in read-only mode
|
|
6215
5726
|
*/
|
|
6216
5727
|
readOnly?: boolean
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
}
|
|
5728
|
+
/**
|
|
5729
|
+
* The current value of the portable text field
|
|
5730
|
+
*/
|
|
5731
|
+
value?: PortableTextBlock[]
|
|
5732
|
+
/**
|
|
5733
|
+
* A ref to the editor instance
|
|
5734
|
+
*/
|
|
5735
|
+
editorRef?: MutableRefObject<PortableTextEditor | null>
|
|
5736
|
+
}
|
|
6227
5737
|
>
|
|
6228
5738
|
|
|
6229
5739
|
/** @internal */
|