@supernova-studio/client 1.3.5 → 1.3.7
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 +222 -0
- package/dist/index.d.ts +222 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7829,6 +7829,12 @@ var DocumentationEndpoint = class {
|
|
|
7829
7829
|
DTODocumentationPageRoomResponse
|
|
7830
7830
|
);
|
|
7831
7831
|
}
|
|
7832
|
+
async getBlockDefinitions(dsId, vId) {
|
|
7833
|
+
return await this.requestExecutor.json(
|
|
7834
|
+
`/design-systems/${dsId}/versions/${vId}/documentation/block-definitions`,
|
|
7835
|
+
DTOGetBlockDefinitionsOutput
|
|
7836
|
+
);
|
|
7837
|
+
}
|
|
7832
7838
|
};
|
|
7833
7839
|
|
|
7834
7840
|
// src/api/endpoints/design-system/versions/ds-components.ts
|
|
@@ -7871,6 +7877,9 @@ var ElementsActionEndpoint = class {
|
|
|
7871
7877
|
async updateDocPage(dsId, vId, input) {
|
|
7872
7878
|
return this.action(dsId, vId, { type: "DocumentationPageUpdate", input });
|
|
7873
7879
|
}
|
|
7880
|
+
async updateDocPageDocument(dsId, vId, input) {
|
|
7881
|
+
return this.action(dsId, vId, { type: "DocumentationPageUpdateDocument", input });
|
|
7882
|
+
}
|
|
7874
7883
|
async updateDocGroup(dsId, vId, input) {
|
|
7875
7884
|
return this.action(dsId, vId, { type: "DocumentationGroupUpdate", input });
|
|
7876
7885
|
}
|
|
@@ -13950,6 +13959,8 @@ var DocsStructureRepository = class {
|
|
|
13950
13959
|
try {
|
|
13951
13960
|
return await this.transactionExecutor(action.action);
|
|
13952
13961
|
} catch (e) {
|
|
13962
|
+
this.localActions = this.localActions.filter((a) => a.tId !== action.action.tId);
|
|
13963
|
+
this.refreshHierarchy();
|
|
13953
13964
|
this.errorObservers.forEach((o) => o(e, action.metadata));
|
|
13954
13965
|
}
|
|
13955
13966
|
}
|