@websolutespa/bom-mixer-ui 1.8.5 → 1.8.6

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.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Meta, MediaGallery
8
+
3
9
  ## 1.8.5
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -5514,7 +5514,8 @@ const MediaGallery = /*#__PURE__*/React.forwardRef((_a, ref) => {
5514
5514
  }).filter(x => x && x.galleryId === id).map(x => x.media);
5515
5515
  // console.log('MediaGallery.open', medias, media);
5516
5516
  const initialSlide = media && !Array.isArray(media) ? medias.reduce((p, c, i) => {
5517
- if (c.src === media.src) {
5517
+ const mediaSrc = media.src || media.url;
5518
+ if (c.src === mediaSrc) {
5518
5519
  return i;
5519
5520
  } else {
5520
5521
  return p;
@@ -5646,8 +5647,8 @@ MediaGallery.displayName = 'MediaGallery';
5646
5647
  function Meta(_ref) {
5647
5648
  let {
5648
5649
  children,
5649
- websiteName = 'WebsiteName',
5650
- structuredDataCollections
5650
+ structuredDataCollections,
5651
+ brand
5651
5652
  } = _ref;
5652
5653
  var _a, _b, _e;
5653
5654
  const page = bomMixerHooks.usePage();
@@ -5688,7 +5689,7 @@ function Meta(_ref) {
5688
5689
  }
5689
5690
  }
5690
5691
  // structuredData
5691
- const structuredData = bomMixerModels.resolveStructuredData(page, websiteName, structuredDataCollections);
5692
+ const structuredData = bomMixerModels.resolveStructuredData(page, structuredDataCollections, brand);
5692
5693
  return jsxRuntime.jsxs(Head__default.default, {
5693
5694
  children: [jsxRuntime.jsx("title", {
5694
5695
  children: title
@@ -5716,7 +5717,7 @@ function Meta(_ref) {
5716
5717
  hrefLang: alternate.locale
5717
5718
  }, `${alternate.locale}-${alternate.market}`)), page.media && jsxRuntime.jsx("meta", {
5718
5719
  property: "og:image",
5719
- content: bomMixerModels.resolveHref(page.media.src)
5720
+ content: bomMixerModels.resolveHref(page.media.src || page.media.url)
5720
5721
  }), false , structuredData && jsxRuntime.jsx("script", {
5721
5722
  type: "application/ld+json",
5722
5723
  children: structuredData