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