@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.8.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Added: brand.logo as default og:image in Meta
8
+
3
9
  ## 1.8.7
4
10
 
5
11
  ### Patch Changes
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}`)), page.media && jsxRuntime.jsx("meta", {
5743
+ }, `${alternate.locale}-${alternate.market}`)), image && jsxRuntime.jsx("meta", {
5742
5744
  property: "og:image",
5743
- content: bomMixerModels.resolveHref(page.media.src || page.media.url)
5745
+ content: bomMixerModels.resolveHref(image)
5744
5746
  }), false , structuredData && jsxRuntime.jsx("script", {
5745
5747
  type: "application/ld+json",
5746
5748
  children: structuredData