@nuskin/product-components 3.18.2 → 3.18.3-gms-11721.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 +14 -4
- package/docs/CHANGELOG.md +1 -1
- package/gl-sbom-npm-yarn.cdx.json +2 -2
- package/mixins/NsProductMixin.js +1 -1
- package/package.json +1 -1
package/.releaserc
CHANGED
|
@@ -48,8 +48,16 @@
|
|
|
48
48
|
<div :class="$style.offerMessaging">
|
|
49
49
|
<h2 :class="$style.offerTitle">{{ localTranslations.welcome }}</h2>
|
|
50
50
|
<p :class="$style.offerMessage">
|
|
51
|
-
<span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{
|
|
52
|
-
|
|
51
|
+
<span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{
|
|
52
|
+
offer.name
|
|
53
|
+
}}</span>
|
|
54
|
+
<span
|
|
55
|
+
v-if="
|
|
56
|
+
!offer.isGroupOffer &&
|
|
57
|
+
offer.countryCode === 'JP' &&
|
|
58
|
+
!offer.isQuickShare
|
|
59
|
+
"
|
|
60
|
+
>
|
|
53
61
|
さん,
|
|
54
62
|
</span>
|
|
55
63
|
<span v-else-if="!offer.isGroupOffer && offer.countryCode !== 'JP'"
|
|
@@ -921,13 +929,15 @@ export default {
|
|
|
921
929
|
|
|
922
930
|
if (
|
|
923
931
|
availability &&
|
|
924
|
-
availability.addToCart &&
|
|
932
|
+
(availability.addToCart || availability.addToAdr) &&
|
|
925
933
|
Object.keys(this.products[sku].data).length >= 1 &&
|
|
926
934
|
availableQuantity >= 1
|
|
927
935
|
) {
|
|
928
936
|
const selectedQuantity = availability.selectedQuantity || 0;
|
|
929
937
|
if (selectedQuantity > 0) {
|
|
930
|
-
const price = availability.
|
|
938
|
+
const price = availability.addToAdr
|
|
939
|
+
? availability.adrPrice
|
|
940
|
+
: availability.price || 0;
|
|
931
941
|
|
|
932
942
|
totalPrice += price * selectedQuantity;
|
|
933
943
|
this.totalProductQuantity += selectedQuantity;
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.18.
|
|
1
|
+
## [3.18.3-gms-11721.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.2...v3.18.3-gms-11721.1) (2025-07-25)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.4",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:5ba52809-758f-4177-ac74-d35f07a4a2ee",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2025-07-
|
|
7
|
+
"timestamp": "2025-07-25T08:52:37Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "GitLab",
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -1082,7 +1082,7 @@ const NsProductMixin = {
|
|
|
1082
1082
|
isBaseSku: this.isBaseSku,
|
|
1083
1083
|
isVariantSku: this.isVariantSku,
|
|
1084
1084
|
addToCart: !this.disableAddToCart,
|
|
1085
|
-
addToAdr: !this.
|
|
1085
|
+
addToAdr: !this.disableAddToAdr,
|
|
1086
1086
|
selectedQuantity: Number(this.selectedQuantity),
|
|
1087
1087
|
maxQuantity: this.maxQuantity,
|
|
1088
1088
|
originalPrice: this.originalPrice,
|