@supernova-studio/client 1.9.11 → 1.9.13

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.js CHANGED
@@ -4151,6 +4151,7 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4151
4151
  ]).optional(),
4152
4152
  transform: _zod.z.string().optional(),
4153
4153
  transformOrigin: _zod.z.string().optional(),
4154
+ rotate: _zod.z.string().optional(),
4154
4155
  clipPath: _zod.z.string().optional(),
4155
4156
  color: _zod.z.string().optional(),
4156
4157
  fontFamily: _zod.z.string().optional(),
@@ -4227,7 +4228,12 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4227
4228
  ]).optional(),
4228
4229
  visibility: _zod.z.union([_zod.z.literal("visible"), _zod.z.literal("hidden"), _zod.z.literal("collapse")]).optional()
4229
4230
  });
4230
- var FigmaExporterDesignNodeTypeSchema = _zod.z.union([_zod.z.literal("FRAME"), _zod.z.literal("TEXT"), _zod.z.literal("SVG")]);
4231
+ var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
4232
+ _zod.z.literal("FRAME"),
4233
+ _zod.z.literal("TEXT"),
4234
+ _zod.z.literal("SVG"),
4235
+ _zod.z.literal("COMPONENT_INSTANCE")
4236
+ ]);
4231
4237
  var baseDesignNodeObjectSchema = _zod.z.object({
4232
4238
  id: _zod.z.string(),
4233
4239
  type: FigmaExporterDesignNodeTypeSchema,
@@ -4245,6 +4251,15 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4245
4251
  type: _zod.z.literal("SVG"),
4246
4252
  svgString: _zod.z.string()
4247
4253
  });
4254
+ var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4255
+ type: _zod.z.literal("COMPONENT_INSTANCE"),
4256
+ supernovaId: _zod.z.string(),
4257
+ componentSetName: _zod.z.string(),
4258
+ componentSetDescription: _zod.z.string(),
4259
+ componentName: _zod.z.string(),
4260
+ componentDescription: _zod.z.string(),
4261
+ props: _zod.z.record(_zod.z.string(), _zod.z.union([_zod.z.string(), _zod.z.boolean()]))
4262
+ });
4248
4263
  var frameNodeSchema = _zod.z.lazy(
4249
4264
  () => frameNodeObjectSchema.extend({
4250
4265
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4256,7 +4271,17 @@ var svgNodeSchema = _zod.z.lazy(
4256
4271
  children: FigmaExporterAnyDesignNodeSchema.array()
4257
4272
  })
4258
4273
  );
4259
- var FigmaExporterAnyDesignNodeSchema = _zod.z.union([frameNodeSchema, textNodeSchema, svgNodeSchema]);
4274
+ var componentInstanceNodeSchema = _zod.z.lazy(
4275
+ () => componentInstanceObjectSchema.extend({
4276
+ children: FigmaExporterAnyDesignNodeSchema.array()
4277
+ })
4278
+ );
4279
+ var FigmaExporterAnyDesignNodeSchema = _zod.z.union([
4280
+ frameNodeSchema,
4281
+ textNodeSchema,
4282
+ svgNodeSchema,
4283
+ componentInstanceNodeSchema
4284
+ ]);
4260
4285
  var FigmaNodeRendererPayload = _zod.z.object({
4261
4286
  designSystemId: _zod.z.string(),
4262
4287
  versionId: _zod.z.string(),