@elyx-code/project-logic-tree 0.0.6683 → 0.0.6685

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.d.ts CHANGED
@@ -29296,6 +29296,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29296
29296
  initialized: boolean;
29297
29297
  startedInitialization: boolean;
29298
29298
  diggestedBuiltInBaseEntitiesIds: Set<EntityId>;
29299
+ _testProp: boolean;
29299
29300
  onPersistChangeSetSequentiallyCallback: ((changeSet: ChangeSet) => Promise<{
29300
29301
  success: boolean;
29301
29302
  }>) | null;
package/dist/index.js CHANGED
@@ -196488,7 +196488,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
196488
196488
  x.UUID.uuid()
196489
196489
  );
196490
196490
  w.setExtends(E, i), w.initChildren(i), s.push(w), i == null || i.add(w, H.Added), this.addProperty(w, i);
196491
- }), this.properties.forEach((E) => {
196491
+ }), [...this.properties].forEach((E) => {
196492
196492
  if (E.extends)
196493
196493
  return;
196494
196494
  if (v.find(
@@ -196501,6 +196501,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
196501
196501
  const V = E.remove({ ignoreUpstream: !1 }, i);
196502
196502
  c.push(...V.removed), n.push(...V.updated);
196503
196503
  }
196504
+ }), this.properties.forEach((E) => {
196505
+ const w = E.afterAllChildrenInitialized(i);
196506
+ n.push(...w.updated), e.push(...w.affected), s.push(...w.added), c.push(...w.removed);
196504
196507
  }), i == null || i.attemptAutoclose("add-extended-properties", this.id), {
196505
196508
  updated: D(n),
196506
196509
  added: D(s),
@@ -198658,6 +198661,7 @@ const qZ = {
198658
198661
  I(this, "initialized", !1);
198659
198662
  I(this, "startedInitialization", !1);
198660
198663
  I(this, "diggestedBuiltInBaseEntitiesIds", /* @__PURE__ */ new Set());
198664
+ I(this, "_testProp", !1);
198661
198665
  I(this, "onPersistChangeSetSequentiallyCallback", null);
198662
198666
  I(this, "onPersistChangeSetInParallelCallback", null);
198663
198667
  I(this, "onAddChangeSetCallback", null);
@@ -198841,6 +198845,8 @@ const qZ = {
198841
198845
  // If there is a currently open change-set, it throws an error
198842
198846
  addChangeSet(i) {
198843
198847
  var c, e;
198848
+ if (this._testProp)
198849
+ throw new Error("Test error from _testProp");
198844
198850
  if (!this.history.length)
198845
198851
  return this.undoableStackValueIndex = bL(
198846
198852
  this.undoableStackValueIndex,
@@ -198855,7 +198861,10 @@ const qZ = {
198855
198861
  const s = this.history.find((y) => y.open);
198856
198862
  if (s)
198857
198863
  throw ie.warn("Previous still open: ", s), ie.warn("New change set: ", i), new Error(
198858
- `There is already an open change-set with id '${s.id}'.`
198864
+ `There is already an open change-set with id '${s.id}'${s.autoCloseActionName ? ` auto-close: ${s.autoCloseActionName}` : ""}${s.self ? ` root: ${s.self.type} ${le(
198865
+ s.self,
198866
+ this
198867
+ )}` : ""}.`
198859
198868
  );
198860
198869
  return this.undoableStackValueIndex = bL(
198861
198870
  this.undoableStackValueIndex,
@@ -200484,7 +200493,9 @@ const qZ = {
200484
200493
  );
200485
200494
  }
200486
200495
  });
200487
- const m = new na(c, { allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds });
200496
+ const m = new na(c, {
200497
+ allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
200498
+ });
200488
200499
  return m.flatRecord = e, m.order = y, m.orderEntities(), ie.log(
200489
200500
  "All entities: ",
200490
200501
  m.order.map((v, b) => `${b + 1}: ${e[v].type} - ${v}`).join(`,
@@ -200550,7 +200561,9 @@ const qZ = {
200550
200561
  }), i;
200551
200562
  }
200552
200563
  toFullProjectTransfer() {
200553
- const i = new na(this, { allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds }), n = {};
200564
+ const i = new na(this, {
200565
+ allBuiltInEntityIds: this.diggestedBuiltInBaseEntitiesIds
200566
+ }), n = {};
200554
200567
  return i.visit((s) => {
200555
200568
  const c = s.toShallowJSON();
200556
200569
  n[s.id] = c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6683",
3
+ "version": "0.0.6685",
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",