@elyx-code/project-logic-tree 0.0.6001 → 0.0.6004
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 +379 -258
- package/dist/index.umd.cjs +20 -20
- package/dist/tree/state/function-declaration/function-declaration.d.ts +4 -2
- package/dist/tree/state/internal-call/internal-call.d.ts +1 -0
- package/dist/tree/state/primitive-entity/primitive-entity.d.ts +1 -0
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +4 -0
- package/dist/tree/state/variable-instance/variable-instance.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, FunctionDeclarationTypesUnion, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationGenerationTarget, IFunctionDeclarationReference, IFunctionDeclarationShallowTransfer, IFunctionDeclarationTransfer } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, FunctionDeclarationTypesUnion, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationGenerationTarget, IFunctionDeclarationReference, IFunctionDeclarationShallowTransfer, IFunctionDeclarationTransfer, IInternalCallTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
5
|
import { ReturnStatementState } from '../return-statement';
|
|
6
|
-
import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState } from '../types';
|
|
6
|
+
import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, VariableState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { InstalledProjectState } from '../installed-project';
|
|
9
9
|
import { CustomEntityState } from '../custom-entity';
|
|
@@ -14,6 +14,7 @@ import { ActionDescriptorState } from '../action-descriptor';
|
|
|
14
14
|
import { VariableInstanceState } from '../variable-instance';
|
|
15
15
|
import { EntityError, EntityGenerationError } from '../error';
|
|
16
16
|
import { FunctionCallState } from '../function-call';
|
|
17
|
+
import { InternalCallState } from '../internal-call';
|
|
17
18
|
|
|
18
19
|
export declare class FunctionDeclarationState implements IFunctionDeclaration, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass {
|
|
19
20
|
initialData: IFunctionDeclarationTransfer | IFunctionDeclaration;
|
|
@@ -109,6 +110,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
109
110
|
getVariableInstances(): VariableInstanceState[];
|
|
110
111
|
getArgument(id: EntityId): ArgumentDeclarationState | null;
|
|
111
112
|
createCall(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IFunctionCallTransfer>): FunctionCallState;
|
|
113
|
+
createInternalCall(parent: VariableState, overrides?: Partial<IInternalCallTransfer>): InternalCallState;
|
|
112
114
|
addReturnStatement(statement: ReturnStatementState): FunctionDeclarationState;
|
|
113
115
|
removeReturnStatement(statement: ReturnStatementState): FunctionDeclarationState;
|
|
114
116
|
}
|
|
@@ -28,6 +28,7 @@ export declare class InternalCallState implements IInternalCall, UserManagedEnti
|
|
|
28
28
|
project: ProjectState;
|
|
29
29
|
errors: EntityError[];
|
|
30
30
|
initialized: boolean;
|
|
31
|
+
suggestion: boolean;
|
|
31
32
|
constructor(initialOperationData: IInternalCall | IInternalCallTransfer, parentProjectState: ProjectState);
|
|
32
33
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
33
34
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
@@ -25,6 +25,7 @@ export declare class PrimitiveEntityState implements BaseState, IPrimitiveEntity
|
|
|
25
25
|
errors: EntityError[];
|
|
26
26
|
project: ProjectState;
|
|
27
27
|
constructor(initialEntityData: IPrimitiveEntity | IPrimitiveEntityTransfer, parentProjectState: ProjectState);
|
|
28
|
+
get extendedProperties(): PropertyState[];
|
|
28
29
|
subscribe(): PrimitiveEntityState;
|
|
29
30
|
unsubscribe(): PrimitiveEntityState;
|
|
30
31
|
load(): Promise<PrimitiveEntityState>;
|
|
@@ -35,6 +35,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
35
35
|
errors: EntityError[];
|
|
36
36
|
project: ProjectState;
|
|
37
37
|
initialized: boolean;
|
|
38
|
+
suggestion: boolean;
|
|
38
39
|
constructor(initialVariableDeclarationData: IVariableDeclaration | IVariableDeclarationTransfer, parentProjectState: ProjectState);
|
|
39
40
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
40
41
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
@@ -64,6 +65,8 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
64
65
|
get unusedInputs(): VariableInputMapState[];
|
|
65
66
|
get usedOutputs(): VariableOutputMapState[];
|
|
66
67
|
get unusedOutputs(): VariableOutputMapState[];
|
|
68
|
+
get usedInternalCalls(): InternalCallState[];
|
|
69
|
+
get unusedInternalCalls(): InternalCallState[];
|
|
67
70
|
removeInput(input: VariableInputMapState): VariableDeclarationState;
|
|
68
71
|
addInput(input: VariableInputMapState): VariableDeclarationState;
|
|
69
72
|
addOutput(output: VariableOutputMapState): VariableDeclarationState;
|
|
@@ -123,6 +126,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
123
126
|
createInstance(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IVariableInstanceTransfer>): VariableInstanceState;
|
|
124
127
|
generateUnusedInputs(): VariableInputMapState[];
|
|
125
128
|
generateUnusedOutputs(): VariableOutputMapState[];
|
|
129
|
+
generateUnusedInternalCalls(): InternalCallState[];
|
|
126
130
|
setDataType(dataType: DataTypeState): VariableDeclarationState;
|
|
127
131
|
removeDataType(): VariableDeclarationState;
|
|
128
132
|
getDataType(): DataTypeState | null;
|
|
@@ -33,6 +33,7 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
33
33
|
errors: EntityError[];
|
|
34
34
|
parent: EntityWithLogicScopeState | ProjectState;
|
|
35
35
|
initialized: boolean;
|
|
36
|
+
suggestion: boolean;
|
|
36
37
|
constructor(initialVariableDeclarationData: IVariableInstance | IVariableInstanceTransfer, parentProjectState: ProjectState);
|
|
37
38
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
38
39
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
@@ -62,6 +63,8 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
62
63
|
get unusedInputs(): VariableInputMapState[];
|
|
63
64
|
get usedOutputs(): VariableOutputMapState[];
|
|
64
65
|
get unusedOutputs(): VariableOutputMapState[];
|
|
66
|
+
get usedInternalCalls(): InternalCallState[];
|
|
67
|
+
get unusedInternalCalls(): InternalCallState[];
|
|
65
68
|
removeInput(input: VariableInputMapState): VariableInstanceState;
|
|
66
69
|
addInput(input: VariableInputMapState): VariableInstanceState;
|
|
67
70
|
addOutput(output: VariableOutputMapState): VariableInstanceState;
|
|
@@ -121,6 +124,7 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
121
124
|
setDeclaration(declaration: VariableDeclarationState): VariableInstanceState;
|
|
122
125
|
generateUnusedInputs(): VariableInputMapState[];
|
|
123
126
|
generateUnusedOutputs(): VariableOutputMapState[];
|
|
127
|
+
generateUnusedInternalCalls(): InternalCallState[];
|
|
124
128
|
getDataType(): DataTypeState | null;
|
|
125
129
|
getUnusedInputs(): VariableInputMapState[];
|
|
126
130
|
getUnusedOutputs(): VariableOutputMapState[];
|
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.6004",
|
|
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",
|