@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.mjs
CHANGED
|
@@ -2355,7 +2355,9 @@ var PageBlockItemTableImageNode = z44.object({
|
|
|
2355
2355
|
type: z44.literal("Image"),
|
|
2356
2356
|
id: z44.string(),
|
|
2357
2357
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2358
|
-
|
|
2358
|
+
alt: PageBlockItemImageValue.shape.alt,
|
|
2359
|
+
value: PageBlockItemImageValue.shape.value,
|
|
2360
|
+
alignment: PageBlockItemImageValue.shape.alignment
|
|
2359
2361
|
});
|
|
2360
2362
|
var PageBlockItemTableNode = z44.discriminatedUnion("type", [
|
|
2361
2363
|
PageBlockItemTableRichTextNode,
|
|
@@ -4354,7 +4356,7 @@ var ExporterWorkspaceMembership = z155.object({
|
|
|
4354
4356
|
exporterId: z155.string(),
|
|
4355
4357
|
role: ExporterWorkspaceMembershipRole
|
|
4356
4358
|
});
|
|
4357
|
-
var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
4359
|
+
var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4358
4360
|
var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
|
|
4359
4361
|
var FeatureFlag = z156.object({
|
|
4360
4362
|
id: z156.string(),
|
|
@@ -8232,7 +8234,9 @@ function serializeTableNode(node) {
|
|
|
8232
8234
|
id: node.id,
|
|
8233
8235
|
props: {
|
|
8234
8236
|
image: {
|
|
8235
|
-
|
|
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
|
|
11258
|
-
|
|
11262
|
+
value,
|
|
11263
|
+
...alt && { alt },
|
|
11264
|
+
...caption && { caption },
|
|
11265
|
+
...alignment && { alignment }
|
|
11259
11266
|
};
|
|
11260
11267
|
default:
|
|
11261
11268
|
return null;
|