@elyx-code/project-logic-tree 0.0.6542 → 0.0.6544

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
@@ -46717,6 +46717,7 @@ class j extends Uu {
46717
46717
  return Object.keys(this.affected);
46718
46718
  }
46719
46719
  event(i) {
46720
+ H.log(`ChangeSet Event: ${i.action} (${i.id})`);
46720
46721
  const a = new xgt(i, this);
46721
46722
  this.events.set(i.id, a), this.emit("change-set-event", a);
46722
46723
  }
@@ -48493,7 +48494,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
48493
48494
  var D, N;
48494
48495
  let e = dr(a, this);
48495
48496
  const h = this.toJSON(), v = l || V.UUID.uuid();
48496
- h.dataType = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
48497
+ h.dataType = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
48497
48498
  const T = Ei(
48498
48499
  h,
48499
48500
  e
@@ -49997,7 +49998,7 @@ Please consider than any updates might affect the overlap with the signature of
49997
49998
  var N;
49998
49999
  let h = dr(a, this);
49999
50000
  const v = this.toJSON(), T = l || V.UUID.uuid();
50000
- v.inputs = [], v.calls = [], v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1;
50001
+ v.inputs = [], v.calls = [], v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1, v.deletable = !0, v.editable = !0;
50001
50002
  const I = Ei(
50002
50003
  v,
50003
50004
  h
@@ -53476,7 +53477,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
53476
53477
  const h = this.toJSON(), v = l || V.UUID.uuid();
53477
53478
  h.inputs = [];
53478
53479
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
53479
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
53480
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
53480
53481
  const E = Ei(
53481
53482
  h,
53482
53483
  e
@@ -55224,7 +55225,7 @@ Specifically for return statements the parent needs to always be the 'function-d
55224
55225
  const h = this.toJSON(), v = l || V.UUID.uuid();
55225
55226
  h.outputs = [];
55226
55227
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
55227
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
55228
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
55228
55229
  const E = Ei(
55229
55230
  h,
55230
55231
  e
@@ -56520,7 +56521,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
56520
56521
  const v = this.toJSON(), T = l || V.UUID.uuid();
56521
56522
  v.inputs = [];
56522
56523
  const I = T.split("-id"), E = I[I.length - 1 || 0] || T;
56523
- v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1;
56524
+ v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1, v.deletable = !0, v.editable = !0;
56524
56525
  const D = Ei(
56525
56526
  v,
56526
56527
  h
@@ -58167,7 +58168,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
58167
58168
  const v = this.toJSON(), T = l || V.UUID.uuid();
58168
58169
  v.inputs = [], v.dataType = null, v.error = null;
58169
58170
  const I = T.split("-id"), E = I[I.length - 1 || 0] || T;
58170
- v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1;
58171
+ v.id = T, v.version = V.UUID.uuid(), v.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), v.author = (i == null ? void 0 : i.author) || "1", v.previousVersion = null, v.deleted = !1, v.deletable = !0, v.editable = !0;
58171
58172
  const D = Ei(
58172
58173
  v,
58173
58174
  h
@@ -59906,7 +59907,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
59906
59907
  const h = this.toJSON(), v = l || V.UUID.uuid();
59907
59908
  h.inputs = [];
59908
59909
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
59909
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
59910
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
59910
59911
  const E = Ei(
59911
59912
  h,
59912
59913
  e
@@ -63113,7 +63114,7 @@ If an entity is called by another, they must be in the same scope, which means t
63113
63114
  const h = this.toJSON(), v = l || V.UUID.uuid();
63114
63115
  h.inputs = [];
63115
63116
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
63116
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
63117
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
63117
63118
  const E = Ei(
63118
63119
  h,
63119
63120
  e
@@ -77303,7 +77304,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
77303
77304
  if (!this.checkCanEdit(this))
77304
77305
  return H.warn(
77305
77306
  `[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
77306
- ), i == null || i.attemptAutoclose(O.RemoveFromParent, this.id), {
77307
+ ), i == null || i.attemptAutoclose(
77308
+ O.RemoveFromParent,
77309
+ this.id
77310
+ ), {
77307
77311
  added: [],
77308
77312
  updated: [],
77309
77313
  removed: [],
@@ -77830,7 +77834,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
77830
77834
  var L, U, K, q;
77831
77835
  let e = dr(a, this);
77832
77836
  const h = this.toJSON(), v = l || V.UUID.uuid();
77833
- h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
77837
+ h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
77834
77838
  const T = Ei(
77835
77839
  h,
77836
77840
  e
@@ -80290,7 +80294,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
80290
80294
  var U, K, q, W, z;
80291
80295
  let e = dr(a, this);
80292
80296
  const h = this.toJSON(), v = l || V.UUID.uuid();
80293
- h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
80297
+ h.inputs = [], h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
80294
80298
  const T = Ei(
80295
80299
  h,
80296
80300
  e
@@ -103959,7 +103963,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
103959
103963
  const h = this.toJSON(), v = l || V.UUID.uuid();
103960
103964
  h.inputs = [];
103961
103965
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
103962
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
103966
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
103963
103967
  const E = Ei(
103964
103968
  h,
103965
103969
  e
@@ -105083,7 +105087,7 @@ const tBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
105083
105087
  const h = this.toJSON(), v = l || V.UUID.uuid();
105084
105088
  h.functions = [], h.events = [];
105085
105089
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
105086
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
105090
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
105087
105091
  const E = Ei(
105088
105092
  h,
105089
105093
  e
@@ -106997,7 +107001,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
106997
107001
  const h = this.toJSON(), v = l || V.UUID.uuid();
106998
107002
  h.inputs = [];
106999
107003
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
107000
- h.id = v, h.version = V.UUID.uuid();
107004
+ h.id = v, h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.version = V.UUID.uuid(), h.deletable = !0, h.editable = !0;
107001
107005
  const E = Ei(
107002
107006
  h,
107003
107007
  e
@@ -108683,7 +108687,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
108683
108687
  var E;
108684
108688
  let e = dr(a, this);
108685
108689
  const h = this.toJSON(), v = l || V.UUID.uuid();
108686
- h.defaultValue = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
108690
+ h.defaultValue = null, h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
108687
108691
  const T = Ei(
108688
108692
  h,
108689
108693
  e
@@ -109914,7 +109918,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
109914
109918
  var E;
109915
109919
  let e = dr(a, this);
109916
109920
  const h = this.toJSON(), v = l || V.UUID.uuid();
109917
- h.id = v;
109921
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
109918
109922
  const T = Ei(
109919
109923
  h,
109920
109924
  e
@@ -112635,7 +112639,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
112635
112639
  const h = this.toJSON(), v = l || V.UUID.uuid();
112636
112640
  h.outputs = [];
112637
112641
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
112638
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
112642
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
112639
112643
  const E = Ei(
112640
112644
  h,
112641
112645
  e
@@ -114095,7 +114099,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
114095
114099
  const h = this.toJSON(), v = l || V.UUID.uuid();
114096
114100
  h.outputs = [];
114097
114101
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
114098
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
114102
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
114099
114103
  const E = Ei(
114100
114104
  h,
114101
114105
  e
@@ -115123,7 +115127,7 @@ ${Ka(
115123
115127
  return this;
115124
115128
  let h = dr(a, this);
115125
115129
  const v = l || V.UUID.uuid(), T = this.toJSON();
115126
- T.id = v, T.version = V.UUID.uuid(), T.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), T.author = (i == null ? void 0 : i.author) || "1", T.previousVersion = null, T.deleted = !1;
115130
+ T.id = v, T.version = V.UUID.uuid(), T.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), T.author = (i == null ? void 0 : i.author) || "1", T.previousVersion = null, T.deleted = !1, T.deletable = !0, T.editable = !0;
115127
115131
  const I = Ei(
115128
115132
  T,
115129
115133
  h
@@ -120914,7 +120918,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
120914
120918
  const h = this.toJSON(), v = l || V.UUID.uuid();
120915
120919
  h.inputs = [];
120916
120920
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
120917
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
120921
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.deletable = !0, h.editable = !0;
120918
120922
  const E = Ei(
120919
120923
  h,
120920
120924
  e
@@ -123660,11 +123664,27 @@ function Ci(d, u = /* @__PURE__ */ new Set()) {
123660
123664
  return [];
123661
123665
  }
123662
123666
  function Qs(d, u = /* @__PURE__ */ new Set()) {
123663
- return u.has(d.id) ? [] : (u.add(d.id), [...Aa(d).reduce((l, f) => [
123667
+ if (u.has(d.id))
123668
+ return [];
123669
+ u.add(d.id), H.log(
123670
+ "[flattenDerivedCanvasEntities]",
123671
+ d.type,
123672
+ X(d, d.project),
123673
+ d.id
123674
+ );
123675
+ const i = Aa(d);
123676
+ return i.forEach((l) => {
123677
+ u.add(l.id);
123678
+ }), [...i.reduce((l, f) => (H.log(
123679
+ "[Recursive -- flattenDerivedCanvasEntities]",
123680
+ f.type,
123681
+ X(f, f.project),
123682
+ f.id
123683
+ ), [
123664
123684
  ...l,
123665
123685
  f,
123666
123686
  ...Qs(f, u)
123667
- ], [])]);
123687
+ ]), [])];
123668
123688
  }
123669
123689
  function mr(d) {
123670
123690
  return d.reduce(
@@ -124066,7 +124086,11 @@ function Uxt(d, u = /* @__PURE__ */ new Set(), i = {
124066
124086
  ...(d.methods || []).flatMap((a) => ve(a, u, i)),
124067
124087
  ...(d.abstractMethods || []).flatMap((a) => ve(a, u, i)),
124068
124088
  ...d.allPropertiesImplement ? ve(d.allPropertiesImplement, u, i) : [],
124069
- ...d.additionalPropertiesDataType ? ve(d.additionalPropertiesDataType, u, i) : [],
124089
+ ...d.additionalPropertiesDataType ? ve(
124090
+ d.additionalPropertiesDataType,
124091
+ u,
124092
+ i
124093
+ ) : [],
124070
124094
  ...d.parent ? ve(d.parent, u, i) : []
124071
124095
  ];
124072
124096
  }
@@ -124579,6 +124603,12 @@ function oLt(d) {
124579
124603
  ) : null;
124580
124604
  }
124581
124605
  function Aa(d, u = !1) {
124606
+ H.log(
124607
+ "[getRelatedCanvasElementsOnTheRight]",
124608
+ d.type,
124609
+ X(d, d.project),
124610
+ d.id
124611
+ );
124582
124612
  const i = [];
124583
124613
  if (d.type === p.Project && i.push(
124584
124614
  ...(d == null ? void 0 : d.entities) || [],
@@ -124598,7 +124628,12 @@ function Aa(d, u = !1) {
124598
124628
  const a = [
124599
124629
  ...d.suggestedMethods,
124600
124630
  ...d.methods
124601
- ].flatMap((l) => l.collapsed && u ? [] : Aa(l));
124631
+ ].flatMap((l) => l.collapsed && u ? [] : (H.log(
124632
+ "[Recursive -- getRelatedCanvasElementsOnTheRight]",
124633
+ l.type,
124634
+ X(l, l.project),
124635
+ l.id
124636
+ ), Aa(l, u)));
124602
124637
  i.push(...a);
124603
124638
  }
124604
124639
  if (d.type === p.Condition) {
@@ -128088,7 +128123,7 @@ ${ZA}`
128088
128123
  O.CloneEntity
128089
128124
  )
128090
128125
  ), a = null, l = null, f = !0) {
128091
- var N, L, U;
128126
+ var N, L;
128092
128127
  let e = dr(a, this);
128093
128128
  const h = l || V.UUID.uuid();
128094
128129
  let v = a || this.parent;
@@ -128117,7 +128152,7 @@ ${ZA}`
128117
128152
  defaultValue: null,
128118
128153
  dataType: null,
128119
128154
  implements: this.implements.map(
128120
- (K) => K.toJSON()
128155
+ (U) => U.toJSON()
128121
128156
  ),
128122
128157
  extends: this.extends,
128123
128158
  parent: v.toReference()
@@ -128125,22 +128160,22 @@ ${ZA}`
128125
128160
  T,
128126
128161
  e
128127
128162
  );
128128
- f && I.subscribe(), I.hydrateAncestors(), I.setParent(v, null), console.log("New cloned property instance parent before adding self to project: ", (N = I.parent) == null ? void 0 : N.id), console.log("resolvedParent?: ", v == null ? void 0 : v.id), f && I.addSelfToProject(i), I.initChildren(i), i == null || i.add(I, F.Added);
128129
- const E = ((L = this.dataType) == null ? void 0 : L.clone(
128163
+ f && I.subscribe(), I.hydrateAncestors(), I.setParent(v, null), f && I.addSelfToProject(i), I.initChildren(i), i == null || i.add(I, F.Added);
128164
+ const E = ((N = this.dataType) == null ? void 0 : N.clone(
128130
128165
  i,
128131
128166
  I,
128132
128167
  V.UUID.uuid(),
128133
128168
  f
128134
128169
  )) || null;
128135
128170
  E && I.setDataType(E, i);
128136
- const D = (U = this.defaultValue) == null ? void 0 : U.clone(
128171
+ const D = (L = this.defaultValue) == null ? void 0 : L.clone(
128137
128172
  i,
128138
128173
  I,
128139
128174
  V.UUID.uuid(),
128140
128175
  f
128141
128176
  );
128142
128177
  return I.setDefaultValue(D || null, i), this.implements.length && this.implements.forEach(
128143
- (K) => I.addImplementation(K, i)
128178
+ (U) => I.addImplementation(U, i)
128144
128179
  ), I.addSelfToProject(null), i == null || i.attemptAutoclose(O.CloneEntity, this.id), I;
128145
128180
  }
128146
128181
  setDataType(i, a = this.project.addChangeSet(
@@ -131054,7 +131089,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
131054
131089
  const h = this.toJSON(), v = l || V.UUID.uuid();
131055
131090
  h.properties = [], h.methods = [], h.abstractMethods = [];
131056
131091
  const T = v.split("-id"), I = T[T.length - 1 || 0] || v;
131057
- h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1;
131092
+ h.id = v, h.version = V.UUID.uuid(), h.createdAt = (i == null ? void 0 : i.timestamp) || x().toISOString(), h.author = (i == null ? void 0 : i.author) || "1", h.previousVersion = null, h.deleted = !1, h.editable = !0, h.deletable = !0;
131058
131093
  const E = Ei(
131059
131094
  h,
131060
131095
  e
@@ -132634,7 +132669,7 @@ const fG = {
132634
132669
  discardChangeSet(i) {
132635
132670
  var l;
132636
132671
  const a = this.history.findIndex((f) => f.id === (i == null ? void 0 : i.id));
132637
- return a !== -1 && (this.history.splice(a, 1), this.undoableStackValueIndex = this.undoableStackValueIndex - 1, (l = this.onDiscardChangeSetCallback) == null || l.call(this, i)), this;
132672
+ return a !== -1 && (this.history.splice(a, 1), this.undoableStackValueIndex = this.undoableStackValueIndex - 1, (l = this.onDiscardChangeSetCallback) == null || l.call(this, i), i == null || i.teardown()), this;
132638
132673
  }
132639
132674
  validateGeneratedUpdate(i) {
132640
132675
  return { errors: [], modifiedData: i };