@wlloyalty/wll-react-sdk 1.0.20 → 1.0.23
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/README.md +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
## 📚 Documentation
|
|
19
19
|
|
|
20
|
-
- [Getting Started Guide](https://
|
|
21
|
-
- [Component Library](https://
|
|
20
|
+
- [Getting Started Guide](https://react-sdk.whitelabel-loyalty.com/guide/getting-started)
|
|
21
|
+
- [Component Library](https://react-sdk.whitelabel-loyalty.com/components/)
|
|
22
22
|
- [Live Storybook Demo](https://66c36701bb14ec551f38279c-ueompbfvfq.chromatic.com/)
|
|
23
23
|
|
|
24
24
|
## 🚀 Quick Start
|
|
@@ -97,5 +97,5 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
97
97
|
|
|
98
98
|
## 🆘 Support
|
|
99
99
|
|
|
100
|
-
- [Documentation](https://
|
|
100
|
+
- [Documentation](https://react-sdk.whitelabel-loyalty.com/)
|
|
101
101
|
- [Issues](https://github.com/white-label-loyalty/wll-react-sdk/issues)
|
package/dist/index.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ declare class PointsTileConfig {
|
|
|
188
188
|
}
|
|
189
189
|
declare class ContentTileConfig {
|
|
190
190
|
title?: string | null;
|
|
191
|
-
|
|
191
|
+
description?: string | null;
|
|
192
192
|
artworkUrl?: string | null;
|
|
193
193
|
ctaLinkTarget?: CTALinkTarget;
|
|
194
194
|
ctaLink?: string | null;
|
|
@@ -296,7 +296,7 @@ type Tile = {
|
|
|
296
296
|
configuration: TileConfig;
|
|
297
297
|
priority: number;
|
|
298
298
|
};
|
|
299
|
-
declare const getConfigForTileType: (tileType: TileType) => typeof
|
|
299
|
+
declare const getConfigForTileType: (tileType: TileType) => typeof PointsTileConfig | typeof ContentTileConfig | typeof RewardTileConfig | typeof BadgeTileConfig | typeof RewardCategoryTileConfig | typeof TierTileConfig;
|
|
300
300
|
type TileConfig = InstanceType<ReturnType<typeof getConfigForTileType>>;
|
|
301
301
|
|
|
302
302
|
type LoadingIndicatorProps = {
|
package/dist/index.js
CHANGED
|
@@ -18953,8 +18953,7 @@ var BaseTileContent = function (_a) {
|
|
|
18953
18953
|
if (isHalfSize && artworkUrl) return null;
|
|
18954
18954
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
18955
18955
|
style: [styles$d.content, isHalfSize && {
|
|
18956
|
-
justifyContent: 'center'
|
|
18957
|
-
padding: 16
|
|
18956
|
+
justifyContent: 'center'
|
|
18958
18957
|
}]
|
|
18959
18958
|
}, children);
|
|
18960
18959
|
};
|
|
@@ -18982,11 +18981,11 @@ var BaseTileMedia = function (props) {
|
|
|
18982
18981
|
var _a = tile.configuration,
|
|
18983
18982
|
artworkUrl = _a.artworkUrl,
|
|
18984
18983
|
title = _a.title,
|
|
18985
|
-
|
|
18984
|
+
description = _a.description;
|
|
18986
18985
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
18987
18986
|
if (!artworkUrl) return null;
|
|
18988
18987
|
var hasTitle = !!title;
|
|
18989
|
-
var hasDescription = !!
|
|
18988
|
+
var hasDescription = !!description;
|
|
18990
18989
|
return /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
|
|
18991
18990
|
source: {
|
|
18992
18991
|
uri: artworkUrl
|
|
@@ -19018,15 +19017,15 @@ var BaseTileTitle = function () {
|
|
|
19018
19017
|
var BaseTileBody = function (props) {
|
|
19019
19018
|
var tile = useTileContext();
|
|
19020
19019
|
var _a = tile.configuration,
|
|
19021
|
-
|
|
19020
|
+
description = _a.description,
|
|
19022
19021
|
artworkUrl = _a.artworkUrl;
|
|
19023
19022
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
19024
|
-
if (isHalfSize && artworkUrl || !
|
|
19023
|
+
if (isHalfSize && artworkUrl || !description) return null;
|
|
19025
19024
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
19026
19025
|
variant: "body"
|
|
19027
19026
|
}, props, {
|
|
19028
|
-
accessibilityLabel:
|
|
19029
|
-
}),
|
|
19027
|
+
accessibilityLabel: description
|
|
19028
|
+
}), description);
|
|
19030
19029
|
};
|
|
19031
19030
|
var BaseTile = BaseTileInner;
|
|
19032
19031
|
BaseTile.Root = BaseTileRoot;
|