@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 +6 -0
- package/dist/cjs/index.js +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/media-gallery/media-gallery.js +2 -1
- package/dist/esm/components/media-gallery/media-gallery.js.map +1 -1
- package/dist/esm/components/meta/meta.js +4 -4
- package/dist/esm/components/meta/meta.js.map +1 -1
- package/dist/types/components/media-gallery/media-gallery.d.ts.map +1 -1
- package/dist/types/components/meta/meta.d.ts +4 -4
- package/dist/types/components/meta/meta.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/button/__snapshots__/button.test.tsx.snap +61 -0
- package/src/components/media-gallery/media-gallery.tsx +2 -1
- package/src/components/meta/meta.tsx +6 -10
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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
|
-
|
|
5650
|
-
|
|
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,
|
|
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
|