@nuskin/product-components 3.17.13 → 3.17.15-brw-4541.1
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/.releaserc +1 -1
- package/components/NsProductOffer.vue +10 -1
- package/docs/CHANGELOG.md +1 -1
- package/mixins/NsProductMixin.js +2 -0
- package/package.json +2 -2
- package/gl-sbom-npm-yarn.cdx.json +0 -5874
package/.releaserc
CHANGED
|
@@ -796,18 +796,27 @@ export default {
|
|
|
796
796
|
return;
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
+
let options = {
|
|
800
|
+
add: {
|
|
801
|
+
item: {
|
|
802
|
+
qty: this.totalProductQuantity
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
|
|
799
807
|
let checkoutProducts = [];
|
|
800
808
|
const equinoxMarketsConfig = getCachedConfiguration("Equinox_Markets");
|
|
801
809
|
const countryCode = equinoxMarketsConfig.country_code;
|
|
802
810
|
|
|
803
811
|
if (equinoxMarketsConfig.active) {
|
|
812
|
+
window.sessionStorage.setItem("nstoast-allowed", "true");
|
|
804
813
|
EquinoxCartService.addBundleToEquinoxCart(
|
|
805
814
|
validSkus,
|
|
806
815
|
this.products,
|
|
807
816
|
selectedQuantityArr
|
|
808
817
|
)
|
|
809
818
|
.then(() => {
|
|
810
|
-
events.publish(events.shop.ADD_TO_CART);
|
|
819
|
+
events.publish(events.shop.ADD_TO_CART, options);
|
|
811
820
|
})
|
|
812
821
|
.catch(err => {
|
|
813
822
|
console.error(`Failed to add ${validSkus} with Error: ${err} `);
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.17.
|
|
1
|
+
## [3.17.15-brw-4541.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.14...v3.17.15-brw-4541.1) (2024-09-09)
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -713,6 +713,8 @@ const NsProductMixin = {
|
|
|
713
713
|
if (this.product.availableQuantity > 0) {
|
|
714
714
|
this.statusMessage = "";
|
|
715
715
|
this.statusMessageKey = "releasedForSale";
|
|
716
|
+
//BRW-4541 -- Only allow to purchase the atpQuantity if backorder date is in the past
|
|
717
|
+
this.product.maxQuantity = this.product.availableQuantity;
|
|
716
718
|
} else {
|
|
717
719
|
this.statusMessage = this.localTranslations.outOfStock;
|
|
718
720
|
this.statusMessageKey = "outOfStock";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/product-components",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.15-brw-4541.1",
|
|
4
4
|
"description": "Nu Skin Product Components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@nuskin/ns-icon": "^2.12.0",
|
|
31
31
|
"@nuskin/ns-loyalty-web": "1.5.6",
|
|
32
32
|
"@nuskin/ns-product-lib": "2.19.0",
|
|
33
|
-
"@nuskin/ns-shop": "7.0.
|
|
33
|
+
"@nuskin/ns-shop": "7.0.10",
|
|
34
34
|
"@nuskin/product-recommendation": "2.0.1",
|
|
35
35
|
"axios": "1.6.7",
|
|
36
36
|
"lodash": "4.17.21",
|