@elyx-code/project-logic-tree 0.0.6016 → 0.0.6018

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.
Files changed (29) hide show
  1. package/dist/index.js +9721 -9486
  2. package/dist/index.umd.cjs +211 -211
  3. package/dist/tree/state/action-descriptor/action-descriptor.d.ts +4 -1
  4. package/dist/tree/state/argument-declaration/argument-declaration.d.ts +4 -1
  5. package/dist/tree/state/base.d.ts +4 -1
  6. package/dist/tree/state/break-statement/break-statement.d.ts +4 -1
  7. package/dist/tree/state/condition/condition.d.ts +4 -1
  8. package/dist/tree/state/continue-statement/continue-statement.d.ts +4 -1
  9. package/dist/tree/state/custom-entity/custom-entity.d.ts +4 -1
  10. package/dist/tree/state/data-type/data-type.d.ts +4 -1
  11. package/dist/tree/state/function-call/function-call.d.ts +4 -1
  12. package/dist/tree/state/function-declaration/function-declaration.d.ts +4 -1
  13. package/dist/tree/state/global-event/global-event.d.ts +4 -1
  14. package/dist/tree/state/input-map/input-map.d.ts +4 -1
  15. package/dist/tree/state/installed-project/installed-project.d.ts +4 -1
  16. package/dist/tree/state/internal-call/internal-call.d.ts +4 -1
  17. package/dist/tree/state/loop/loop.d.ts +4 -1
  18. package/dist/tree/state/operation/operation.d.ts +4 -1
  19. package/dist/tree/state/output-map/output-map.d.ts +4 -1
  20. package/dist/tree/state/primitive-value/primitive-value.d.ts +4 -1
  21. package/dist/tree/state/project/project.d.ts +4 -1
  22. package/dist/tree/state/property/property.d.ts +4 -1
  23. package/dist/tree/state/return-declaration/return-declaration.d.ts +4 -1
  24. package/dist/tree/state/return-statement/return-statement.d.ts +4 -1
  25. package/dist/tree/state/search/search.d.ts +4 -1
  26. package/dist/tree/state/value-descriptor/value-descriptor.d.ts +4 -1
  27. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +5 -1
  28. package/dist/tree/state/variable-instance/variable-instance.d.ts +4 -1
  29. package/package.json +1 -1
@@ -59,7 +59,10 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
59
59
  errors: EntityGenerationError[];
60
60
  modifiedData: Partial<IActionDescriptorGenerationTarget>;
61
61
  };
62
- addSelfToProject(): ActionDescriptorState;
62
+ addSelfToProject(): {
63
+ affected: EntityState[];
64
+ self: ActionDescriptorState;
65
+ };
63
66
  setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState): ActionDescriptorState;
64
67
  setDynamicReturnTypes(dataType: DataTypeState): ActionDescriptorState;
65
68
  setDynamicArgumentTypes(dataType: DataTypeState): ActionDescriptorState;
@@ -48,7 +48,10 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
48
48
  errors: EntityGenerationError[];
49
49
  modifiedData: Partial<IArgumentDeclarationGenerationTarget>;
50
50
  };
51
- addSelfToProject(): ArgumentDeclarationState;
51
+ addSelfToProject(): {
52
+ affected: EntityState[];
53
+ self: ArgumentDeclarationState;
54
+ };
52
55
  addValueReader(entity: ValueReadingEntityState): ArgumentDeclarationState;
53
56
  removeValueReader(valueReader: ValueReadingEntityState): ArgumentDeclarationState;
54
57
  setParent(parent: EntryPointEntityState | SearchState): ArgumentDeclarationState;
@@ -31,7 +31,10 @@ export declare abstract class SharedStateFunctionality {
31
31
  abstract getShallowErrors(): EntityError[];
32
32
  }
33
33
  export declare abstract class UserManagedEntityStateFunctionality {
34
- abstract addSelfToProject(): UserManagedEntityStateFunctionality;
34
+ abstract addSelfToProject(): {
35
+ affected: EntityState[];
36
+ self: UserManagedEntityStateFunctionality;
37
+ };
35
38
  abstract sync(data: Partial<IGenericBase>): SharedStateFunctionality;
36
39
  abstract create(): Promise<SharedStateFunctionality>;
37
40
  abstract update(data: Partial<ElementTypesUnion>): Promise<SharedStateFunctionality>;
@@ -48,7 +48,10 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
48
48
  errors: EntityGenerationError[];
49
49
  modifiedData: Partial<IBreakStatementGenerationTarget>;
50
50
  };
51
- addSelfToProject(): BreakStatementState;
51
+ addSelfToProject(): {
52
+ affected: EntityState[];
53
+ self: BreakStatementState;
54
+ };
52
55
  get calledBy(): CallerEntityState[];
53
56
  addSuccessCaller(caller: PassThroughCallableEntityState): BreakStatementState;
54
57
  addErrorCaller(caller: PassThroughCallableEntityState): BreakStatementState;
@@ -49,7 +49,10 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
49
49
  errors: EntityGenerationError[];
50
50
  modifiedData: Partial<IConditionGenerationTarget>;
51
51
  };
52
- addSelfToProject(): ConditionState;
52
+ addSelfToProject(): {
53
+ affected: EntityState[];
54
+ self: ConditionState;
55
+ };
53
56
  get calledBy(): CallerEntityState[];
54
57
  removeInput(input: ActionInputMapState): ConditionState;
55
58
  addInput(input: ActionInputMapState): ConditionState;
@@ -48,7 +48,10 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
48
48
  errors: EntityGenerationError[];
49
49
  modifiedData: Partial<IContinueStatementGenerationTarget>;
50
50
  };
51
- addSelfToProject(): ContinueStatementState;
51
+ addSelfToProject(): {
52
+ affected: EntityState[];
53
+ self: ContinueStatementState;
54
+ };
52
55
  get calledBy(): CallerEntityState[];
53
56
  addSuccessCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
54
57
  addErrorCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
@@ -57,7 +57,10 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
57
57
  errors: EntityGenerationError[];
58
58
  modifiedData: Partial<ICustomEntityGenerationTarget>;
59
59
  };
60
- addSelfToProject(): CustomEntityState;
60
+ addSelfToProject(): {
61
+ affected: EntityState[];
62
+ self: CustomEntityState;
63
+ };
61
64
  setParent(parent: ProjectState | DataTypeState): CustomEntityState;
62
65
  removeProperty(property: PropertyState): CustomEntityState;
63
66
  addMethod(method: FunctionDeclarationState): CustomEntityState;
@@ -59,7 +59,10 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
59
59
  errors: EntityGenerationError[];
60
60
  modifiedData: Partial<IDataTypeGenerationTarget>;
61
61
  };
62
- addSelfToProject(): DataTypeState;
62
+ addSelfToProject(): {
63
+ affected: EntityState[];
64
+ self: DataTypeState;
65
+ };
63
66
  setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState): DataTypeState;
64
67
  removeChildGroup(child: DataTypeState): DataTypeState;
65
68
  initChildren(): DataTypeState;
@@ -52,7 +52,10 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
52
52
  errors: EntityGenerationError[];
53
53
  modifiedData: Partial<IFunctionCallGenerationTarget>;
54
54
  };
55
- addSelfToProject(): FunctionCallState;
55
+ addSelfToProject(): {
56
+ affected: EntityState[];
57
+ self: FunctionCallState;
58
+ };
56
59
  get calledBy(): CallerEntityState[];
57
60
  removeInput(input: ActionInputMapState): FunctionCallState;
58
61
  addInput(input: ActionInputMapState): FunctionCallState;
@@ -61,7 +61,10 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
61
61
  errors: EntityGenerationError[];
62
62
  modifiedData: Partial<IFunctionDeclarationGenerationTarget>;
63
63
  };
64
- addSelfToProject(): FunctionDeclarationState;
64
+ addSelfToProject(): {
65
+ affected: EntityState[];
66
+ self: FunctionDeclarationState;
67
+ };
65
68
  replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): FunctionDeclarationState;
66
69
  subscribeDetachedChild(child: CanvasEntityState): FunctionDeclarationState;
67
70
  addInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
@@ -52,7 +52,10 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
52
52
  errors: EntityGenerationError[];
53
53
  modifiedData: Partial<IGlobalEventGenerationTarget>;
54
54
  };
55
- addSelfToProject(): GlobalEventState;
55
+ addSelfToProject(): {
56
+ affected: EntityState[];
57
+ self: GlobalEventState;
58
+ };
56
59
  replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): GlobalEventState;
57
60
  subscribeDetachedChild(child: CanvasEntityState): GlobalEventState;
58
61
  setParent(parent: ProjectState | InstalledProjectState): GlobalEventState;
@@ -58,7 +58,10 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
58
58
  errors: EntityGenerationError[];
59
59
  modifiedData: Partial<IInputMapGenerationTarget>;
60
60
  };
61
- addSelfToProject(): InputMapState;
61
+ addSelfToProject(): {
62
+ affected: EntityState[];
63
+ self: InputMapState;
64
+ };
62
65
  setParent(parent: PassThroughCallableEntityState | InputMapState): InputMapState;
63
66
  setDeclaration(declaration: ArgumentDeclarationState | PropertyState | null): InputMapState;
64
67
  removeInput(input: InputMapState): InputMapState;
@@ -46,7 +46,10 @@ export declare class InstalledProjectState implements IInstalledProject, UserMan
46
46
  errors: EntityGenerationError[];
47
47
  modifiedData: Partial<IInstalledProjectGenerationTarget>;
48
48
  };
49
- addSelfToProject(): InstalledProjectState;
49
+ addSelfToProject(): {
50
+ affected: EntityState[];
51
+ self: InstalledProjectState;
52
+ };
50
53
  setParent(parent: ProjectState): InstalledProjectState;
51
54
  initChildren(): InstalledProjectState;
52
55
  subscribe(): InstalledProjectState;
@@ -52,7 +52,10 @@ export declare class InternalCallState implements IInternalCall, UserManagedEnti
52
52
  errors: EntityGenerationError[];
53
53
  modifiedData: Partial<IInternalCallGenerationTarget>;
54
54
  };
55
- addSelfToProject(): InternalCallState;
55
+ addSelfToProject(): {
56
+ affected: EntityState[];
57
+ self: InternalCallState;
58
+ };
56
59
  get calledBy(): CallerEntityState[];
57
60
  removeInput(input: ActionInputMapState): InternalCallState;
58
61
  addInput(input: ActionInputMapState): InternalCallState;
@@ -61,7 +61,10 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
61
61
  errors: EntityGenerationError[];
62
62
  modifiedData: Partial<ILoopGenerationTarget>;
63
63
  };
64
- addSelfToProject(): LoopState;
64
+ addSelfToProject(): {
65
+ affected: EntityState[];
66
+ self: LoopState;
67
+ };
65
68
  get calledBy(): CallerEntityState[];
66
69
  removeInput(input: ActionInputMapState): LoopState;
67
70
  addInput(input: ActionInputMapState): LoopState;
@@ -53,7 +53,10 @@ export declare class OperationState implements IOperation, BaseState, UserManage
53
53
  errors: EntityGenerationError[];
54
54
  modifiedData: Partial<IOperationGenerationTarget>;
55
55
  };
56
- addSelfToProject(): OperationState;
56
+ addSelfToProject(): {
57
+ affected: EntityState[];
58
+ self: OperationState;
59
+ };
57
60
  get calledBy(): CallerEntityState[];
58
61
  removeInput(input: ActionInputMapState): OperationState;
59
62
  addInput(input: ActionInputMapState): OperationState;
@@ -49,7 +49,10 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
49
49
  errors: EntityGenerationError[];
50
50
  modifiedData: Partial<IOutputMapGenerationTarget>;
51
51
  };
52
- addSelfToProject(): OutputMapState;
52
+ addSelfToProject(): {
53
+ affected: EntityState[];
54
+ self: OutputMapState;
55
+ };
53
56
  addValueReader(entity: ValueReadingEntityState): OutputMapState;
54
57
  removeValueReader(valueReader: ValueReadingEntityState): OutputMapState;
55
58
  setParent(parent: PassThroughCallableEntityWithOutputsState): OutputMapState;
@@ -47,7 +47,10 @@ export declare class PrimitiveValueState implements BaseState, UserManagedEntity
47
47
  errors: EntityGenerationError[];
48
48
  modifiedData: Partial<IPrimitiveValueGenerationTarget>;
49
49
  };
50
- addSelfToProject(): PrimitiveValueState;
50
+ addSelfToProject(): {
51
+ affected: EntityState[];
52
+ self: PrimitiveValueState;
53
+ };
51
54
  setParent(parent: DataTypeState | InputMapState): PrimitiveValueState;
52
55
  initChildren(): PrimitiveValueState;
53
56
  subscribe(): PrimitiveValueState;
@@ -85,7 +85,10 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
85
85
  errors: EntityGenerationError[];
86
86
  modifiedData: Partial<IProjectGenerationTarget>;
87
87
  };
88
- addSelfToProject(): ProjectState;
88
+ addSelfToProject(): {
89
+ affected: EntityState[];
90
+ self: ProjectState;
91
+ };
89
92
  get instancesList(): EntityState[];
90
93
  isOperationDeclaration(entity: ActionDescriptorState): boolean;
91
94
  isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
@@ -53,7 +53,10 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
53
53
  errors: EntityGenerationError[];
54
54
  modifiedData: Partial<IPropertyGenerationTarget>;
55
55
  };
56
- addSelfToProject(): PropertyState;
56
+ addSelfToProject(): {
57
+ affected: EntityState[];
58
+ self: PropertyState;
59
+ };
57
60
  setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState): PropertyState;
58
61
  initChildren(): PropertyState;
59
62
  subscribe(): PropertyState;
@@ -51,7 +51,10 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
51
51
  errors: EntityGenerationError[];
52
52
  modifiedData: Partial<IReturnDeclarationGenerationTarget>;
53
53
  };
54
- addSelfToProject(): ReturnDeclarationState;
54
+ addSelfToProject(): {
55
+ affected: EntityState[];
56
+ self: ReturnDeclarationState;
57
+ };
55
58
  setParent(parent: ReturnStatementState | SearchState | BreakStatementState | ContinueStatementState): ReturnDeclarationState;
56
59
  initChildren(): ReturnDeclarationState;
57
60
  setValueWriter(valueWriter: ValueWritingEntityState): ReturnDeclarationState;
@@ -47,7 +47,10 @@ export declare class ReturnStatementState implements IReturnStatement, UserManag
47
47
  errors: EntityGenerationError[];
48
48
  modifiedData: Partial<IReturnStatementGenerationTarget>;
49
49
  };
50
- addSelfToProject(): ReturnStatementState;
50
+ addSelfToProject(): {
51
+ affected: EntityState[];
52
+ self: ReturnStatementState;
53
+ };
51
54
  get calledBy(): CallerEntityState[];
52
55
  addSuccessCaller(caller: PassThroughCallableEntityState): ReturnStatementState;
53
56
  addErrorCaller(caller: PassThroughCallableEntityState): ReturnStatementState;
@@ -56,7 +56,10 @@ export declare class SearchState implements ISearch, BaseState, UserManagedEntit
56
56
  errors: EntityGenerationError[];
57
57
  modifiedData: Partial<ISearchGenerationTarget>;
58
58
  };
59
- addSelfToProject(): SearchState;
59
+ addSelfToProject(): {
60
+ affected: EntityState[];
61
+ self: SearchState;
62
+ };
60
63
  get calledBy(): CallerEntityState[];
61
64
  removeInput(input: ActionInputMapState): SearchState;
62
65
  addInput(input: ActionInputMapState): SearchState;
@@ -46,7 +46,10 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
46
46
  errors: EntityGenerationError[];
47
47
  modifiedData: Partial<IValueDescriptorGenerationTarget>;
48
48
  };
49
- addSelfToProject(): ValueDescriptorState;
49
+ addSelfToProject(): {
50
+ affected: EntityState[];
51
+ self: ValueDescriptorState;
52
+ };
50
53
  setParent(parent: ActionDescriptorState): ValueDescriptorState;
51
54
  initChildren(): ValueDescriptorState;
52
55
  subscribe(): ValueDescriptorState;
@@ -60,7 +60,10 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
60
60
  errors: EntityGenerationError[];
61
61
  modifiedData: Partial<IVariableDeclarationGenerationTarget>;
62
62
  };
63
- addSelfToProject(): VariableDeclarationState;
63
+ addSelfToProject(): {
64
+ affected: EntityState[];
65
+ self: VariableDeclarationState;
66
+ };
64
67
  get calledBy(): CallerEntityState[];
65
68
  get usedInputs(): VariableInputMapState[];
66
69
  get unusedInputs(): VariableInputMapState[];
@@ -89,6 +92,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
89
92
  unsubscribe(): VariableDeclarationState;
90
93
  subscribeInstance(instance: VariableInstanceState): VariableDeclarationState;
91
94
  removeInstance(instance: VariableInstanceState): VariableDeclarationState;
95
+ getMasterInputWithValueWritterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
92
96
  inferDataTypeAndSyncInstancesInputsAndOutputs(): VariableDeclarationState;
93
97
  sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
94
98
  load(): Promise<VariableDeclarationState>;
@@ -57,7 +57,10 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
57
57
  errors: EntityGenerationError[];
58
58
  modifiedData: Partial<IVariableInstanceGenerationTarget>;
59
59
  };
60
- addSelfToProject(): VariableInstanceState;
60
+ addSelfToProject(): {
61
+ affected: EntityState[];
62
+ self: VariableInstanceState;
63
+ };
61
64
  get calledBy(): CallerEntityState[];
62
65
  get usedInputs(): VariableInputMapState[];
63
66
  get unusedInputs(): VariableInputMapState[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6016",
3
+ "version": "0.0.6018",
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",