@elyx-code/project-logic-tree 0.0.6019 → 0.0.6020

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.
@@ -63,7 +63,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
63
63
  self: InputMapState;
64
64
  };
65
65
  setParent(parent: PassThroughCallableEntityState | InputMapState): InputMapState;
66
- setDeclaration(declaration: ArgumentDeclarationState | PropertyState | null): InputMapState;
66
+ setDeclaration(declaration: ArgumentDeclarationState | PropertyState | ValueDescriptorState | null): InputMapState;
67
67
  removeInput(input: InputMapState): InputMapState;
68
68
  addInput(input: InputMapState): InputMapState;
69
69
  initChildren(): InputMapState;
@@ -3,7 +3,7 @@ import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithLogicScopeClass, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { ActionInputMapState } from '../input-map';
5
5
  import { ActionOutputMapState } from '../output-map';
6
- import { CallableEntityState, CallerEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState } from '../types';
6
+ import { CallableEntityState, CallerEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
7
7
  import { ProjectState } from '../project/project';
8
8
  import { BreakStatementState } from '../break-statement';
9
9
  import { ContinueStatementState } from '../continue-statement';
@@ -126,5 +126,8 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
126
126
  removeBreakStatement(statement: BreakStatementState): LoopState;
127
127
  addContinueStatement(statement: ContinueStatementState): LoopState;
128
128
  removeContinueStatement(statement: ContinueStatementState): LoopState;
129
+ syncTerminationStatements(): IChangeSet<LoopState>;
130
+ syncChildren(): IChangeSet<LoopState>;
131
+ inferAndPadAndSyncMissingChildren(): IChangeSet<LoopState>;
129
132
  }
130
133
  export type LoopPayloadUnion = LoopState | LoopTypesUnion;
@@ -0,0 +1 @@
1
+ export {};
@@ -2,3 +2,4 @@ import { EntityError } from '../../error';
2
2
  import { LoopState } from '../loop';
3
3
 
4
4
  export declare function validate(self: LoopState): EntityError[];
5
+ export declare function validateListLoop(self: LoopState): EntityError[];
@@ -1,4 +1,5 @@
1
1
  import { ProjectState } from '../project';
2
+ import { EntityState } from './state';
2
3
 
3
4
  export * from './state';
4
5
  export * from './validation';
@@ -6,3 +7,9 @@ export interface IModuleInjection {
6
7
  id: string;
7
8
  init(project: ProjectState): Promise<void> | void;
8
9
  }
10
+ export interface IChangeSet<T = EntityState> {
11
+ added: EntityState[];
12
+ updated: EntityState[];
13
+ removed: EntityState[];
14
+ self: T;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6019",
3
+ "version": "0.0.6020",
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",