@elyx-code/project-logic-tree 0.0.7007 → 0.0.7008
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 +1 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -22070,7 +22070,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22070
22070
|
valueAsTypeList: ValueAsTypeState[] | null;
|
|
22071
22071
|
errors: EntityError[];
|
|
22072
22072
|
parent: null | DataTypeState | InputMapState | PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | VariableInstanceState | ValueDescriptorState;
|
|
22073
|
-
standaloneParent: EntityWithValueState;
|
|
22073
|
+
standaloneParent: EntityWithValueState | null;
|
|
22074
22074
|
project: ProjectState;
|
|
22075
22075
|
detachedDependents: Record<EntityId, {
|
|
22076
22076
|
entity: UserManagedEntityState;
|
package/dist/index.js
CHANGED
|
@@ -103751,7 +103751,7 @@ const hi = class hi extends sn {
|
|
|
103751
103751
|
R(this, "valueAsTypeList", null);
|
|
103752
103752
|
R(this, "errors", []);
|
|
103753
103753
|
R(this, "parent", null);
|
|
103754
|
-
R(this, "standaloneParent");
|
|
103754
|
+
R(this, "standaloneParent", null);
|
|
103755
103755
|
// Parent project full state
|
|
103756
103756
|
R(this, "project");
|
|
103757
103757
|
R(this, "detachedDependents", {});
|
|
@@ -104463,7 +104463,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
104463
104463
|
i,
|
|
104464
104464
|
D.SetParent,
|
|
104465
104465
|
r
|
|
104466
|
-
) ? (((a = this.parent) == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (this.parent = i, r && (r == null || r.add(this, W.Updated))), r == null || r.attemptAutoclose(D.SetParent, this.id), this) : this;
|
|
104466
|
+
) ? (((a = this.parent) == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (this.parent = i, this.standaloneParent && (this.standaloneParent = null, this.standalone = !1), r && (r == null || r.add(this, W.Updated))), r == null || r.attemptAutoclose(D.SetParent, this.id), this) : this;
|
|
104467
104467
|
}
|
|
104468
104468
|
setStandaloneParent(i, r = this.project.addChangeSet(
|
|
104469
104469
|
new Z(
|
|
@@ -104487,7 +104487,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
104487
104487
|
throw new Error(
|
|
104488
104488
|
"[LiteralValueState.setStandaloneParent] This literal-value belongs to the project AST and setting a standalone parent is not possible. Clone the instance, or create a separate one to be standalone."
|
|
104489
104489
|
);
|
|
104490
|
-
return ((a = this.standaloneParent) == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (this.parent && (this.removeFromParent(r), this.parent = null), this.standaloneParent = i, r && (r == null || r.add(this, W.Updated))), r == null || r.attemptAutoclose(
|
|
104490
|
+
return ((a = this.standaloneParent) == null ? void 0 : a.id) !== (i == null ? void 0 : i.id) && (this.parent && (this.removeFromParent(r), this.parent = null), this.standaloneParent = i, this.standalone = !0, r && (r == null || r.add(this, W.Updated))), r == null || r.attemptAutoclose(
|
|
104491
104491
|
D.SetStandaloneParent,
|
|
104492
104492
|
this.id
|
|
104493
104493
|
), this;
|
|
@@ -105009,7 +105009,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
105009
105009
|
)
|
|
105010
105010
|
) : null,
|
|
105011
105011
|
parent: ((a = this.parent) == null ? void 0 : a.toReference()) || null,
|
|
105012
|
-
standaloneParent: (c = this.standaloneParent) == null ? void 0 : c.toReference()
|
|
105012
|
+
standaloneParent: ((c = this.standaloneParent) == null ? void 0 : c.toReference()) || null
|
|
105013
105013
|
});
|
|
105014
105014
|
}
|
|
105015
105015
|
toJSONClone(i = lt) {
|
|
@@ -105046,9 +105046,9 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
105046
105046
|
parent: ((m = this.parent) == null ? void 0 : m.toReference({
|
|
105047
105047
|
seenEntityMaps: i.seenEntityMaps
|
|
105048
105048
|
})) || null,
|
|
105049
|
-
standaloneParent: (b = this.standaloneParent) == null ? void 0 : b.toReference({
|
|
105049
|
+
standaloneParent: ((b = this.standaloneParent) == null ? void 0 : b.toReference({
|
|
105050
105050
|
seenEntityMaps: i.seenEntityMaps
|
|
105051
|
-
})
|
|
105051
|
+
})) || null
|
|
105052
105052
|
});
|
|
105053
105053
|
}
|
|
105054
105054
|
toReference(i = lt) {
|
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.7008",
|
|
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",
|