@elyx-code/project-logic-tree 0.0.6022 → 0.0.6023

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.
@@ -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,7 @@ 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';
16
17
 
17
18
  export declare class LoopState implements ILoop, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState, EntityWithLogicScopeClass, PassThroughCallableEntityClass {
18
19
  initialData: ILoop | ILoopTransfer;
@@ -59,6 +60,8 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
59
60
  errors: EntityGenerationError[];
60
61
  modifiedData: ILoopGenerationTarget;
61
62
  };
63
+ static fromReturnDeclarationToBodyArgumentDeclarationName(returnDeclaration: ReturnDeclarationState): string;
64
+ static fromReturnDeclarationToLoopOutputDeclarationName(returnDeclaration: ReturnDeclarationState): string;
62
65
  validateGeneratedUpdate(data: Partial<ILoopGenerationTarget>): {
63
66
  errors: EntityGenerationError[];
64
67
  modifiedData: Partial<ILoopGenerationTarget>;
@@ -130,9 +133,12 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
130
133
  removeBreakStatement(statement: BreakStatementState): LoopState;
131
134
  addContinueStatement(statement: ContinueStatementState): LoopState;
132
135
  removeContinueStatement(statement: ContinueStatementState): LoopState;
136
+ getUniqueReturnDeclarations(): ReturnDeclarationState[];
133
137
  syncTerminationStatements(): IChangeSet<LoopState>;
134
- inferAndSyncBodyArgumentsFromReturnDeclarations(): IChangeSet<LoopState>;
138
+ syncBodyArgumentsDeclarations(): IChangeSet<LoopState>;
139
+ syncOutputsDeclarations(): IChangeSet<LoopState>;
140
+ syncOutputMaps(): IChangeSet<LoopState>;
135
141
  syncInputs(): IChangeSet<LoopState>;
136
- inferAndPadAndSyncMissingChildren(): IChangeSet<LoopState>;
142
+ syncChildren(): IChangeSet<LoopState>;
137
143
  }
138
144
  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: _, seenEntities, }?: {
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.6022",
3
+ "version": "0.0.6023",
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",