@elyx-code/project-logic-tree 0.0.6122 → 0.0.6124
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/dist/index.js +6151 -6079
- package/dist/index.umd.cjs +84 -84
- package/dist/tree/utils/index.d.ts +2 -1
- package/dist/tree/utils/traverser.d.ts +10 -8
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ import { LoopState } from '../state/loop';
|
|
|
18
18
|
import { SearchState } from '../state/search';
|
|
19
19
|
|
|
20
20
|
export * from './data-type';
|
|
21
|
+
export * from './traverser';
|
|
21
22
|
export * from './names';
|
|
22
23
|
export * from './references';
|
|
23
24
|
export * from './uuid';
|
|
@@ -154,7 +155,7 @@ export declare function getAllBuiltInEntityIds(): EntityId[];
|
|
|
154
155
|
export declare function flattenEntity(entity: Element | ElementTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
|
|
155
156
|
ignoreBuiltInBaseEntities?: boolean;
|
|
156
157
|
}): (Element | ElementTransfer)[];
|
|
157
|
-
export declare function
|
|
158
|
+
export declare function getUpstreamDependencyIds(element: ElementTransfer, allKnownEntities: Record<EntityId, ElementTransfer>): Set<EntityId>;
|
|
158
159
|
export declare function getEntityArgumentDeclarations(entity: ExecutableEntityState): (ArgumentDeclarationState | ValueDescriptorState)[];
|
|
159
160
|
export declare function getUsedArgFromDeclaration(argumentDeclaration: ArgumentDeclarationState, entity: ConditionState | FunctionCallState | OperationState): InputMapState | null;
|
|
160
161
|
export declare function getEntityInputMaps(entity: DraggablePassThroughCallableEntityState): InputMapState[];
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { ElementTransfer, Element, EntityId } from '../../definitions';
|
|
2
2
|
|
|
3
|
-
export declare
|
|
4
|
-
Hirarchy = "hirarchy",
|
|
5
|
-
ReverseHirarchy = "reverse-hirarchy"
|
|
6
|
-
}
|
|
3
|
+
export declare function isPromise(obj: any): obj is Promise<any>;
|
|
7
4
|
export declare class Traverser {
|
|
8
|
-
private strategy;
|
|
9
5
|
order: EntityId[];
|
|
10
6
|
flatRecord: Record<EntityId, Element | ElementTransfer>;
|
|
11
|
-
|
|
7
|
+
private onGoingVisits;
|
|
8
|
+
constructor(root: Element | ElementTransfer);
|
|
12
9
|
private flatten;
|
|
13
10
|
private moveEntityAfterDependencies;
|
|
14
11
|
private orderEntities;
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
getUpstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
|
|
13
|
+
getDownstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
|
|
14
|
+
settlePromises(promises: Record<EntityId, Promise<any>>, taskId: string): Promise<void>;
|
|
15
|
+
visit(callback: (entity: Element | ElementTransfer) => any): Traverser;
|
|
16
|
+
reverseVisit(callback: (entity: Element | ElementTransfer) => any): Traverser;
|
|
17
|
+
visitAsync(callback: (entity: Element | ElementTransfer) => Promise<any>): Promise<Traverser>;
|
|
18
|
+
reverseVisitAsync(callback: (entity: Element | ElementTransfer) => Promise<any>): Promise<Traverser>;
|
|
17
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6124",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|