@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/native.js +26 -6
- package/dist/native.js.map +1 -1
- package/dist/web.js +29 -8
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -1550,11 +1550,9 @@ var useMakeRequest = function (config) {
|
|
|
1550
1550
|
case 2: return [4 /*yield*/, fetch(url, createRequestOptions())];
|
|
1551
1551
|
case 3:
|
|
1552
1552
|
response = _a.sent();
|
|
1553
|
-
console.log('response', response);
|
|
1554
1553
|
return [4 /*yield*/, response.json()];
|
|
1555
1554
|
case 4:
|
|
1556
1555
|
json = _a.sent();
|
|
1557
|
-
console.log('json', json);
|
|
1558
1556
|
if (json.status === 'fail') {
|
|
1559
1557
|
return [2 /*return*/, {
|
|
1560
1558
|
status: 'fail',
|
|
@@ -3377,6 +3375,11 @@ var useContentTileStyles = function (hasArtwork) {
|
|
|
3377
3375
|
flex: 1,
|
|
3378
3376
|
},
|
|
3379
3377
|
header: getHeaderStyle(hasArtwork),
|
|
3378
|
+
tileTitle: {
|
|
3379
|
+
maxWidth: '90%',
|
|
3380
|
+
flex: 1,
|
|
3381
|
+
marginRight: 8,
|
|
3382
|
+
},
|
|
3380
3383
|
});
|
|
3381
3384
|
};
|
|
3382
3385
|
|
|
@@ -3415,12 +3418,18 @@ var ContentTileSummary = function () {
|
|
|
3415
3418
|
|
|
3416
3419
|
var ContentTileTitle = function () {
|
|
3417
3420
|
var tileContext = useTileContext();
|
|
3421
|
+
var styles = useContentTileStyles();
|
|
3418
3422
|
if (!isContextValid(tileContext))
|
|
3419
3423
|
return null;
|
|
3420
|
-
var
|
|
3424
|
+
var _a = tileContext.configuration, title = _a.title, ctaLink = _a.ctaLink;
|
|
3421
3425
|
if (!title)
|
|
3422
3426
|
return null;
|
|
3423
|
-
|
|
3427
|
+
var handleTitleWidth = function () {
|
|
3428
|
+
if (IS_MOBILE && ctaLink) {
|
|
3429
|
+
return styles.titleWithLink;
|
|
3430
|
+
}
|
|
3431
|
+
};
|
|
3432
|
+
return (jsxRuntimeExports.jsx(Text, { variant: "title", accessibilityRole: "header", accessibilityLabel: title, numberOfLines: 1, style: handleTitleWidth(), testID: "content-tile-title", children: title }));
|
|
3424
3433
|
};
|
|
3425
3434
|
|
|
3426
3435
|
/**
|
|
@@ -4444,7 +4453,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
|
|
|
4444
4453
|
var RewardTileChevron = function () {
|
|
4445
4454
|
var _a;
|
|
4446
4455
|
var theme = useWllSdk().theme;
|
|
4447
|
-
return (jsxRuntimeExports.jsx(Icon, { name: "ChevronRight", color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000', accessibilityRole: "image", accessibilityLabel: "View reward details" }));
|
|
4456
|
+
return (jsxRuntimeExports.jsx(Icon, { name: "ChevronRight", size: IS_MOBILE ? 16 : undefined, color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000', accessibilityRole: "image", accessibilityLabel: "View reward details" }));
|
|
4448
4457
|
};
|
|
4449
4458
|
|
|
4450
4459
|
/**
|
|
@@ -4491,6 +4500,11 @@ var useRewardTileStyles = function () {
|
|
|
4491
4500
|
width: '100%',
|
|
4492
4501
|
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
|
|
4493
4502
|
},
|
|
4503
|
+
tileTitle: {
|
|
4504
|
+
maxWidth: '90%',
|
|
4505
|
+
flex: 1,
|
|
4506
|
+
marginRight: 8,
|
|
4507
|
+
},
|
|
4494
4508
|
});
|
|
4495
4509
|
};
|
|
4496
4510
|
|
|
@@ -4556,12 +4570,18 @@ var RewardTileSummary = function () {
|
|
|
4556
4570
|
*/
|
|
4557
4571
|
var RewardTileTitle = function () {
|
|
4558
4572
|
var tileContext = useTileContext();
|
|
4573
|
+
var styles = useRewardTileStyles();
|
|
4559
4574
|
if (!isContextValid(tileContext))
|
|
4560
4575
|
return null;
|
|
4561
4576
|
var name = tileContext.configuration.name;
|
|
4562
4577
|
if (!name)
|
|
4563
4578
|
return null;
|
|
4564
|
-
|
|
4579
|
+
var handleTitleWidth = function () {
|
|
4580
|
+
if (IS_MOBILE) {
|
|
4581
|
+
return styles.titleWithLink;
|
|
4582
|
+
}
|
|
4583
|
+
};
|
|
4584
|
+
return (jsxRuntimeExports.jsx(Text, { variant: "title", ellipsizeMode: "tail", numberOfLines: 1, accessibilityRole: "header", accessibilityLabel: "Reward title: ".concat(name), testID: "reward-tile-title", style: handleTitleWidth(), children: name }));
|
|
4565
4585
|
};
|
|
4566
4586
|
|
|
4567
4587
|
/**
|