@elyx-code/project-logic-tree 0.0.6142 → 0.0.6144
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 +5785 -5713
- package/dist/index.umd.cjs +173 -173
- package/dist/tree/utils/index.d.ts +63 -63
- package/dist/tree/utils/traverser.d.ts +9 -9
- package/package.json +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEntityNames, ElementGenerationTarget, ElementShallowTransfer, ElementTransfer, EntityType, Element, IGenericReference, EntityId, ValueReadingEntityTypesUnion, ValueReadingEntity, IActionDescriptor, IActionDescriptorTransfer, IArgumentDeclaration, IArgumentDeclarationTransfer, DraggableElement, Reference, IBreakStatement, IBreakStatementTransfer, IBuiltInBaseEntity, IBuiltInBaseEntityTransfer, ICondition, IConditionTransfer, IContinueStatement, IContinueStatementTransfer, CallableEntity, CallableEntityTransfer, CallerEntity, CallerEntityTransfer, IDefinitionEntity, IDefinitionEntityTransfer, IDataType, IDataTypeTransfer, IFunctionCall, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationTransfer, IGlobalEvent, IGlobalEventTransfer, IInputMap, IInputMapTransfer, IInstalledProject, IInstalledProjectTransfer, IInternalCall, IInternalCallTransfer, ILiteralValue, ILiteralValueTransfer, ILoop, ILoopTransfer, IOperation, IOperationTransfer, IOutputMap, IOutputMapTransfer, IPrimitiveEntity, IPrimitiveEntityTransfer, IProject, IProjectTransfer, IProperty, IPropertyTransfer, IReturnDeclaration, IReturnDeclarationTransfer, IReturnStatement, IReturnStatementTransfer, ISearch, ISearchTransfer, IValueDescriptor, IValueDescriptorTransfer, IVariableDeclarationTransfer, IVariableDeclaration, IVariableInstance, IVariableInstanceTransfer, DraggableElementTransfer, ValueReadingEntityTransfer } from '../../definitions';
|
|
1
|
+
import { BaseEntityNames, ElementGenerationTarget, ElementShallowTransfer, ElementTransfer, EntityType, Element, IGenericReference, EntityId, ValueReadingEntityTypesUnion, ValueReadingEntity, IActionDescriptor, IActionDescriptorTransfer, IArgumentDeclaration, IArgumentDeclarationTransfer, DraggableElement, Reference, IBreakStatement, IBreakStatementTransfer, IBuiltInBaseEntity, IBuiltInBaseEntityTransfer, ICondition, IConditionTransfer, IContinueStatement, IContinueStatementTransfer, CallableEntity, CallableEntityTransfer, CallerEntity, CallerEntityTransfer, IDefinitionEntity, IDefinitionEntityTransfer, IDataType, IDataTypeTransfer, IFunctionCall, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationTransfer, IGlobalEvent, IGlobalEventTransfer, IInputMap, IInputMapTransfer, IInstalledProject, IInstalledProjectTransfer, IInternalCall, IInternalCallTransfer, ILiteralValue, ILiteralValueTransfer, ILoop, ILoopTransfer, IOperation, IOperationTransfer, IOutputMap, IOutputMapTransfer, IPrimitiveEntity, IPrimitiveEntityTransfer, IProject, IProjectTransfer, IProperty, IPropertyTransfer, IReturnDeclaration, IReturnDeclarationTransfer, IReturnStatement, IReturnStatementTransfer, ISearch, ISearchTransfer, IValueDescriptor, IValueDescriptorTransfer, IVariableDeclarationTransfer, IVariableDeclaration, IVariableInstance, IVariableInstanceTransfer, DraggableElementTransfer, ValueReadingEntityTransfer, IActionDescriptorShallowTransfer, IDataTypeShallowTransfer, IDefinitionEntityShallowTransfer, IFunctionDeclarationShallowTransfer, IInstalledProjectShallowTransfer, ILoopShallowTransfer, IOperationShallowTransfer, ILiteralValueShallowTransfer, IPrimitiveEntityShallowTransfer, IProjectShallowTransfer, IPropertyShallowTransfer, IReturnDeclarationShallowTransfer, IReturnStatementShallowTransfer, ISearchShallowTransfer, IValueDescriptorShallowTransfer, IVariableDeclarationShallowTransfer, IVariableInstanceShallowTransfer, IFunctionCallShallowTransfer, IGlobalEventShallowTransfer, IInputMapShallowTransfer, IInternalCallShallowTransfer, CallableEntityShallowTransfer, IOutputMapShallowTransfer, IConditionShallowTransfer, IContinueStatementShallowTransfer, IBreakStatementShallowTransfer, IArgumentDeclarationShallowTransfer, IBuiltInBaseEntityShallowTransfer, DraggableElementShallowTransfer } from '../../definitions';
|
|
2
2
|
import { DraggableCallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, DraggableExecutableEntityState, DraggablePassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, EntityWithValueState, VariableState, BuiltInBaseEntityState, TerminationState, InstalledProjectState, ExecutableEntityState, ValueDescriptorState, CallableEntityState, CallerEntityState, PassThroughCallableEntityState, PrimitiveEntityState, InternalCallState } from '../state';
|
|
3
3
|
import { FunctionCallState } from '../state/function-call';
|
|
4
4
|
import { InputMapState } from '../state/input-map';
|
|
@@ -35,7 +35,7 @@ export declare function checkIsBranchDependentOnBranch(branchA: CanvasEntityStat
|
|
|
35
35
|
export declare function getParentEntryPoint(entity: EntityState): EntryPointEntityState | null;
|
|
36
36
|
export declare function getCommonAncestor(entityA: EntityState, entityB: EntityState): EntityState | null;
|
|
37
37
|
export declare function getParentCanvasEntity(entity: EntityState): CanvasEntityState | null;
|
|
38
|
-
export declare function getParentCanvasEntityFromTransfer(entity: Element | ElementTransfer | IGenericReference, allKnownEntities: Record<EntityId, Element | ElementTransfer>): DraggableElement | DraggableElementTransfer | null;
|
|
38
|
+
export declare function getParentCanvasEntityFromTransfer(entity: Element | ElementTransfer | ElementShallowTransfer | IGenericReference, allKnownEntities: Record<EntityId, Element | ElementTransfer | ElementShallowTransfer>): DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer | null;
|
|
39
39
|
export declare function getParentCallableEntity(entity: EntityState): CallableEntityState | null;
|
|
40
40
|
export declare function getParentPassthroughCallableEntity(entity: EntityState): PassThroughCallableEntityState | null;
|
|
41
41
|
export declare function getParentCallerEntity(entity: EntityState): CallerEntityState | null;
|
|
@@ -66,97 +66,97 @@ export declare function flattenCalls(entities: CallableEntityState[]): CallableE
|
|
|
66
66
|
export declare function flattenProjectElements(project: ProjectState): EntityState[];
|
|
67
67
|
export declare function findReferenceToSelfInList(element: EntityState, elements: EntityState[]): EntityState[];
|
|
68
68
|
export declare function findReferencesToSelfInProject(element: EntityState): EntityState[];
|
|
69
|
-
export declare function enrichFromKnownEntities(entity: ElementTransfer | Element | IGenericReference | EntityId, allKnownEntities: Record<EntityId, Element | ElementTransfer>): Element | ElementTransfer | null;
|
|
69
|
+
export declare function enrichFromKnownEntities(entity: ElementTransfer | Element | ElementShallowTransfer | IGenericReference | EntityId, allKnownEntities: Record<EntityId, Element | ElementTransfer | ElementShallowTransfer>): Element | ElementTransfer | ElementShallowTransfer | null;
|
|
70
70
|
export declare function getReferencedIds(entity: ElementTransfer | Element | ElementShallowTransfer | EntityState): Record<EntityId, EntityId>;
|
|
71
|
-
export declare function getRelatedCanvasElementsOnTheLeftFromTransfer(entity: DraggableElement | DraggableElementTransfer, allKnownEntities: Record<EntityId, Element | ElementTransfer>): (DraggableElement | DraggableElementTransfer)[];
|
|
71
|
+
export declare function getRelatedCanvasElementsOnTheLeftFromTransfer(entity: DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer, allKnownEntities: Record<EntityId, Element | ElementTransfer | ElementShallowTransfer>): (DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer)[];
|
|
72
72
|
export declare function getRelatedCanvasElementsOnTheLeft(entity: CanvasEntityState): CanvasEntityState[];
|
|
73
|
-
export declare function getCalledBy(entity: CallableEntityState | CallableEntity | CallableEntityTransfer): (CallerEntityState | CallerEntity | CallerEntityTransfer)[];
|
|
74
|
-
export declare function flattenActionDescriptor(entity: IActionDescriptor | IActionDescriptorTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
73
|
+
export declare function getCalledBy(entity: CallableEntityState | CallableEntity | CallableEntityTransfer | CallableEntityShallowTransfer): (CallerEntityState | CallerEntity | CallerEntityTransfer)[];
|
|
74
|
+
export declare function flattenActionDescriptor(entity: IActionDescriptor | IActionDescriptorTransfer | IActionDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
75
75
|
ignoreBuiltInBaseEntities?: boolean;
|
|
76
|
-
}): (Element | ElementTransfer)[];
|
|
77
|
-
export declare function flattenArgumentDeclaration(entity: IArgumentDeclaration | IArgumentDeclarationTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
76
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
77
|
+
export declare function flattenArgumentDeclaration(entity: IArgumentDeclaration | IArgumentDeclarationTransfer | IArgumentDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
78
78
|
ignoreBuiltInBaseEntities?: boolean;
|
|
79
|
-
}): (Element | ElementTransfer)[];
|
|
80
|
-
export declare function flattenBreakStatement(entity: IBreakStatement | IBreakStatementTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
79
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
80
|
+
export declare function flattenBreakStatement(entity: IBreakStatement | IBreakStatementTransfer | IBreakStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
81
81
|
ignoreBuiltInBaseEntities?: boolean;
|
|
82
|
-
}): (Element | ElementTransfer)[];
|
|
83
|
-
export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
82
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
83
|
+
export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer | IBuiltInBaseEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
84
84
|
ignoreBuiltInBaseEntities?: boolean;
|
|
85
|
-
}): (Element | ElementTransfer)[];
|
|
86
|
-
export declare function flattenCondition(entity: ICondition | IConditionTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
85
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
86
|
+
export declare function flattenCondition(entity: ICondition | IConditionTransfer | IConditionShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
87
87
|
ignoreBuiltInBaseEntities?: boolean;
|
|
88
|
-
}): (Element | ElementTransfer)[];
|
|
89
|
-
export declare function flattenContinueStatement(entity: IContinueStatement | IContinueStatementTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
88
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
89
|
+
export declare function flattenContinueStatement(entity: IContinueStatement | IContinueStatementTransfer | IContinueStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
90
90
|
ignoreBuiltInBaseEntities?: boolean;
|
|
91
|
-
}): (Element | ElementTransfer)[];
|
|
92
|
-
export declare function flattenDefinitionEntity(entity: IDefinitionEntity | IDefinitionEntityTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
91
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
92
|
+
export declare function flattenDefinitionEntity(entity: IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
93
93
|
ignoreBuiltInBaseEntities?: boolean;
|
|
94
|
-
}): (Element | ElementTransfer)[];
|
|
95
|
-
export declare function flattenDataType(entity: IDataType | IDataTypeTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
94
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
95
|
+
export declare function flattenDataType(entity: IDataType | IDataTypeTransfer | IDataTypeShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
96
96
|
ignoreBuiltInBaseEntities?: boolean;
|
|
97
|
-
}): (Element | ElementTransfer)[];
|
|
98
|
-
export declare function flattenFunctionCall(entity: IFunctionCall | IFunctionCallTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
97
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
98
|
+
export declare function flattenFunctionCall(entity: IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
99
99
|
ignoreBuiltInBaseEntities?: boolean;
|
|
100
|
-
}): (Element | ElementTransfer)[];
|
|
101
|
-
export declare function flattenFunctionDeclaration(entity: IFunctionDeclaration | IFunctionDeclarationTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
100
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
101
|
+
export declare function flattenFunctionDeclaration(entity: IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
102
102
|
ignoreBuiltInBaseEntities?: boolean;
|
|
103
|
-
}): (Element | ElementTransfer)[];
|
|
104
|
-
export declare function flattenGlobalEvent(entity: IGlobalEvent | IGlobalEventTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
103
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
104
|
+
export declare function flattenGlobalEvent(entity: IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
105
105
|
ignoreBuiltInBaseEntities?: boolean;
|
|
106
|
-
}): (Element | ElementTransfer)[];
|
|
107
|
-
export declare function flattenInputMap(entity: IInputMap | IInputMapTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
106
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
107
|
+
export declare function flattenInputMap(entity: IInputMap | IInputMapTransfer | IInputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
108
108
|
ignoreBuiltInBaseEntities?: boolean;
|
|
109
|
-
}): (Element | ElementTransfer)[];
|
|
110
|
-
export declare function flattenInstalledProject(entity: IInstalledProject | IInstalledProjectTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
109
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
110
|
+
export declare function flattenInstalledProject(entity: IInstalledProject | IInstalledProjectTransfer | IInstalledProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
111
111
|
ignoreBuiltInBaseEntities?: boolean;
|
|
112
|
-
}): (Element | ElementTransfer)[];
|
|
113
|
-
export declare function flattenInternalCall(entity: IInternalCall | IInternalCallTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
112
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
113
|
+
export declare function flattenInternalCall(entity: IInternalCall | IInternalCallTransfer | IInternalCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
114
114
|
ignoreBuiltInBaseEntities?: boolean;
|
|
115
|
-
}): (Element | ElementTransfer)[];
|
|
116
|
-
export declare function flattenLiteralValue(entity: ILiteralValue | ILiteralValueTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
115
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
116
|
+
export declare function flattenLiteralValue(entity: ILiteralValue | ILiteralValueTransfer | ILiteralValueShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
117
117
|
ignoreBuiltInBaseEntities?: boolean;
|
|
118
|
-
}): (Element | ElementTransfer)[];
|
|
119
|
-
export declare function flattenLoop(entity: ILoop | ILoopTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
118
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
119
|
+
export declare function flattenLoop(entity: ILoop | ILoopTransfer | ILoopShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
120
120
|
ignoreBuiltInBaseEntities?: boolean;
|
|
121
|
-
}): (Element | ElementTransfer)[];
|
|
122
|
-
export declare function flattenOperation(entity: IOperation | IOperationTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
121
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
122
|
+
export declare function flattenOperation(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
123
123
|
ignoreBuiltInBaseEntities?: boolean;
|
|
124
|
-
}): (Element | ElementTransfer)[];
|
|
125
|
-
export declare function flattenOutputMap(entity: IOutputMap | IOutputMapTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
124
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
125
|
+
export declare function flattenOutputMap(entity: IOutputMap | IOutputMapTransfer | IOutputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
126
126
|
ignoreBuiltInBaseEntities?: boolean;
|
|
127
|
-
}): (Element | ElementTransfer)[];
|
|
128
|
-
export declare function flattenPrimitiveEntity(entity: IPrimitiveEntity | IPrimitiveEntityTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
127
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
128
|
+
export declare function flattenPrimitiveEntity(entity: IPrimitiveEntity | IPrimitiveEntityTransfer | IPrimitiveEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
129
129
|
ignoreBuiltInBaseEntities?: boolean;
|
|
130
|
-
}): (Element | ElementTransfer)[];
|
|
131
|
-
export declare function flattenProject(entity: IProject | IProjectTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
130
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
131
|
+
export declare function flattenProject(entity: IProject | IProjectTransfer | IProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
132
132
|
ignoreBuiltInBaseEntities?: boolean;
|
|
133
|
-
}): (Element | ElementTransfer)[];
|
|
134
|
-
export declare function flattenProperty(entity: IProperty | IPropertyTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
133
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
134
|
+
export declare function flattenProperty(entity: IProperty | IPropertyTransfer | IPropertyShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
135
135
|
ignoreBuiltInBaseEntities?: boolean;
|
|
136
|
-
}): (Element | ElementTransfer)[];
|
|
137
|
-
export declare function flattenReturnDeclaration(entity: IReturnDeclaration | IReturnDeclarationTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
136
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
137
|
+
export declare function flattenReturnDeclaration(entity: IReturnDeclaration | IReturnDeclarationTransfer | IReturnDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
138
138
|
ignoreBuiltInBaseEntities?: boolean;
|
|
139
|
-
}): (Element | ElementTransfer)[];
|
|
140
|
-
export declare function flattenReturnStatement(entity: IReturnStatement | IReturnStatementTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
139
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
140
|
+
export declare function flattenReturnStatement(entity: IReturnStatement | IReturnStatementTransfer | IReturnStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
141
141
|
ignoreBuiltInBaseEntities?: boolean;
|
|
142
|
-
}): (Element | ElementTransfer)[];
|
|
143
|
-
export declare function flattenSearch(entity: ISearch | ISearchTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
142
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
143
|
+
export declare function flattenSearch(entity: ISearch | ISearchTransfer | ISearchShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
144
144
|
ignoreBuiltInBaseEntities?: boolean;
|
|
145
|
-
}): (Element | ElementTransfer)[];
|
|
146
|
-
export declare function flattenValueDescriptor(entity: IValueDescriptor | IValueDescriptorTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
145
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
146
|
+
export declare function flattenValueDescriptor(entity: IValueDescriptor | IValueDescriptorTransfer | IValueDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
147
147
|
ignoreBuiltInBaseEntities?: boolean;
|
|
148
|
-
}): (Element | ElementTransfer)[];
|
|
149
|
-
export declare function flattenVariableDeclaration(entity: IVariableDeclaration | IVariableDeclarationTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
148
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
149
|
+
export declare function flattenVariableDeclaration(entity: IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
150
150
|
ignoreBuiltInBaseEntities?: boolean;
|
|
151
|
-
}): (Element | ElementTransfer)[];
|
|
152
|
-
export declare function flattenVariableInstance(entity: IVariableInstance | IVariableInstanceTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
151
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
152
|
+
export declare function flattenVariableInstance(entity: IVariableInstance | IVariableInstanceTransfer | IVariableInstanceShallowTransfer, seenEntities?: Set<EntityId>, options?: {
|
|
153
153
|
ignoreBuiltInBaseEntities?: boolean;
|
|
154
|
-
}): (Element | ElementTransfer)[];
|
|
154
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
155
155
|
export declare function getAllBuiltInEntityIds(): EntityId[];
|
|
156
|
-
export declare function flattenEntity(entity: Element | ElementTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
|
|
156
|
+
export declare function flattenEntity(entity: Element | ElementTransfer | ElementShallowTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
|
|
157
157
|
ignoreBuiltInBaseEntities?: boolean;
|
|
158
|
-
}): (Element | ElementTransfer)[];
|
|
159
|
-
export declare function getUpstreamDependencyIds(element: ElementTransfer, allKnownEntities: Record<EntityId, ElementTransfer>): Set<EntityId>;
|
|
158
|
+
}): (Element | ElementTransfer | ElementShallowTransfer)[];
|
|
159
|
+
export declare function getUpstreamDependencyIds(element: Element | ElementTransfer | ElementShallowTransfer, allKnownEntities: Record<EntityId, Element | ElementTransfer | ElementShallowTransfer>): Set<EntityId>;
|
|
160
160
|
export declare function getEntityArgumentDeclarations(entity: ExecutableEntityState): (ArgumentDeclarationState | ValueDescriptorState)[];
|
|
161
161
|
export declare function getUsedArgFromDeclaration(argumentDeclaration: ArgumentDeclarationState, entity: ConditionState | FunctionCallState | OperationState): InputMapState | null;
|
|
162
162
|
export declare function getEntityInputMaps(entity: DraggablePassThroughCallableEntityState): InputMapState[];
|
|
@@ -164,7 +164,7 @@ export declare function getEntityReturnDeclarations(entity: TerminationState | F
|
|
|
164
164
|
export declare function getUsedReturnFromDeclaration(returnDeclaration: ReturnDeclarationState, entity: ConditionState | FunctionCallState | OperationState): OutputMapState | null;
|
|
165
165
|
export declare function getEntityOutputMaps(entity: DraggablePassThroughCallableEntityState): OutputMapState[];
|
|
166
166
|
export declare function getCanvasEntityDerivedFromValueReadingEntity(valueReadingEntity: ValueReadingEntityState): CanvasEntityState | null;
|
|
167
|
-
export declare function getCanvasEntityDerivedFromValueReadingEntityFromTransfer(valueReadingEntity: ValueReadingEntity | ValueReadingEntityTransfer, allKnownEntities: Record<EntityId, ElementTransfer>): DraggableElement | DraggableElementTransfer | null;
|
|
167
|
+
export declare function getCanvasEntityDerivedFromValueReadingEntityFromTransfer(valueReadingEntity: ValueReadingEntity | ValueReadingEntityTransfer, allKnownEntities: Record<EntityId, ElementTransfer | ElementShallowTransfer>): DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer | null;
|
|
168
168
|
export declare function getCanvasEntitiesDerivedFromInternalCalls(entity: VariableState): CanvasEntityState[];
|
|
169
169
|
export declare function getCanvasEntitiesDerivedFromWrites(valueWrittingEntity: ValueWritingEntityState): CanvasEntityState[];
|
|
170
170
|
export declare function filterOutDuplicateEntities(entities: (EntityState | Element | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget)[]): (Element | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget | EntityState)[];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ElementTransfer, Element, EntityId } from '../../definitions';
|
|
1
|
+
import { ElementTransfer, Element, EntityId, ElementShallowTransfer } from '../../definitions';
|
|
2
2
|
import { EntityState } from '../state';
|
|
3
3
|
|
|
4
4
|
export declare function isPromise(obj: any): obj is Promise<any>;
|
|
5
5
|
export declare class Traverser {
|
|
6
6
|
order: EntityId[];
|
|
7
|
-
flatRecord: Record<EntityId, Element | ElementTransfer | EntityState>;
|
|
7
|
+
flatRecord: Record<EntityId, Element | ElementTransfer | EntityState | ElementShallowTransfer>;
|
|
8
8
|
private onGoingVisits;
|
|
9
|
-
constructor(root: Element | ElementTransfer | EntityState);
|
|
10
|
-
|
|
9
|
+
constructor(root: Element | ElementTransfer | EntityState | ElementShallowTransfer);
|
|
10
|
+
flatten(entity: Element | ElementTransfer | EntityState | ElementShallowTransfer): void;
|
|
11
11
|
private moveEntityAfterDependencies;
|
|
12
|
-
|
|
12
|
+
orderEntities(): void;
|
|
13
13
|
getUpstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
|
|
14
14
|
getDownstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
|
|
15
15
|
settlePromises(promises: Record<EntityId, Promise<any>>, taskId: string): Promise<void>;
|
|
16
|
-
visit(callback: (entity: Element | ElementTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState>) => any): Traverser;
|
|
17
|
-
reverseVisit(callback: (entity: Element | ElementTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState>) => any): Traverser;
|
|
18
|
-
visitAsync(callback: (entity: Element | ElementTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState>) => Promise<any>): Promise<Traverser>;
|
|
19
|
-
reverseVisitAsync(callback: (entity: Element | ElementTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState>) => Promise<any>): Promise<Traverser>;
|
|
16
|
+
visit(callback: (entity: Element | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState | ElementShallowTransfer>) => any): Traverser;
|
|
17
|
+
reverseVisit(callback: (entity: Element | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState | ElementShallowTransfer>) => any): Traverser;
|
|
18
|
+
visitAsync(callback: (entity: Element | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState | ElementShallowTransfer>) => Promise<any>): Promise<Traverser>;
|
|
19
|
+
reverseVisitAsync(callback: (entity: Element | ElementTransfer | EntityState | ElementShallowTransfer, knownEntitiesRecord: Record<EntityId, Element | ElementTransfer | EntityState | ElementShallowTransfer>) => Promise<any>): Promise<Traverser>;
|
|
20
20
|
}
|
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.6144",
|
|
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",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@elyx-code/definitions": "^0.0.7956",
|
|
28
27
|
"axios": "^1.6.5",
|
|
29
28
|
"dayjs": "^1.11.13",
|
|
30
29
|
"pluralize": "^8.0.0",
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
"@types/underscore": "^1.11.15",
|
|
41
40
|
"jest": "^27.5.1",
|
|
42
41
|
"ts-jest": "^27.1.4",
|
|
43
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.7.2",
|
|
44
43
|
"vite": "^4.4.5",
|
|
45
44
|
"vite-plugin-dts": "^3.5.2"
|
|
46
45
|
},
|