@supernova-studio/client 0.53.7 → 0.54.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
@@ -2355,7 +2355,9 @@ var PageBlockItemTableImageNode = _zod.z.object({
2355
2355
  type: _zod.z.literal("Image"),
2356
2356
  id: _zod.z.string(),
2357
2357
  caption: PageBlockItemImageValue.shape.caption,
2358
- value: PageBlockItemImageValue.shape.value
2358
+ alt: PageBlockItemImageValue.shape.alt,
2359
+ value: PageBlockItemImageValue.shape.value,
2360
+ alignment: PageBlockItemImageValue.shape.alignment
2359
2361
  });
2360
2362
  var PageBlockItemTableNode = _zod.z.discriminatedUnion("type", [
2361
2363
  PageBlockItemTableRichTextNode,
@@ -4354,7 +4356,7 @@ var ExporterWorkspaceMembership = _zod.z.object({
4354
4356
  exporterId: _zod.z.string(),
4355
4357
  role: ExporterWorkspaceMembershipRole
4356
4358
  });
4357
- var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4359
+ var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4358
4360
  var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
4359
4361
  var FeatureFlag = _zod.z.object({
4360
4362
  id: _zod.z.string(),
@@ -8232,7 +8234,9 @@ function serializeTableNode(node) {
8232
8234
  id: node.id,
8233
8235
  props: {
8234
8236
  image: {
8235
- caption: node.caption,
8237
+ ...node.alt && { alt: node.alt },
8238
+ ...node.caption && { caption: node.caption },
8239
+ ...node.alignment && { alignment: node.alignment },
8236
8240
  value: node.value
8237
8241
  }
8238
8242
  }
@@ -11251,11 +11255,14 @@ function parseAsTableNode(prosemirrorNode) {
11251
11255
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
11252
11256
  if (!imagePropertyValueParseResult.success)
11253
11257
  return null;
11258
+ const { value, caption, alt, alignment } = imagePropertyValueParseResult.data;
11254
11259
  return {
11255
11260
  type: "Image",
11256
11261
  id,
11257
- value: imagePropertyValueParseResult.data.value,
11258
- caption: imagePropertyValueParseResult.data.caption
11262
+ value,
11263
+ ...alt && { alt },
11264
+ ...caption && { caption },
11265
+ ...alignment && { alignment }
11259
11266
  };
11260
11267
  default:
11261
11268
  return null;