@elyx-code/project-logic-tree 0.0.6751 → 0.0.6752
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.cjs +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +21 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18999,7 +18999,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
18999
18999
|
* @param {ChangeSet} changeSet The change set to extract the touched canvas entities from
|
|
19000
19000
|
* @returns {CanvasEntityState[]} An array of touched canvas entities
|
|
19001
19001
|
*/
|
|
19002
|
-
export declare function getTouchedCanvasEntitiesFromChangeSet(changeSet: ChangeSet
|
|
19002
|
+
export declare function getTouchedCanvasEntitiesFromChangeSet(changeSet: ChangeSet, options?: {
|
|
19003
|
+
shallowMissingActivesError?: boolean;
|
|
19004
|
+
}): CanvasEntityState[];
|
|
19003
19005
|
|
|
19004
19006
|
export declare const getTzOffsetAtArg: IValueDescriptorTransfer;
|
|
19005
19007
|
|
package/dist/index.js
CHANGED
|
@@ -80638,7 +80638,7 @@ class Z extends Zf {
|
|
|
80638
80638
|
return this;
|
|
80639
80639
|
if (this.seenEntities.indexOf(i.id) === -1 && this.seenEntities.push(i.id), n === "removed") {
|
|
80640
80640
|
if (this.added[i.id])
|
|
80641
|
-
return delete this.added[i.id], this.seenEntities = this.seenEntities.filter((b) => b !== i.id), delete this.project.deletedInstances[i.id], this;
|
|
80641
|
+
return delete this.added[i.id], delete this.affected[i.id], delete this.updated[i.id], this.seenEntities = this.seenEntities.filter((b) => b !== i.id), delete this.project.deletedInstances[i.id], this;
|
|
80642
80642
|
if (this.updated[i.id] && delete this.updated[i.id], this.affected[i.id] && delete this.affected[i.id], !this.hasRemoved(i.id) && !this.lockedVersions && (i.increaseVersion(this.timestamp), !s.preventRecursion)) {
|
|
80643
80643
|
const { added: b, updated: E, removed: w, affected: V } = i.recursiveCaptureUpstreamVersions(this.timestamp);
|
|
80644
80644
|
for (const $ of b)
|
|
@@ -186570,26 +186570,34 @@ function W3(o, p = {}) {
|
|
|
186570
186570
|
const n = p[i];
|
|
186571
186571
|
return n ? [n.id, ...W3(n, p)] : [];
|
|
186572
186572
|
}
|
|
186573
|
-
function TKi(o) {
|
|
186574
|
-
const
|
|
186573
|
+
function TKi(o, p = {}) {
|
|
186574
|
+
const i = {
|
|
186575
|
+
shallowMissingActivesError: !1,
|
|
186576
|
+
...p
|
|
186577
|
+
}, n = [], s = /* @__PURE__ */ new Set();
|
|
186575
186578
|
return [
|
|
186576
186579
|
...o.listAdded,
|
|
186577
186580
|
...o.listUpdated,
|
|
186578
186581
|
...o.listAffected
|
|
186579
|
-
].forEach((
|
|
186580
|
-
var
|
|
186581
|
-
const
|
|
186582
|
-
if (!
|
|
186582
|
+
].forEach((e) => {
|
|
186583
|
+
var v;
|
|
186584
|
+
const y = Ri(e);
|
|
186585
|
+
if (!y || s.has(y.id))
|
|
186583
186586
|
return;
|
|
186584
|
-
const
|
|
186585
|
-
if (!
|
|
186587
|
+
const m = o.project.get(y.id) || o.project.getDeleted(y.id);
|
|
186588
|
+
if (!m) {
|
|
186589
|
+
if (i.shallowMissingActivesError) {
|
|
186590
|
+
s.add(y.id), s.add(e.id);
|
|
186591
|
+
return;
|
|
186592
|
+
}
|
|
186586
186593
|
throw new Error(
|
|
186587
|
-
`[getTouchedCanvasEntitiesFromChangeSet] Could not find active version of ${
|
|
186588
|
-
|
|
186594
|
+
`[getTouchedCanvasEntitiesFromChangeSet] Could not find active version of ${y.type} ${y.id} in project, which is present in the change set.${y.parent ? ` With parent ${(v = y.parent) == null ? void 0 : v.type} ${ne(
|
|
186595
|
+
y.parent
|
|
186589
186596
|
)}` : ""}`
|
|
186590
186597
|
);
|
|
186591
|
-
|
|
186592
|
-
|
|
186598
|
+
}
|
|
186599
|
+
s.add(y.id), s.add(e.id), n.push(m);
|
|
186600
|
+
}), D(n);
|
|
186593
186601
|
}
|
|
186594
186602
|
function vKi(o) {
|
|
186595
186603
|
if (o.type === d.Condition)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6752",
|
|
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",
|