@supernova-studio/client 0.47.23 → 0.47.28

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
@@ -1105,6 +1105,12 @@ var PageBlockAssetEntityMeta = _zod.z.object({
1105
1105
  description: _zod.z.string().optional(),
1106
1106
  backgroundColor: PageBlockColorV2.optional()
1107
1107
  });
1108
+ var PageBlockFigmaComponentEntityMeta = _zod.z.object({
1109
+ title: _zod.z.string().optional(),
1110
+ description: _zod.z.string().optional(),
1111
+ backgroundColor: PageBlockColorV2.optional(),
1112
+ selectedComponentProperties: _zod.z.array(_zod.z.string()).optional()
1113
+ });
1108
1114
  var PageBlockFigmaNodeEntityMeta = _zod.z.object({
1109
1115
  title: _zod.z.string().optional(),
1110
1116
  description: _zod.z.string().optional(),
@@ -1152,6 +1158,20 @@ var PageBlockItemAssetValue = _zod.z.object({
1152
1158
  var PageBlockItemAssetPropertyValue = _zod.z.object({
1153
1159
  value: _zod.z.array(_zod.z.string()).default([])
1154
1160
  });
1161
+ var PageBlockItemFigmaComponentValue = _zod.z.object({
1162
+ showComponentName: _zod.z.boolean().optional(),
1163
+ showComponentDescription: _zod.z.boolean().optional(),
1164
+ showPropertyList: _zod.z.boolean().optional(),
1165
+ previewContainerSize: PageBlockPreviewContainerSize.optional(),
1166
+ backgroundColor: PageBlockColorV2.optional(),
1167
+ value: _zod.z.array(
1168
+ _zod.z.object({
1169
+ entityId: _zod.z.string(),
1170
+ entityType: _zod.z.enum(["FigmaComponent"]),
1171
+ entityMeta: PageBlockFigmaComponentEntityMeta.optional()
1172
+ })
1173
+ ).default([])
1174
+ });
1155
1175
  var PageBlockItemBooleanValue = _zod.z.object({
1156
1176
  value: _zod.z.boolean()
1157
1177
  });
@@ -2165,7 +2185,8 @@ var PageBlockDefinitionPropertyType = _zod.z.enum([
2165
2185
  "Table",
2166
2186
  "Divider",
2167
2187
  "Storybook",
2168
- "Color"
2188
+ "Color",
2189
+ "FigmaComponent"
2169
2190
  ]);
2170
2191
  var PageBlockDefinitionRichTextPropertyStyle = _zod.z.enum([
2171
2192
  "Title1",
@@ -2215,13 +2236,19 @@ var PageBlockDefinitionSingleSelectPropertyColor = _zod.z.enum([
2215
2236
  "Cyan",
2216
2237
  "Fuchsia"
2217
2238
  ]);
2239
+ var IconSet = _zod.z.enum([
2240
+ "CheckCircle",
2241
+ "CrossCircle",
2242
+ "Alert"
2243
+ ]);
2218
2244
  var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
2219
2245
  var PageBlockDefinitionImageAspectRatio = _zod.z.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2220
2246
  var PageBlockDefinitionImageWidth = _zod.z.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2221
2247
  var PageBlockDefinitionSelectChoice = _zod.z.object({
2222
2248
  value: _zod.z.string(),
2223
2249
  name: _zod.z.string(),
2224
- icon: _zod.z.string().optional(),
2250
+ icon: IconSet.optional(),
2251
+ customIconUrl: _zod.z.string().optional(),
2225
2252
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
2226
2253
  });
2227
2254
  var PageBlockDefinitionUntypedPropertyOptions = _zod.z.record(_zod.z.any());
@@ -2235,7 +2262,8 @@ var PageBlockDefinitionTextOptions = _zod.z.object({
2235
2262
  placeholder: _zod.z.string().optional(),
2236
2263
  defaultValue: _zod.z.string().optional(),
2237
2264
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2238
- color: PageBlockDefinitionTextPropertyColor.optional()
2265
+ color: PageBlockDefinitionTextPropertyColor.optional(),
2266
+ allowLineBreaks: _zod.z.boolean().optional()
2239
2267
  });
2240
2268
  var PageBlockDefinitionSelectOptions = _zod.z.object({
2241
2269
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
@@ -2291,7 +2319,7 @@ var PageBlockCategory = _zod.z.enum([
2291
2319
  "Data",
2292
2320
  "Other"
2293
2321
  ]);
2294
- var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2322
+ var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
2295
2323
  var PageBlockBehaviorSelectionType = _zod.z.enum(["Entity", "Group", "EntityAndGroup"]);
2296
2324
  var PageBlockDefinitionBehavior = _zod.z.object({
2297
2325
  dataType: PageBlockBehaviorDataType,
@@ -2857,12 +2885,12 @@ var ExportJobDocsDestinationResult = _zod.z.object({
2857
2885
  });
2858
2886
  var ExportJobResult = _zod.z.object({
2859
2887
  error: _zod.z.string().optional(),
2860
- s3: ExportJobS3DestinationResult.optional(),
2861
- github: ExportJobPullRequestDestinationResult.optional(),
2862
- azure: ExportJobPullRequestDestinationResult.optional(),
2863
- gitlab: ExportJobPullRequestDestinationResult.optional(),
2864
- bitbucket: ExportJobPullRequestDestinationResult.optional(),
2865
- sndocs: ExportJobDocsDestinationResult.optional()
2888
+ s3: nullishToOptional(ExportJobS3DestinationResult),
2889
+ github: nullishToOptional(ExportJobPullRequestDestinationResult),
2890
+ azure: nullishToOptional(ExportJobPullRequestDestinationResult),
2891
+ gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
2892
+ bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
2893
+ sndocs: nullishToOptional(ExportJobDocsDestinationResult)
2866
2894
  });
2867
2895
  var ExportJob = _zod.z.object({
2868
2896
  id: _zod.z.string(),
@@ -4596,7 +4624,7 @@ var DTOPipelineCreateBody = _zod.z.object({
4596
4624
  eventType: PipelineEventType,
4597
4625
  brandPersistentId: _zod.z.string().optional(),
4598
4626
  themePersistentId: _zod.z.string().optional(),
4599
- destination: PipelineDestinationType,
4627
+ destination: PipelineDestinationType.optional(),
4600
4628
  gitQuery: GitObjectsQuery,
4601
4629
  destinations: _zod.z.object({
4602
4630
  s3: ExporterDestinationS3.nullish(),
@@ -9195,6 +9223,8 @@ function valueSchemaForPropertyType(type) {
9195
9223
  return PageBlockItemStorybookValue;
9196
9224
  case "Color":
9197
9225
  return PageBlockItemColorValue;
9226
+ case "FigmaComponent":
9227
+ return PageBlockItemFigmaComponentValue;
9198
9228
  }
9199
9229
  }
9200
9230
  function getProsemirrorBlockId(prosemirrorNode) {