@elyx-code/project-logic-tree 0.0.6181 → 0.0.6183
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 +10404 -10434
- package/dist/index.umd.cjs +175 -175
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +6 -3
- package/dist/tree/state/change-set.d.ts +2 -0
- package/dist/tree/state/project/project.d.ts +1 -1
- package/dist/tree/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ import { InputMapState } from '../input-map';
|
|
|
16
16
|
import { OutputMapState } from '../output-map';
|
|
17
17
|
import { VersionedState } from '../version';
|
|
18
18
|
import { ChangeSet, IChangeSet } from '../change-set';
|
|
19
|
+
import { InstalledProjectState } from '../installed-project';
|
|
20
|
+
import { FunctionDeclarationState } from '../function-declaration';
|
|
19
21
|
|
|
20
22
|
export declare enum ExecutionTerminationType {
|
|
21
23
|
Success = "success",
|
|
@@ -121,9 +123,10 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
|
|
|
121
123
|
toGenerationTarget(): IActionDescriptorGenerationTarget;
|
|
122
124
|
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
123
125
|
asFunctionDeclarationTransfer(newEntityId: string, changeSet?: ChangeSet | null): IFunctionDeclarationTransfer;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
implementAsFunctionDeclaration(parent: InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState, changeSet?: ChangeSet | null, newEntityId?: EntityId): FunctionDeclarationState;
|
|
127
|
+
implementAsLoop(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null, newEntityId?: EntityId): LoopState;
|
|
128
|
+
implementAsOperation(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null, newEntityId?: string): OperationState;
|
|
129
|
+
implementAsCondition(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null, newEntityId?: EntityId): ConditionState;
|
|
127
130
|
clearErrors(): ActionDescriptorState;
|
|
128
131
|
validate(): {
|
|
129
132
|
success: boolean;
|
|
@@ -68,6 +68,8 @@ export declare class ChangeSet {
|
|
|
68
68
|
get removedIds(): EntityId[];
|
|
69
69
|
get affectedIds(): EntityId[];
|
|
70
70
|
discardOrphans(): void;
|
|
71
|
+
attemptAutocloseAsync(knownAutoCloseActionName: string, closingEntityId: EntityId): Promise<ChangeSet>;
|
|
72
|
+
closeAsync(): Promise<ChangeSet>;
|
|
71
73
|
attemptAutoclose(knownAutoCloseActionName: string, closingEntityId: EntityId): ChangeSet;
|
|
72
74
|
close(): ChangeSet;
|
|
73
75
|
get(entityId: EntityId): UserManagedEntityState | null;
|
|
@@ -78,7 +78,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
|
|
|
78
78
|
success: boolean;
|
|
79
79
|
}>) | null;
|
|
80
80
|
constructor(initialData: IProject | IProjectTransfer);
|
|
81
|
-
static sessionAuthor: string
|
|
81
|
+
static sessionAuthor: string;
|
|
82
82
|
static UUID: UUIDModule;
|
|
83
83
|
static injectUUIDModule(module: UUIDModule): void;
|
|
84
84
|
static repository: IEditableEntityPersistanceRepository;
|
|
@@ -196,7 +196,7 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
|
|
|
196
196
|
export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
|
|
197
197
|
export declare function checkIsMethod(entity: EntityState): boolean;
|
|
198
198
|
export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
|
|
199
|
-
export declare function getPrototypeByType(type: EntityType): typeof ProjectState | typeof InputMapState | typeof OutputMapState | typeof SearchState | typeof ReturnDeclarationState | typeof ConditionState | typeof
|
|
199
|
+
export declare function getPrototypeByType(type: EntityType): typeof ProjectState | typeof InputMapState | typeof OutputMapState | typeof SearchState | typeof ReturnDeclarationState | typeof ConditionState | typeof InstalledProjectState | typeof OperationState | typeof DefinitionEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
|
|
200
200
|
export declare function getScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | ProjectState | null;
|
|
201
201
|
export declare function getRootEntryPointScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
|
|
202
202
|
export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
|
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.6183",
|
|
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",
|