@supernova-studio/model 0.30.1 → 0.32.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.mjs CHANGED
@@ -911,16 +911,18 @@ var PageBlockImageAlignment = z35.enum(["Left", "Center", "Stretch"]);
911
911
  var PageBlockTableCellAlignment = z35.enum(["Left", "Center", "Right"]);
912
912
  var PageBlockPreviewContainerSize = z35.enum(["Centered", "NaturalHeight"]);
913
913
  var PageBlockThemeDisplayMode = z35.enum(["Split", "Override"]);
914
+ var PageBlockImageResourceReference = z35.object({
915
+ resourceId: z35.string(),
916
+ url: z35.string()
917
+ });
918
+ var PageBlockResourceFrameNodeReference = z35.object({
919
+ sourceId: z35.string(),
920
+ frameReferenceId: z35.string()
921
+ });
914
922
  var PageBlockImageReference = z35.object({
915
923
  type: PageBlockImageType,
916
- resource: z35.object({
917
- url: z35.string(),
918
- resourceId: z35.string()
919
- }).optional(),
920
- figmaFile: z35.object({
921
- sourceId: z35.string(),
922
- frameReferenceId: z35.string()
923
- }).optional()
924
+ resource: PageBlockImageResourceReference.optional(),
925
+ figmaFile: PageBlockResourceFrameNodeReference.optional()
924
926
  });
925
927
  var PageBlockColorV2 = z35.object({
926
928
  value: z35.string(),
@@ -1019,10 +1021,10 @@ var PageBlockItemEmbedValue = z35.object({
1019
1021
  }).optional()
1020
1022
  });
1021
1023
  var PageBlockItemFigmaNodeValue = z35.object({
1022
- selectedPropertyIds: z35.array(z35.string()).optional(),
1023
1024
  showSearch: z35.boolean().optional(),
1024
1025
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1025
1026
  backgroundColor: PageBlockColorV2.optional(),
1027
+ showFrameDetails: z35.boolean().optional(),
1026
1028
  value: z35.array(
1027
1029
  z35.object({
1028
1030
  entityId: z35.string(),
@@ -1176,10 +1178,6 @@ var DocumentationPageDataV1 = z39.object({
1176
1178
  blocks: z39.array(PageBlockV1),
1177
1179
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1178
1180
  });
1179
- var DocumentationPageElementDataV1 = z39.object({
1180
- dataVersion: z39.literal(1).optional().default(1),
1181
- value: DocumentationPageDataV1
1182
- });
1183
1181
 
1184
1182
  // src/dsm/elements/data/documentation-page-v2.ts
1185
1183
  import { z as z42 } from "zod";
@@ -1222,10 +1220,6 @@ var defaultDocumentationItemConfigurationV2 = {
1222
1220
  var DocumentationPageDataV2 = z42.object({
1223
1221
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1224
1222
  });
1225
- var DocumentationPageElementDataV2 = z42.object({
1226
- value: DocumentationPageDataV1,
1227
- valueV2: DocumentationPageDataV2.optional()
1228
- });
1229
1223
 
1230
1224
  // src/dsm/elements/data/documentation-section-v2.ts
1231
1225
  import { z as z45 } from "zod";
@@ -1414,18 +1408,10 @@ var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1414
1408
  // src/dsm/elements/data/group.ts
1415
1409
  import { z as z53 } from "zod";
1416
1410
  var DocumentationGroupBehavior = z53.enum(["Group", "Tabs"]);
1417
- var ElementGroupDataDeprecated = z53.object({
1418
- behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1419
- configuration: nullishToOptional(DocumentationItemConfigurationV1)
1420
- });
1421
1411
  var ElementGroupDataV2 = z53.object({
1422
1412
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1423
1413
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1424
1414
  });
1425
- var ElementGroupElementData = z53.object({
1426
- value: ElementGroupDataDeprecated.optional(),
1427
- valueV2: ElementGroupDataV2.optional()
1428
- });
1429
1415
 
1430
1416
  // src/dsm/elements/data/letter-spacing.ts
1431
1417
  import { z as z54 } from "zod";
@@ -2182,7 +2168,8 @@ import { z as z89 } from "zod";
2182
2168
  var PageBlockDefinitionAppearance = z89.object({
2183
2169
  isBordered: z89.boolean().optional(),
2184
2170
  hasBackground: z89.boolean().optional(),
2185
- isEditorPresentationDifferent: z89.boolean().optional()
2171
+ isEditorPresentationDifferent: z89.boolean().optional(),
2172
+ showBlockHeaderInEditor: z89.boolean().optional()
2186
2173
  });
2187
2174
 
2188
2175
  // src/dsm/documentation/block-definitions/definition.ts
@@ -2268,7 +2255,8 @@ var PageBlockDefinitionTextPropertyStyle = z91.enum([
2268
2255
  "DefaultSemibold",
2269
2256
  "Small",
2270
2257
  "SmallBold",
2271
- "SmallSemibold"
2258
+ "SmallSemibold",
2259
+ "Custom"
2272
2260
  ]);
2273
2261
  var PageBlockDefinitionTextPropertyColor = z91.enum(["Neutral", "NeutralFaded"]);
2274
2262
  var PageBlockDefinitionBooleanPropertyStyle = z91.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
@@ -2967,13 +2955,13 @@ var PulsarContributionVariant = z118.object({
2967
2955
  thumbnailURL: nullishToOptional(z118.string())
2968
2956
  });
2969
2957
  var PulsarCustomBlock = z118.object({
2970
- title: z118.string(),
2958
+ title: nullishToOptional(z118.string()),
2971
2959
  key: z118.string(),
2972
- category: z118.string(),
2960
+ category: nullishToOptional(z118.string()),
2973
2961
  description: nullishToOptional(z118.string()),
2974
- iconURL: z118.string(),
2975
- mode: z118.enum(["array", "block"]),
2976
- properties: z118.array(PulsarBaseProperty)
2962
+ iconURL: nullishToOptional(z118.string()),
2963
+ mode: nullishToOptional(z118.enum(["array", "block"])),
2964
+ properties: nullishToOptional(z118.array(PulsarBaseProperty)).transform((v) => v ?? [])
2977
2965
  });
2978
2966
 
2979
2967
  // src/codegen/exporter.ts
@@ -4109,8 +4097,6 @@ export {
4109
4097
  DocumentationPageContentItem,
4110
4098
  DocumentationPageDataV1,
4111
4099
  DocumentationPageDataV2,
4112
- DocumentationPageElementDataV1,
4113
- DocumentationPageElementDataV2,
4114
4100
  DocumentationPageGroup,
4115
4101
  DocumentationPageRoom,
4116
4102
  DocumentationPageRoomInitialStateUpdate,
@@ -4122,9 +4108,7 @@ export {
4122
4108
  DurationUnit,
4123
4109
  DurationValue,
4124
4110
  ElementGroup,
4125
- ElementGroupDataDeprecated,
4126
4111
  ElementGroupDataV2,
4127
- ElementGroupElementData,
4128
4112
  ElementPropertyDefinition,
4129
4113
  ElementPropertyDefinitionOption,
4130
4114
  ElementPropertyLinkType,
@@ -4255,6 +4239,7 @@ export {
4255
4239
  PageBlockAssetComponent,
4256
4240
  PageBlockAssetEntityMeta,
4257
4241
  PageBlockAssetType,
4242
+ PageBlockBaseV1,
4258
4243
  PageBlockBehaviorDataType,
4259
4244
  PageBlockBehaviorSelectionType,
4260
4245
  PageBlockCalloutType,
@@ -4304,6 +4289,7 @@ export {
4304
4289
  PageBlockFrameOrigin,
4305
4290
  PageBlockImageAlignment,
4306
4291
  PageBlockImageReference,
4292
+ PageBlockImageResourceReference,
4307
4293
  PageBlockImageType,
4308
4294
  PageBlockItemAssetPropertyValue,
4309
4295
  PageBlockItemAssetValue,
@@ -4343,6 +4329,7 @@ export {
4343
4329
  PageBlockLinkV2,
4344
4330
  PageBlockPreviewContainerSize,
4345
4331
  PageBlockRenderCodeProperties,
4332
+ PageBlockResourceFrameNodeReference,
4346
4333
  PageBlockShortcut,
4347
4334
  PageBlockTableCellAlignment,
4348
4335
  PageBlockTableColumn,