@supernova-studio/client 1.9.10 → 1.9.12
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 +9 -7130
- package/dist/index.d.ts +9 -7130
- package/dist/index.js +31 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4227,7 +4227,12 @@ var FigmaExporterProcessedStylesSchema = z123.object({
|
|
|
4227
4227
|
]).optional(),
|
|
4228
4228
|
visibility: z123.union([z123.literal("visible"), z123.literal("hidden"), z123.literal("collapse")]).optional()
|
|
4229
4229
|
});
|
|
4230
|
-
var FigmaExporterDesignNodeTypeSchema = z123.union([
|
|
4230
|
+
var FigmaExporterDesignNodeTypeSchema = z123.union([
|
|
4231
|
+
z123.literal("FRAME"),
|
|
4232
|
+
z123.literal("TEXT"),
|
|
4233
|
+
z123.literal("SVG"),
|
|
4234
|
+
z123.literal("COMPONENT_INSTANCE")
|
|
4235
|
+
]);
|
|
4231
4236
|
var baseDesignNodeObjectSchema = z123.object({
|
|
4232
4237
|
id: z123.string(),
|
|
4233
4238
|
type: FigmaExporterDesignNodeTypeSchema,
|
|
@@ -4245,6 +4250,15 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
|
4245
4250
|
type: z123.literal("SVG"),
|
|
4246
4251
|
svgString: z123.string()
|
|
4247
4252
|
});
|
|
4253
|
+
var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4254
|
+
type: z123.literal("COMPONENT_INSTANCE"),
|
|
4255
|
+
supernovaId: z123.string(),
|
|
4256
|
+
componentSetName: z123.string(),
|
|
4257
|
+
componentSetDescription: z123.string(),
|
|
4258
|
+
componentName: z123.string(),
|
|
4259
|
+
componentDescription: z123.string(),
|
|
4260
|
+
props: z123.record(z123.string(), z123.union([z123.string(), z123.boolean()]))
|
|
4261
|
+
});
|
|
4248
4262
|
var frameNodeSchema = z123.lazy(
|
|
4249
4263
|
() => frameNodeObjectSchema.extend({
|
|
4250
4264
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
@@ -4256,7 +4270,17 @@ var svgNodeSchema = z123.lazy(
|
|
|
4256
4270
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4257
4271
|
})
|
|
4258
4272
|
);
|
|
4259
|
-
var
|
|
4273
|
+
var componentInstanceNodeSchema = z123.lazy(
|
|
4274
|
+
() => componentInstanceObjectSchema.extend({
|
|
4275
|
+
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4276
|
+
})
|
|
4277
|
+
);
|
|
4278
|
+
var FigmaExporterAnyDesignNodeSchema = z123.union([
|
|
4279
|
+
frameNodeSchema,
|
|
4280
|
+
textNodeSchema,
|
|
4281
|
+
svgNodeSchema,
|
|
4282
|
+
componentInstanceNodeSchema
|
|
4283
|
+
]);
|
|
4260
4284
|
var FigmaNodeRendererPayload = z124.object({
|
|
4261
4285
|
designSystemId: z124.string(),
|
|
4262
4286
|
versionId: z124.string(),
|
|
@@ -6513,11 +6537,12 @@ var FormattedCollections = z211.object({
|
|
|
6513
6537
|
|
|
6514
6538
|
// src/api/dto/design-systems/file.ts
|
|
6515
6539
|
import { z as z212 } from "zod";
|
|
6540
|
+
var DTOAssetScope = AssetScope;
|
|
6516
6541
|
var DTOFileUploadItem = z212.object({
|
|
6517
6542
|
size: z212.number(),
|
|
6518
6543
|
name: z212.string(),
|
|
6519
6544
|
checksum: z212.string(),
|
|
6520
|
-
scope:
|
|
6545
|
+
scope: DTOAssetScope.exclude(["ComponentThumbnail", "DocumentationFrame"]).optional()
|
|
6521
6546
|
});
|
|
6522
6547
|
var DTOFileUploadPayload = z212.object({
|
|
6523
6548
|
files: z212.array(DTOFileUploadItem)
|
|
@@ -6544,7 +6569,7 @@ var DTOFilesGetPayload = z212.object({
|
|
|
6544
6569
|
persistentIds: z212.string().array().optional()
|
|
6545
6570
|
});
|
|
6546
6571
|
var DTOFilesGetQuery = z212.object({
|
|
6547
|
-
includeScope:
|
|
6572
|
+
includeScope: DTOAssetScope.optional()
|
|
6548
6573
|
});
|
|
6549
6574
|
var DTOFilesResponse = z212.object({
|
|
6550
6575
|
files: z212.array(DTOFileResponseItem)
|
|
@@ -15473,6 +15498,7 @@ export {
|
|
|
15473
15498
|
DTOAppBootstrapDataQuery,
|
|
15474
15499
|
DTOAppBootstrapDataResponse,
|
|
15475
15500
|
DTOAssetRenderConfiguration,
|
|
15501
|
+
DTOAssetScope,
|
|
15476
15502
|
DTOAuthenticatedUser,
|
|
15477
15503
|
DTOAuthenticatedUserProfile,
|
|
15478
15504
|
DTOAuthenticatedUserResponse,
|