@nuskin/product-components 3.17.21-mdigi-326.8 → 3.17.21-td-1017.2

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":"MDIGI-326", "channel":"prerelease", "prerelease":"mdigi-326"}
3
+ "master", {"name":"TD-1017", "channel":"prerelease", "prerelease":"td-1017"}
4
4
  ],
5
5
  "plugins": [
6
6
  "@semantic-release/release-notes-generator",
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
  </div>
26
26
 
27
- <div v-if="isLoading || showSpinnerOnFirstLoad" :class="$style.spinnerWrapper">
27
+ <div v-if="showSpinnerOnFirstLoad" :class="$style.spinnerWrapper">
28
28
  <NsSpinner />
29
29
  </div>
30
30
  <NsProductList
@@ -138,8 +138,7 @@ export default {
138
138
  products: {},
139
139
  localSku: [],
140
140
  sortedSkus: [],
141
- sortByValue: this.sortBySelected,
142
- isLoading: false,
141
+ sortByValue: this.sortBySelected
143
142
  };
144
143
  },
145
144
  computed: {
@@ -253,33 +252,14 @@ export default {
253
252
  return productPv;
254
253
  },
255
254
 
256
- async sortSelect(value) {
257
- const productData = await this.$NsProductDataService.check(this.localSkus);
258
- if (!productData) {
259
- // console.log("Queuing products for fetching...");
255
+ sortSelect(value) {
256
+ if (!this.$NsProductDataService.check(this.localSkus)) {
260
257
  this.$NsProductDataService.queue(this.localSkus);
261
258
  }
262
259
 
263
- // Ensure all products are loaded
264
- const checkProductsLoaded = () => {
265
- const allProducts = this.$NsProductDataService.findProducts(this.localSkus);
266
-
267
- // If not, retry fetching
268
- if (allProducts.length < this.localSkus.length) {
269
- this.isLoading = true;
270
- setTimeout(() => {
271
- checkProductsLoaded();
272
- }, 100);
273
- } else {
274
- this.sortByValue = value;
275
- this.$emit("sort-by-select", value);
276
- events.publish(events.shop.SEARCH_SORT_DROPDOWN);
277
- this.isLoading = false;
278
- }
279
- };
280
-
281
- // Check if all products are loaded
282
- checkProductsLoaded();
260
+ this.sortByValue = value;
261
+ this.$emit("sort-by-select", value);
262
+ events.publish(events.shop.SEARCH_SORT_DROPDOWN);
283
263
  },
284
264
 
285
265
  sortBy: debounce(function() {
package/docs/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [3.17.21-mdigi-326.8](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.21-mdigi-326.7...v3.17.21-mdigi-326.8) (2025-02-14)
1
+ ## [3.17.21-td-1017.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.21-td-1017.1...v3.17.21-td-1017.2) (2025-02-14)
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.4",
4
- "serialNumber": "urn:uuid:2ca87bf3-600e-4204-a59a-35b76e7844f4",
4
+ "serialNumber": "urn:uuid:01033e15-93a4-46ee-8b96-3761dfdb46a9",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2025-02-14T06:11:31Z",
7
+ "timestamp": "2025-02-14T08:33:09Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "GitLab",
@@ -291,7 +291,7 @@ const NsProductMixin = {
291
291
  );
292
292
  },
293
293
  showOriginalCrossedOut() {
294
- return this.isSale || !! this.marketConfig.showRetailCrossedOut;
294
+ return this.isSale || !!this.marketConfig.showRetailCrossedOut;
295
295
  },
296
296
  showPriceLabels() {
297
297
  return this.marketConfig.showPriceLabels;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.17.21-mdigi-326.8",
3
+ "version": "3.17.21-td-1017.2",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,10 +29,10 @@
29
29
  "@nuskin/ns-core-styles": "2.11.2",
30
30
  "@nuskin/ns-icon": "^2.12.0",
31
31
  "@nuskin/ns-loyalty-web": "1.5.6",
32
- "@nuskin/ns-product-lib": "2.19.7-mdigi-326.1",
33
- "@nuskin/ns-shop": "7.3.0-mdigi-897.8",
32
+ "@nuskin/ns-product-lib": "2.19.2",
33
+ "@nuskin/ns-shop": "7.1.3",
34
34
  "@nuskin/product-recommendation": "2.0.1",
35
- "axios": "1.7.4",
35
+ "axios": "1.6.7",
36
36
  "lodash": "4.17.21",
37
37
  "sass": "^1.19.0",
38
38
  "sass-loader": "^8.0.2",
@@ -60,7 +60,7 @@
60
60
  "@nuskin/nuskinjquery": "2.3.1",
61
61
  "ansi-html": "0.0.8",
62
62
  "async": "2.6.4",
63
- "axios": "1.7.4",
63
+ "axios": "1.6.7",
64
64
  "decode-uri-component": "0.2.1",
65
65
  "eventsource/eventsource": "2.0.2",
66
66
  "fast-xml-parser": "4.2.5",
@@ -34,7 +34,7 @@ if (!NsProductDataService) {
34
34
  * Controls the amount of skus attempted to fit
35
35
  * per batch to send to the Product Data lambda
36
36
  */
37
- batchQuantity: 6,
37
+ batchQuantity: 10,
38
38
 
39
39
  /**
40
40
  * The list of skus watched to create batches from