@supernova-studio/model 0.54.2 → 0.54.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.54.2",
3
+ "version": "0.54.3",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ import { tokenAliasOrValue } from "./base";
3
+
4
+ export const FontValue = z.unknown();
5
+
6
+ export const FontTokenData = tokenAliasOrValue(FontValue);
7
+
8
+ export type FontValue = z.infer<typeof FontValue>;
9
+ export type FontTokenData = z.infer<typeof FontTokenData>;
@@ -19,6 +19,7 @@ export * from "./figma-node-reference";
19
19
  export * from "./font-family";
20
20
  export * from "./font-size";
21
21
  export * from "./font-weight";
22
+ export * from "./font";
22
23
  export * from "./gradient";
23
24
  export * from "./group";
24
25
  export * from "./item-header-v1";
@@ -17,6 +17,7 @@ import {
17
17
  DurationTokenData,
18
18
  FontFamilyTokenData,
19
19
  FontSizeTokenData,
20
+ FontTokenData,
20
21
  FontWeightTokenData,
21
22
  GradientTokenData,
22
23
  LetterSpacingTokenData,
@@ -196,7 +197,7 @@ const DurationTypedData = z.object({
196
197
 
197
198
  const FontTypedData = z.object({
198
199
  type: z.literal("Font"),
199
- data: z.record(z.any()),
200
+ data: FontTokenData,
200
201
  });
201
202
 
202
203
  //