@supernova-studio/model 0.58.5 → 0.58.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.58.5",
3
+ "version": "0.58.7",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -49,6 +49,7 @@ export const DesignTokenOriginPart = z.object({
49
49
  referencePersistentId: z.string().optional(),
50
50
  referenceResolutionFailed: z.boolean().optional(),
51
51
  key: z.string().optional(),
52
+ sortOrder: z.number().optional(),
52
53
  });
53
54
 
54
55
  export const DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
@@ -5,6 +5,7 @@ import { OmitStrict } from "../../utils";
5
5
  export const ElementPropertyTypeSchema = z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
6
6
  export const ElementPropertyTargetType = z.enum(["Token", "Component", "DocumentationPage"]);
7
7
  export const ElementPropertyLinkType = z.enum(["FigmaComponent", "DocumentationPage"]);
8
+ export const ElementPropertyImmutableType = z.enum(["Collection"]);
8
9
 
9
10
  const CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
10
11
 
@@ -36,6 +37,7 @@ export const ElementPropertyType = ElementPropertyTypeSchema.enum;
36
37
 
37
38
  export type ElementPropertyTargetType = z.infer<typeof ElementPropertyTargetType>;
38
39
  export type ElementPropertyLinkType = z.infer<typeof ElementPropertyLinkType>;
40
+ export type ElementPropertyImmutableType = z.infer<typeof ElementPropertyImmutableType>;
39
41
  export type ColorTokenInlineData = z.infer<typeof ColorTokenInlineData>;
40
42
  export type ElementPropertyDefinitionOption = z.infer<typeof ElementPropertyDefinitionOption>;
41
43
  export type ElementPropertyDefinition = z.infer<typeof ElementPropertyDefinition>;