@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 +1 -1
- package/components/NsProductListSortable.vue +5 -25
- package/docs/CHANGELOG.md +1 -1
- package/gl-sbom-npm-yarn.cdx.json +2 -2
- package/mixins/NsProductMixin.js +4 -4
- package/package.json +3 -3
- package/services/NsProductAppService.js +1 -1
- package/services/NsProductDataService.js +1 -1
package/.releaserc
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
|
-
<div v-if="
|
|
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
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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-
|
|
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:
|
|
4
|
+
"serialNumber": "urn:uuid:94e71e67-6ec4-43c1-bba9-3e190b3867dd",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2025-
|
|
7
|
+
"timestamp": "2025-02-13T13:43:09Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "GitLab",
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -227,8 +227,8 @@ const NsProductMixin = {
|
|
|
227
227
|
locale() {
|
|
228
228
|
return this.$NsProductAppService.locale;
|
|
229
229
|
},
|
|
230
|
-
|
|
231
|
-
return
|
|
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
|
-
|
|
294
|
-
return this.isSale || !!
|
|
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-
|
|
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.
|
|
33
|
-
"@nuskin/ns-shop": "7.3
|
|
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 =
|
|
98
|
+
this.marketConfig = ConfigService.getMarketConfig();
|
|
99
99
|
if (this.marketConfig) {
|
|
100
100
|
this.awsUrl = this.marketConfig.awsUrl;
|
|
101
101
|
this.siteUrl = this.marketConfig.siteUrl;
|