@supernova-studio/client 1.0.0-alpha.14 → 1.0.0-alpha.15
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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -97305,7 +97305,9 @@ declare class DocsStructureRepository {
|
|
|
97305
97305
|
private readonly hierarchyObservers;
|
|
97306
97306
|
private readonly initCallbacks;
|
|
97307
97307
|
private readonly transactionIdGenerator;
|
|
97308
|
-
constructor(
|
|
97308
|
+
constructor(config: {
|
|
97309
|
+
designSystemVersionId: string;
|
|
97310
|
+
yDoc: Y.Doc;
|
|
97309
97311
|
transactionExecutor: TransactionExecutor;
|
|
97310
97312
|
transactionIdGenerator: TransactionIdGenerator;
|
|
97311
97313
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -97305,7 +97305,9 @@ declare class DocsStructureRepository {
|
|
|
97305
97305
|
private readonly hierarchyObservers;
|
|
97306
97306
|
private readonly initCallbacks;
|
|
97307
97307
|
private readonly transactionIdGenerator;
|
|
97308
|
-
constructor(
|
|
97308
|
+
constructor(config: {
|
|
97309
|
+
designSystemVersionId: string;
|
|
97310
|
+
yDoc: Y.Doc;
|
|
97309
97311
|
transactionExecutor: TransactionExecutor;
|
|
97310
97312
|
transactionIdGenerator: TransactionIdGenerator;
|
|
97311
97313
|
});
|
package/dist/index.js
CHANGED
|
@@ -13495,7 +13495,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13495
13495
|
|
|
13496
13496
|
// src/sync/docs-structure-repo.ts
|
|
13497
13497
|
var DocsStructureRepository = class {
|
|
13498
|
-
constructor(
|
|
13498
|
+
constructor(config) {
|
|
13499
13499
|
__publicField(this, "designSystemVersionId");
|
|
13500
13500
|
__publicField(this, "yDoc");
|
|
13501
13501
|
__publicField(this, "yObserver");
|
|
@@ -13506,9 +13506,9 @@ var DocsStructureRepository = class {
|
|
|
13506
13506
|
__publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
|
|
13507
13507
|
__publicField(this, "initCallbacks", /* @__PURE__ */ new Set());
|
|
13508
13508
|
__publicField(this, "transactionIdGenerator");
|
|
13509
|
-
this.designSystemVersionId = designSystemVersionId;
|
|
13510
|
-
this.yDoc = yDoc;
|
|
13511
|
-
this.yObserver = yDoc.on("update", () => this.onYUpdate());
|
|
13509
|
+
this.designSystemVersionId = config.designSystemVersionId;
|
|
13510
|
+
this.yDoc = config.yDoc;
|
|
13511
|
+
this.yObserver = this.yDoc.on("update", () => this.onYUpdate());
|
|
13512
13512
|
this.onYUpdate();
|
|
13513
13513
|
this.actionQueue = new TransactionQueue(config.transactionExecutor);
|
|
13514
13514
|
this.transactionIdGenerator = config.transactionIdGenerator;
|