@nuskin/product-components 3.19.0-gms-12518.3 → 3.19.0-pa-902.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branches": [
3
- "master", {"name":"GMS-12518", "channel":"prerelease", "prerelease":"gms-12518"}
3
+ "master", {"name":"PA-902", "channel":"prerelease", "prerelease":"pa-902"}
4
4
  ],
5
5
  "plugins": [
6
6
  "@semantic-release/release-notes-generator",
@@ -48,16 +48,8 @@
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
- offer.name
53
- }}</span>
54
- <span
55
- v-if="
56
- !offer.isGroupOffer &&
57
- offer.countryCode === 'JP' &&
58
- !offer.isQuickShare
59
- "
60
- >
51
+ <span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{ offer.name }}</span>
52
+ <span v-if="!offer.isGroupOffer && offer.countryCode === 'JP' && !offer.isQuickShare">
61
53
  さん,
62
54
  </span>
63
55
  <span v-else-if="!offer.isGroupOffer && offer.countryCode !== 'JP'"
@@ -929,15 +921,13 @@ export default {
929
921
 
930
922
  if (
931
923
  availability &&
932
- (availability.addToCart || availability.addToAdr) &&
924
+ availability.addToCart &&
933
925
  Object.keys(this.products[sku].data).length >= 1 &&
934
926
  availableQuantity >= 1
935
927
  ) {
936
928
  const selectedQuantity = availability.selectedQuantity || 0;
937
929
  if (selectedQuantity > 0) {
938
- const price = availability.addToCart
939
- ? availability.price
940
- : availability.adrPrice || 0;
930
+ const price = availability.price || 0;
941
931
 
942
932
  totalPrice += price * selectedQuantity;
943
933
  this.totalProductQuantity += selectedQuantity;
@@ -237,14 +237,10 @@ export default {
237
237
  this.dropdownMax,
238
238
  this.dropdownMax - this.includeZero ? 0 : 1
239
239
  );
240
- this.$nextTick(() => {
241
- if (!this.isMobileDevice()) {
242
- this.$refs.input.focus();
243
- this.$refs.input.select();
244
- } else {
245
- this.$refs.input.blur();
246
- }
247
- });
240
+ setTimeout(() => {
241
+ this.$refs.input.focus();
242
+ this.$refs.input.select();
243
+ }, 100);
248
244
  } else {
249
245
  this.errorMessage = "";
250
246
  this.showCustomSelectedItem = false;
package/docs/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- # [3.19.0-gms-12518.3](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.19.0-gms-12518.2...v3.19.0-gms-12518.3) (2025-08-13)
1
+ # [3.19.0-pa-902.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.3...v3.19.0-pa-902.1) (2025-10-07)
@@ -130,6 +130,10 @@ const NsProductMixin = {
130
130
  baseSku: "",
131
131
  checkedQualifications: false,
132
132
  description: "",
133
+ /**
134
+ * Reflects if a user can ship in this market
135
+ */
136
+ canUserShop: true,
133
137
  /**
134
138
  * Determines if the "Add To Cart" button is disabled
135
139
  */
@@ -349,6 +353,7 @@ const NsProductMixin = {
349
353
  this.setTranslations();
350
354
  await this.$nextTick();
351
355
 
356
+ await this.setCanUserShopInMarket();
352
357
  this.setLoyalty();
353
358
  this.setHideAdr();
354
359
  },
@@ -966,6 +971,10 @@ const NsProductMixin = {
966
971
  return this.$NsProductDataService.getAdrPriceType();
967
972
  },
968
973
 
974
+ async setCanUserShopInMarket() {
975
+ this.canUserShop = await CartService.canUserAddToCart();
976
+ },
977
+
969
978
  setHideAdr() {
970
979
  const isSkinConsult = util.isSkinConsult();
971
980
  const mySiteHideAdr = !!(
@@ -1061,6 +1070,7 @@ const NsProductMixin = {
1061
1070
  this.selectedQuantity = quantity;
1062
1071
 
1063
1072
  if (
1073
+ !this.canUserShop ||
1064
1074
  +this.selectedQuantity > this.maxQuantity ||
1065
1075
  +this.selectedQuantity < 1 ||
1066
1076
  +this.selectedQuantity % 1 !== 0
@@ -1082,7 +1092,7 @@ const NsProductMixin = {
1082
1092
  isBaseSku: this.isBaseSku,
1083
1093
  isVariantSku: this.isVariantSku,
1084
1094
  addToCart: !this.disableAddToCart,
1085
- addToAdr: !this.disableAddToAdr,
1095
+ addToAdr: !this.disableAddToCart,
1086
1096
  selectedQuantity: Number(this.selectedQuantity),
1087
1097
  maxQuantity: this.maxQuantity,
1088
1098
  originalPrice: this.originalPrice,
@@ -1320,8 +1330,9 @@ const NsProductMixin = {
1320
1330
  },
1321
1331
 
1322
1332
  checkAddToCartAndAdr() {
1323
- this.disableAddToCart = this.showAdrOnly || !this.hasOrderTypeOrder;
1324
- this.disableAddToAdr = !this.showAdr;
1333
+ this.disableAddToCart =
1334
+ !this.canUserShop || this.showAdrOnly || !this.hasOrderTypeOrder;
1335
+ this.disableAddToAdr = !this.canUserShop || !this.showAdr;
1325
1336
  },
1326
1337
 
1327
1338
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.19.0-gms-12518.3",
3
+ "version": "3.19.0-pa-902.1",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "@mdi/font": "3.9.97",
26
26
  "@ns/ns-contentstack-lib": "2.2.2",
27
- "@nuskin/design-components": "8.9.1-gms-12518.5",
27
+ "@nuskin/design-components": "8.8.1",
28
28
  "@nuskin/ns-common-lib": "1.4.8",
29
29
  "@nuskin/ns-core-styles": "2.12.0",
30
30
  "@nuskin/ns-icon": "2.12.1",
31
31
  "@nuskin/ns-loyalty-web": "1.5.7",
32
32
  "@nuskin/ns-product-lib": "2.20.0",
33
- "@nuskin/ns-shop": "7.5.0",
33
+ "@nuskin/ns-shop": "7.8.0",
34
34
  "@nuskin/product-recommendation": "2.0.1",
35
35
  "axios": "1.8.3",
36
36
  "lodash": "4.17.21",