@wlloyalty/wll-react-sdk 1.0.40 → 1.0.42
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 +28 -0
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,34 @@ type(scope?): subject
|
|
|
72
72
|
| `revert` | Reverting previous changes |
|
|
73
73
|
| `wip` | Work in progress |
|
|
74
74
|
|
|
75
|
+
### Automated Release Process
|
|
76
|
+
|
|
77
|
+
We use automated versioning and release management through GitHub Actions. Here's how it works:
|
|
78
|
+
|
|
79
|
+
1. **Version Bumping**:
|
|
80
|
+
- When Pull Requests are merged to `main`, our automation will increment the package version
|
|
81
|
+
- The version bump follows semantic versioning based on conventional commit types:
|
|
82
|
+
- `feat:` commits trigger new minor versions
|
|
83
|
+
- `fix:` commits trigger new patch versions
|
|
84
|
+
- Adding `BREAKING CHANGE:` in the commit body triggers major versions
|
|
85
|
+
|
|
86
|
+
2. **Release Triggering**:
|
|
87
|
+
New releases are automatically created when:
|
|
88
|
+
- A PR title starts with `feat:` or `fix:`
|
|
89
|
+
- A PR has the `release` label
|
|
90
|
+
- A PR title contains `RELEASE`
|
|
91
|
+
|
|
92
|
+
Other types of changes (like `docs:`, `style:`, `chore:`) won't trigger releases.
|
|
93
|
+
|
|
94
|
+
3. **Changelog Generation**:
|
|
95
|
+
- Each release automatically generates an updated CHANGELOG.md
|
|
96
|
+
- The changelog is organized by commit types (Features, Bug Fixes, etc.)
|
|
97
|
+
- Release notes are created from the consolidated changes
|
|
98
|
+
|
|
99
|
+
4. **NPM Publishing**:
|
|
100
|
+
- New versions are automatically published to NPM
|
|
101
|
+
- The package is always published with public access
|
|
102
|
+
|
|
75
103
|
### Development Workflow
|
|
76
104
|
|
|
77
105
|
We use several tools to maintain code quality:
|
package/dist/index.js
CHANGED
|
@@ -20446,12 +20446,16 @@ var Group = function (_a) {
|
|
|
20446
20446
|
if (!groupData) {
|
|
20447
20447
|
return /*#__PURE__*/React$1.createElement(View$2, {
|
|
20448
20448
|
style: commonStyles.emptyContainer
|
|
20449
|
-
}, /*#__PURE__*/React$1.createElement(Text
|
|
20449
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
20450
|
+
variant: "body"
|
|
20451
|
+
}, "No group data available"));
|
|
20450
20452
|
}
|
|
20451
20453
|
if (!groupData.sections || groupData.sections.length === 0) {
|
|
20452
20454
|
return /*#__PURE__*/React$1.createElement(View$2, {
|
|
20453
20455
|
style: commonStyles.emptyContainer
|
|
20454
|
-
}, /*#__PURE__*/React$1.createElement(Text
|
|
20456
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
20457
|
+
variant: "body"
|
|
20458
|
+
}, "No sections available"));
|
|
20455
20459
|
}
|
|
20456
20460
|
var sortedSections = sortByPriority(groupData.sections);
|
|
20457
20461
|
return /*#__PURE__*/React$1.createElement(View$2, null, sortedSections.map(function (section) {
|
|
@@ -20969,7 +20973,6 @@ TierTile.Empty = TierTileEmpty;
|
|
|
20969
20973
|
|
|
20970
20974
|
var TileContainer = function (_a) {
|
|
20971
20975
|
var tiles = _a.tiles;
|
|
20972
|
-
var isDesktop = useResponsive$1().isDesktop;
|
|
20973
20976
|
var renderTile = function (tile) {
|
|
20974
20977
|
switch (tile.type) {
|
|
20975
20978
|
case exports.TileType.Content:
|
|
@@ -20998,20 +21001,13 @@ var TileContainer = function (_a) {
|
|
|
20998
21001
|
});
|
|
20999
21002
|
}
|
|
21000
21003
|
};
|
|
21001
|
-
// Check if all tiles are half height
|
|
21002
|
-
var allHalfTiles = tiles.every(function (tile) {
|
|
21003
|
-
return tile.tileHeight === exports.TileHeight.Half;
|
|
21004
|
-
});
|
|
21005
21004
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
21006
|
-
style:
|
|
21007
|
-
aspectRatio: 2
|
|
21008
|
-
} : {
|
|
21009
|
-
aspectRatio: 1
|
|
21010
|
-
}]
|
|
21005
|
+
style: styles.container
|
|
21011
21006
|
}, tiles.map(function (tile, index) {
|
|
21007
|
+
var isHalfTile = tile.tileHeight === exports.TileHeight.Half;
|
|
21012
21008
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
21013
21009
|
key: tile.id,
|
|
21014
|
-
style: [styles.tileContainer, index > 0 && {
|
|
21010
|
+
style: [styles.tileContainer, isHalfTile && styles.halfTileContainer, index > 0 && {
|
|
21015
21011
|
marginTop: GRID_GAP
|
|
21016
21012
|
}]
|
|
21017
21013
|
}, renderTile(tile));
|
|
@@ -21019,10 +21015,17 @@ var TileContainer = function (_a) {
|
|
|
21019
21015
|
};
|
|
21020
21016
|
var styles = StyleSheet$1.create({
|
|
21021
21017
|
container: {
|
|
21022
|
-
flexDirection: 'column'
|
|
21018
|
+
flexDirection: 'column',
|
|
21019
|
+
flex: 1,
|
|
21020
|
+
aspectRatio: 1
|
|
21023
21021
|
},
|
|
21024
21022
|
tileContainer: {
|
|
21025
|
-
flex: 1
|
|
21023
|
+
flex: 1,
|
|
21024
|
+
aspectRatio: 1
|
|
21025
|
+
},
|
|
21026
|
+
halfTileContainer: {
|
|
21027
|
+
flex: 0.5,
|
|
21028
|
+
aspectRatio: 1
|
|
21026
21029
|
}
|
|
21027
21030
|
});
|
|
21028
21031
|
|