@nuskin/product-components 3.17.21-mdigi-326.7 → 3.17.21-td-1017.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":"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: {
@@ -254,32 +253,13 @@ export default {
254
253
  },
255
254
 
256
255
  sortSelect(value) {
257
- this.isLoading = true;
258
-
259
256
  if (!this.$NsProductDataService.check(this.localSkus)) {
260
- console.log("Queuing products for fetching...");
261
257
  this.$NsProductDataService.queue(this.localSkus);
262
258
  }
263
259
 
264
- // Ensure all products are loaded
265
- const checkProductsLoaded = () => {
266
- const allProducts = this.$NsProductDataService.findProducts(this.localSkus);
267
-
268
- // If not, retry fetching
269
- if (allProducts.length < this.localSkus.length) {
270
- setTimeout(() => {
271
- checkProductsLoaded();
272
- }, 100);
273
- } else {
274
- this.isLoading = false;
275
- this.sortByValue = value;
276
- this.$emit("sort-by-select", value);
277
- events.publish(events.shop.SEARCH_SORT_DROPDOWN);
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.7](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.21-mdigi-326.6...v3.17.21-mdigi-326.7) (2025-01-31)
1
+ ## [3.17.21-td-1017.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.20...v3.17.21-td-1017.1) (2025-02-13)
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.4",
4
- "serialNumber": "urn:uuid:4db48eec-3e1f-4677-907e-d407a72420cd",
4
+ "serialNumber": "urn:uuid:94e71e67-6ec4-43c1-bba9-3e190b3867dd",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2025-01-31T15:15:16Z",
7
+ "timestamp": "2025-02-13T13:43:09Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "GitLab",
@@ -227,8 +227,8 @@ const NsProductMixin = {
227
227
  locale() {
228
228
  return this.$NsProductAppService.locale;
229
229
  },
230
- async marketConfig() {
231
- return await this.$NsProductAppService.marketConfig;
230
+ marketConfig() {
231
+ return this.$NsProductAppService.marketConfig;
232
232
  },
233
233
  isLoggedIn() {
234
234
  return this.$NsProductUserService.isLoggedIn;
@@ -290,8 +290,8 @@ const NsProductMixin = {
290
290
  this.exclusiveOfferMessage
291
291
  );
292
292
  },
293
- async showOriginalCrossedOut() {
294
- return this.isSale || !! await this.marketConfig.showRetailCrossedOut;
293
+ showOriginalCrossedOut() {
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.7",
3
+ "version": "3.17.21-td-1017.1",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,8 +29,8 @@
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.7",
32
+ "@nuskin/ns-product-lib": "2.19.2",
33
+ "@nuskin/ns-shop": "7.1.3",
34
34
  "@nuskin/product-recommendation": "2.0.1",
35
35
  "axios": "1.6.7",
36
36
  "lodash": "4.17.21",
@@ -95,7 +95,7 @@ if (!NsProductAppService) {
95
95
  this.runConfig = runConfig;
96
96
  this.locale = `${this.runConfig.language}_${this.runConfig.country}`;
97
97
 
98
- this.marketConfig = await ConfigService.getMarketConfig();
98
+ this.marketConfig = ConfigService.getMarketConfig();
99
99
  if (this.marketConfig) {
100
100
  this.awsUrl = this.marketConfig.awsUrl;
101
101
  this.siteUrl = this.marketConfig.siteUrl;
@@ -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