@elyx-code/project-logic-tree 0.0.6017 → 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 +13150 -13181
  2. package/dist/index.umd.cjs +239 -239
  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 +5 -4
  10. package/dist/tree/state/data-type/data-type.d.ts +5 -4
  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 +5 -4
  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 -6
  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;
@@ -127,8 +130,6 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
127
130
  };
128
131
  };
129
132
  getAllInteractiveMethods(): FunctionDeclarationState[];
130
- inferFromInputs(inputs: VariableInputMapState[], { debug, }?: {
131
- debug?: boolean;
132
- }): CustomEntityState;
133
+ inferFromInputs(inputs: VariableInputMapState[]): CustomEntityState;
133
134
  }
134
135
  export type CustomEntityPayloadUnion = CustomEntityState | CustomEntityTypesUnion;
@@ -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;
@@ -105,8 +108,6 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
105
108
  getDefaultValue(): PrimitiveValueState | null;
106
109
  setDefaultValue(value: PrimitiveValueState): DataTypeState;
107
110
  setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState): DataTypeState;
108
- inferFromInputs(inputs: VariableInputMapState[], { debug, }?: {
109
- debug?: boolean;
110
- }): DataTypeState;
111
+ inferFromInputs(inputs: VariableInputMapState[]): DataTypeState;
111
112
  }
112
113
  export type DataTypePayloadUnion = DataTypeState | DataTypeTypesUnion;
@@ -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;
@@ -105,9 +108,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
105
108
  getDefaultValue(): PrimitiveValueState | null;
106
109
  setDefaultValue(value: PrimitiveValueState): InputMapState;
107
110
  clone(_?: PassThroughCallableEntityState): InputMapState;
108
- getDataType({ debug, }?: {
109
- debug?: boolean;
110
- }): DataTypeState | null;
111
+ getDataType(): DataTypeState | null;
111
112
  }
112
113
  export declare class VariableInputMapState extends InputMapState implements IVariableInputMap {
113
114
  declaration: PropertyState | null;
@@ -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;
@@ -10,7 +10,6 @@ import { VariableInputMapState } from '../input-map';
10
10
  import { EntityError, EntityGenerationError } from '../error';
11
11
  import { PrimitiveValueState } from '../primitive-value';
12
12
  import { VariableInstanceState } from '../variable-instance';
13
- import { PropertyState } from '../property';
14
13
 
15
14
  export declare class VariableDeclarationState implements IVariableDeclaration, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
16
15
  initialData: IVariableDeclaration | IVariableDeclarationTransfer;
@@ -61,7 +60,10 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
61
60
  errors: EntityGenerationError[];
62
61
  modifiedData: Partial<IVariableDeclarationGenerationTarget>;
63
62
  };
64
- addSelfToProject(): VariableDeclarationState;
63
+ addSelfToProject(): {
64
+ affected: EntityState[];
65
+ self: VariableDeclarationState;
66
+ };
65
67
  get calledBy(): CallerEntityState[];
66
68
  get usedInputs(): VariableInputMapState[];
67
69
  get unusedInputs(): VariableInputMapState[];
@@ -91,10 +93,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
91
93
  subscribeInstance(instance: VariableInstanceState): VariableDeclarationState;
92
94
  removeInstance(instance: VariableInstanceState): VariableDeclarationState;
93
95
  getMasterInputWithValueWritterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
94
- getPropertyForInputFromAllInstances(input: VariableInputMapState): PropertyState | null;
95
- inferDataTypeAndSyncInstancesInputsAndOutputs({ debug, }?: {
96
- debug?: boolean;
97
- }): VariableDeclarationState;
96
+ inferDataTypeAndSyncInstancesInputsAndOutputs(): VariableDeclarationState;
98
97
  sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
99
98
  load(): Promise<VariableDeclarationState>;
100
99
  create(): 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.6017",
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",