@wlloyalty/wll-react-sdk 1.0.23 → 1.0.24
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 +21 -18
- 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
|
@@ -25,15 +25,16 @@
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
# npm
|
|
28
|
-
npm install @wll
|
|
28
|
+
npm install @wlloyalty/wll-react-sdk
|
|
29
29
|
|
|
30
30
|
# yarn
|
|
31
|
-
yarn add @wll
|
|
31
|
+
yarn add @wlloyalty/wll-react-sdk
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## 💻 System Requirements
|
|
35
35
|
|
|
36
36
|
The SDK is compatible with:
|
|
37
|
+
|
|
37
38
|
- React: ^18.0.0
|
|
38
39
|
- React Native: >=0.70.0 <0.73.0
|
|
39
40
|
|
|
@@ -54,25 +55,27 @@ type(scope?): subject
|
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
### Types
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `
|
|
58
|
+
|
|
59
|
+
| Type | Description |
|
|
60
|
+
| ---------- | --------------------------------------------------------- |
|
|
61
|
+
| `feat` | New features (e.g., `feat(auth): add Google OAuth login`) |
|
|
62
|
+
| `fix` | Bug fixes (e.g., `fix(api): correct rate limiting logic`) |
|
|
63
|
+
| `hotfix` | Critical bug fixes requiring immediate deployment |
|
|
64
|
+
| `docs` | Documentation changes |
|
|
65
|
+
| `style` | Code style changes (formatting, etc) |
|
|
66
|
+
| `refactor` | Code changes that neither fix bugs nor add features |
|
|
67
|
+
| `perf` | Performance improvements |
|
|
68
|
+
| `test` | Adding or updating tests |
|
|
69
|
+
| `build` | Changes to build system or dependencies |
|
|
70
|
+
| `ci` | Changes to CI configuration |
|
|
71
|
+
| `chore` | Other changes that don't modify src or test files |
|
|
72
|
+
| `revert` | Reverting previous changes |
|
|
73
|
+
| `wip` | Work in progress |
|
|
72
74
|
|
|
73
75
|
### Development Workflow
|
|
74
76
|
|
|
75
77
|
We use several tools to maintain code quality:
|
|
78
|
+
|
|
76
79
|
- **Commitlint**: Validates commit message format
|
|
77
80
|
- **Commitizen**: Interactive commit message formatter
|
|
78
81
|
- **Husky**: Git hooks for enforcing conventions
|
|
@@ -98,4 +101,4 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
98
101
|
## 🆘 Support
|
|
99
102
|
|
|
100
103
|
- [Documentation](https://react-sdk.whitelabel-loyalty.com/)
|
|
101
|
-
- [Issues](https://github.com/white-label-loyalty/wll-react-sdk/issues)
|
|
104
|
+
- [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
|
+
body?: 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 PointsTileConfig | typeof ContentTileConfig | typeof RewardTileConfig | typeof BadgeTileConfig | typeof RewardCategoryTileConfig | typeof TierTileConfig;
|
|
299
|
+
declare const getConfigForTileType: (tileType: TileType) => typeof BannerTileConfig | 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
|
+
body = _a.body;
|
|
18985
18985
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
18986
18986
|
if (!artworkUrl) return null;
|
|
18987
18987
|
var hasTitle = !!title;
|
|
18988
|
-
var hasDescription = !!
|
|
18988
|
+
var hasDescription = !!body;
|
|
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
|
+
body = _a.body,
|
|
19021
19021
|
artworkUrl = _a.artworkUrl;
|
|
19022
19022
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
19023
|
-
if (isHalfSize && artworkUrl || !
|
|
19023
|
+
if (isHalfSize && artworkUrl || !body) return null;
|
|
19024
19024
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
19025
19025
|
variant: "body"
|
|
19026
19026
|
}, props, {
|
|
19027
|
-
accessibilityLabel:
|
|
19028
|
-
}),
|
|
19027
|
+
accessibilityLabel: body
|
|
19028
|
+
}), body);
|
|
19029
19029
|
};
|
|
19030
19030
|
var BaseTile = BaseTileInner;
|
|
19031
19031
|
BaseTile.Root = BaseTileRoot;
|