@supernova-studio/client 1.40.0 → 1.40.2
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 +291 -15
- package/dist/index.d.ts +291 -15
- package/dist/index.js +24 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5232,6 +5232,8 @@ var ProjectFeature = z178.object({
|
|
|
5232
5232
|
name: z178.string(),
|
|
5233
5233
|
projectId: z178.string(),
|
|
5234
5234
|
sectionId: Id.optional(),
|
|
5235
|
+
e2bTemplateId: z178.string().nullish(),
|
|
5236
|
+
e2bIterationId: z178.string().nullish(),
|
|
5235
5237
|
sortOrder: SortOrder.default(0),
|
|
5236
5238
|
status: ProjectFeatureStatus.default("Draft"),
|
|
5237
5239
|
updatedAt: z178.coerce.date().optional(),
|
|
@@ -5712,7 +5714,8 @@ var FlaggedFeature = z207.enum([
|
|
|
5712
5714
|
"PulsarPreloadData",
|
|
5713
5715
|
"PulsarConcurrencyMode",
|
|
5714
5716
|
"PulsarConcurrency",
|
|
5715
|
-
"PulsarProfilerMode"
|
|
5717
|
+
"PulsarProfilerMode",
|
|
5718
|
+
"ForgeE2BTemplate"
|
|
5716
5719
|
]);
|
|
5717
5720
|
var FeatureFlagMap = z207.record(FlaggedFeature, z207.boolean());
|
|
5718
5721
|
var FeatureFlag = z207.object({
|
|
@@ -7069,7 +7072,8 @@ var DTOStorybookEntryQuery = z238.object({
|
|
|
7069
7072
|
/**
|
|
7070
7073
|
* Unique ID across versions (non-persistent ID)
|
|
7071
7074
|
*/
|
|
7072
|
-
brandId: z238.string().optional()
|
|
7075
|
+
brandId: z238.string().optional(),
|
|
7076
|
+
excludeDocs: z238.coerce.boolean().optional()
|
|
7073
7077
|
});
|
|
7074
7078
|
var DTOStorybookEntryListResponse = z238.object({ entries: z238.array(DTOStorybookEntry) });
|
|
7075
7079
|
var DTOStorybookEntryResponse = z238.object({ entry: DTOStorybookEntry });
|
|
@@ -9556,7 +9560,7 @@ var DTOForgeProjectFeatureGetResponse = z317.object({
|
|
|
9556
9560
|
});
|
|
9557
9561
|
var DTOForgeProjectFeatureCreateInput = z317.object({
|
|
9558
9562
|
id: Id,
|
|
9559
|
-
name: z317.string(),
|
|
9563
|
+
name: z317.string().optional(),
|
|
9560
9564
|
description: z317.string(),
|
|
9561
9565
|
sectionId: Id.optional(),
|
|
9562
9566
|
afterFeatureId: Id.nullable().optional(),
|
|
@@ -10106,6 +10110,9 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
10106
10110
|
parentMessageId: true,
|
|
10107
10111
|
attachments: true
|
|
10108
10112
|
});
|
|
10113
|
+
var DTOThreadMessageFinalizeInput = z333.object({
|
|
10114
|
+
messageId: Id
|
|
10115
|
+
});
|
|
10109
10116
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
10110
10117
|
id: true
|
|
10111
10118
|
}).merge(
|
|
@@ -11187,9 +11194,9 @@ var StorybookEntriesEndpoint = class {
|
|
|
11187
11194
|
constructor(requestExecutor) {
|
|
11188
11195
|
this.requestExecutor = requestExecutor;
|
|
11189
11196
|
}
|
|
11190
|
-
list(dsId,
|
|
11197
|
+
list(dsId, query = {}) {
|
|
11191
11198
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse, {
|
|
11192
|
-
query: new URLSearchParams(pickDefined(
|
|
11199
|
+
query: new URLSearchParams(pickDefined(query))
|
|
11193
11200
|
});
|
|
11194
11201
|
}
|
|
11195
11202
|
replace(dsId, entryId) {
|
|
@@ -17887,6 +17894,15 @@ var BackendVersionRoomYDoc = class {
|
|
|
17887
17894
|
__publicField(this, "yDoc");
|
|
17888
17895
|
this.yDoc = yDoc;
|
|
17889
17896
|
}
|
|
17897
|
+
getDocumentationHierarchy() {
|
|
17898
|
+
const yDoc = new VersionRoomBaseYDoc(this.yDoc);
|
|
17899
|
+
return {
|
|
17900
|
+
pages: yDoc.getPages(),
|
|
17901
|
+
pageSnapshots: yDoc.getPageSnapshots(),
|
|
17902
|
+
groups: yDoc.getGroups(),
|
|
17903
|
+
groupSnapshots: yDoc.getGroupSnapshots()
|
|
17904
|
+
};
|
|
17905
|
+
}
|
|
17890
17906
|
updateDocumentationHierarchy(transaction) {
|
|
17891
17907
|
this.yDoc.transact((trx) => {
|
|
17892
17908
|
const yDoc = new VersionRoomBaseYDoc(trx.doc);
|
|
@@ -18284,7 +18300,7 @@ var LocalProjectActionExecutor = class {
|
|
|
18284
18300
|
isArchived: false,
|
|
18285
18301
|
sectionId: input.sectionId,
|
|
18286
18302
|
sortOrder,
|
|
18287
|
-
name: input.name,
|
|
18303
|
+
name: input.name ?? "New Feature",
|
|
18288
18304
|
status: "Draft",
|
|
18289
18305
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
18290
18306
|
createdAt: /* @__PURE__ */ new Date(),
|
|
@@ -19120,6 +19136,7 @@ export {
|
|
|
19120
19136
|
DTOThreadMessageAgentSender,
|
|
19121
19137
|
DTOThreadMessageAttachments,
|
|
19122
19138
|
DTOThreadMessageCreateInput,
|
|
19139
|
+
DTOThreadMessageFinalizeInput,
|
|
19123
19140
|
DTOThreadMessageListResponse,
|
|
19124
19141
|
DTOThreadMessageResponse,
|
|
19125
19142
|
DTOThreadMessageSender,
|