@elyx-code/project-logic-tree 0.0.6711 → 0.0.6713

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.
package/dist/index.js CHANGED
@@ -82509,7 +82509,7 @@ const wi = class wi extends Gr {
82509
82509
  editable: !0,
82510
82510
  type: d.FunctionCall,
82511
82511
  writesValues: [],
82512
- catchesError: !0,
82512
+ catchesError: !1,
82513
82513
  declaration: null,
82514
82514
  inputs: [],
82515
82515
  outputs: [],
@@ -86268,7 +86268,7 @@ Please consider than any updates might affect the overlap with the signature of
86268
86268
  )
86269
86269
  ), n, s = {}) {
86270
86270
  const c = {
86271
- catchesError: !0,
86271
+ catchesError: !1,
86272
86272
  id: s.id || x.UUID.uuid(),
86273
86273
  version: s.version || x.UUID.uuid(),
86274
86274
  createdAt: s.createdAt || (i == null ? void 0 : i.timestamp) || G().toISOString(),
@@ -86989,7 +86989,7 @@ const di = class di extends Gr {
86989
86989
  editable: !0,
86990
86990
  type: d.Operation,
86991
86991
  writesValues: [],
86992
- catchesError: !0,
86992
+ catchesError: !1,
86993
86993
  declaration: null,
86994
86994
  inputs: [],
86995
86995
  outputs: [],
@@ -93251,7 +93251,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
93251
93251
  )
93252
93252
  ), n, s) {
93253
93253
  const c = n || this.project, e = s || x.UUID.uuid(), y = x.UUID.uuid(), m = {
93254
- catchesError: !0,
93254
+ catchesError: !1,
93255
93255
  id: e,
93256
93256
  version: y,
93257
93257
  createdAt: (i == null ? void 0 : i.timestamp) || G().toISOString(),
@@ -93294,7 +93294,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
93294
93294
  )
93295
93295
  ), n, s) {
93296
93296
  const c = n || this.project, e = s || x.UUID.uuid(), y = x.UUID.uuid(), m = {
93297
- catchesError: !0,
93297
+ catchesError: !1,
93298
93298
  id: e,
93299
93299
  version: y,
93300
93300
  createdAt: (i == null ? void 0 : i.timestamp) || G().toISOString(),
@@ -93548,7 +93548,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
93548
93548
  )
93549
93549
  ), n, s = {}) {
93550
93550
  const c = {
93551
- catchesError: !0,
93551
+ catchesError: !1,
93552
93552
  id: s.id || x.UUID.uuid(),
93553
93553
  version: s.version || x.UUID.uuid(),
93554
93554
  createdAt: s.createdAt || (i == null ? void 0 : i.timestamp) || G().toISOString(),
@@ -93688,7 +93688,7 @@ const Zt = class Zt extends Gr {
93688
93688
  editable: !0,
93689
93689
  type: d.Loop,
93690
93690
  writesValues: [],
93691
- catchesError: !0,
93691
+ catchesError: !1,
93692
93692
  declaration: null,
93693
93693
  inputs: [],
93694
93694
  outputs: [],
@@ -125193,7 +125193,7 @@ const fi = class fi extends Gr {
125193
125193
  deletable: !0,
125194
125194
  editable: !0,
125195
125195
  type: d.VariableInstance,
125196
- catchesError: !0,
125196
+ catchesError: !1,
125197
125197
  declaration: null,
125198
125198
  internalCalls: [],
125199
125199
  successCalls: [],
@@ -127613,7 +127613,7 @@ const yi = class yi extends Gr {
127613
127613
  deletable: !0,
127614
127614
  editable: !0,
127615
127615
  type: d.VariableDeclaration,
127616
- catchesError: !0,
127616
+ catchesError: !1,
127617
127617
  name: "",
127618
127618
  codeName: null,
127619
127619
  description: "",
@@ -129752,7 +129752,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
129752
129752
  return;
129753
129753
  }
129754
129754
  if (!v.find(
129755
- (w) => b.declaration === w
129755
+ (w) => {
129756
+ var V;
129757
+ return ((V = b.declaration) == null ? void 0 : V.id) === (w == null ? void 0 : w.id);
129758
+ }
129756
129759
  )) {
129757
129760
  const w = b.remove({ ignoreUpstream: !1 }, i);
129758
129761
  c.push(...w.removed), n.push(...w.updated);
@@ -129998,31 +130001,43 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
129998
130001
  };
129999
130002
  const n = [], s = [], c = [], e = [];
130000
130003
  if (this.dataType)
130001
- if (this.dataType.entity)
130002
- this.dataType.isObject() && [
130003
- ...this.dataType.entity.properties
130004
- ].filter((v) => !this.outputs.find((b) => b.declaration === v)).map((v) => {
130005
- const b = {
130006
- id: x.UUID.uuid(),
130007
- version: x.UUID.uuid(),
130008
- createdAt: (i == null ? void 0 : i.timestamp) || G().toISOString(),
130009
- author: x.sessionAuthor,
130010
- previousVersion: null,
130011
- deleted: !1,
130012
- deletable: !0,
130013
- editable: !0,
130014
- type: d.OutputMap,
130015
- parent: this.toReference(),
130016
- declaration: v,
130017
- index: v.index,
130018
- writesValues: []
130019
- }, E = he(
130020
- b,
130021
- this.project
130022
- );
130023
- return E.setParent(this, i), E.initChildren(i), i == null || i.add(E, H.Added), this.addOutput(E, i), E;
130024
- });
130025
- else
130004
+ if (this.dataType.entity) {
130005
+ if (this.dataType.isObject()) {
130006
+ const y = [
130007
+ ...this.dataType.entity.properties
130008
+ ], m = y.filter((v) => !this.outputs.find((b) => {
130009
+ var E;
130010
+ return ((E = b.declaration) == null ? void 0 : E.id) === (v == null ? void 0 : v.id);
130011
+ }));
130012
+ this.id === "0f7ef123-9320-4a91-9bb6-32f4e77e52f2" && (console.log("Unused properties for variable declaration:", m.map((v) => `${v.id} -- ${v.name}`)), console.log("Existing outputs:", this.outputs.map((v) => {
130013
+ var b;
130014
+ return `${(b = v.declaration) == null ? void 0 : b.id} -- ${v.declaration ? v.declaration.name : "no-declaration"}`;
130015
+ })), console.log("All properties:", y.map((v) => `${v.id} -- ${v.name}`)), console.log("Data type inferred:", this.dataType.inferred)), m.map((v) => {
130016
+ const b = {
130017
+ id: x.UUID.uuid(),
130018
+ version: x.UUID.uuid(),
130019
+ createdAt: (i == null ? void 0 : i.timestamp) || G().toISOString(),
130020
+ author: x.sessionAuthor,
130021
+ previousVersion: null,
130022
+ deleted: !1,
130023
+ deletable: !0,
130024
+ editable: !0,
130025
+ type: d.OutputMap,
130026
+ parent: this.toReference(),
130027
+ declaration: v == null ? void 0 : v.toJSON(),
130028
+ index: v.index,
130029
+ writesValues: []
130030
+ };
130031
+ if (this.id === "0f7ef123-9320-4a91-9bb6-32f4e77e52f2")
130032
+ throw console.log("Creating output for property:", v), new Error("[VariableDeclarationState.syncOutputs] Creating new output from property");
130033
+ const E = he(
130034
+ b,
130035
+ this.project
130036
+ );
130037
+ return E.setParent(this, i), E.initChildren(i), i == null || i.add(E, H.Added), this.addOutput(E, i), E;
130038
+ });
130039
+ }
130040
+ } else
130026
130041
  return i == null || i.attemptAutoclose(_.SyncOutputs, this.id), {
130027
130042
  added: [],
130028
130043
  updated: [],
@@ -151636,7 +151651,7 @@ const hi = class hi extends Gr {
151636
151651
  editable: !0,
151637
151652
  type: d.Search,
151638
151653
  writesValues: [],
151639
- catchesError: !0,
151654
+ catchesError: !1,
151640
151655
  name: "",
151641
151656
  description: "",
151642
151657
  inputsDeclarations: [],
@@ -154823,7 +154838,7 @@ const mi = class mi extends Gr {
154823
154838
  editable: !0,
154824
154839
  type: d.InternalCall,
154825
154840
  writesValues: [],
154826
- catchesError: !0,
154841
+ catchesError: !1,
154827
154842
  declaration: null,
154828
154843
  inputs: [],
154829
154844
  outputs: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6711",
3
+ "version": "0.0.6713",
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",