@nuskin/ns-product-lib 2.3.0 → 2.4.0-cx24-2462.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +49 -0
- package/package.json +1 -1
- package/src/productData.js +11 -8
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# [2.4.0-cx24-2462.1.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.3.0...v2.4.0-cx24-2462.1.1) (2022-10-20)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* To make multiple products work (#CX24-2444) ([ce4c483](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/ce4c483b7fbb0527e60045d8174fd503a67e63fa)), closes [#CX24-2444](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2444)
|
7
|
+
|
8
|
+
### Release
|
9
|
+
|
10
|
+
* Automated changes by GitLab pipeline [skip ci] ([8f75316](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/8f75316b692ddccda5b7bea830ee6dc625b942c7))
|
11
|
+
* Automated changes by GitLab pipeline [skip ci] ([36dca5b](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/36dca5b92285ae6d8ae96345256df92102efad8e))
|
12
|
+
|
13
|
+
### Update
|
14
|
+
|
15
|
+
* map product images to carousel images (CX24-2462) ([1e17c6e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1e17c6ec39e54b4bdb2bb804c997eb14c9e501d5))
|
16
|
+
|
1
17
|
# [2.3.0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.2.0...v2.3.0) (2022-10-14)
|
2
18
|
|
3
19
|
|
@@ -34,6 +50,39 @@
|
|
34
50
|
|
35
51
|
* replace runConfig and marketConfig parameters of getProductData with locale and market (CX24-2382) ([b7b8ac7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b7b8ac7fa946df0b3690f700d00f5acfb0073bcf))
|
36
52
|
|
53
|
+
### Fix
|
54
|
+
|
55
|
+
* To make multiple products work (#CX24-2444) ([1cbe500](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1cbe5000d2649157de3bdb6456d601fdeecbd3b6)), closes [#CX24-2444](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2444)
|
56
|
+
* To make multiple products work (#CX24-2444) ([b4c2218](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b4c221853dca33f2c0b06a06d6ead7fc50e9f0c6)), closes [#CX24-2444](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2444)
|
57
|
+
|
58
|
+
### Release
|
59
|
+
|
60
|
+
* Automated changes by GitLab pipeline [skip ci] ([a974a24](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a974a244a85ee42eca3540b88429d16edcbf57ce))
|
61
|
+
* Automated changes by GitLab pipeline [skip ci] ([aa21d8d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/aa21d8dcbed15a1c0798f882b4667bcc2bc071dc))
|
62
|
+
|
63
|
+
### Update
|
64
|
+
|
65
|
+
* updating the product data map (#CX24-2103) ([ea914a4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/ea914a4079c2472adcd449fac09be85f22671493)), closes [#CX24-2103](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2103)
|
66
|
+
|
67
|
+
# [2.0.0-cx24-21035.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.0.0-cx24-21035.1...v2.0.0-cx24-21035.2) (2022-09-22)
|
68
|
+
|
69
|
+
|
70
|
+
### Fix
|
71
|
+
|
72
|
+
* To make multiple products work (#CX24-2444) ([1cbe500](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1cbe5000d2649157de3bdb6456d601fdeecbd3b6)), closes [#CX24-2444](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2444)
|
73
|
+
* To make multiple products work (#CX24-2444) ([b4c2218](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b4c221853dca33f2c0b06a06d6ead7fc50e9f0c6)), closes [#CX24-2444](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2444)
|
74
|
+
|
75
|
+
### Release
|
76
|
+
|
77
|
+
* Automated changes by GitLab pipeline [skip ci] ([aa21d8d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/aa21d8dcbed15a1c0798f882b4667bcc2bc071dc))
|
78
|
+
|
79
|
+
### Update
|
80
|
+
|
81
|
+
* updating the product data map (#CX24-2103) ([ea914a4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/ea914a4079c2472adcd449fac09be85f22671493)), closes [#CX24-2103](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2103)
|
82
|
+
|
83
|
+
# [2.0.0-cx24-21035.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.0.0-cx24-21035.1...v2.0.0-cx24-21035.2) (2022-09-22)
|
84
|
+
|
85
|
+
|
37
86
|
### Fix
|
38
87
|
|
39
88
|
* To make multiple products work (#CX24-2444) ([b4c2218](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b4c221853dca33f2c0b06a06d6ead7fc50e9f0c6)), closes [#CX24-2444](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2444)
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -104,6 +104,8 @@ const ProductData = {
|
|
104
104
|
} else {
|
105
105
|
thumbnailImage = imageURL.replace(regex,'40.40')
|
106
106
|
}
|
107
|
+
const skuProperties = data.sku[count].properties;
|
108
|
+
|
107
109
|
prod = {
|
108
110
|
"sku": data.sku[count].identifier,
|
109
111
|
"globalProductID": data.identifier,
|
@@ -114,13 +116,14 @@ const ProductData = {
|
|
114
116
|
"longDescr": data.properties.productDetailsDescription,
|
115
117
|
"fullImage": imageURL,
|
116
118
|
"imageAltText": data.properties.name,
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
119
|
+
productCarouselImages: skuProperties.productImages
|
120
|
+
? JSON.parse(skuProperties.productImages).map(img => (
|
121
|
+
{
|
122
|
+
contentType: /\.jpg/i.test(img.url) ? 'img' : 'video',
|
123
|
+
src: img.url,
|
124
|
+
alt: img.alt
|
125
|
+
}
|
126
|
+
)) : [],
|
124
127
|
"thumbnail": thumbnailImage,
|
125
128
|
"ingredients": data.properties.ingredients,
|
126
129
|
"benefits": data.properties.benefits,
|
@@ -132,7 +135,7 @@ const ProductData = {
|
|
132
135
|
"salesEventText": "",
|
133
136
|
"contentSection": [
|
134
137
|
{
|
135
|
-
"sectionContent": "<div class=\"contentSections\"
|
138
|
+
"sectionContent": "<div class=\"contentSections\"></div>\n"
|
136
139
|
}
|
137
140
|
],
|
138
141
|
"scanQualified": data.properties.scanQualifiedCount,
|