@elyx-code/project-logic-tree 0.0.6910 → 0.0.6911
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 +4 -4
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11967,6 +11967,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
11967
11967
|
readonly id: EntityId;
|
|
11968
11968
|
get type(): EntityType.Project;
|
|
11969
11969
|
get name(): string | null;
|
|
11970
|
+
get workspaceId(): string;
|
|
11970
11971
|
get description(): string | null;
|
|
11971
11972
|
get version(): string;
|
|
11972
11973
|
get createdAt(): string;
|
|
@@ -23651,6 +23652,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
23651
23652
|
type: EntityType.Project;
|
|
23652
23653
|
name: string | null;
|
|
23653
23654
|
description: string | null;
|
|
23655
|
+
workspaceId: string;
|
|
23654
23656
|
}
|
|
23655
23657
|
|
|
23656
23658
|
export declare interface IProject_meta extends IProject_base, IUserManagedGenericBase {
|
|
@@ -30814,6 +30816,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
30814
30816
|
initialData: IProject | IProjectTransfer;
|
|
30815
30817
|
readonly id: EntityId;
|
|
30816
30818
|
readonly type: EntityType.Project;
|
|
30819
|
+
readonly workspaceId: string;
|
|
30817
30820
|
name: string | null;
|
|
30818
30821
|
description: string | null;
|
|
30819
30822
|
x: number;
|
package/dist/index.js
CHANGED
|
@@ -107834,6 +107834,9 @@ class KM extends eV {
|
|
|
107834
107834
|
get name() {
|
|
107835
107835
|
return this._project.name;
|
|
107836
107836
|
}
|
|
107837
|
+
get workspaceId() {
|
|
107838
|
+
return this._project.workspaceId;
|
|
107839
|
+
}
|
|
107837
107840
|
get description() {
|
|
107838
107841
|
return this._project.description;
|
|
107839
107842
|
}
|
|
@@ -187818,6 +187821,7 @@ const a5 = {
|
|
|
187818
187821
|
// State
|
|
187819
187822
|
R(this, "id");
|
|
187820
187823
|
R(this, "type", d.Project);
|
|
187824
|
+
R(this, "workspaceId");
|
|
187821
187825
|
R(this, "name", null);
|
|
187822
187826
|
R(this, "description", null);
|
|
187823
187827
|
// These are used as the root canvas element to position all others relative to,
|
|
@@ -187879,7 +187883,7 @@ const a5 = {
|
|
|
187879
187883
|
R(this, "onPersistChangeSetInParallelCallback", null);
|
|
187880
187884
|
R(this, "onAddChangeSetCallback", null);
|
|
187881
187885
|
R(this, "onDiscardChangeSetCallback", null);
|
|
187882
|
-
if (this.parentContext = r, this.initialData = i, this.id = i.id, this.name = i.name, this.description = i.description, this.x = 0, this.y = 0, this.instances[this.id] = this, !Lt.UUID)
|
|
187886
|
+
if (this.parentContext = r, this.initialData = i, this.id = i.id, this.workspaceId = i.workspaceId, this.name = i.name, this.description = i.description, this.x = 0, this.y = 0, this.instances[this.id] = this, !Lt.UUID)
|
|
187883
187887
|
throw new Error(
|
|
187884
187888
|
"UUID module is already initialized. Please inject a valid UUID module."
|
|
187885
187889
|
);
|
|
@@ -187893,6 +187897,7 @@ const a5 = {
|
|
|
187893
187897
|
return {
|
|
187894
187898
|
id: Lt.UUID.uuid(),
|
|
187895
187899
|
version: Lt.UUID.uuid(),
|
|
187900
|
+
workspaceId: "",
|
|
187896
187901
|
createdAt: (i == null ? void 0 : i.timestamp) || G().toISOString(),
|
|
187897
187902
|
author: (i == null ? void 0 : i.author) || Lt.sessionAuthor,
|
|
187898
187903
|
previousVersion: null,
|
|
@@ -188043,14 +188048,7 @@ const a5 = {
|
|
|
188043
188048
|
);
|
|
188044
188049
|
const f = this.history[this.history.length - 1];
|
|
188045
188050
|
return f.open ? f : this.addChangeSet(
|
|
188046
|
-
new Z(
|
|
188047
|
-
this,
|
|
188048
|
-
i,
|
|
188049
|
-
r,
|
|
188050
|
-
a,
|
|
188051
|
-
c,
|
|
188052
|
-
e
|
|
188053
|
-
)
|
|
188051
|
+
new Z(this, i, r, a, c, e)
|
|
188054
188052
|
);
|
|
188055
188053
|
}
|
|
188056
188054
|
// Adds a change set to the history
|
|
@@ -188215,7 +188213,7 @@ const a5 = {
|
|
|
188215
188213
|
/**
|
|
188216
188214
|
* Given an instance of the same entity class type,
|
|
188217
188215
|
* it applies the current entity state to it by copying all of its data and entity references
|
|
188218
|
-
*
|
|
188216
|
+
*
|
|
188219
188217
|
* @param {ProjectState} snapshotInstance
|
|
188220
188218
|
* @returns {ProjectState} The snapshot instance with the current entity state applied to it
|
|
188221
188219
|
*/
|
|
@@ -188674,6 +188672,7 @@ const a5 = {
|
|
|
188674
188672
|
return {
|
|
188675
188673
|
id: this.id,
|
|
188676
188674
|
version: this.version,
|
|
188675
|
+
workspaceId: this.workspaceId,
|
|
188677
188676
|
createdAt: this.createdAt,
|
|
188678
188677
|
previousVersion: this.previousVersion,
|
|
188679
188678
|
author: this.author,
|
|
@@ -188689,6 +188688,7 @@ const a5 = {
|
|
|
188689
188688
|
return i.has(this.id) ? this.toReference() : (i.add(this.id), {
|
|
188690
188689
|
id: this.id,
|
|
188691
188690
|
version: this.version,
|
|
188691
|
+
workspaceId: this.workspaceId,
|
|
188692
188692
|
createdAt: this.createdAt,
|
|
188693
188693
|
previousVersion: this.previousVersion,
|
|
188694
188694
|
author: this.author,
|
|
@@ -188744,6 +188744,7 @@ const a5 = {
|
|
|
188744
188744
|
}), a.add(this.id), {
|
|
188745
188745
|
id: r.get(this.id),
|
|
188746
188746
|
version: this.version,
|
|
188747
|
+
workspaceId: this.workspaceId,
|
|
188747
188748
|
createdAt: this.createdAt,
|
|
188748
188749
|
previousVersion: this.previousVersion,
|
|
188749
188750
|
author: this.author,
|
|
@@ -188860,6 +188861,7 @@ const a5 = {
|
|
|
188860
188861
|
return (a = i.seenEntityMaps) != null && a.has(this.id) && (r = i.seenEntityMaps.get(this.id)), {
|
|
188861
188862
|
id: r,
|
|
188862
188863
|
version: this.version,
|
|
188864
|
+
workspaceId: this.workspaceId,
|
|
188863
188865
|
createdAt: this.createdAt,
|
|
188864
188866
|
previousVersion: this.previousVersion,
|
|
188865
188867
|
author: this.author,
|
|
@@ -188921,6 +188923,7 @@ const a5 = {
|
|
|
188921
188923
|
let r = this.id;
|
|
188922
188924
|
return (a = i.seenEntityMaps) != null && a.has(this.id) && (r = i.seenEntityMaps.get(this.id)), {
|
|
188923
188925
|
id: r,
|
|
188926
|
+
workspaceId: this.workspaceId,
|
|
188924
188927
|
type: this.type,
|
|
188925
188928
|
name: this.name,
|
|
188926
188929
|
description: this.description
|
|
@@ -189978,6 +189981,7 @@ R(Lt, "repository", {
|
|
|
189978
189981
|
]), R(Lt, "MUTABLE_BASE_PROPERTIES", ["name", "description"]), R(Lt, "INMUTABLE_BASE_PROPERTIES", [
|
|
189979
189982
|
"id",
|
|
189980
189983
|
"type",
|
|
189984
|
+
"workspaceId",
|
|
189981
189985
|
"version",
|
|
189982
189986
|
"createdAt",
|
|
189983
189987
|
"author",
|
|
@@ -191180,6 +191184,7 @@ async function QRi(s, p = FA) {
|
|
|
191180
191184
|
data: {
|
|
191181
191185
|
project: {
|
|
191182
191186
|
id: s.id,
|
|
191187
|
+
workspaceId: "",
|
|
191183
191188
|
deletable: !0,
|
|
191184
191189
|
editable: !0,
|
|
191185
191190
|
type: d.Project,
|
|
@@ -217892,6 +217897,7 @@ const yFi = {
|
|
|
217892
217897
|
editable: !0,
|
|
217893
217898
|
type: d.Project,
|
|
217894
217899
|
id: ni,
|
|
217900
|
+
workspaceId: "",
|
|
217895
217901
|
version: "1",
|
|
217896
217902
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
217897
217903
|
author: "1",
|
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.6911",
|
|
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",
|