@wlloyalty/wll-react-sdk 1.9.0 → 1.10.0

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/dist/native.js CHANGED
@@ -2755,6 +2755,14 @@ var useContentTileStyles = function (hasArtwork) {
2755
2755
  });
2756
2756
  };
2757
2757
 
2758
+ var getContentTileMediaContainerStyle = function (isArtworkOnly) {
2759
+ return isArtworkOnly
2760
+ ? {
2761
+ flexBasis: '100%',
2762
+ aspectRatio: 1,
2763
+ }
2764
+ : { flexBasis: '50%' };
2765
+ };
2758
2766
  var ContentTileMedia = function (_a) {
2759
2767
  var isArtworkOnly = _a.isArtworkOnly;
2760
2768
  var tileContext = useTileContext();
@@ -2765,7 +2773,7 @@ var ContentTileMedia = function (_a) {
2765
2773
  return null;
2766
2774
  var hasArtwork = Boolean(artworkUrl);
2767
2775
  var styles = useContentTileStyles(hasArtwork);
2768
- var containerStyle = __assign({ flexBasis: isArtworkOnly ? '100%' : '50%' }, (isArtworkOnly && IS_WEB && { aspectRatio: 1 }));
2776
+ var containerStyle = getContentTileMediaContainerStyle(isArtworkOnly);
2769
2777
  return (jsxRuntimeExports.jsx(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "content-tile-media", role: "img", accessibilityLabel: "Image for ".concat(title), children: jsxRuntimeExports.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Image for ".concat(title) }) }));
2770
2778
  };
2771
2779