@elyx-code/project-logic-tree 0.0.6022 → 0.0.6024
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 +4332 -4019
- package/dist/index.umd.cjs +185 -185
- package/dist/tree/state/data-type/data-type.d.ts +2 -1
- package/dist/tree/state/loop/loop.d.ts +11 -2
- package/dist/tree/state/output-map/output-map.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from
|
|
|
4
4
|
import { CustomEntityState } from '../custom-entity';
|
|
5
5
|
import { PrimitiveEntityState } from '../primitive-entity';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
|
-
import { EntityState } from '../types';
|
|
7
|
+
import { EntityState, IChangeSet } from '../types';
|
|
8
8
|
import { PropertyState } from '../property';
|
|
9
9
|
import { VariableDeclarationState } from '../variable-declaration';
|
|
10
10
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
@@ -103,6 +103,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
103
103
|
getErrors(): EntityError[];
|
|
104
104
|
getShallowErrors(): EntityError[];
|
|
105
105
|
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
106
|
+
merge(sourceDataType: DataTypeState): IChangeSet<DataTypeState>;
|
|
106
107
|
addToAndGroup(child: DataTypeState): DataTypeState;
|
|
107
108
|
addToOrGroup(child: DataTypeState): DataTypeState;
|
|
108
109
|
getDefaultValue(): PrimitiveValueState | null;
|
|
@@ -13,6 +13,8 @@ import { EntityError, EntityGenerationError } from '../../state/error';
|
|
|
13
13
|
import { ReturnStatementState } from '../return-statement';
|
|
14
14
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
15
15
|
import { ValueDescriptorState } from '../value-descriptor';
|
|
16
|
+
import { ReturnDeclarationState } from '../return-declaration';
|
|
17
|
+
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
16
18
|
|
|
17
19
|
export declare class LoopState implements ILoop, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState, EntityWithLogicScopeClass, PassThroughCallableEntityClass {
|
|
18
20
|
initialData: ILoop | ILoopTransfer;
|
|
@@ -59,6 +61,10 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
|
|
|
59
61
|
errors: EntityGenerationError[];
|
|
60
62
|
modifiedData: ILoopGenerationTarget;
|
|
61
63
|
};
|
|
64
|
+
static fromReturnDeclarationToBodyArgumentDeclarationName(returnDeclaration: ReturnDeclarationState): string;
|
|
65
|
+
static fromBodyArgumentDeclarationToReturnDeclarationName(argumentDeclaration: ArgumentDeclarationState): string;
|
|
66
|
+
static fromReturnDeclarationToLoopOutputDeclarationName(returnDeclaration: ReturnDeclarationState): string;
|
|
67
|
+
static fromLoopOutputDeclarationToReturnDeclarationName(outputDeclaration: ValueDescriptorState): string;
|
|
62
68
|
validateGeneratedUpdate(data: Partial<ILoopGenerationTarget>): {
|
|
63
69
|
errors: EntityGenerationError[];
|
|
64
70
|
modifiedData: Partial<ILoopGenerationTarget>;
|
|
@@ -130,9 +136,12 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
|
|
|
130
136
|
removeBreakStatement(statement: BreakStatementState): LoopState;
|
|
131
137
|
addContinueStatement(statement: ContinueStatementState): LoopState;
|
|
132
138
|
removeContinueStatement(statement: ContinueStatementState): LoopState;
|
|
139
|
+
getUniqueReturnDeclarations(): ReturnDeclarationState[];
|
|
133
140
|
syncTerminationStatements(): IChangeSet<LoopState>;
|
|
134
|
-
|
|
141
|
+
syncBodyArgumentsDeclarations(): IChangeSet<LoopState>;
|
|
142
|
+
syncOutputsDeclarations(): IChangeSet<LoopState>;
|
|
143
|
+
syncOutputMaps(): IChangeSet<LoopState>;
|
|
135
144
|
syncInputs(): IChangeSet<LoopState>;
|
|
136
|
-
|
|
145
|
+
syncChildren(): IChangeSet<LoopState>;
|
|
137
146
|
}
|
|
138
147
|
export type LoopPayloadUnion = LoopState | LoopTypesUnion;
|
|
@@ -56,6 +56,7 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
56
56
|
addValueReader(entity: ValueReadingEntityState): OutputMapState;
|
|
57
57
|
removeValueReader(valueReader: ValueReadingEntityState): OutputMapState;
|
|
58
58
|
setParent(parent: PassThroughCallableEntityWithOutputsState): OutputMapState;
|
|
59
|
+
setDeclaration(declaration: ReturnDeclarationState | PropertyState | ValueDescriptorState): OutputMapState;
|
|
59
60
|
initChildren(): OutputMapState;
|
|
60
61
|
subscribe(): OutputMapState;
|
|
61
62
|
unsubscribe(): OutputMapState;
|
|
@@ -64,7 +65,7 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
64
65
|
create(): Promise<OutputMapState>;
|
|
65
66
|
update(_: Partial<OutputMapTypesUnion>): Promise<OutputMapState>;
|
|
66
67
|
delete(): Promise<OutputMapState>;
|
|
67
|
-
remove({ ignoreUpstream
|
|
68
|
+
remove({ ignoreUpstream, seenEntities, }?: {
|
|
68
69
|
ignoreUpstream: boolean;
|
|
69
70
|
seenEntities: Set<string>;
|
|
70
71
|
}): {
|
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.6024",
|
|
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",
|