@elyx-code/project-logic-tree 0.0.6689 → 0.0.6691

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
@@ -29298,7 +29298,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29298
29298
  initialized: boolean;
29299
29299
  startedInitialization: boolean;
29300
29300
  diggestedBuiltInBaseEntitiesIds: Set<EntityId>;
29301
- _testProp: boolean;
29301
+ rejectParallelCS: boolean;
29302
29302
  onPersistChangeSetSequentiallyCallback: ((changeSet: ChangeSet) => Promise<{
29303
29303
  success: boolean;
29304
29304
  }>) | null;
package/dist/index.js CHANGED
@@ -43823,7 +43823,7 @@ const mit = {
43823
43823
  entityId: ko.dataType.entity.id
43824
43824
  }, KB = {
43825
43825
  id: ko.dataType.entity.properties.outputEntity.id,
43826
- name: "id",
43826
+ name: "Data",
43827
43827
  deletable: !1,
43828
43828
  editable: !1,
43829
43829
  type: o.Property,
@@ -43901,7 +43901,7 @@ const mit = {
43901
43901
  foreignKeyAllowed: null,
43902
43902
  options: null,
43903
43903
  isList: !1,
43904
- asType: !0,
43904
+ asType: !1,
43905
43905
  index: null,
43906
43906
  like: !1,
43907
43907
  inferred: !1,
@@ -84581,7 +84581,7 @@ const xci = {
84581
84581
  x: 0,
84582
84582
  y: 0,
84583
84583
  parent: ffi
84584
- }, rh = "project-loaded-event-id", xd = "get-bitcoin-price-http-call-operation-id", DU = "get-bitcoin-price-http-call-response-body-id", EA = "validate-bitcoin-price-response-operation-ids", Efi = {
84584
+ }, rh = "project-loaded-event-id", xd = "get-bitcoin-price-http-call-operation-id", DU = "get-bitcoin-price-http-call-response-body-id", EA = "validate-bitcoin-price-response-operation-id", Efi = {
84585
84585
  type: o.GenericReference,
84586
84586
  id: "validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",
84587
84587
  version: "1",
@@ -198675,7 +198675,7 @@ const qZ = {
198675
198675
  I(this, "initialized", !1);
198676
198676
  I(this, "startedInitialization", !1);
198677
198677
  I(this, "diggestedBuiltInBaseEntitiesIds", /* @__PURE__ */ new Set());
198678
- I(this, "_testProp", !1);
198678
+ I(this, "rejectParallelCS", !1);
198679
198679
  I(this, "onPersistChangeSetSequentiallyCallback", null);
198680
198680
  I(this, "onPersistChangeSetInParallelCallback", null);
198681
198681
  I(this, "onAddChangeSetCallback", null);
@@ -198858,33 +198858,33 @@ const qZ = {
198858
198858
  // Adds it in cronological order based on the change-set "timestamp"
198859
198859
  // If there is a currently open change-set, it throws an error
198860
198860
  addChangeSet(i) {
198861
- var c, e;
198862
- if (this._testProp)
198863
- throw new Error("Test error from _testProp");
198861
+ var s, c;
198864
198862
  if (!this.history.length)
198865
198863
  return this.undoableStackValueIndex = bL(
198866
198864
  this.undoableStackValueIndex,
198867
198865
  this.history,
198868
198866
  i
198869
- ), (c = this.onAddChangeSetCallback) == null || c.call(this, i, this.undoableStackValueIndex), i;
198867
+ ), (s = this.onAddChangeSetCallback) == null || s.call(this, i, this.undoableStackValueIndex), i;
198870
198868
  const n = this.history.find(
198871
- (y) => y.id === (i == null ? void 0 : i.id)
198869
+ (e) => e.id === (i == null ? void 0 : i.id)
198872
198870
  );
198873
198871
  if (n)
198874
198872
  return n;
198875
- const s = this.history.find((y) => y.open);
198876
- if (s)
198877
- throw ie.warn("Previous still open: ", s), ie.warn("New change set: ", i), new Error(
198878
- `There is already an open change-set with id '${s.id}'${s.autoCloseActionName ? ` auto-close: ${s.autoCloseActionName}` : ""}${s.self ? ` root: ${s.self.type} ${le(
198879
- s.self,
198880
- this
198881
- )}` : ""}.`
198882
- );
198873
+ if (this.rejectParallelCS) {
198874
+ const e = this.history.find((y) => y.open);
198875
+ if (e)
198876
+ throw ie.warn("Previous still open: ", e), ie.warn("New change set: ", i), new Error(
198877
+ `There is already an open change-set with id '${e.id}'${e.autoCloseActionName ? ` auto-close: ${e.autoCloseActionName}` : ""}${e.self ? ` root: ${e.self.type} ${le(
198878
+ e.self,
198879
+ this
198880
+ )}` : ""}.`
198881
+ );
198882
+ }
198883
198883
  return this.undoableStackValueIndex = bL(
198884
198884
  this.undoableStackValueIndex,
198885
198885
  this.history,
198886
198886
  i
198887
- ), (e = this.onAddChangeSetCallback) == null || e.call(this, i, this.undoableStackValueIndex), i;
198887
+ ), (c = this.onAddChangeSetCallback) == null || c.call(this, i, this.undoableStackValueIndex), i;
198888
198888
  }
198889
198889
  // Sometimes change-sets get initialized by default but end up not having any changes.
198890
198890
  // So we remove them from the state
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6689",
3
+ "version": "0.0.6691",
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",