@portabletext/editor 1.48.14 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-cjs/editor-provider.cjs +117 -34
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/util.slice-blocks.cjs +2 -0
- package/lib/_chunks-cjs/util.slice-blocks.cjs.map +1 -1
- package/lib/_chunks-es/editor-provider.js +117 -34
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/util.slice-blocks.js +2 -0
- package/lib/_chunks-es/util.slice-blocks.js.map +1 -1
- package/lib/behaviors/index.d.cts +222 -208
- package/lib/behaviors/index.d.ts +222 -208
- package/lib/index.cjs +346 -257
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +222 -216
- package/lib/index.d.ts +222 -216
- package/lib/index.js +353 -264
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.d.cts +222 -216
- package/lib/plugins/index.d.ts +222 -216
- package/lib/selectors/index.d.cts +222 -208
- package/lib/selectors/index.d.ts +222 -208
- package/lib/utils/index.d.cts +222 -208
- package/lib/utils/index.d.ts +222 -208
- package/package.json +1 -1
- package/src/behaviors/behavior.config.ts +7 -0
- package/src/behaviors/behavior.core.block-element.ts +108 -0
- package/src/behaviors/behavior.core.ts +6 -2
- package/src/converters/converter.portable-text.ts +4 -1
- package/src/converters/converter.text-html.ts +4 -1
- package/src/converters/converter.text-plain.ts +4 -1
- package/src/editor/Editable.tsx +2 -4
- package/src/editor/__tests__/PortableTextEditor.test.tsx +6 -0
- package/src/editor/components/Leaf.tsx +8 -1
- package/src/editor/components/render-block-object.tsx +90 -0
- package/src/editor/components/render-default-object.tsx +21 -0
- package/src/editor/components/render-element.tsx +140 -0
- package/src/editor/components/render-inline-object.tsx +93 -0
- package/src/editor/components/render-text-block.tsx +148 -0
- package/src/editor/components/use-core-block-element-behaviors.ts +39 -0
- package/src/editor/create-editor.ts +17 -5
- package/src/editor/editor-machine.ts +21 -18
- package/src/internal-utils/parse-blocks.ts +2 -2
- package/src/internal-utils/slate-utils.ts +1 -1
- package/src/priority/priority.core.ts +3 -0
- package/src/priority/priority.sort.test.ts +319 -0
- package/src/priority/priority.sort.ts +121 -0
- package/src/priority/priority.types.ts +24 -0
- package/src/editor/components/DefaultObject.tsx +0 -21
- package/src/editor/components/Element.tsx +0 -435
|
@@ -284,6 +284,11 @@ declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
|
284
284
|
guardResponse: TGuardResponse,
|
|
285
285
|
) => Array<BehaviorAction>
|
|
286
286
|
|
|
287
|
+
declare type BehaviorConfig = {
|
|
288
|
+
behavior: Behavior
|
|
289
|
+
priority: EditorPriority
|
|
290
|
+
}
|
|
291
|
+
|
|
287
292
|
/**
|
|
288
293
|
* @beta
|
|
289
294
|
*/
|
|
@@ -574,7 +579,7 @@ declare type EditorContext = {
|
|
|
574
579
|
*/
|
|
575
580
|
declare const editorMachine: StateMachine<
|
|
576
581
|
{
|
|
577
|
-
behaviors: Set<
|
|
582
|
+
behaviors: Set<BehaviorConfig>
|
|
578
583
|
converters: Set<Converter>
|
|
579
584
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
580
585
|
keyGenerator: () => string
|
|
@@ -594,14 +599,6 @@ declare const editorMachine: StateMachine<
|
|
|
594
599
|
| InternalPatchEvent
|
|
595
600
|
| MutationEvent
|
|
596
601
|
| PatchesEvent
|
|
597
|
-
| {
|
|
598
|
-
type: 'add behavior'
|
|
599
|
-
behavior: Behavior
|
|
600
|
-
}
|
|
601
|
-
| {
|
|
602
|
-
type: 'remove behavior'
|
|
603
|
-
behavior: Behavior
|
|
604
|
-
}
|
|
605
602
|
| {
|
|
606
603
|
type: 'update readOnly'
|
|
607
604
|
readOnly: boolean
|
|
@@ -622,6 +619,14 @@ declare const editorMachine: StateMachine<
|
|
|
622
619
|
type: 'update maxBlocks'
|
|
623
620
|
maxBlocks: number | undefined
|
|
624
621
|
}
|
|
622
|
+
| {
|
|
623
|
+
type: 'add behavior'
|
|
624
|
+
behaviorConfig: BehaviorConfig
|
|
625
|
+
}
|
|
626
|
+
| {
|
|
627
|
+
type: 'remove behavior'
|
|
628
|
+
behaviorConfig: BehaviorConfig
|
|
629
|
+
}
|
|
625
630
|
| {
|
|
626
631
|
type: 'blur'
|
|
627
632
|
editor: PortableTextSlateEditor
|
|
@@ -918,7 +923,7 @@ declare const editorMachine: StateMachine<
|
|
|
918
923
|
self: ActorRef<
|
|
919
924
|
MachineSnapshot<
|
|
920
925
|
{
|
|
921
|
-
behaviors: Set<
|
|
926
|
+
behaviors: Set<BehaviorConfig>
|
|
922
927
|
converters: Set<Converter>
|
|
923
928
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
924
929
|
keyGenerator: () => string
|
|
@@ -938,14 +943,6 @@ declare const editorMachine: StateMachine<
|
|
|
938
943
|
| InternalPatchEvent
|
|
939
944
|
| MutationEvent
|
|
940
945
|
| PatchesEvent
|
|
941
|
-
| {
|
|
942
|
-
type: 'add behavior'
|
|
943
|
-
behavior: Behavior
|
|
944
|
-
}
|
|
945
|
-
| {
|
|
946
|
-
type: 'remove behavior'
|
|
947
|
-
behavior: Behavior
|
|
948
|
-
}
|
|
949
946
|
| {
|
|
950
947
|
type: 'update readOnly'
|
|
951
948
|
readOnly: boolean
|
|
@@ -966,6 +963,14 @@ declare const editorMachine: StateMachine<
|
|
|
966
963
|
type: 'update maxBlocks'
|
|
967
964
|
maxBlocks: number | undefined
|
|
968
965
|
}
|
|
966
|
+
| {
|
|
967
|
+
type: 'add behavior'
|
|
968
|
+
behaviorConfig: BehaviorConfig
|
|
969
|
+
}
|
|
970
|
+
| {
|
|
971
|
+
type: 'remove behavior'
|
|
972
|
+
behaviorConfig: BehaviorConfig
|
|
973
|
+
}
|
|
969
974
|
| {
|
|
970
975
|
type: 'blur'
|
|
971
976
|
editor: PortableTextSlateEditor
|
|
@@ -1071,14 +1076,6 @@ declare const editorMachine: StateMachine<
|
|
|
1071
1076
|
| InternalPatchEvent
|
|
1072
1077
|
| MutationEvent
|
|
1073
1078
|
| PatchesEvent
|
|
1074
|
-
| {
|
|
1075
|
-
type: 'add behavior'
|
|
1076
|
-
behavior: Behavior
|
|
1077
|
-
}
|
|
1078
|
-
| {
|
|
1079
|
-
type: 'remove behavior'
|
|
1080
|
-
behavior: Behavior
|
|
1081
|
-
}
|
|
1082
1079
|
| {
|
|
1083
1080
|
type: 'update readOnly'
|
|
1084
1081
|
readOnly: boolean
|
|
@@ -1099,6 +1096,14 @@ declare const editorMachine: StateMachine<
|
|
|
1099
1096
|
type: 'update maxBlocks'
|
|
1100
1097
|
maxBlocks: number | undefined
|
|
1101
1098
|
}
|
|
1099
|
+
| {
|
|
1100
|
+
type: 'add behavior'
|
|
1101
|
+
behaviorConfig: BehaviorConfig
|
|
1102
|
+
}
|
|
1103
|
+
| {
|
|
1104
|
+
type: 'remove behavior'
|
|
1105
|
+
behaviorConfig: BehaviorConfig
|
|
1106
|
+
}
|
|
1102
1107
|
| {
|
|
1103
1108
|
type: 'blur'
|
|
1104
1109
|
editor: PortableTextSlateEditor
|
|
@@ -1213,7 +1218,7 @@ declare const editorMachine: StateMachine<
|
|
|
1213
1218
|
readonly 'notify.blurred': {
|
|
1214
1219
|
readonly actions: ActionFunction<
|
|
1215
1220
|
{
|
|
1216
|
-
behaviors: Set<
|
|
1221
|
+
behaviors: Set<BehaviorConfig>
|
|
1217
1222
|
converters: Set<Converter>
|
|
1218
1223
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1219
1224
|
keyGenerator: () => string
|
|
@@ -1237,14 +1242,6 @@ declare const editorMachine: StateMachine<
|
|
|
1237
1242
|
| InternalPatchEvent
|
|
1238
1243
|
| MutationEvent
|
|
1239
1244
|
| PatchesEvent
|
|
1240
|
-
| {
|
|
1241
|
-
type: 'add behavior'
|
|
1242
|
-
behavior: Behavior
|
|
1243
|
-
}
|
|
1244
|
-
| {
|
|
1245
|
-
type: 'remove behavior'
|
|
1246
|
-
behavior: Behavior
|
|
1247
|
-
}
|
|
1248
1245
|
| {
|
|
1249
1246
|
type: 'update readOnly'
|
|
1250
1247
|
readOnly: boolean
|
|
@@ -1265,6 +1262,14 @@ declare const editorMachine: StateMachine<
|
|
|
1265
1262
|
type: 'update maxBlocks'
|
|
1266
1263
|
maxBlocks: number | undefined
|
|
1267
1264
|
}
|
|
1265
|
+
| {
|
|
1266
|
+
type: 'add behavior'
|
|
1267
|
+
behaviorConfig: BehaviorConfig
|
|
1268
|
+
}
|
|
1269
|
+
| {
|
|
1270
|
+
type: 'remove behavior'
|
|
1271
|
+
behaviorConfig: BehaviorConfig
|
|
1272
|
+
}
|
|
1268
1273
|
| {
|
|
1269
1274
|
type: 'blur'
|
|
1270
1275
|
editor: PortableTextSlateEditor
|
|
@@ -1417,7 +1422,7 @@ declare const editorMachine: StateMachine<
|
|
|
1417
1422
|
readonly 'notify.done loading': {
|
|
1418
1423
|
readonly actions: ActionFunction<
|
|
1419
1424
|
{
|
|
1420
|
-
behaviors: Set<
|
|
1425
|
+
behaviors: Set<BehaviorConfig>
|
|
1421
1426
|
converters: Set<Converter>
|
|
1422
1427
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1423
1428
|
keyGenerator: () => string
|
|
@@ -1440,14 +1445,6 @@ declare const editorMachine: StateMachine<
|
|
|
1440
1445
|
| InternalPatchEvent
|
|
1441
1446
|
| MutationEvent
|
|
1442
1447
|
| PatchesEvent
|
|
1443
|
-
| {
|
|
1444
|
-
type: 'add behavior'
|
|
1445
|
-
behavior: Behavior
|
|
1446
|
-
}
|
|
1447
|
-
| {
|
|
1448
|
-
type: 'remove behavior'
|
|
1449
|
-
behavior: Behavior
|
|
1450
|
-
}
|
|
1451
1448
|
| {
|
|
1452
1449
|
type: 'update readOnly'
|
|
1453
1450
|
readOnly: boolean
|
|
@@ -1468,6 +1465,14 @@ declare const editorMachine: StateMachine<
|
|
|
1468
1465
|
type: 'update maxBlocks'
|
|
1469
1466
|
maxBlocks: number | undefined
|
|
1470
1467
|
}
|
|
1468
|
+
| {
|
|
1469
|
+
type: 'add behavior'
|
|
1470
|
+
behaviorConfig: BehaviorConfig
|
|
1471
|
+
}
|
|
1472
|
+
| {
|
|
1473
|
+
type: 'remove behavior'
|
|
1474
|
+
behaviorConfig: BehaviorConfig
|
|
1475
|
+
}
|
|
1471
1476
|
| {
|
|
1472
1477
|
type: 'blur'
|
|
1473
1478
|
editor: PortableTextSlateEditor
|
|
@@ -1620,7 +1625,7 @@ declare const editorMachine: StateMachine<
|
|
|
1620
1625
|
readonly 'notify.error': {
|
|
1621
1626
|
readonly actions: ActionFunction<
|
|
1622
1627
|
{
|
|
1623
|
-
behaviors: Set<
|
|
1628
|
+
behaviors: Set<BehaviorConfig>
|
|
1624
1629
|
converters: Set<Converter>
|
|
1625
1630
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1626
1631
|
keyGenerator: () => string
|
|
@@ -1646,14 +1651,6 @@ declare const editorMachine: StateMachine<
|
|
|
1646
1651
|
| InternalPatchEvent
|
|
1647
1652
|
| MutationEvent
|
|
1648
1653
|
| PatchesEvent
|
|
1649
|
-
| {
|
|
1650
|
-
type: 'add behavior'
|
|
1651
|
-
behavior: Behavior
|
|
1652
|
-
}
|
|
1653
|
-
| {
|
|
1654
|
-
type: 'remove behavior'
|
|
1655
|
-
behavior: Behavior
|
|
1656
|
-
}
|
|
1657
1654
|
| {
|
|
1658
1655
|
type: 'update readOnly'
|
|
1659
1656
|
readOnly: boolean
|
|
@@ -1674,6 +1671,14 @@ declare const editorMachine: StateMachine<
|
|
|
1674
1671
|
type: 'update maxBlocks'
|
|
1675
1672
|
maxBlocks: number | undefined
|
|
1676
1673
|
}
|
|
1674
|
+
| {
|
|
1675
|
+
type: 'add behavior'
|
|
1676
|
+
behaviorConfig: BehaviorConfig
|
|
1677
|
+
}
|
|
1678
|
+
| {
|
|
1679
|
+
type: 'remove behavior'
|
|
1680
|
+
behaviorConfig: BehaviorConfig
|
|
1681
|
+
}
|
|
1677
1682
|
| {
|
|
1678
1683
|
type: 'blur'
|
|
1679
1684
|
editor: PortableTextSlateEditor
|
|
@@ -1826,7 +1831,7 @@ declare const editorMachine: StateMachine<
|
|
|
1826
1831
|
readonly 'notify.invalid value': {
|
|
1827
1832
|
readonly actions: ActionFunction<
|
|
1828
1833
|
{
|
|
1829
|
-
behaviors: Set<
|
|
1834
|
+
behaviors: Set<BehaviorConfig>
|
|
1830
1835
|
converters: Set<Converter>
|
|
1831
1836
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1832
1837
|
keyGenerator: () => string
|
|
@@ -1851,14 +1856,6 @@ declare const editorMachine: StateMachine<
|
|
|
1851
1856
|
| InternalPatchEvent
|
|
1852
1857
|
| MutationEvent
|
|
1853
1858
|
| PatchesEvent
|
|
1854
|
-
| {
|
|
1855
|
-
type: 'add behavior'
|
|
1856
|
-
behavior: Behavior
|
|
1857
|
-
}
|
|
1858
|
-
| {
|
|
1859
|
-
type: 'remove behavior'
|
|
1860
|
-
behavior: Behavior
|
|
1861
|
-
}
|
|
1862
1859
|
| {
|
|
1863
1860
|
type: 'update readOnly'
|
|
1864
1861
|
readOnly: boolean
|
|
@@ -1879,6 +1876,14 @@ declare const editorMachine: StateMachine<
|
|
|
1879
1876
|
type: 'update maxBlocks'
|
|
1880
1877
|
maxBlocks: number | undefined
|
|
1881
1878
|
}
|
|
1879
|
+
| {
|
|
1880
|
+
type: 'add behavior'
|
|
1881
|
+
behaviorConfig: BehaviorConfig
|
|
1882
|
+
}
|
|
1883
|
+
| {
|
|
1884
|
+
type: 'remove behavior'
|
|
1885
|
+
behaviorConfig: BehaviorConfig
|
|
1886
|
+
}
|
|
1882
1887
|
| {
|
|
1883
1888
|
type: 'blur'
|
|
1884
1889
|
editor: PortableTextSlateEditor
|
|
@@ -2031,7 +2036,7 @@ declare const editorMachine: StateMachine<
|
|
|
2031
2036
|
readonly 'notify.focused': {
|
|
2032
2037
|
readonly actions: ActionFunction<
|
|
2033
2038
|
{
|
|
2034
|
-
behaviors: Set<
|
|
2039
|
+
behaviors: Set<BehaviorConfig>
|
|
2035
2040
|
converters: Set<Converter>
|
|
2036
2041
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2037
2042
|
keyGenerator: () => string
|
|
@@ -2055,14 +2060,6 @@ declare const editorMachine: StateMachine<
|
|
|
2055
2060
|
| InternalPatchEvent
|
|
2056
2061
|
| MutationEvent
|
|
2057
2062
|
| PatchesEvent
|
|
2058
|
-
| {
|
|
2059
|
-
type: 'add behavior'
|
|
2060
|
-
behavior: Behavior
|
|
2061
|
-
}
|
|
2062
|
-
| {
|
|
2063
|
-
type: 'remove behavior'
|
|
2064
|
-
behavior: Behavior
|
|
2065
|
-
}
|
|
2066
2063
|
| {
|
|
2067
2064
|
type: 'update readOnly'
|
|
2068
2065
|
readOnly: boolean
|
|
@@ -2083,6 +2080,14 @@ declare const editorMachine: StateMachine<
|
|
|
2083
2080
|
type: 'update maxBlocks'
|
|
2084
2081
|
maxBlocks: number | undefined
|
|
2085
2082
|
}
|
|
2083
|
+
| {
|
|
2084
|
+
type: 'add behavior'
|
|
2085
|
+
behaviorConfig: BehaviorConfig
|
|
2086
|
+
}
|
|
2087
|
+
| {
|
|
2088
|
+
type: 'remove behavior'
|
|
2089
|
+
behaviorConfig: BehaviorConfig
|
|
2090
|
+
}
|
|
2086
2091
|
| {
|
|
2087
2092
|
type: 'blur'
|
|
2088
2093
|
editor: PortableTextSlateEditor
|
|
@@ -2236,7 +2241,7 @@ declare const editorMachine: StateMachine<
|
|
|
2236
2241
|
readonly actions: readonly [
|
|
2237
2242
|
ActionFunction<
|
|
2238
2243
|
{
|
|
2239
|
-
behaviors: Set<
|
|
2244
|
+
behaviors: Set<BehaviorConfig>
|
|
2240
2245
|
converters: Set<Converter>
|
|
2241
2246
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2242
2247
|
keyGenerator: () => string
|
|
@@ -2260,14 +2265,6 @@ declare const editorMachine: StateMachine<
|
|
|
2260
2265
|
| InternalPatchEvent
|
|
2261
2266
|
| MutationEvent
|
|
2262
2267
|
| PatchesEvent
|
|
2263
|
-
| {
|
|
2264
|
-
type: 'add behavior'
|
|
2265
|
-
behavior: Behavior
|
|
2266
|
-
}
|
|
2267
|
-
| {
|
|
2268
|
-
type: 'remove behavior'
|
|
2269
|
-
behavior: Behavior
|
|
2270
|
-
}
|
|
2271
2268
|
| {
|
|
2272
2269
|
type: 'update readOnly'
|
|
2273
2270
|
readOnly: boolean
|
|
@@ -2288,6 +2285,14 @@ declare const editorMachine: StateMachine<
|
|
|
2288
2285
|
type: 'update maxBlocks'
|
|
2289
2286
|
maxBlocks: number | undefined
|
|
2290
2287
|
}
|
|
2288
|
+
| {
|
|
2289
|
+
type: 'add behavior'
|
|
2290
|
+
behaviorConfig: BehaviorConfig
|
|
2291
|
+
}
|
|
2292
|
+
| {
|
|
2293
|
+
type: 'remove behavior'
|
|
2294
|
+
behaviorConfig: BehaviorConfig
|
|
2295
|
+
}
|
|
2291
2296
|
| {
|
|
2292
2297
|
type: 'blur'
|
|
2293
2298
|
editor: PortableTextSlateEditor
|
|
@@ -2392,7 +2397,7 @@ declare const editorMachine: StateMachine<
|
|
|
2392
2397
|
>,
|
|
2393
2398
|
ActionFunction<
|
|
2394
2399
|
{
|
|
2395
|
-
behaviors: Set<
|
|
2400
|
+
behaviors: Set<BehaviorConfig>
|
|
2396
2401
|
converters: Set<Converter>
|
|
2397
2402
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2398
2403
|
keyGenerator: () => string
|
|
@@ -2416,14 +2421,6 @@ declare const editorMachine: StateMachine<
|
|
|
2416
2421
|
| InternalPatchEvent
|
|
2417
2422
|
| MutationEvent
|
|
2418
2423
|
| PatchesEvent
|
|
2419
|
-
| {
|
|
2420
|
-
type: 'add behavior'
|
|
2421
|
-
behavior: Behavior
|
|
2422
|
-
}
|
|
2423
|
-
| {
|
|
2424
|
-
type: 'remove behavior'
|
|
2425
|
-
behavior: Behavior
|
|
2426
|
-
}
|
|
2427
2424
|
| {
|
|
2428
2425
|
type: 'update readOnly'
|
|
2429
2426
|
readOnly: boolean
|
|
@@ -2444,6 +2441,14 @@ declare const editorMachine: StateMachine<
|
|
|
2444
2441
|
type: 'update maxBlocks'
|
|
2445
2442
|
maxBlocks: number | undefined
|
|
2446
2443
|
}
|
|
2444
|
+
| {
|
|
2445
|
+
type: 'add behavior'
|
|
2446
|
+
behaviorConfig: BehaviorConfig
|
|
2447
|
+
}
|
|
2448
|
+
| {
|
|
2449
|
+
type: 'remove behavior'
|
|
2450
|
+
behaviorConfig: BehaviorConfig
|
|
2451
|
+
}
|
|
2447
2452
|
| {
|
|
2448
2453
|
type: 'blur'
|
|
2449
2454
|
editor: PortableTextSlateEditor
|
|
@@ -2597,7 +2602,7 @@ declare const editorMachine: StateMachine<
|
|
|
2597
2602
|
readonly 'notify.unset': {
|
|
2598
2603
|
readonly actions: ActionFunction<
|
|
2599
2604
|
{
|
|
2600
|
-
behaviors: Set<
|
|
2605
|
+
behaviors: Set<BehaviorConfig>
|
|
2601
2606
|
converters: Set<Converter>
|
|
2602
2607
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2603
2608
|
keyGenerator: () => string
|
|
@@ -2621,14 +2626,6 @@ declare const editorMachine: StateMachine<
|
|
|
2621
2626
|
| InternalPatchEvent
|
|
2622
2627
|
| MutationEvent
|
|
2623
2628
|
| PatchesEvent
|
|
2624
|
-
| {
|
|
2625
|
-
type: 'add behavior'
|
|
2626
|
-
behavior: Behavior
|
|
2627
|
-
}
|
|
2628
|
-
| {
|
|
2629
|
-
type: 'remove behavior'
|
|
2630
|
-
behavior: Behavior
|
|
2631
|
-
}
|
|
2632
2629
|
| {
|
|
2633
2630
|
type: 'update readOnly'
|
|
2634
2631
|
readOnly: boolean
|
|
@@ -2649,6 +2646,14 @@ declare const editorMachine: StateMachine<
|
|
|
2649
2646
|
type: 'update maxBlocks'
|
|
2650
2647
|
maxBlocks: number | undefined
|
|
2651
2648
|
}
|
|
2649
|
+
| {
|
|
2650
|
+
type: 'add behavior'
|
|
2651
|
+
behaviorConfig: BehaviorConfig
|
|
2652
|
+
}
|
|
2653
|
+
| {
|
|
2654
|
+
type: 'remove behavior'
|
|
2655
|
+
behaviorConfig: BehaviorConfig
|
|
2656
|
+
}
|
|
2652
2657
|
| {
|
|
2653
2658
|
type: 'blur'
|
|
2654
2659
|
editor: PortableTextSlateEditor
|
|
@@ -2801,7 +2806,7 @@ declare const editorMachine: StateMachine<
|
|
|
2801
2806
|
readonly 'notify.loading': {
|
|
2802
2807
|
readonly actions: ActionFunction<
|
|
2803
2808
|
{
|
|
2804
|
-
behaviors: Set<
|
|
2809
|
+
behaviors: Set<BehaviorConfig>
|
|
2805
2810
|
converters: Set<Converter>
|
|
2806
2811
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2807
2812
|
keyGenerator: () => string
|
|
@@ -2824,14 +2829,6 @@ declare const editorMachine: StateMachine<
|
|
|
2824
2829
|
| InternalPatchEvent
|
|
2825
2830
|
| MutationEvent
|
|
2826
2831
|
| PatchesEvent
|
|
2827
|
-
| {
|
|
2828
|
-
type: 'add behavior'
|
|
2829
|
-
behavior: Behavior
|
|
2830
|
-
}
|
|
2831
|
-
| {
|
|
2832
|
-
type: 'remove behavior'
|
|
2833
|
-
behavior: Behavior
|
|
2834
|
-
}
|
|
2835
2832
|
| {
|
|
2836
2833
|
type: 'update readOnly'
|
|
2837
2834
|
readOnly: boolean
|
|
@@ -2852,6 +2849,14 @@ declare const editorMachine: StateMachine<
|
|
|
2852
2849
|
type: 'update maxBlocks'
|
|
2853
2850
|
maxBlocks: number | undefined
|
|
2854
2851
|
}
|
|
2852
|
+
| {
|
|
2853
|
+
type: 'add behavior'
|
|
2854
|
+
behaviorConfig: BehaviorConfig
|
|
2855
|
+
}
|
|
2856
|
+
| {
|
|
2857
|
+
type: 'remove behavior'
|
|
2858
|
+
behaviorConfig: BehaviorConfig
|
|
2859
|
+
}
|
|
2855
2860
|
| {
|
|
2856
2861
|
type: 'blur'
|
|
2857
2862
|
editor: PortableTextSlateEditor
|
|
@@ -3004,7 +3009,7 @@ declare const editorMachine: StateMachine<
|
|
|
3004
3009
|
readonly 'notify.value changed': {
|
|
3005
3010
|
readonly actions: ActionFunction<
|
|
3006
3011
|
{
|
|
3007
|
-
behaviors: Set<
|
|
3012
|
+
behaviors: Set<BehaviorConfig>
|
|
3008
3013
|
converters: Set<Converter>
|
|
3009
3014
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3010
3015
|
keyGenerator: () => string
|
|
@@ -3028,14 +3033,6 @@ declare const editorMachine: StateMachine<
|
|
|
3028
3033
|
| InternalPatchEvent
|
|
3029
3034
|
| MutationEvent
|
|
3030
3035
|
| PatchesEvent
|
|
3031
|
-
| {
|
|
3032
|
-
type: 'add behavior'
|
|
3033
|
-
behavior: Behavior
|
|
3034
|
-
}
|
|
3035
|
-
| {
|
|
3036
|
-
type: 'remove behavior'
|
|
3037
|
-
behavior: Behavior
|
|
3038
|
-
}
|
|
3039
3036
|
| {
|
|
3040
3037
|
type: 'update readOnly'
|
|
3041
3038
|
readOnly: boolean
|
|
@@ -3056,6 +3053,14 @@ declare const editorMachine: StateMachine<
|
|
|
3056
3053
|
type: 'update maxBlocks'
|
|
3057
3054
|
maxBlocks: number | undefined
|
|
3058
3055
|
}
|
|
3056
|
+
| {
|
|
3057
|
+
type: 'add behavior'
|
|
3058
|
+
behaviorConfig: BehaviorConfig
|
|
3059
|
+
}
|
|
3060
|
+
| {
|
|
3061
|
+
type: 'remove behavior'
|
|
3062
|
+
behaviorConfig: BehaviorConfig
|
|
3063
|
+
}
|
|
3059
3064
|
| {
|
|
3060
3065
|
type: 'blur'
|
|
3061
3066
|
editor: PortableTextSlateEditor
|
|
@@ -3214,7 +3219,7 @@ declare const editorMachine: StateMachine<
|
|
|
3214
3219
|
readonly 'update key generator': {
|
|
3215
3220
|
readonly actions: ActionFunction<
|
|
3216
3221
|
{
|
|
3217
|
-
behaviors: Set<
|
|
3222
|
+
behaviors: Set<BehaviorConfig>
|
|
3218
3223
|
converters: Set<Converter>
|
|
3219
3224
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3220
3225
|
keyGenerator: () => string
|
|
@@ -3238,14 +3243,6 @@ declare const editorMachine: StateMachine<
|
|
|
3238
3243
|
| InternalPatchEvent
|
|
3239
3244
|
| MutationEvent
|
|
3240
3245
|
| PatchesEvent
|
|
3241
|
-
| {
|
|
3242
|
-
type: 'add behavior'
|
|
3243
|
-
behavior: Behavior
|
|
3244
|
-
}
|
|
3245
|
-
| {
|
|
3246
|
-
type: 'remove behavior'
|
|
3247
|
-
behavior: Behavior
|
|
3248
|
-
}
|
|
3249
3246
|
| {
|
|
3250
3247
|
type: 'update readOnly'
|
|
3251
3248
|
readOnly: boolean
|
|
@@ -3266,6 +3263,14 @@ declare const editorMachine: StateMachine<
|
|
|
3266
3263
|
type: 'update maxBlocks'
|
|
3267
3264
|
maxBlocks: number | undefined
|
|
3268
3265
|
}
|
|
3266
|
+
| {
|
|
3267
|
+
type: 'add behavior'
|
|
3268
|
+
behaviorConfig: BehaviorConfig
|
|
3269
|
+
}
|
|
3270
|
+
| {
|
|
3271
|
+
type: 'remove behavior'
|
|
3272
|
+
behaviorConfig: BehaviorConfig
|
|
3273
|
+
}
|
|
3269
3274
|
| {
|
|
3270
3275
|
type: 'blur'
|
|
3271
3276
|
editor: PortableTextSlateEditor
|
|
@@ -3375,7 +3380,7 @@ declare const editorMachine: StateMachine<
|
|
|
3375
3380
|
readonly 'update value': {
|
|
3376
3381
|
readonly actions: ActionFunction<
|
|
3377
3382
|
{
|
|
3378
|
-
behaviors: Set<
|
|
3383
|
+
behaviors: Set<BehaviorConfig>
|
|
3379
3384
|
converters: Set<Converter>
|
|
3380
3385
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3381
3386
|
keyGenerator: () => string
|
|
@@ -3399,14 +3404,6 @@ declare const editorMachine: StateMachine<
|
|
|
3399
3404
|
| InternalPatchEvent
|
|
3400
3405
|
| MutationEvent
|
|
3401
3406
|
| PatchesEvent
|
|
3402
|
-
| {
|
|
3403
|
-
type: 'add behavior'
|
|
3404
|
-
behavior: Behavior
|
|
3405
|
-
}
|
|
3406
|
-
| {
|
|
3407
|
-
type: 'remove behavior'
|
|
3408
|
-
behavior: Behavior
|
|
3409
|
-
}
|
|
3410
3407
|
| {
|
|
3411
3408
|
type: 'update readOnly'
|
|
3412
3409
|
readOnly: boolean
|
|
@@ -3427,6 +3424,14 @@ declare const editorMachine: StateMachine<
|
|
|
3427
3424
|
type: 'update maxBlocks'
|
|
3428
3425
|
maxBlocks: number | undefined
|
|
3429
3426
|
}
|
|
3427
|
+
| {
|
|
3428
|
+
type: 'add behavior'
|
|
3429
|
+
behaviorConfig: BehaviorConfig
|
|
3430
|
+
}
|
|
3431
|
+
| {
|
|
3432
|
+
type: 'remove behavior'
|
|
3433
|
+
behaviorConfig: BehaviorConfig
|
|
3434
|
+
}
|
|
3430
3435
|
| {
|
|
3431
3436
|
type: 'blur'
|
|
3432
3437
|
editor: PortableTextSlateEditor
|
|
@@ -3533,7 +3538,7 @@ declare const editorMachine: StateMachine<
|
|
|
3533
3538
|
readonly 'update maxBlocks': {
|
|
3534
3539
|
readonly actions: ActionFunction<
|
|
3535
3540
|
{
|
|
3536
|
-
behaviors: Set<
|
|
3541
|
+
behaviors: Set<BehaviorConfig>
|
|
3537
3542
|
converters: Set<Converter>
|
|
3538
3543
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3539
3544
|
keyGenerator: () => string
|
|
@@ -3557,14 +3562,6 @@ declare const editorMachine: StateMachine<
|
|
|
3557
3562
|
| InternalPatchEvent
|
|
3558
3563
|
| MutationEvent
|
|
3559
3564
|
| PatchesEvent
|
|
3560
|
-
| {
|
|
3561
|
-
type: 'add behavior'
|
|
3562
|
-
behavior: Behavior
|
|
3563
|
-
}
|
|
3564
|
-
| {
|
|
3565
|
-
type: 'remove behavior'
|
|
3566
|
-
behavior: Behavior
|
|
3567
|
-
}
|
|
3568
3565
|
| {
|
|
3569
3566
|
type: 'update readOnly'
|
|
3570
3567
|
readOnly: boolean
|
|
@@ -3585,6 +3582,14 @@ declare const editorMachine: StateMachine<
|
|
|
3585
3582
|
type: 'update maxBlocks'
|
|
3586
3583
|
maxBlocks: number | undefined
|
|
3587
3584
|
}
|
|
3585
|
+
| {
|
|
3586
|
+
type: 'add behavior'
|
|
3587
|
+
behaviorConfig: BehaviorConfig
|
|
3588
|
+
}
|
|
3589
|
+
| {
|
|
3590
|
+
type: 'remove behavior'
|
|
3591
|
+
behaviorConfig: BehaviorConfig
|
|
3592
|
+
}
|
|
3588
3593
|
| {
|
|
3589
3594
|
type: 'blur'
|
|
3590
3595
|
editor: PortableTextSlateEditor
|
|
@@ -3703,7 +3708,7 @@ declare const editorMachine: StateMachine<
|
|
|
3703
3708
|
event,
|
|
3704
3709
|
}: GuardArgs<
|
|
3705
3710
|
{
|
|
3706
|
-
behaviors: Set<
|
|
3711
|
+
behaviors: Set<BehaviorConfig>
|
|
3707
3712
|
converters: Set<Converter>
|
|
3708
3713
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3709
3714
|
keyGenerator: () => string
|
|
@@ -3741,7 +3746,7 @@ declare const editorMachine: StateMachine<
|
|
|
3741
3746
|
context,
|
|
3742
3747
|
}: GuardArgs<
|
|
3743
3748
|
{
|
|
3744
|
-
behaviors: Set<
|
|
3749
|
+
behaviors: Set<BehaviorConfig>
|
|
3745
3750
|
converters: Set<Converter>
|
|
3746
3751
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3747
3752
|
keyGenerator: () => string
|
|
@@ -3778,7 +3783,7 @@ declare const editorMachine: StateMachine<
|
|
|
3778
3783
|
event,
|
|
3779
3784
|
}: GuardArgs<
|
|
3780
3785
|
{
|
|
3781
|
-
behaviors: Set<
|
|
3786
|
+
behaviors: Set<BehaviorConfig>
|
|
3782
3787
|
converters: Set<Converter>
|
|
3783
3788
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3784
3789
|
keyGenerator: () => string
|
|
@@ -3814,7 +3819,7 @@ declare const editorMachine: StateMachine<
|
|
|
3814
3819
|
event,
|
|
3815
3820
|
}: GuardArgs<
|
|
3816
3821
|
{
|
|
3817
|
-
behaviors: Set<
|
|
3822
|
+
behaviors: Set<BehaviorConfig>
|
|
3818
3823
|
converters: Set<Converter>
|
|
3819
3824
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3820
3825
|
keyGenerator: () => string
|
|
@@ -3850,7 +3855,7 @@ declare const editorMachine: StateMachine<
|
|
|
3850
3855
|
readonly actions: readonly [
|
|
3851
3856
|
ActionFunction<
|
|
3852
3857
|
{
|
|
3853
|
-
behaviors: Set<
|
|
3858
|
+
behaviors: Set<BehaviorConfig>
|
|
3854
3859
|
converters: Set<Converter>
|
|
3855
3860
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3856
3861
|
keyGenerator: () => string
|
|
@@ -3874,14 +3879,6 @@ declare const editorMachine: StateMachine<
|
|
|
3874
3879
|
| InternalPatchEvent
|
|
3875
3880
|
| MutationEvent
|
|
3876
3881
|
| PatchesEvent
|
|
3877
|
-
| {
|
|
3878
|
-
type: 'add behavior'
|
|
3879
|
-
behavior: Behavior
|
|
3880
|
-
}
|
|
3881
|
-
| {
|
|
3882
|
-
type: 'remove behavior'
|
|
3883
|
-
behavior: Behavior
|
|
3884
|
-
}
|
|
3885
3882
|
| {
|
|
3886
3883
|
type: 'update readOnly'
|
|
3887
3884
|
readOnly: boolean
|
|
@@ -3902,6 +3899,14 @@ declare const editorMachine: StateMachine<
|
|
|
3902
3899
|
type: 'update maxBlocks'
|
|
3903
3900
|
maxBlocks: number | undefined
|
|
3904
3901
|
}
|
|
3902
|
+
| {
|
|
3903
|
+
type: 'add behavior'
|
|
3904
|
+
behaviorConfig: BehaviorConfig
|
|
3905
|
+
}
|
|
3906
|
+
| {
|
|
3907
|
+
type: 'remove behavior'
|
|
3908
|
+
behaviorConfig: BehaviorConfig
|
|
3909
|
+
}
|
|
3905
3910
|
| {
|
|
3906
3911
|
type: 'blur'
|
|
3907
3912
|
editor: PortableTextSlateEditor
|
|
@@ -4015,7 +4020,7 @@ declare const editorMachine: StateMachine<
|
|
|
4015
4020
|
readonly actions: readonly [
|
|
4016
4021
|
ActionFunction<
|
|
4017
4022
|
{
|
|
4018
|
-
behaviors: Set<
|
|
4023
|
+
behaviors: Set<BehaviorConfig>
|
|
4019
4024
|
converters: Set<Converter>
|
|
4020
4025
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4021
4026
|
keyGenerator: () => string
|
|
@@ -4042,14 +4047,6 @@ declare const editorMachine: StateMachine<
|
|
|
4042
4047
|
| InternalPatchEvent
|
|
4043
4048
|
| MutationEvent
|
|
4044
4049
|
| PatchesEvent
|
|
4045
|
-
| {
|
|
4046
|
-
type: 'add behavior'
|
|
4047
|
-
behavior: Behavior
|
|
4048
|
-
}
|
|
4049
|
-
| {
|
|
4050
|
-
type: 'remove behavior'
|
|
4051
|
-
behavior: Behavior
|
|
4052
|
-
}
|
|
4053
4050
|
| {
|
|
4054
4051
|
type: 'update readOnly'
|
|
4055
4052
|
readOnly: boolean
|
|
@@ -4070,6 +4067,14 @@ declare const editorMachine: StateMachine<
|
|
|
4070
4067
|
type: 'update maxBlocks'
|
|
4071
4068
|
maxBlocks: number | undefined
|
|
4072
4069
|
}
|
|
4070
|
+
| {
|
|
4071
|
+
type: 'add behavior'
|
|
4072
|
+
behaviorConfig: BehaviorConfig
|
|
4073
|
+
}
|
|
4074
|
+
| {
|
|
4075
|
+
type: 'remove behavior'
|
|
4076
|
+
behaviorConfig: BehaviorConfig
|
|
4077
|
+
}
|
|
4073
4078
|
| {
|
|
4074
4079
|
type: 'blur'
|
|
4075
4080
|
editor: PortableTextSlateEditor
|
|
@@ -4207,7 +4212,7 @@ declare const editorMachine: StateMachine<
|
|
|
4207
4212
|
context,
|
|
4208
4213
|
}: ActionArgs<
|
|
4209
4214
|
{
|
|
4210
|
-
behaviors: Set<
|
|
4215
|
+
behaviors: Set<BehaviorConfig>
|
|
4211
4216
|
converters: Set<Converter>
|
|
4212
4217
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4213
4218
|
keyGenerator: () => string
|
|
@@ -4227,14 +4232,6 @@ declare const editorMachine: StateMachine<
|
|
|
4227
4232
|
| InternalPatchEvent
|
|
4228
4233
|
| MutationEvent
|
|
4229
4234
|
| PatchesEvent
|
|
4230
|
-
| {
|
|
4231
|
-
type: 'add behavior'
|
|
4232
|
-
behavior: Behavior
|
|
4233
|
-
}
|
|
4234
|
-
| {
|
|
4235
|
-
type: 'remove behavior'
|
|
4236
|
-
behavior: Behavior
|
|
4237
|
-
}
|
|
4238
4235
|
| {
|
|
4239
4236
|
type: 'update readOnly'
|
|
4240
4237
|
readOnly: boolean
|
|
@@ -4255,6 +4252,14 @@ declare const editorMachine: StateMachine<
|
|
|
4255
4252
|
type: 'update maxBlocks'
|
|
4256
4253
|
maxBlocks: number | undefined
|
|
4257
4254
|
}
|
|
4255
|
+
| {
|
|
4256
|
+
type: 'add behavior'
|
|
4257
|
+
behaviorConfig: BehaviorConfig
|
|
4258
|
+
}
|
|
4259
|
+
| {
|
|
4260
|
+
type: 'remove behavior'
|
|
4261
|
+
behaviorConfig: BehaviorConfig
|
|
4262
|
+
}
|
|
4258
4263
|
| {
|
|
4259
4264
|
type: 'blur'
|
|
4260
4265
|
editor: PortableTextSlateEditor
|
|
@@ -4353,14 +4358,6 @@ declare const editorMachine: StateMachine<
|
|
|
4353
4358
|
| InternalPatchEvent
|
|
4354
4359
|
| MutationEvent
|
|
4355
4360
|
| PatchesEvent
|
|
4356
|
-
| {
|
|
4357
|
-
type: 'add behavior'
|
|
4358
|
-
behavior: Behavior
|
|
4359
|
-
}
|
|
4360
|
-
| {
|
|
4361
|
-
type: 'remove behavior'
|
|
4362
|
-
behavior: Behavior
|
|
4363
|
-
}
|
|
4364
4361
|
| {
|
|
4365
4362
|
type: 'update readOnly'
|
|
4366
4363
|
readOnly: boolean
|
|
@@ -4381,6 +4378,14 @@ declare const editorMachine: StateMachine<
|
|
|
4381
4378
|
type: 'update maxBlocks'
|
|
4382
4379
|
maxBlocks: number | undefined
|
|
4383
4380
|
}
|
|
4381
|
+
| {
|
|
4382
|
+
type: 'add behavior'
|
|
4383
|
+
behaviorConfig: BehaviorConfig
|
|
4384
|
+
}
|
|
4385
|
+
| {
|
|
4386
|
+
type: 'remove behavior'
|
|
4387
|
+
behaviorConfig: BehaviorConfig
|
|
4388
|
+
}
|
|
4384
4389
|
| {
|
|
4385
4390
|
type: 'blur'
|
|
4386
4391
|
editor: PortableTextSlateEditor
|
|
@@ -4479,7 +4484,7 @@ declare const editorMachine: StateMachine<
|
|
|
4479
4484
|
>) => void,
|
|
4480
4485
|
ActionFunction<
|
|
4481
4486
|
{
|
|
4482
|
-
behaviors: Set<
|
|
4487
|
+
behaviors: Set<BehaviorConfig>
|
|
4483
4488
|
converters: Set<Converter>
|
|
4484
4489
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4485
4490
|
keyGenerator: () => string
|
|
@@ -4499,14 +4504,6 @@ declare const editorMachine: StateMachine<
|
|
|
4499
4504
|
| InternalPatchEvent
|
|
4500
4505
|
| MutationEvent
|
|
4501
4506
|
| PatchesEvent
|
|
4502
|
-
| {
|
|
4503
|
-
type: 'add behavior'
|
|
4504
|
-
behavior: Behavior
|
|
4505
|
-
}
|
|
4506
|
-
| {
|
|
4507
|
-
type: 'remove behavior'
|
|
4508
|
-
behavior: Behavior
|
|
4509
|
-
}
|
|
4510
4507
|
| {
|
|
4511
4508
|
type: 'update readOnly'
|
|
4512
4509
|
readOnly: boolean
|
|
@@ -4527,6 +4524,14 @@ declare const editorMachine: StateMachine<
|
|
|
4527
4524
|
type: 'update maxBlocks'
|
|
4528
4525
|
maxBlocks: number | undefined
|
|
4529
4526
|
}
|
|
4527
|
+
| {
|
|
4528
|
+
type: 'add behavior'
|
|
4529
|
+
behaviorConfig: BehaviorConfig
|
|
4530
|
+
}
|
|
4531
|
+
| {
|
|
4532
|
+
type: 'remove behavior'
|
|
4533
|
+
behaviorConfig: BehaviorConfig
|
|
4534
|
+
}
|
|
4530
4535
|
| {
|
|
4531
4536
|
type: 'blur'
|
|
4532
4537
|
editor: PortableTextSlateEditor
|
|
@@ -4625,14 +4630,6 @@ declare const editorMachine: StateMachine<
|
|
|
4625
4630
|
| InternalPatchEvent
|
|
4626
4631
|
| MutationEvent
|
|
4627
4632
|
| PatchesEvent
|
|
4628
|
-
| {
|
|
4629
|
-
type: 'add behavior'
|
|
4630
|
-
behavior: Behavior
|
|
4631
|
-
}
|
|
4632
|
-
| {
|
|
4633
|
-
type: 'remove behavior'
|
|
4634
|
-
behavior: Behavior
|
|
4635
|
-
}
|
|
4636
4633
|
| {
|
|
4637
4634
|
type: 'update readOnly'
|
|
4638
4635
|
readOnly: boolean
|
|
@@ -4653,6 +4650,14 @@ declare const editorMachine: StateMachine<
|
|
|
4653
4650
|
type: 'update maxBlocks'
|
|
4654
4651
|
maxBlocks: number | undefined
|
|
4655
4652
|
}
|
|
4653
|
+
| {
|
|
4654
|
+
type: 'add behavior'
|
|
4655
|
+
behaviorConfig: BehaviorConfig
|
|
4656
|
+
}
|
|
4657
|
+
| {
|
|
4658
|
+
type: 'remove behavior'
|
|
4659
|
+
behaviorConfig: BehaviorConfig
|
|
4660
|
+
}
|
|
4656
4661
|
| {
|
|
4657
4662
|
type: 'blur'
|
|
4658
4663
|
editor: PortableTextSlateEditor
|
|
@@ -4806,7 +4811,7 @@ declare const editorMachine: StateMachine<
|
|
|
4806
4811
|
readonly actions: readonly [
|
|
4807
4812
|
ActionFunction<
|
|
4808
4813
|
{
|
|
4809
|
-
behaviors: Set<
|
|
4814
|
+
behaviors: Set<BehaviorConfig>
|
|
4810
4815
|
converters: Set<Converter>
|
|
4811
4816
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4812
4817
|
keyGenerator: () => string
|
|
@@ -4831,14 +4836,6 @@ declare const editorMachine: StateMachine<
|
|
|
4831
4836
|
| InternalPatchEvent
|
|
4832
4837
|
| MutationEvent
|
|
4833
4838
|
| PatchesEvent
|
|
4834
|
-
| {
|
|
4835
|
-
type: 'add behavior'
|
|
4836
|
-
behavior: Behavior
|
|
4837
|
-
}
|
|
4838
|
-
| {
|
|
4839
|
-
type: 'remove behavior'
|
|
4840
|
-
behavior: Behavior
|
|
4841
|
-
}
|
|
4842
4839
|
| {
|
|
4843
4840
|
type: 'update readOnly'
|
|
4844
4841
|
readOnly: boolean
|
|
@@ -4859,6 +4856,14 @@ declare const editorMachine: StateMachine<
|
|
|
4859
4856
|
type: 'update maxBlocks'
|
|
4860
4857
|
maxBlocks: number | undefined
|
|
4861
4858
|
}
|
|
4859
|
+
| {
|
|
4860
|
+
type: 'add behavior'
|
|
4861
|
+
behaviorConfig: BehaviorConfig
|
|
4862
|
+
}
|
|
4863
|
+
| {
|
|
4864
|
+
type: 'remove behavior'
|
|
4865
|
+
behaviorConfig: BehaviorConfig
|
|
4866
|
+
}
|
|
4862
4867
|
| {
|
|
4863
4868
|
type: 'blur'
|
|
4864
4869
|
editor: PortableTextSlateEditor
|
|
@@ -5090,6 +5095,15 @@ declare const editorMachine: StateMachine<
|
|
|
5090
5095
|
}
|
|
5091
5096
|
>
|
|
5092
5097
|
|
|
5098
|
+
declare type EditorPriority = {
|
|
5099
|
+
id: string
|
|
5100
|
+
name?: string
|
|
5101
|
+
reference?: {
|
|
5102
|
+
priority: EditorPriority
|
|
5103
|
+
importance: 'higher' | 'lower'
|
|
5104
|
+
}
|
|
5105
|
+
}
|
|
5106
|
+
|
|
5093
5107
|
/**
|
|
5094
5108
|
* @public
|
|
5095
5109
|
*/
|