@portabletext/editor 4.2.2 → 4.2.4
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-dts/behavior.types.action.d.ts +2 -18
- package/lib/index.js +4476 -4511
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1335,20 +1335,6 @@ type BehaviorConfig = {
|
|
|
1335
1335
|
behavior: Behavior;
|
|
1336
1336
|
priority: EditorPriority;
|
|
1337
1337
|
};
|
|
1338
|
-
type BehaviorIndex = {
|
|
1339
|
-
global: Array<SortedBehavior>;
|
|
1340
|
-
namespaced: Map<string, Array<SortedBehavior>>;
|
|
1341
|
-
exact: Map<string, Array<SortedBehavior>>;
|
|
1342
|
-
};
|
|
1343
|
-
type SortedBehavior = {
|
|
1344
|
-
behavior: Behavior;
|
|
1345
|
-
sortOrder: number;
|
|
1346
|
-
};
|
|
1347
|
-
/**
|
|
1348
|
-
* Given an array of Behaviors, build a `BehaviorIndex` where the `sortOrder`
|
|
1349
|
-
* of each Behavior is preserved.
|
|
1350
|
-
*/
|
|
1351
|
-
|
|
1352
1338
|
/**
|
|
1353
1339
|
* @public
|
|
1354
1340
|
*/
|
|
@@ -1377,9 +1363,7 @@ type EditorActor = ActorRefFrom<typeof editorMachine>;
|
|
|
1377
1363
|
*/
|
|
1378
1364
|
declare const editorMachine: xstate71.StateMachine<{
|
|
1379
1365
|
behaviors: Set<BehaviorConfig>;
|
|
1380
|
-
|
|
1381
|
-
abstractBehaviorIndex: BehaviorIndex;
|
|
1382
|
-
behaviorsIndexed: boolean;
|
|
1366
|
+
behaviorsSorted: boolean;
|
|
1383
1367
|
converters: Set<Converter>;
|
|
1384
1368
|
getLegacySchema: () => PortableTextMemberSchemaTypes;
|
|
1385
1369
|
keyGenerator: () => string;
|
|
@@ -1489,7 +1473,7 @@ declare const editorMachine: xstate71.StateMachine<{
|
|
|
1489
1473
|
type: "handle behavior event";
|
|
1490
1474
|
params: unknown;
|
|
1491
1475
|
} | {
|
|
1492
|
-
type: "
|
|
1476
|
+
type: "sort behaviors";
|
|
1493
1477
|
params: xstate71.NonReducibleUnknown;
|
|
1494
1478
|
}, {
|
|
1495
1479
|
type: "slate is busy";
|