@supernova-studio/client 1.44.7 → 1.45.0
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 +945 -40
- package/dist/index.d.ts +945 -40
- package/dist/index.js +45 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2569 -2558
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -219,6 +219,7 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
|
|
222
|
+
|
|
222
223
|
|
|
223
224
|
|
|
224
225
|
var __defProp2 = Object.defineProperty;
|
|
@@ -5187,6 +5188,37 @@ var ForgeSection = _zod.z.object({
|
|
|
5187
5188
|
updatedAt: _zod.z.coerce.date(),
|
|
5188
5189
|
childType: ForgeProjectSectionChildType
|
|
5189
5190
|
});
|
|
5191
|
+
var FileFigmaRenderMode = _zod2.default.enum(["Image", "HTML", "JSON"]);
|
|
5192
|
+
var FileSourceUpload = _zod2.default.object({
|
|
5193
|
+
type: _zod2.default.literal("UserUpload"),
|
|
5194
|
+
userId: _zod2.default.string()
|
|
5195
|
+
});
|
|
5196
|
+
var FileSourceFigma = _zod2.default.object({
|
|
5197
|
+
type: _zod2.default.literal("Figma"),
|
|
5198
|
+
renderMode: FileFigmaRenderMode
|
|
5199
|
+
});
|
|
5200
|
+
var FileSource = _zod2.default.discriminatedUnion("type", [FileSourceUpload, FileSourceFigma]);
|
|
5201
|
+
var File = _zod2.default.object({
|
|
5202
|
+
id: _zod2.default.string(),
|
|
5203
|
+
name: _zod2.default.string(),
|
|
5204
|
+
deduplicationKey: _zod2.default.string(),
|
|
5205
|
+
pendingUpload: _zod2.default.boolean().optional(),
|
|
5206
|
+
storagePath: _zod2.default.string(),
|
|
5207
|
+
url: _zod2.default.string(),
|
|
5208
|
+
size: _zod2.default.number(),
|
|
5209
|
+
/**
|
|
5210
|
+
* Object describing where did the file come from. Undefined source indicates a file produced by the
|
|
5211
|
+
* system (e.g. thumbnails, etc)
|
|
5212
|
+
*/
|
|
5213
|
+
source: FileSource.optional()
|
|
5214
|
+
});
|
|
5215
|
+
var FileReference = File.pick({
|
|
5216
|
+
id: true,
|
|
5217
|
+
url: true,
|
|
5218
|
+
source: true
|
|
5219
|
+
}).extend({
|
|
5220
|
+
name: File.shape.name.optional()
|
|
5221
|
+
});
|
|
5190
5222
|
var ForgeProjectArtifact = _zod.z.object({
|
|
5191
5223
|
id: Id,
|
|
5192
5224
|
projectId: _zod.z.string(),
|
|
@@ -5198,7 +5230,8 @@ var ForgeProjectArtifact = _zod.z.object({
|
|
|
5198
5230
|
updatedAt: _zod.z.coerce.date(),
|
|
5199
5231
|
createdByUserId: _zod.z.string(),
|
|
5200
5232
|
sectionId: Id.optional(),
|
|
5201
|
-
threadId: _zod.z.string().optional()
|
|
5233
|
+
threadId: _zod.z.string().optional(),
|
|
5234
|
+
thumbnail: FileReference.optional()
|
|
5202
5235
|
});
|
|
5203
5236
|
var ProjectFeatureStatus = _zod.z.enum(["Draft", "ReadyForDevelopment"]);
|
|
5204
5237
|
var ProjectFeature = _zod.z.object({
|
|
@@ -5218,7 +5251,8 @@ var ProjectFeature = _zod.z.object({
|
|
|
5218
5251
|
numberOfIterations: _zod.z.number().min(0).default(0),
|
|
5219
5252
|
numberOfBookmarkedIterations: _zod.z.number().min(0).default(0),
|
|
5220
5253
|
lastReplyTimestamp: _zod.z.coerce.date().optional(),
|
|
5221
|
-
threadId: _zod.z.string().optional()
|
|
5254
|
+
threadId: _zod.z.string().optional(),
|
|
5255
|
+
thumbnail: FileReference.optional()
|
|
5222
5256
|
});
|
|
5223
5257
|
var ForgeProjectFigmaNode = _zod.z.object({
|
|
5224
5258
|
id: _zod.z.string().uuid(),
|
|
@@ -9202,37 +9236,12 @@ var DTODownloadAssetsResponse = _zod.z.object({
|
|
|
9202
9236
|
|
|
9203
9237
|
// src/api/dto/files/files.ts
|
|
9204
9238
|
|
|
9205
|
-
var DTOFileFigmaRenderMode =
|
|
9206
|
-
var DTOFileSourceUpload =
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
var
|
|
9211
|
-
type: _zod2.default.literal("Figma"),
|
|
9212
|
-
renderMode: DTOFileFigmaRenderMode
|
|
9213
|
-
});
|
|
9214
|
-
var DTOFileSource = _zod2.default.discriminatedUnion("type", [DTOFileSourceUpload, DTOFileSourceFigma]);
|
|
9215
|
-
var DTOFile = _zod2.default.object({
|
|
9216
|
-
id: _zod2.default.string(),
|
|
9217
|
-
name: _zod2.default.string(),
|
|
9218
|
-
deduplicationKey: _zod2.default.string(),
|
|
9219
|
-
pendingUpload: _zod2.default.boolean().optional(),
|
|
9220
|
-
storagePath: _zod2.default.string(),
|
|
9221
|
-
url: _zod2.default.string(),
|
|
9222
|
-
size: _zod2.default.number(),
|
|
9223
|
-
/**
|
|
9224
|
-
* Object describing where did the file come from. Undefined source indicates a file produced by the
|
|
9225
|
-
* system (e.g. thumbnails, etc)
|
|
9226
|
-
*/
|
|
9227
|
-
source: DTOFileSource.optional()
|
|
9228
|
-
});
|
|
9229
|
-
var DTOFileReference = DTOFile.pick({
|
|
9230
|
-
id: true,
|
|
9231
|
-
url: true,
|
|
9232
|
-
source: true
|
|
9233
|
-
}).extend({
|
|
9234
|
-
name: DTOFile.shape.name.optional()
|
|
9235
|
-
});
|
|
9239
|
+
var DTOFileFigmaRenderMode = FileFigmaRenderMode;
|
|
9240
|
+
var DTOFileSourceUpload = FileSourceUpload;
|
|
9241
|
+
var DTOFileSourceFigma = FileSourceFigma;
|
|
9242
|
+
var DTOFileSource = FileSource;
|
|
9243
|
+
var DTOFile = File;
|
|
9244
|
+
var DTOFileReference = FileReference;
|
|
9236
9245
|
var DTOFileUploadOwnerUser = _zod2.default.object({
|
|
9237
9246
|
ownerType: _zod2.default.literal("User")
|
|
9238
9247
|
});
|
|
@@ -19141,7 +19150,9 @@ var ForgeProjectContentRepository = class {
|
|
|
19141
19150
|
artifacts: state.artifacts,
|
|
19142
19151
|
features: state.features,
|
|
19143
19152
|
artifactSections: state.artifactSections,
|
|
19144
|
-
featureSections: state.featureSections
|
|
19153
|
+
featureSections: state.featureSections,
|
|
19154
|
+
// we don't apply local actions to relations, so we can just use the Yjs state
|
|
19155
|
+
relations: yState.relations
|
|
19145
19156
|
};
|
|
19146
19157
|
}
|
|
19147
19158
|
onYUpdate() {
|