@supernova-studio/model 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 +581 -6
- package/dist/index.d.ts +581 -6
- 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.js
CHANGED
|
@@ -4748,7 +4748,12 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
|
|
|
4748
4748
|
]).optional(),
|
|
4749
4749
|
visibility: _zod.z.union([_zod.z.literal("visible"), _zod.z.literal("hidden"), _zod.z.literal("collapse")]).optional()
|
|
4750
4750
|
});
|
|
4751
|
-
var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
|
|
4751
|
+
var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
|
|
4752
|
+
_zod.z.literal("FRAME"),
|
|
4753
|
+
_zod.z.literal("TEXT"),
|
|
4754
|
+
_zod.z.literal("SVG"),
|
|
4755
|
+
_zod.z.literal("COMPONENT_INSTANCE")
|
|
4756
|
+
]);
|
|
4752
4757
|
var baseDesignNodeObjectSchema = _zod.z.object({
|
|
4753
4758
|
id: _zod.z.string(),
|
|
4754
4759
|
type: FigmaExporterDesignNodeTypeSchema,
|
|
@@ -4766,6 +4771,15 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
|
4766
4771
|
type: _zod.z.literal("SVG"),
|
|
4767
4772
|
svgString: _zod.z.string()
|
|
4768
4773
|
});
|
|
4774
|
+
var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4775
|
+
type: _zod.z.literal("COMPONENT_INSTANCE"),
|
|
4776
|
+
supernovaId: _zod.z.string(),
|
|
4777
|
+
componentSetName: _zod.z.string(),
|
|
4778
|
+
componentSetDescription: _zod.z.string(),
|
|
4779
|
+
componentName: _zod.z.string(),
|
|
4780
|
+
componentDescription: _zod.z.string(),
|
|
4781
|
+
props: _zod.z.record(_zod.z.string(), _zod.z.union([_zod.z.string(), _zod.z.boolean()]))
|
|
4782
|
+
});
|
|
4769
4783
|
var frameNodeSchema = _zod.z.lazy(
|
|
4770
4784
|
() => frameNodeObjectSchema.extend({
|
|
4771
4785
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
@@ -4777,7 +4791,17 @@ var svgNodeSchema = _zod.z.lazy(
|
|
|
4777
4791
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4778
4792
|
})
|
|
4779
4793
|
);
|
|
4780
|
-
var
|
|
4794
|
+
var componentInstanceNodeSchema = _zod.z.lazy(
|
|
4795
|
+
() => componentInstanceObjectSchema.extend({
|
|
4796
|
+
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4797
|
+
})
|
|
4798
|
+
);
|
|
4799
|
+
var FigmaExporterAnyDesignNodeSchema = _zod.z.union([
|
|
4800
|
+
frameNodeSchema,
|
|
4801
|
+
textNodeSchema,
|
|
4802
|
+
svgNodeSchema,
|
|
4803
|
+
componentInstanceNodeSchema
|
|
4804
|
+
]);
|
|
4781
4805
|
|
|
4782
4806
|
// src/dsm/figma-node-renderer/renderer-payload.ts
|
|
4783
4807
|
|