@supernova-studio/client 1.0.0-alpha.14 → 1.0.0-alpha.16
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 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -7
- 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
|
@@ -7689,7 +7689,6 @@ var DesignSystemComponentEndpoint = class {
|
|
|
7689
7689
|
};
|
|
7690
7690
|
|
|
7691
7691
|
// src/api/endpoints/design-system/versions/elements-action.ts
|
|
7692
|
-
var _crypto = require('crypto');
|
|
7693
7692
|
var ElementsActionEndpoint = class {
|
|
7694
7693
|
constructor(requestExecutor) {
|
|
7695
7694
|
this.requestExecutor = requestExecutor;
|
|
@@ -7719,8 +7718,6 @@ var ElementsActionEndpoint = class {
|
|
|
7719
7718
|
return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
|
|
7720
7719
|
}
|
|
7721
7720
|
async action(dsId, vId, input) {
|
|
7722
|
-
if (!input.tId)
|
|
7723
|
-
input.tId = _crypto.randomUUID.call(void 0, );
|
|
7724
7721
|
return this.requestExecutor.json(
|
|
7725
7722
|
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7726
7723
|
DTOElementActionOutput,
|
|
@@ -13495,7 +13492,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13495
13492
|
|
|
13496
13493
|
// src/sync/docs-structure-repo.ts
|
|
13497
13494
|
var DocsStructureRepository = class {
|
|
13498
|
-
constructor(
|
|
13495
|
+
constructor(config) {
|
|
13499
13496
|
__publicField(this, "designSystemVersionId");
|
|
13500
13497
|
__publicField(this, "yDoc");
|
|
13501
13498
|
__publicField(this, "yObserver");
|
|
@@ -13506,9 +13503,9 @@ var DocsStructureRepository = class {
|
|
|
13506
13503
|
__publicField(this, "hierarchyObservers", /* @__PURE__ */ new Set());
|
|
13507
13504
|
__publicField(this, "initCallbacks", /* @__PURE__ */ new Set());
|
|
13508
13505
|
__publicField(this, "transactionIdGenerator");
|
|
13509
|
-
this.designSystemVersionId = designSystemVersionId;
|
|
13510
|
-
this.yDoc = yDoc;
|
|
13511
|
-
this.yObserver = yDoc.on("update", () => this.onYUpdate());
|
|
13506
|
+
this.designSystemVersionId = config.designSystemVersionId;
|
|
13507
|
+
this.yDoc = config.yDoc;
|
|
13508
|
+
this.yObserver = this.yDoc.on("update", () => this.onYUpdate());
|
|
13512
13509
|
this.onYUpdate();
|
|
13513
13510
|
this.actionQueue = new TransactionQueue(config.transactionExecutor);
|
|
13514
13511
|
this.transactionIdGenerator = config.transactionIdGenerator;
|