@wlloyalty/wll-react-sdk 1.0.21 → 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 +6 -6
- 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
|
@@ -18981,11 +18981,11 @@ var BaseTileMedia = function (props) {
|
|
|
18981
18981
|
var _a = tile.configuration,
|
|
18982
18982
|
artworkUrl = _a.artworkUrl,
|
|
18983
18983
|
title = _a.title,
|
|
18984
|
-
|
|
18984
|
+
description = _a.description;
|
|
18985
18985
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
18986
18986
|
if (!artworkUrl) return null;
|
|
18987
18987
|
var hasTitle = !!title;
|
|
18988
|
-
var hasDescription = !!
|
|
18988
|
+
var hasDescription = !!description;
|
|
18989
18989
|
return /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
|
|
18990
18990
|
source: {
|
|
18991
18991
|
uri: artworkUrl
|
|
@@ -19017,15 +19017,15 @@ var BaseTileTitle = function () {
|
|
|
19017
19017
|
var BaseTileBody = function (props) {
|
|
19018
19018
|
var tile = useTileContext();
|
|
19019
19019
|
var _a = tile.configuration,
|
|
19020
|
-
|
|
19020
|
+
description = _a.description,
|
|
19021
19021
|
artworkUrl = _a.artworkUrl;
|
|
19022
19022
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
19023
|
-
if (isHalfSize && artworkUrl || !
|
|
19023
|
+
if (isHalfSize && artworkUrl || !description) return null;
|
|
19024
19024
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
19025
19025
|
variant: "body"
|
|
19026
19026
|
}, props, {
|
|
19027
|
-
accessibilityLabel:
|
|
19028
|
-
}),
|
|
19027
|
+
accessibilityLabel: description
|
|
19028
|
+
}), description);
|
|
19029
19029
|
};
|
|
19030
19030
|
var BaseTile = BaseTileInner;
|
|
19031
19031
|
BaseTile.Root = BaseTileRoot;
|