@wlloyalty/wll-react-sdk 1.0.87 → 1.0.89

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/web.js CHANGED
@@ -7877,11 +7877,9 @@ var useMakeRequest = function (config) {
7877
7877
  return [4 /*yield*/, fetch(url, createRequestOptions())];
7878
7878
  case 3:
7879
7879
  response = _a.sent();
7880
- console.log('response', response);
7881
7880
  return [4 /*yield*/, response.json()];
7882
7881
  case 4:
7883
7882
  json = _a.sent();
7884
- console.log('json', json);
7885
7883
  if (json.status === 'fail') {
7886
7884
  return [2 /*return*/, {
7887
7885
  status: 'fail',
@@ -20181,7 +20179,12 @@ var useContentTileStyles = function (hasArtwork) {
20181
20179
  paddingHorizontal: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
20182
20180
  flex: 1
20183
20181
  },
20184
- header: getHeaderStyle(hasArtwork)
20182
+ header: getHeaderStyle(hasArtwork),
20183
+ tileTitle: {
20184
+ maxWidth: '90%',
20185
+ flex: 1,
20186
+ marginRight: 8
20187
+ }
20185
20188
  });
20186
20189
  };
20187
20190
 
@@ -20236,14 +20239,23 @@ var ContentTileSummary = function () {
20236
20239
 
20237
20240
  var ContentTileTitle = function () {
20238
20241
  var tileContext = useTileContext();
20242
+ var styles = useContentTileStyles();
20239
20243
  if (!isContextValid(tileContext)) return null;
20240
- var title = tileContext.configuration.title;
20244
+ var _a = tileContext.configuration,
20245
+ title = _a.title,
20246
+ ctaLink = _a.ctaLink;
20241
20247
  if (!title) return null;
20248
+ var handleTitleWidth = function () {
20249
+ if (IS_MOBILE && ctaLink) {
20250
+ return styles.titleWithLink;
20251
+ }
20252
+ };
20242
20253
  return /*#__PURE__*/React.createElement(Text, {
20243
20254
  variant: "title",
20244
20255
  accessibilityRole: "header",
20245
20256
  accessibilityLabel: title,
20246
20257
  numberOfLines: 1,
20258
+ style: handleTitleWidth(),
20247
20259
  testID: "content-tile-title"
20248
20260
  }, title);
20249
20261
  };
@@ -21652,6 +21664,7 @@ var RewardTileChevron = function () {
21652
21664
  var theme = useWllSdk().theme;
21653
21665
  return /*#__PURE__*/React.createElement(Icon, {
21654
21666
  name: "ChevronRight",
21667
+ size: IS_MOBILE ? 16 : undefined,
21655
21668
  color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000',
21656
21669
  accessibilityRole: "image",
21657
21670
  accessibilityLabel: "View reward details"
@@ -21703,6 +21716,11 @@ var useRewardTileStyles = function () {
21703
21716
  header: {
21704
21717
  width: '100%',
21705
21718
  marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
21719
+ },
21720
+ tileTitle: {
21721
+ maxWidth: '90%',
21722
+ flex: 1,
21723
+ marginRight: 8
21706
21724
  }
21707
21725
  });
21708
21726
  };
@@ -21812,9 +21830,15 @@ var RewardTileSummary = function () {
21812
21830
  */
21813
21831
  var RewardTileTitle = function () {
21814
21832
  var tileContext = useTileContext();
21833
+ var styles = useRewardTileStyles();
21815
21834
  if (!isContextValid(tileContext)) return null;
21816
21835
  var name = tileContext.configuration.name;
21817
21836
  if (!name) return null;
21837
+ var handleTitleWidth = function () {
21838
+ if (IS_MOBILE) {
21839
+ return styles.titleWithLink;
21840
+ }
21841
+ };
21818
21842
  return /*#__PURE__*/React.createElement(Text, {
21819
21843
  variant: "title",
21820
21844
  ellipsizeMode: "tail",
@@ -21822,10 +21846,7 @@ var RewardTileTitle = function () {
21822
21846
  accessibilityRole: "header",
21823
21847
  accessibilityLabel: "Reward title: ".concat(name),
21824
21848
  testID: "reward-tile-title",
21825
- style: {
21826
- flex: 1,
21827
- marginRight: 8
21828
- }
21849
+ style: handleTitleWidth()
21829
21850
  }, name);
21830
21851
  };
21831
21852