@supernova-studio/client 0.36.1 → 0.37.0

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.js CHANGED
@@ -1014,10 +1014,10 @@ var PageBlockItemAssetValue = _zod.z.object({
1014
1014
  entityType: _zod.z.enum(["Asset", "AssetGroup"]),
1015
1015
  entityMeta: PageBlockAssetEntityMeta.optional()
1016
1016
  })
1017
- )
1017
+ ).default([])
1018
1018
  });
1019
1019
  var PageBlockItemAssetPropertyValue = _zod.z.object({
1020
- value: _zod.z.array(_zod.z.string())
1020
+ value: _zod.z.array(_zod.z.string()).default([])
1021
1021
  });
1022
1022
  var PageBlockItemBooleanValue = _zod.z.object({
1023
1023
  value: _zod.z.boolean()
@@ -1043,7 +1043,7 @@ var PageBlockItemComponentValue = _zod.z.object({
1043
1043
  entityId: _zod.z.string(),
1044
1044
  entityType: _zod.z.enum(["Component", "ComponentGroup"])
1045
1045
  })
1046
- )
1046
+ ).default([])
1047
1047
  });
1048
1048
  var PageBlockItemComponentPropertyValue = _zod.z.object({
1049
1049
  value: _zod.z.string()
@@ -1069,7 +1069,7 @@ var PageBlockItemFigmaNodeValue = _zod.z.object({
1069
1069
  entityId: _zod.z.string(),
1070
1070
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
1071
1071
  })
1072
- )
1072
+ ).default([])
1073
1073
  });
1074
1074
  var PageBlockItemImageValue = _zod.z.object({
1075
1075
  alt: _zod.z.string().optional(),
@@ -1084,7 +1084,7 @@ var PageBlockItemMultiRichTextValue = _zod.z.object({
1084
1084
  value: PageBlockText.array()
1085
1085
  });
1086
1086
  var PageBlockItemMultiSelectValue = _zod.z.object({
1087
- value: _zod.z.array(_zod.z.string())
1087
+ value: _zod.z.array(_zod.z.string()).default([])
1088
1088
  });
1089
1089
  var PageBlockItemNumberValue = _zod.z.object({
1090
1090
  value: _zod.z.number()
@@ -1117,15 +1117,15 @@ var PageBlockItemTokenValue = _zod.z.object({
1117
1117
  showNestedGroups: _zod.z.boolean().optional()
1118
1118
  }).optional()
1119
1119
  })
1120
- )
1120
+ ).default([])
1121
1121
  });
1122
1122
  var PageBlockItemTokenPropertyValue = _zod.z.object({
1123
1123
  selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
1124
1124
  selectedThemeIds: _zod.z.array(_zod.z.string()).optional(),
1125
- value: _zod.z.array(_zod.z.string())
1125
+ value: _zod.z.array(_zod.z.string()).default([])
1126
1126
  });
1127
1127
  var PageBlockItemTokenTypeValue = _zod.z.object({
1128
- value: _zod.z.array(DesignTokenType)
1128
+ value: _zod.z.array(DesignTokenType).default([])
1129
1129
  });
1130
1130
  var PageBlockItemUrlValue = _zod.z.object({
1131
1131
  value: _zod.z.string()
@@ -1163,7 +1163,7 @@ var PageBlockItemTableValue = _zod.z.object({
1163
1163
  highlightHeaderColumn: _zod.z.boolean().optional(),
1164
1164
  highlightHeaderRow: _zod.z.boolean().optional(),
1165
1165
  showBorder: _zod.z.boolean().optional(),
1166
- value: _zod.z.array(PageBlockItemTableRow)
1166
+ value: _zod.z.array(PageBlockItemTableRow).default([])
1167
1167
  });
1168
1168
  var DocumentationItemHeaderAlignmentSchema = _zod.z.enum(["Left", "Center"]);
1169
1169
  var DocumentationItemHeaderImageScaleTypeSchema = _zod.z.enum(["AspectFill", "AspectFit"]);
@@ -7987,7 +7987,7 @@ function parseItem(rawItem, definition) {
7987
7987
  if (validationResult.success) {
7988
7988
  sanitizedProps[property.id] = validationResult.data;
7989
7989
  } else {
7990
- console.log(new String(validationResult.error.flatten()));
7990
+ console.log(validationResult.error.toString());
7991
7991
  }
7992
7992
  }
7993
7993
  return {