@elyx-code/project-logic-tree 0.0.6842 → 0.0.6844

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
@@ -125746,7 +125746,13 @@ class wn {
125746
125746
  return p;
125747
125747
  }
125748
125748
  move(p, i) {
125749
- this.onlyEntities.includes(p) && p.metaSync(i, this.changeSet);
125749
+ if (this.onlyEntities.includes(p)) {
125750
+ if (!this.changeSet)
125751
+ throw new Error(
125752
+ "Change set is not defined for this area, cannot move entity"
125753
+ );
125754
+ p.metaSync(i, this.changeSet);
125755
+ }
125750
125756
  }
125751
125757
  // Create new areas for the children of this area
125752
125758
  addChild(p) {
@@ -185892,7 +185898,10 @@ const V6 = {
185892
185898
  }, a = new vn(void 0, {
185893
185899
  allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
185894
185900
  });
185895
- a.flatRecord = this.instances, a.order = Object.keys(a.flatRecord), a.orderEntities();
185901
+ a.flatRecord = {};
185902
+ for (const f of Object.values(this.instances))
185903
+ this.diggestedBuiltInBaseEntitiesIds.has(f.id) || (a.flatRecord[f.id] = f);
185904
+ a.order = Object.keys(a.flatRecord), a.orderEntities();
185896
185905
  const c = {}, e = [];
185897
185906
  return a.visit((f) => {
185898
185907
  try {
@@ -185918,7 +185927,10 @@ const V6 = {
185918
185927
  }, a = Se.from(r), c = new vn(void 0, {
185919
185928
  allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
185920
185929
  });
185921
- c.flatRecord = this.instances, c.order = Object.keys(c.flatRecord);
185930
+ c.flatRecord = {};
185931
+ for (const h of Object.values(this.instances))
185932
+ await a.tick(), !this.diggestedBuiltInBaseEntitiesIds.has(h.id) && (c.flatRecord[h.id] = h);
185933
+ c.order = Object.keys(c.flatRecord);
185922
185934
  const e = [];
185923
185935
  if (r.seenEntityMaps)
185924
185936
  for (const h of c.order) {
@@ -185960,7 +185972,10 @@ const V6 = {
185960
185972
  }, a = Se.from(r), c = new vn(void 0, {
185961
185973
  allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
185962
185974
  });
185963
- c.flatRecord = this.instances, c.order = Object.keys(c.flatRecord);
185975
+ c.flatRecord = {};
185976
+ for (const h of Object.values(this.instances))
185977
+ await a.tick(), !this.diggestedBuiltInBaseEntitiesIds.has(h.id) && (c.flatRecord[h.id] = h);
185978
+ c.order = Object.keys(c.flatRecord);
185964
185979
  const e = [];
185965
185980
  if (r.seenEntityMaps)
185966
185981
  for (const h of c.order) {
@@ -190854,7 +190869,7 @@ function Ou(l, p, i, r, a = {}) {
190854
190869
  ri(
190855
190870
  r,
190856
190871
  c + 1,
190857
- e + 1,
190872
+ h ? e + 1 : e,
190858
190873
  `Part of state instance of parent: ${L}`
190859
190874
  );
190860
190875
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6842",
3
+ "version": "0.0.6844",
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",