@supernova-studio/client 1.9.11 → 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 +6 -7129
- package/dist/index.d.ts +6 -7129
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -2
- 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(),
|