@wlloyalty/wll-react-sdk 1.6.11 → 1.6.13
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 +12 -4
- package/dist/native.js.map +1 -1
- package/dist/web.js +7 -3
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -20578,9 +20578,11 @@ var ContentTileMedia = function (_a) {
|
|
|
20578
20578
|
if (!artworkUrl) return null;
|
|
20579
20579
|
var hasArtwork = Boolean(artworkUrl);
|
|
20580
20580
|
var styles = useContentTileStyles(hasArtwork);
|
|
20581
|
-
var containerStyle = {
|
|
20581
|
+
var containerStyle = __assign({
|
|
20582
20582
|
flexBasis: isArtworkOnly ? '100%' : '50%'
|
|
20583
|
-
}
|
|
20583
|
+
}, isArtworkOnly && {
|
|
20584
|
+
aspectRatio: 1
|
|
20585
|
+
});
|
|
20584
20586
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
20585
20587
|
style: [styles.imageContainer, containerStyle],
|
|
20586
20588
|
testID: "content-tile-media",
|
|
@@ -21884,10 +21886,12 @@ var FullFlex = function (_a) {
|
|
|
21884
21886
|
var children = _a.children,
|
|
21885
21887
|
style = _a.style,
|
|
21886
21888
|
rest = __rest(_a, ["children", "style"]);
|
|
21889
|
+
var isRTL = IS_WEB && typeof document !== 'undefined' && document.documentElement.dir === 'rtl';
|
|
21887
21890
|
return /*#__PURE__*/React.createElement(View$2, __assign({
|
|
21888
21891
|
style: [{
|
|
21889
21892
|
flex: 1,
|
|
21890
|
-
|
|
21893
|
+
// If the language is Arabic (RTL), use 'rtl', otherwise 'ltr'.
|
|
21894
|
+
direction: isRTL ? 'rtl' : 'ltr'
|
|
21891
21895
|
}, style]
|
|
21892
21896
|
}, rest), children);
|
|
21893
21897
|
};
|