@nuskin/product-components 3.18.2-gms-11721.3 → 3.18.2-gms-12518.9

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-11721", "channel":"prerelease", "prerelease":"gms-11721"}
3
+ "master", {"name":"GMS-12518", "channel":"prerelease", "prerelease":"gms-12518"}
4
4
  ],
5
5
  "plugins": [
6
6
  "@semantic-release/release-notes-generator",
@@ -921,15 +921,13 @@ export default {
921
921
 
922
922
  if (
923
923
  availability &&
924
- (availability.addToCart || availability.addToAdr) &&
924
+ availability.addToCart &&
925
925
  Object.keys(this.products[sku].data).length >= 1 &&
926
926
  availableQuantity >= 1
927
927
  ) {
928
928
  const selectedQuantity = availability.selectedQuantity || 0;
929
929
  if (selectedQuantity > 0) {
930
- const price = availability.addToAdr
931
- ? availability.adrPrice
932
- : availability.price || 0;
930
+ const price = availability.price || 0;
933
931
 
934
932
  totalPrice += price * selectedQuantity;
935
933
  this.totalProductQuantity += selectedQuantity;
@@ -28,9 +28,13 @@
28
28
  </div>
29
29
  <template #custom>
30
30
  <input
31
- ref="input"
31
+ ref="quantityInput"
32
32
  v-model.number="quantityInput"
33
- :class="[$style.customInput, { [$style.small]: size === 'small' }]"
33
+ :class="[
34
+ $style.customInput,
35
+ { [$style.small]: size === 'small' },
36
+ 'quanity-input'
37
+ ]"
34
38
  type="number"
35
39
  min="0"
36
40
  step="1"
@@ -171,6 +175,9 @@ export default {
171
175
  }
172
176
  }
173
177
  },
178
+ mounted() {
179
+ this.blurAllQuantityInputs();
180
+ },
174
181
  methods: {
175
182
  /**
176
183
  * Disables input
@@ -237,10 +244,18 @@ export default {
237
244
  this.dropdownMax,
238
245
  this.dropdownMax - this.includeZero ? 0 : 1
239
246
  );
240
- setTimeout(() => {
241
- this.$refs.input.focus();
242
- this.$refs.input.select();
243
- }, 100);
247
+ // setTimeout(() => {
248
+ // this.$refs.input.focus();
249
+ // this.$refs.input.select();
250
+ // }, 100);
251
+ this.$nextTick(() => {
252
+ if (!this.isMobileDevice()) {
253
+ this.$refs.input.focus();
254
+ this.$refs.input.select();
255
+ } else {
256
+ this.$refs.input.blur();
257
+ }
258
+ });
244
259
  } else {
245
260
  this.errorMessage = "";
246
261
  this.showCustomSelectedItem = false;
@@ -262,6 +277,12 @@ export default {
262
277
  return (
263
278
  itemQty >= this.dropdownMax && this.maxAvailable > this.dropdownMax
264
279
  );
280
+ },
281
+ blurAllQuantityInputs() {
282
+ const inputs = document.querySelectorAll(
283
+ 'input[type="number"].quantity-input'
284
+ );
285
+ inputs.forEach(input => input.blur());
265
286
  }
266
287
  }
267
288
  };
package/docs/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [3.18.2-gms-11721.3](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.2-gms-11721.2...v3.18.2-gms-11721.3) (2025-07-17)
1
+ ## [3.18.2-gms-12518.9](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.2-gms-12518.8...v3.18.2-gms-12518.9) (2025-07-18)
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.4",
4
- "serialNumber": "urn:uuid:31c88dfc-68ab-49c1-acdd-59dcf5bbfe73",
4
+ "serialNumber": "urn:uuid:9b28b72d-2b5a-47a9-80a3-8bdeb89cb09d",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2025-07-17T16:28:35Z",
7
+ "timestamp": "2025-07-18T14:45:36Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "GitLab",
@@ -85,10 +85,10 @@
85
85
  },
86
86
  {
87
87
  "name": "@nuskin/design-components",
88
- "version": "8.8.1",
89
- "purl": "pkg:npm/%40nuskin/design-components@8.8.1",
88
+ "version": "8.9.1-gms-12518.2",
89
+ "purl": "pkg:npm/%40nuskin/design-components@8.9.1-gms-12518.2",
90
90
  "type": "library",
91
- "bom-ref": "pkg:npm/%40nuskin/design-components@8.8.1"
91
+ "bom-ref": "pkg:npm/%40nuskin/design-components@8.9.1-gms-12518.2"
92
92
  },
93
93
  {
94
94
  "name": "@nuskin/events",
@@ -2663,7 +2663,7 @@
2663
2663
  ]
2664
2664
  },
2665
2665
  {
2666
- "ref": "pkg:npm/%40nuskin/design-components@8.8.1",
2666
+ "ref": "pkg:npm/%40nuskin/design-components@8.9.1-gms-12518.2",
2667
2667
  "dependsOn": [
2668
2668
  "pkg:npm/%40nuskin/axios-util@2.3.0",
2669
2669
  "pkg:npm/%40nuskin/ns-account@4.28.0",
@@ -1082,7 +1082,7 @@ const NsProductMixin = {
1082
1082
  isBaseSku: this.isBaseSku,
1083
1083
  isVariantSku: this.isVariantSku,
1084
1084
  addToCart: !this.disableAddToCart,
1085
- addToAdr: !this.disableAddToAdr,
1085
+ addToAdr: !this.disableAddToCart,
1086
1086
  selectedQuantity: Number(this.selectedQuantity),
1087
1087
  maxQuantity: this.maxQuantity,
1088
1088
  originalPrice: this.originalPrice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.18.2-gms-11721.3",
3
+ "version": "3.18.2-gms-12518.9",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@mdi/font": "3.9.97",
26
26
  "@ns/ns-contentstack-lib": "2.2.2",
27
- "@nuskin/design-components": "8.8.1",
27
+ "@nuskin/design-components": "8.9.1-gms-12518.2",
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",