@revenexx/cover 0.2.15 → 0.2.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenexx/cover",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Cover \u2014 revenexx design system for Nuxt. Distributed as a Nuxt layer: generic UI components, theming tokens and stores shared by the demo shop, custom storefronts and the Blokkli theme.",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -131,7 +131,13 @@ export async function mapLiveDocToDetail(doc: LiveProductDoc, locale: Locale = "
131
131
  ...(doc.category_labels?.[0] ? [{ type: "main", name: doc.category_labels[0] }] : []),
132
132
  ...(doc.categories?.[0] ? [{ type: "slug", name: doc.categories[0] }] : []),
133
133
  ],
134
- images: [],
134
+ // Seed the gallery from the product's `image` common attribute (same
135
+ // source as the catalog shell). The theme's image provider resolves the
136
+ // storage key to the CDN; the live index has no multi-image gallery yet,
137
+ // so this is the single main image (empty when none is declared).
138
+ images: typeof doc.attrs?.image === "string" && doc.attrs.image
139
+ ? [{ type: "main", priority: 0, url: doc.attrs.image }]
140
+ : [],
135
141
  // Specifications: the `attrs` catch-all holds the product's common
136
142
  // attributes as raw key→value. Resolve each through the products app's
137
143
  // attribute definitions so the storefront shows the localized LABEL