@supernova-studio/model 0.0.6 → 0.0.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.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "index.ts",
6
6
  "source": "index.ts",
@@ -22,7 +22,7 @@ export const PageBlockCategory = z.enum([
22
22
  "Other",
23
23
  ]);
24
24
 
25
- export const PageBlockBehaviorDataType = z.enum(["Item", "Token", "Asset", "Component"]);
25
+ export const PageBlockBehaviorDataType = z.enum(["Item", "Token", "Asset", "Component", "FigmaFrame"]);
26
26
  export const PageBlockBehaviorSelectionType = z.enum(["Entity", "Group", "EntityAndGroup"]);
27
27
 
28
28
  export type PageBlockCategory = z.infer<typeof PageBlockCategory>;
@@ -22,6 +22,7 @@ export const PageBlockDefinitionPropertyType = z.enum([
22
22
  "Asset",
23
23
  "AssetProperty",
24
24
  "EmbedURL",
25
+ "URL",
25
26
  "Markdown",
26
27
  "Code",
27
28
  "CodeSandbox",
@@ -43,8 +44,35 @@ export const PageBlockDefinitionRichTextPropertyStyle = z.enum([
43
44
  "Default",
44
45
  ]);
45
46
 
47
+ export const PageBlockDefinitionTextPropertyStyle = z.enum([
48
+ "Title1",
49
+ "Title2",
50
+ "Title3",
51
+ "Title4",
52
+ "Title5",
53
+ "Default",
54
+ "DefaultBold",
55
+ "DefaultSemibold",
56
+ "Small",
57
+ "SmallBold",
58
+ "SmallSemibold",
59
+ ]);
60
+
61
+ export const PageBlockDefinitionBooleanPropertyStyle = z.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
62
+ export const PageBlockDefinitionSingleSelectPropertyStyle = z.enum([
63
+ "SegmentedControl",
64
+ "ToggleButton",
65
+ "Select",
66
+ "Checkbox",
67
+ ]);
68
+ export const PageBlockDefinitionMultiSelectPropertyStyle = z.enum(["SegmentedControl", "Select", "Checkbox"]);
69
+
46
70
  export type PageBlockDefinitionPropertyType = z.infer<typeof PageBlockDefinitionPropertyType>;
47
71
  export type PageBlockDefinitionRichTextPropertyStyle = z.infer<typeof PageBlockDefinitionRichTextPropertyStyle>;
72
+ export type PageBlockDefinitionTextPropertyStyle = z.infer<typeof PageBlockDefinitionTextPropertyStyle>;
73
+ export type PageBlockDefinitionBooleanPropertyStyle = z.infer<typeof PageBlockDefinitionBooleanPropertyStyle>;
74
+ export type PageBlockDefinitionSingleSelectPropertyStyle = z.infer<typeof PageBlockDefinitionSingleSelectPropertyStyle>;
75
+ export type PageBlockDefinitionMultiSelectPropertyStyle = z.infer<typeof PageBlockDefinitionMultiSelectPropertyStyle>;
48
76
 
49
77
  //
50
78
  // Definitions
@@ -52,7 +80,8 @@ export type PageBlockDefinitionRichTextPropertyStyle = z.infer<typeof PageBlockD
52
80
 
53
81
  export const PageBlockDefinitionPropertyOptions = z
54
82
  .object({
55
- style: PageBlockDefinitionRichTextPropertyStyle.optional(),
83
+ richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional(),
84
+ textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
56
85
  placeholder: z.string().optional(),
57
86
  })
58
87
  .and(z.record(z.any()));