@supernova-studio/model 0.52.5 → 0.52.7
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 +375 -42
- package/dist/index.d.ts +375 -42
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +1 -0
- package/src/dsm/elements/data/figma-node-reference.ts +4 -0
- package/src/dsm/import/figma-frames.ts +5 -5
package/package.json
CHANGED
|
@@ -175,6 +175,7 @@ export const PageBlockItemColorValue = z.record(z.any());
|
|
|
175
175
|
|
|
176
176
|
export const PageBlockItemComponentValue = z.object({
|
|
177
177
|
selectedPropertyIds: z.array(z.string()).optional(),
|
|
178
|
+
selectedBrandId: z.string().optional(),
|
|
178
179
|
value: z
|
|
179
180
|
.array(
|
|
180
181
|
z.object({
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
export const FigmaNodeRenderFormat = z.enum(["Png", "Svg"]);
|
|
4
|
+
|
|
3
5
|
export const FigmaNodeReferenceData = z.object({
|
|
4
6
|
structureElementId: z.string(),
|
|
5
7
|
nodeId: z.string(),
|
|
6
8
|
fileId: z.string().optional(),
|
|
7
9
|
valid: z.boolean(),
|
|
10
|
+
format: FigmaNodeRenderFormat.default("Png"),
|
|
8
11
|
|
|
9
12
|
// Asset data
|
|
10
13
|
assetId: z.string().optional(),
|
|
@@ -19,5 +22,6 @@ export const FigmaNodeReferenceElementData = z.object({
|
|
|
19
22
|
value: FigmaNodeReferenceData,
|
|
20
23
|
});
|
|
21
24
|
|
|
25
|
+
export type FigmaNodeRenderFormat = z.infer<typeof FigmaNodeRenderFormat>;
|
|
22
26
|
export type FigmaNodeReferenceData = z.infer<typeof FigmaNodeReferenceData>;
|
|
23
27
|
export type FigmaNodeReferenceElementData = z.infer<typeof FigmaNodeReferenceElementData>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZodTypeDef, z } from "zod";
|
|
2
|
+
import { FigmaFileStructureNodeBase, FigmaFileStructureOrigin, FigmaFileStructureStatistics } from "../elements";
|
|
2
3
|
import { ImportModelBase, ImportModelInputBase } from "./base";
|
|
3
|
-
import {
|
|
4
|
-
import { FigmaFileStructureNodeBase, FigmaFileStructureStatistics } from "../elements";
|
|
5
|
-
import { FigmaPngRenderImportModel } from "./image";
|
|
4
|
+
import { FigmaPngRenderImportModel, FigmaSvgRenderImportModel } from "./image";
|
|
6
5
|
|
|
7
6
|
//
|
|
8
7
|
// Nodes Import Model
|
|
9
8
|
//
|
|
10
9
|
|
|
11
10
|
const FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
12
|
-
|
|
11
|
+
png: FigmaPngRenderImportModel,
|
|
12
|
+
svg: FigmaSvgRenderImportModel,
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
export const FigmaFileStructureNodeImportModel: z.ZodType<
|