@elyx-code/project-logic-tree 0.0.6750 → 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 +3 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +23 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11517,7 +11517,7 @@ export declare class DefaultEditorContext extends ExtensionContextBase<Extension
|
|
|
11517
11517
|
removeTest(options: YieldOptions & {
|
|
11518
11518
|
skipValidate?: boolean;
|
|
11519
11519
|
}): Promise<ITest>;
|
|
11520
|
-
copyEntities(entities:
|
|
11520
|
+
copyEntities(entities: UserManagedElementShallowTransfer[], options?: YieldOptions): Promise<ChangeSet>;
|
|
11521
11521
|
resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
|
|
11522
11522
|
publish(): Promise<void>;
|
|
11523
11523
|
loadGivenPublication(publicationId: string): Promise<IPublication>;
|
|
@@ -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
|
|
|
@@ -21167,7 +21169,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
21167
21169
|
removeTest(options: YieldOptions & {
|
|
21168
21170
|
skipValidate?: boolean;
|
|
21169
21171
|
}): Promise<ITest>;
|
|
21170
|
-
copyEntities(entities:
|
|
21172
|
+
copyEntities(entities: UserManagedElementShallowTransfer[], options?: YieldOptions): Promise<ChangeSet>;
|
|
21171
21173
|
resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
|
|
21172
21174
|
publish(): Promise<void>;
|
|
21173
21175
|
loadGivenPublication(publicationId: string): Promise<IPublication>;
|
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)
|
|
@@ -119644,8 +119644,8 @@ class J2 extends pO {
|
|
|
119644
119644
|
removeTest(p) {
|
|
119645
119645
|
return this._editor.removeTest(p);
|
|
119646
119646
|
}
|
|
119647
|
-
async copyEntities(p) {
|
|
119648
|
-
return this._editor.copyEntities(p);
|
|
119647
|
+
async copyEntities(p, i = {}) {
|
|
119648
|
+
return this._editor.copyEntities(p, i);
|
|
119649
119649
|
}
|
|
119650
119650
|
resolveInitialChildrenPositions(p, i, n) {
|
|
119651
119651
|
return this._editor.resolveInitialChildrenPositions(
|
|
@@ -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",
|