@wlloyalty/wll-react-sdk 1.0.88 → 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
  };
@@ -21704,6 +21716,11 @@ var useRewardTileStyles = function () {
21704
21716
  header: {
21705
21717
  width: '100%',
21706
21718
  marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
21719
+ },
21720
+ tileTitle: {
21721
+ maxWidth: '90%',
21722
+ flex: 1,
21723
+ marginRight: 8
21707
21724
  }
21708
21725
  });
21709
21726
  };
@@ -21813,9 +21830,15 @@ var RewardTileSummary = function () {
21813
21830
  */
21814
21831
  var RewardTileTitle = function () {
21815
21832
  var tileContext = useTileContext();
21833
+ var styles = useRewardTileStyles();
21816
21834
  if (!isContextValid(tileContext)) return null;
21817
21835
  var name = tileContext.configuration.name;
21818
21836
  if (!name) return null;
21837
+ var handleTitleWidth = function () {
21838
+ if (IS_MOBILE) {
21839
+ return styles.titleWithLink;
21840
+ }
21841
+ };
21819
21842
  return /*#__PURE__*/React.createElement(Text, {
21820
21843
  variant: "title",
21821
21844
  ellipsizeMode: "tail",
@@ -21823,10 +21846,7 @@ var RewardTileTitle = function () {
21823
21846
  accessibilityRole: "header",
21824
21847
  accessibilityLabel: "Reward title: ".concat(name),
21825
21848
  testID: "reward-tile-title",
21826
- style: {
21827
- flex: 1,
21828
- marginRight: 8
21829
- }
21849
+ style: handleTitleWidth()
21830
21850
  }, name);
21831
21851
  };
21832
21852