@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.mjs 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(designSystemVersionId, yDoc, config) {
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;