@elyx-code/project-logic-tree 0.0.6128 → 0.0.6130

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.
@@ -2,6 +2,7 @@ import { CallableEntity, CallableEntityTransfer, IInstalledProject, IProject, IP
2
2
 
3
3
  export interface IBaseEventTransfer extends IBaseCanvasDraggable {
4
4
  type: EntityType.GlobalEvent;
5
+ description: string | null;
5
6
  returnStatements: (IReturnStatement | IReturnStatementTransfer)[];
6
7
  inputs: (IArgumentDeclaration | IArgumentDeclarationTransfer)[];
7
8
  calls: (CallableEntity | CallableEntityTransfer)[];
@@ -12,6 +13,7 @@ export interface IBaseEventGenerationTarget extends IGenericBase {
12
13
  }
13
14
  export interface IBaseEventShallowTransfer extends IBaseCanvasDraggable {
14
15
  type: EntityType.GlobalEvent;
16
+ description: string | null;
15
17
  returnStatements: IReturnStatementReference[];
16
18
  inputs: IArgumentDeclarationReference[];
17
19
  calls: CallableEntityReference[];
@@ -24,6 +26,7 @@ export declare enum GlobalEventNames {
24
26
  export interface IGlobalEventTransfer extends IBaseEventTransfer, IChildEntityTransfer {
25
27
  type: EntityType.GlobalEvent;
26
28
  name: GlobalEventNames;
29
+ description: string | null;
27
30
  implements: IActionDescriptor | IActionDescriptorTransfer;
28
31
  parent: IProject | IProjectReference | IInstalledProject | IInstalledProjectReference;
29
32
  }
@@ -31,6 +34,7 @@ export interface IGlobalEventGenerationTarget extends IChildEntityGenerationTarg
31
34
  id: EntityId;
32
35
  type: EntityType.GlobalEvent;
33
36
  name: GlobalEventNames;
37
+ description?: string;
34
38
  implements: EntityId;
35
39
  parent?: EntityId;
36
40
  }
package/dist/index.js CHANGED
@@ -13525,6 +13525,7 @@ const F_ = {
13525
13525
  id: mi,
13526
13526
  version: 1,
13527
13527
  name: xn.PROJECT_PUBLICATION_COMPLETED,
13528
+ description: null,
13528
13529
  returnStatements: [],
13529
13530
  collapsed: !1,
13530
13531
  implements: gl,
@@ -27651,7 +27652,7 @@ const pe = class pe {
27651
27652
  d(this, "project");
27652
27653
  // Meta
27653
27654
  d(this, "initialized", !1);
27654
- this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.name = e.name, this.x = e.x, this.y = e.y, this.collapsed = e.collapsed;
27655
+ this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.name = e.name, this.description = e.description, this.x = e.x, this.y = e.y, this.collapsed = e.collapsed;
27655
27656
  }
27656
27657
  /*
27657
27658
  Takes a bare-bones object generated by the AI,
@@ -27674,6 +27675,7 @@ const pe = class pe {
27674
27675
  id: e.id,
27675
27676
  version: 1,
27676
27677
  name: e.name,
27678
+ description: e.description || null,
27677
27679
  type: i.GlobalEvent,
27678
27680
  collapsed: !1,
27679
27681
  returnStatements: [],
@@ -27884,7 +27886,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
27884
27886
  return this.project.unsubscribeInstance(this), this;
27885
27887
  }
27886
27888
  sync(e) {
27887
- return this.version = e.version || this.version, this.name = e.name || this.name, this.x = e.x || this.x, this.y = e.y || this.y, this.collapsed = e.collapsed !== void 0 ? e.collapsed : this.collapsed, this;
27889
+ return this.version = e.version || this.version, this.name = e.name || this.name, this.description = e.description || this.description, this.x = e.x || this.x, this.y = e.y || this.y, this.collapsed = e.collapsed !== void 0 ? e.collapsed : this.collapsed, this;
27888
27890
  }
27889
27891
  async load(e = _, ...t) {
27890
27892
  return await pe.repository.load(this.id, ...t), this;
@@ -27983,6 +27985,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
27983
27985
  version: this.version,
27984
27986
  type: this.type,
27985
27987
  name: this.name,
27988
+ description: this.description,
27986
27989
  x: this.x,
27987
27990
  y: this.y,
27988
27991
  collapsed: this.collapsed,
@@ -28001,18 +28004,28 @@ You can attach new logic to the existing 'global-event' but creating a new calla
28001
28004
  version: this.version,
28002
28005
  type: this.type,
28003
28006
  name: this.name,
28007
+ description: this.description,
28004
28008
  x: this.x,
28005
28009
  y: this.y,
28006
28010
  collapsed: this.collapsed,
28007
28011
  implements: this.implements.toJSON(),
28008
28012
  returnStatements: this.returnStatements.map(
28009
- (u) => u.toJSONClone({ ...e, newId: null })
28013
+ (u) => u.toJSONClone({
28014
+ ...e,
28015
+ newId: null
28016
+ })
28010
28017
  ),
28011
28018
  inputs: this.inputs.map(
28012
- (u) => u.toJSONClone({ ...e, newId: null })
28019
+ (u) => u.toJSONClone({
28020
+ ...e,
28021
+ newId: null
28022
+ })
28013
28023
  ),
28014
28024
  calls: this.calls.map(
28015
- (u) => u.toJSONClone({ ...e, newId: null })
28025
+ (u) => u.toJSONClone({
28026
+ ...e,
28027
+ newId: null
28028
+ })
28016
28029
  ),
28017
28030
  parent: this.parent.toReference({
28018
28031
  seenEntityMaps: e.seenEntityMaps
@@ -28037,6 +28050,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
28037
28050
  version: this.version,
28038
28051
  type: this.type,
28039
28052
  name: this.name,
28053
+ description: this.description,
28040
28054
  collapsed: this.collapsed,
28041
28055
  x: this.x,
28042
28056
  y: this.y,
@@ -28063,6 +28077,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
28063
28077
  return {
28064
28078
  id: this.id,
28065
28079
  name: this.name,
28080
+ description: this.description || void 0,
28066
28081
  type: this.type,
28067
28082
  implements: this.implements.id
28068
28083
  };
@@ -35150,7 +35165,7 @@ const fe = class fe {
35150
35165
  // Meta
35151
35166
  d(this, "initialized", !1);
35152
35167
  d(this, "suggestion", !1);
35153
- this.initialData = e, this.project = t, this.id = e.id, this.version = e.version;
35168
+ this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.index = e.index;
35154
35169
  }
35155
35170
  /*
35156
35171
  Takes a bare-bones object generated by the AI,