@elyx-code/project-logic-tree 0.0.6268 → 0.0.6270

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.
@@ -9,7 +9,7 @@ import { VariableDeclarationState } from '../variable-declaration';
9
9
  import { ConditionState } from '../condition';
10
10
  import { FunctionCallState } from '../function-call';
11
11
  import { OperationState } from '../operation';
12
- import { ChangeSet, DataTypeState, EntityState, EntryPointEntityState, IChangeSet, PrimitiveEntityState, VariableState } from '..';
12
+ import { ChangeSet, DataTypeState, EntityState, EntryPointEntityState, IChangeSet, LiteralValueState, PrimitiveEntityState, VariableState } from '..';
13
13
  import { LoopState } from '../loop';
14
14
  import { SearchState } from '../search';
15
15
  import { VariableInstanceState } from '../variable-instance';
@@ -17,15 +17,24 @@ import { BuiltInBaseEntityState } from '../built-in-base-entity';
17
17
  import { EntityError, EntityGenerationError } from '../error';
18
18
  import { ActionDescriptorState } from '../action-descriptor';
19
19
  import { ValueDescriptorState } from '../value-descriptor';
20
- import { IModuleInjection, TerminationState, UserManagedEntityState } from '../types';
20
+ import { EntityWithValueState, IModuleInjection, TerminationState, UserManagedEntityState } from '../types';
21
21
  import { VersionedState } from '../version';
22
+ import { Events } from '../../../events';
22
23
 
23
24
  export interface UUIDModule {
24
25
  isBackup?: boolean;
25
26
  uuid: () => string;
26
27
  fromUUID: (uuid: string) => string;
27
28
  }
28
- export declare class ProjectState extends VersionedState implements IProject, UserManagedEntityStateTemplate, BaseState {
29
+ export declare enum ProjectStateEvents {
30
+ REQUEST_ACTIVE_VALUE = "request-active-value"
31
+ }
32
+ declare class CombinedVersionedEvents extends VersionedState {
33
+ constructor(...args: ConstructorParameters<typeof VersionedState>);
34
+ }
35
+ export interface ProjectState extends Events {
36
+ }
37
+ export declare class ProjectState extends CombinedVersionedEvents implements IProject, UserManagedEntityStateTemplate, BaseState {
29
38
  initialData: IProject | IProjectTransfer;
30
39
  readonly id: EntityId;
31
40
  type: EntityType.Project;
@@ -77,6 +86,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
77
86
  onCloseChangeSetCallback: ((changeSet: ChangeSet) => Promise<{
78
87
  success: boolean;
79
88
  }>) | null;
89
+ onRequestActiveValueCallback: ((valueOwner: EntityWithValueState) => LiteralValueState | null) | null;
80
90
  constructor(initialData: IProject | IProjectTransfer);
81
91
  static sessionAuthor: string;
82
92
  static UUID: UUIDModule;
@@ -104,6 +114,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
104
114
  modifiedData: IProjectGenerationTarget;
105
115
  };
106
116
  closePendingChangeSets(): Promise<void>;
117
+ onRequestActiveValue(callback: (valueOwner: EntityWithValueState) => LiteralValueState | null): void;
107
118
  onCloseChangeSet(callback: (changeSet: ChangeSet) => Promise<{
108
119
  success: boolean;
109
120
  }>): Promise<void>;
@@ -245,5 +256,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
245
256
  getSearches(): SearchState[];
246
257
  attachOrphanReferences(): ProjectState;
247
258
  getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
259
+ requestActiveValue(valueOwner: EntityWithValueState): LiteralValueState | null;
248
260
  }
249
261
  export type ProjectPayloadUnion = ProjectState | ProjectTypesUnion;
262
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6268",
3
+ "version": "0.0.6270",
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",