@websolutespa/bom-mixer-ui 1.8.7 → 1.8.8
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/CHANGELOG.md +6 -0
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/meta/meta.js +4 -2
- package/dist/esm/components/meta/meta.js.map +1 -1
- package/dist/types/components/meta/meta.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/meta/meta.tsx +4 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -5713,6 +5713,8 @@ function Meta(_ref) {
|
|
|
5713
5713
|
}
|
|
5714
5714
|
// structuredData
|
|
5715
5715
|
const structuredData = bomMixerModels.resolveStructuredData(page, structuredDataCollections, brand);
|
|
5716
|
+
// image
|
|
5717
|
+
const image = page.media ? page.media.src || page.media.url : brand === null || brand === void 0 ? void 0 : brand.logo;
|
|
5716
5718
|
return jsxRuntime.jsxs(Head__default.default, {
|
|
5717
5719
|
children: [jsxRuntime.jsx("title", {
|
|
5718
5720
|
children: title
|
|
@@ -5738,9 +5740,9 @@ function Meta(_ref) {
|
|
|
5738
5740
|
rel: "alternate",
|
|
5739
5741
|
href: bomMixerModels.resolveHref(alternate.id),
|
|
5740
5742
|
hrefLang: alternate.locale
|
|
5741
|
-
}, `${alternate.locale}-${alternate.market}`)),
|
|
5743
|
+
}, `${alternate.locale}-${alternate.market}`)), image && jsxRuntime.jsx("meta", {
|
|
5742
5744
|
property: "og:image",
|
|
5743
|
-
content: bomMixerModels.resolveHref(
|
|
5745
|
+
content: bomMixerModels.resolveHref(image)
|
|
5744
5746
|
}), false , structuredData && jsxRuntime.jsx("script", {
|
|
5745
5747
|
type: "application/ld+json",
|
|
5746
5748
|
children: structuredData
|