@nuskin/product-components 3.6.4 → 3.6.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.6.6](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.5...v3.6.6) (2023-06-07)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Stop being able to add too many to cart (#CX15-7285) ([3ab4b07](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/3ab4b07a34950c13049cd0ceaa0a5dbf1c9c4b88)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
7
+
8
+ ## [3.6.5](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.4...v3.6.5) (2023-06-06)
9
+
10
+
11
+ ### Fix
12
+
13
+ * use recommended product API (CX16-9278) ([28a5f29](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/28a5f296474ac0bae22de726dcd39afae9b771a0))
14
+
1
15
  ## [3.6.4](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.3...v3.6.4) (2023-06-06)
2
16
 
3
17
 
@@ -17,14 +31,80 @@
17
31
 
18
32
  ### Fix
19
33
 
20
- * correction to pdp path (CX16-8734) ([fc2b149](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fc2b149e7991bc35c41d0d59bbaa3dd5a84735f9))
34
+ * Remove double calculation (#CX15-7285) ([92f5249](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/92f5249241bcfa7acbf117b7b39c30c6f7ee0ba3)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
35
+ * Wring passed var(#CX15-7285) ([2ae776d](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2ae776d4b1984023ac3c60f73d64eabcdb5b5fe9)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
36
+ * Wrong var (#CX15-7285) ([60b5c72](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/60b5c72f159517f453227973538c096ef137b45f)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
37
+
38
+ ## [3.6.4-cx15-7285.3](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.4-cx15-7285.2...v3.6.4-cx15-7285.3) (2023-06-05)
39
+
40
+
41
+ ### Fix
42
+
43
+ * Update of max selector(#CX15-7285) ([6611815](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/66118152fb68d0ecaf60accc1f096d1beb46ca62)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
44
+
45
+ ## [3.6.4-cx15-7285.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.4-cx15-7285.1...v3.6.4-cx15-7285.2) (2023-06-05)
46
+
47
+
48
+ ### Fix
49
+
50
+ * Update cart count to 0 initially (#CX15-7285) ([8158c1f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/8158c1fa1e1a0955f5368f01d49b7e8fffed528a)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
51
+
52
+ ## [3.6.4-cx15-7285.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.3...v3.6.4-cx15-7285.1) (2023-06-05)
53
+
54
+
55
+ ### Fix
56
+
57
+ * Check to see if there are cart items (#CX15-7285) ([0cb3b1a](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/0cb3b1a7901103ee90c00db61ddf12e6535eabc7)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
58
+ * disable add to cart on click (#CX15-7285) ([c326d0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c326d0c3becffa0732949a34a20ef355df801b65)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
59
+ * Keep selector up to date (#CX15-7285) ([362da67](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/362da67e7d1fc024a59173ec6d0c2ef6c169b72b)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
60
+ * Moving calls around (#CX15-7285) ([95eb5ec](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/95eb5ecd346b486b3560b1cf92da5315963ba9a4)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
61
+ * Problem in the equinox config(#CX15-7285) ([e6e4812](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e6e48123bb88ec2bbb05f5443e57d0bec6833d9f)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
62
+ * remove console log (#CX15-7285) ([bec7cb5](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/bec7cb589f96df16ba82aa205b3d0d106a313d46)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
63
+ * removing unneeded code (#CX15-7285) ([dc01f18](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/dc01f18cf66e953c0b2f0dbd589b5b2919017a14)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
64
+ * reset qty to 1 (#CX15-7385) ([ca5cf26](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ca5cf263e48db154bf6474c23708953f422fa281)), closes [#CX15-7385](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7385)
65
+ * Set status after return of add to cart(#CX15-7285) ([ccb7957](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ccb7957230e8a34636a8398931e37420dd45f277)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
66
+ * update quantity selector (#CX15-7285) ([3270a36](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/3270a360eee9a67e39734b9c3c207dedae3146c9)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
67
+
68
+ ### Release
69
+
70
+ * Automated changes by GitLab pipeline [skip ci] ([344c8d4](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/344c8d42f4eca08c5a07e6b6dbf3176e93fd3d52))
71
+ * Automated changes by GitLab pipeline [skip ci] ([538801f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/538801fa73e13269395c4e6c1697bdbae32042f3))
72
+ * Automated changes by GitLab pipeline [skip ci] ([e4e9148](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e4e9148b1f15ccf2e853e22a41baaa9c29c8cef2))
73
+ * Automated changes by GitLab pipeline [skip ci] ([2156472](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2156472a742f7d095592fff408caf7d18b70fb60))
74
+ * Automated changes by GitLab pipeline [skip ci] ([2664a0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2664a0cc4a2baee417f01167e47fbbe71d0e08a6))
75
+ * Automated changes by GitLab pipeline [skip ci] ([c6d1ef8](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c6d1ef8e73eb43f5be9d17d2e24a0ae512e92be4))
76
+ * Automated changes by GitLab pipeline [skip ci] ([57e4b92](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/57e4b92fb5359eb139f94cabd2dcd6bc6d3d131d))
77
+ * Automated changes by GitLab pipeline [skip ci] ([7d0eedf](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/7d0eedf57e5ccefad210d290bec7f3e228926400))
78
+ * Automated changes by GitLab pipeline [skip ci] ([fb9200f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fb9200fcb1e860b087c1849b249434ee93cbb3b2))
79
+ * Automated changes by GitLab pipeline [skip ci] ([d83b867](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/d83b867e7450cb1686f742bbf010ff2ab8a45cff))
21
80
 
22
- ## [3.6.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.1...v3.6.2) (2023-06-02)
81
+ ## [3.6.2-cx15-7285.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.1...v3.6.2-cx15-7285.1) (2023-06-02)
23
82
 
24
83
 
25
84
  ### Fix
26
85
 
27
- * pdp links, card alignment (CX16-8734) ([525282c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/525282c13660cdcaf94b69ee87e677a6388a3d7b))
86
+ * Check to see if there are cart items (#CX15-7285) ([0cb3b1a](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/0cb3b1a7901103ee90c00db61ddf12e6535eabc7)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
87
+ * disable add to cart on click (#CX15-7285) ([c326d0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c326d0c3becffa0732949a34a20ef355df801b65)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
88
+ * Keep selector up to date (#CX15-7285) ([362da67](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/362da67e7d1fc024a59173ec6d0c2ef6c169b72b)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
89
+ * Moving calls around (#CX15-7285) ([95eb5ec](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/95eb5ecd346b486b3560b1cf92da5315963ba9a4)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
90
+ * Problem in the equinox config(#CX15-7285) ([e6e4812](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e6e48123bb88ec2bbb05f5443e57d0bec6833d9f)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
91
+ * remove console log (#CX15-7285) ([bec7cb5](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/bec7cb589f96df16ba82aa205b3d0d106a313d46)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
92
+ * removing unneeded code (#CX15-7285) ([dc01f18](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/dc01f18cf66e953c0b2f0dbd589b5b2919017a14)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
93
+ * reset qty to 1 (#CX15-7385) ([ca5cf26](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ca5cf263e48db154bf6474c23708953f422fa281)), closes [#CX15-7385](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7385)
94
+ * Set status after return of add to cart(#CX15-7285) ([ccb7957](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ccb7957230e8a34636a8398931e37420dd45f277)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
95
+ * update quantity selector (#CX15-7285) ([3270a36](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/3270a360eee9a67e39734b9c3c207dedae3146c9)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
96
+
97
+ ### Release
98
+
99
+ * Automated changes by GitLab pipeline [skip ci] ([538801f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/538801fa73e13269395c4e6c1697bdbae32042f3))
100
+ * Automated changes by GitLab pipeline [skip ci] ([e4e9148](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e4e9148b1f15ccf2e853e22a41baaa9c29c8cef2))
101
+ * Automated changes by GitLab pipeline [skip ci] ([2156472](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2156472a742f7d095592fff408caf7d18b70fb60))
102
+ * Automated changes by GitLab pipeline [skip ci] ([2664a0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2664a0cc4a2baee417f01167e47fbbe71d0e08a6))
103
+ * Automated changes by GitLab pipeline [skip ci] ([c6d1ef8](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c6d1ef8e73eb43f5be9d17d2e24a0ae512e92be4))
104
+ * Automated changes by GitLab pipeline [skip ci] ([57e4b92](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/57e4b92fb5359eb139f94cabd2dcd6bc6d3d131d))
105
+ * Automated changes by GitLab pipeline [skip ci] ([7d0eedf](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/7d0eedf57e5ccefad210d290bec7f3e228926400))
106
+ * Automated changes by GitLab pipeline [skip ci] ([fb9200f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fb9200fcb1e860b087c1849b249434ee93cbb3b2))
107
+ * Automated changes by GitLab pipeline [skip ci] ([d83b867](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/d83b867e7450cb1686f742bbf010ff2ab8a45cff))
28
108
 
29
109
  ## [3.6.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.0...v3.6.1) (2023-06-01)
30
110
 
@@ -45,14 +125,78 @@
45
125
 
46
126
  ### Fix
47
127
 
48
- * timing issue with listeners #CX16-9034 ([bb8e726](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/bb8e726c5f248c5cfb2d896bd55dac313ec20955)), closes [#CX16-9034](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX16-9034)
128
+ * disable add to cart on click (#CX15-7285) ([c326d0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c326d0c3becffa0732949a34a20ef355df801b65)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
129
+ * Keep selector up to date (#CX15-7285) ([362da67](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/362da67e7d1fc024a59173ec6d0c2ef6c169b72b)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
130
+ * Moving calls around (#CX15-7285) ([95eb5ec](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/95eb5ecd346b486b3560b1cf92da5315963ba9a4)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
131
+ * Problem in the equinox config(#CX15-7285) ([e6e4812](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e6e48123bb88ec2bbb05f5443e57d0bec6833d9f)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
132
+ * remove console log (#CX15-7285) ([bec7cb5](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/bec7cb589f96df16ba82aa205b3d0d106a313d46)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
133
+ * removing unneeded code (#CX15-7285) ([dc01f18](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/dc01f18cf66e953c0b2f0dbd589b5b2919017a14)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
134
+ * reset qty to 1 (#CX15-7385) ([ca5cf26](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ca5cf263e48db154bf6474c23708953f422fa281)), closes [#CX15-7385](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7385)
135
+ * Set status after return of add to cart(#CX15-7285) ([ccb7957](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ccb7957230e8a34636a8398931e37420dd45f277)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
136
+ * update quantity selector (#CX15-7285) ([3270a36](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/3270a360eee9a67e39734b9c3c207dedae3146c9)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
137
+
138
+ ### Release
139
+
140
+ * Automated changes by GitLab pipeline [skip ci] ([e4e9148](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e4e9148b1f15ccf2e853e22a41baaa9c29c8cef2))
141
+ * Automated changes by GitLab pipeline [skip ci] ([2156472](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2156472a742f7d095592fff408caf7d18b70fb60))
142
+ * Automated changes by GitLab pipeline [skip ci] ([2664a0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/2664a0cc4a2baee417f01167e47fbbe71d0e08a6))
143
+ * Automated changes by GitLab pipeline [skip ci] ([c6d1ef8](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c6d1ef8e73eb43f5be9d17d2e24a0ae512e92be4))
144
+ * Automated changes by GitLab pipeline [skip ci] ([57e4b92](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/57e4b92fb5359eb139f94cabd2dcd6bc6d3d131d))
145
+ * Automated changes by GitLab pipeline [skip ci] ([7d0eedf](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/7d0eedf57e5ccefad210d290bec7f3e228926400))
146
+ * Automated changes by GitLab pipeline [skip ci] ([fb9200f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fb9200fcb1e860b087c1849b249434ee93cbb3b2))
147
+ * Automated changes by GitLab pipeline [skip ci] ([d83b867](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/d83b867e7450cb1686f742bbf010ff2ab8a45cff))
148
+
149
+ ## [3.5.4-cx15-7285.3](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.4-cx15-7285.2...v3.5.4-cx15-7285.3) (2023-05-23)
150
+
151
+
152
+ ### Fix
153
+
154
+ * reset qty to 1 (#CX15-7385) ([ca5cf26](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ca5cf263e48db154bf6474c23708953f422fa281)), closes [#CX15-7385](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7385)
49
155
 
50
- ## [3.5.3-cx16-9034.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.2...v3.5.3-cx16-9034.1) (2023-05-18)
156
+ ## [3.5.4-cx15-7285.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.4-cx15-7285.1...v3.5.4-cx15-7285.2) (2023-05-22)
51
157
 
52
158
 
53
159
  ### Fix
54
160
 
55
- * truly added listeners before sku set. #CX16-9034 ([9d6625c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/9d6625c241759b8ef772d65ebd82377657d306ed)), closes [#CX16-9034](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX16-9034)
161
+ * Set status after return of add to cart(#CX15-7285) ([ccb7957](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/ccb7957230e8a34636a8398931e37420dd45f277)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
162
+
163
+ ## [3.5.4-cx15-7285.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.3...v3.5.4-cx15-7285.1) (2023-05-22)
164
+
165
+
166
+ ### Fix
167
+
168
+ * disable add to cart on click (#CX15-7285) ([c326d0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c326d0c3becffa0732949a34a20ef355df801b65)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
169
+ * Keep selector up to date (#CX15-7285) ([362da67](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/362da67e7d1fc024a59173ec6d0c2ef6c169b72b)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
170
+ * Problem in the equinox config(#CX15-7285) ([e6e4812](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e6e48123bb88ec2bbb05f5443e57d0bec6833d9f)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
171
+ * remove console log (#CX15-7285) ([bec7cb5](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/bec7cb589f96df16ba82aa205b3d0d106a313d46)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
172
+ * removing unneeded code (#CX15-7285) ([dc01f18](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/dc01f18cf66e953c0b2f0dbd589b5b2919017a14)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
173
+ * update quantity selector (#CX15-7285) ([3270a36](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/3270a360eee9a67e39734b9c3c207dedae3146c9)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
174
+
175
+ ### Release
176
+
177
+ * Automated changes by GitLab pipeline [skip ci] ([c6d1ef8](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c6d1ef8e73eb43f5be9d17d2e24a0ae512e92be4))
178
+ * Automated changes by GitLab pipeline [skip ci] ([57e4b92](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/57e4b92fb5359eb139f94cabd2dcd6bc6d3d131d))
179
+ * Automated changes by GitLab pipeline [skip ci] ([7d0eedf](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/7d0eedf57e5ccefad210d290bec7f3e228926400))
180
+ * Automated changes by GitLab pipeline [skip ci] ([fb9200f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fb9200fcb1e860b087c1849b249434ee93cbb3b2))
181
+ * Automated changes by GitLab pipeline [skip ci] ([d83b867](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/d83b867e7450cb1686f742bbf010ff2ab8a45cff))
182
+
183
+ ## [3.5.3-cx15-7285.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.2...v3.5.3-cx15-7285.1) (2023-05-18)
184
+
185
+
186
+ ### Fix
187
+
188
+ * disable add to cart on click (#CX15-7285) ([c326d0c](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/c326d0c3becffa0732949a34a20ef355df801b65)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
189
+ * Keep selector up to date (#CX15-7285) ([362da67](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/362da67e7d1fc024a59173ec6d0c2ef6c169b72b)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
190
+ * Problem in the equinox config(#CX15-7285) ([e6e4812](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/e6e48123bb88ec2bbb05f5443e57d0bec6833d9f)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
191
+ * remove console log (#CX15-7285) ([bec7cb5](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/bec7cb589f96df16ba82aa205b3d0d106a313d46)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
192
+ * removing unneeded code (#CX15-7285) ([dc01f18](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/dc01f18cf66e953c0b2f0dbd589b5b2919017a14)), closes [#CX15-7285](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-7285)
193
+
194
+ ### Release
195
+
196
+ * Automated changes by GitLab pipeline [skip ci] ([57e4b92](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/57e4b92fb5359eb139f94cabd2dcd6bc6d3d131d))
197
+ * Automated changes by GitLab pipeline [skip ci] ([7d0eedf](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/7d0eedf57e5ccefad210d290bec7f3e228926400))
198
+ * Automated changes by GitLab pipeline [skip ci] ([fb9200f](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fb9200fcb1e860b087c1849b249434ee93cbb3b2))
199
+ * Automated changes by GitLab pipeline [skip ci] ([d83b867](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/d83b867e7450cb1686f742bbf010ff2ab8a45cff))
56
200
 
57
201
  ## [3.5.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.1...v3.5.2) (2023-05-18)
58
202
 
@@ -118,7 +118,7 @@ import Product from "../../models/product";
118
118
  import Price from "./Price.vue";
119
119
  import get from "lodash/get";
120
120
  import {
121
- findProductsByAnyId,
121
+ findProductsById,
122
122
  getProductTranslations
123
123
  } from "../../services/NsProductContentService";
124
124
 
@@ -340,9 +340,10 @@ export default {
340
340
  this.loading = true;
341
341
 
342
342
  try {
343
- const products = await findProductsByAnyId(
343
+ const products = await findProductsById(
344
344
  sliderProductIds,
345
- this.country + "-" + this.language
345
+ this.country,
346
+ this.language
346
347
  );
347
348
 
348
349
  this.products = sliderProductIds
@@ -381,10 +382,7 @@ export default {
381
382
  },
382
383
 
383
384
  initProductTranslations() {
384
- getProductTranslations(
385
- ["addToCartButton"],
386
- this.country + "-" + this.language
387
- )
385
+ getProductTranslations(["addToCartButton"], this.country, this.language)
388
386
  .then(translations => {
389
387
  this.translations = translations;
390
388
  })
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.4",
4
- "serialNumber": "urn:uuid:485ea4e5-23b9-4ca8-a800-f9d5d9c534d5",
4
+ "serialNumber": "urn:uuid:f6e8ef81-0c08-4a27-85de-a2ac28e60db2",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2023-06-06T20:35:01Z",
7
+ "timestamp": "2023-06-07T16:54:22Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "GitLab",
@@ -723,23 +723,52 @@ const NsProductMixin = {
723
723
  await getQualificationService()
724
724
  ).getQualification(this.activeSku);
725
725
 
726
- let cartQuantity;
727
- if (!this.baseSku) {
728
- const cartItem = await CartService.getFirstItemBySku(
729
- this.activeSku,
730
- {
731
- cartOrderItems: true
732
- }
733
- );
734
- cartQuantity = (cartItem || {}).qty || 0;
726
+ let cartQuantity = 0;
727
+
728
+ if (
729
+ (await getConfiguration(["Equinox_Markets"])).Equinox_Markets.active
730
+ ) {
731
+ let cartItems = await EquinoxCartService.getEquinoxCart();
732
+ //Check for count cart items or set value to zero
733
+ if (cartItems.data && cartItems.data.items) {
734
+ cartQuantity = cartItems.data.items.reduce((cq, item) => {
735
+ const sku = item.skus.find(s => s.productId === this.activeSku);
736
+ if (sku) {
737
+ return cq + item.quantity;
738
+ } else {
739
+ return cq;
740
+ }
741
+ }, 0);
742
+ }
735
743
  } else {
736
- const cartData =
737
- (await (
738
- await getQualificationService()
739
- ).convertCartDataToBaseSkus(CartService.getItemData(), true)) ||
740
- {};
741
- const cartItem = cartData[this.baseSku] || {};
742
- cartQuantity = cartItem.qty || 0;
744
+ if (!this.baseSku) {
745
+ const cartItem = await CartService.getFirstItemBySku(
746
+ this.activeSku,
747
+ {
748
+ cartOrderItems: true
749
+ }
750
+ );
751
+ cartQuantity = (cartItem || {}).qty || 0;
752
+ } else {
753
+ const cartData =
754
+ (await (
755
+ await getQualificationService()
756
+ ).convertCartDataToBaseSkus(CartService.getItemData(), true)) ||
757
+ {};
758
+ const cartItem = cartData[this.baseSku] || {};
759
+ cartQuantity = cartItem.qty || 0;
760
+ }
761
+ }
762
+
763
+ if (cartQuantity > 0) {
764
+ this.maxQuantity =
765
+ productQualification.quantity - cartQuantity > 0
766
+ ? productQualification.quantity - cartQuantity
767
+ : 0;
768
+ this.handleQuantitySelect(1);
769
+ }
770
+ if (this.maxQuantity == 0) {
771
+ this.disable();
743
772
  }
744
773
 
745
774
  if (!productQualification) {
@@ -985,6 +1014,8 @@ const NsProductMixin = {
985
1014
  */
986
1015
  handleAddToCart() {
987
1016
  if (!this.disableAddToCart) {
1017
+ // Disable the add to cart button on click
1018
+ this.disableAddToCart = true;
988
1019
  window.sessionStorage.setItem("nstoast-allowed", "true");
989
1020
 
990
1021
  let countryCode = CartService.getCartProperty("cntryCd") || "";
@@ -1024,14 +1055,15 @@ const NsProductMixin = {
1024
1055
  qty: options.qty
1025
1056
  }
1026
1057
  };
1027
-
1028
1058
  EquinoxCartService.addProductToEquinoxCart(options)
1029
1059
  .then(() => {
1030
1060
  events.publish(events.shop.ADD_TO_CART, options);
1061
+ this.setStatus();
1031
1062
  })
1032
1063
  .catch(err => {
1033
1064
  // TODO
1034
1065
  console.error(err);
1066
+ this.setStatus();
1035
1067
  });
1036
1068
  })
1037
1069
  .catch(error => {
@@ -1050,6 +1082,7 @@ const NsProductMixin = {
1050
1082
  })
1051
1083
  .catch(error => {
1052
1084
  console.error("Failed to add to cart.", error);
1085
+ this.setStatus();
1053
1086
  });
1054
1087
  }
1055
1088
  });
@@ -1061,6 +1094,7 @@ const NsProductMixin = {
1061
1094
  */
1062
1095
  handleAddToAdr() {
1063
1096
  if (!this.disableAddToAdr) {
1097
+ this.disableAddToAdr = true;
1064
1098
  getConfiguration(["Equinox_Markets"]).then(config => {
1065
1099
  let options = {
1066
1100
  sku: this.activeSku,
@@ -1083,9 +1117,11 @@ const NsProductMixin = {
1083
1117
  events.publish(events.shop.ADD_TO_CART, options);
1084
1118
  events.publish(events.shop.SHOW_ADD_TO_BAG, options);
1085
1119
  this.$emit("added-to-adr", options);
1120
+ this.setStatus();
1086
1121
  })
1087
1122
  .catch(error => {
1088
1123
  console.error("Failed to add to ADR.", error);
1124
+ this.setStatus();
1089
1125
  });
1090
1126
  }
1091
1127
  );
@@ -1101,6 +1137,7 @@ const NsProductMixin = {
1101
1137
  })
1102
1138
  .catch(error => {
1103
1139
  console.error("Failed to add to ADR.", error);
1140
+ this.setStatus();
1104
1141
  });
1105
1142
  }
1106
1143
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.6.4",
3
+ "version": "3.6.6",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,52 +33,47 @@ import { RunConfigService } from "@nuskin/ns-util";
33
33
  * @property {string} [status.backorderedAvailableDate]
34
34
  */
35
35
 
36
- const productFields = `
37
- id
38
- title
39
- productImages {
40
- url
41
- alt
42
- }
43
- slug
44
- salesLabel
45
- variants {
46
- sku
47
- variantLabel
48
- isExclusive
49
- availableQuantity
50
- productImages {
51
- url
52
- alt
53
- }
54
- pricingJson
55
- price {
56
- currencyCode
57
- retail
58
- retailSales
59
- retailSubscription
60
- wholesale
61
- wholesaleSales
62
- wholesaleSubscription
63
- }
64
- status {
65
- status
66
- isBackordered
67
- backorderedAvailableDate
68
- }
69
- primaryBrand
70
- }
71
- `;
72
-
73
- const CombinedIdsProductsQuery = `
74
- query CombinedIdsProductsQuery($uids: [String!]!, $skus: [String!]!, $locale: String) {
75
- productsBySku(skus: $skus, locale: $locale) {
76
- ${productFields}
77
- }
78
- productsByUid(uids: $uids, locale: $locale) {
79
- ${productFields}
36
+ const ProductsByIdQuery = `
37
+ query ProductsById($ids: [String!]!, $market: String, $language: String) {
38
+ productsById(ids: $ids, market: $market, language: $language, quantity: 1) {
39
+ products {
40
+ id
41
+ title
42
+ productImages {
43
+ url
44
+ alt
45
+ }
46
+ slug
47
+ salesLabel
48
+ variants {
49
+ sku
50
+ variantLabel
51
+ isExclusive
52
+ availableQuantity
53
+ productImages {
54
+ url
55
+ alt
56
+ }
57
+ pricingJson
58
+ price {
59
+ currencyCode
60
+ retail
61
+ retailSales
62
+ retailSubscription
63
+ wholesale
64
+ wholesaleSales
65
+ wholesaleSubscription
66
+ }
67
+ status {
68
+ status
69
+ isBackordered
70
+ backorderedAvailableDate
71
+ }
72
+ primaryBrand
73
+ }
80
74
  }
81
75
  }
76
+ }
82
77
  `;
83
78
 
84
79
  /**
@@ -86,8 +81,8 @@ const CombinedIdsProductsQuery = `
86
81
  * @returns {string}
87
82
  */
88
83
  const productTranslationsQuery = fields => `
89
- query ProductTranslationsQuery($locale: String) {
90
- productTranslations(locale: $locale) {
84
+ query ProductTranslationsQuery($market: String, $language: String) {
85
+ pdpStrings(market: $market, language: $language) {
91
86
  ${fields.join("\n")}
92
87
  }
93
88
  }
@@ -99,55 +94,54 @@ function getProductGraphqlUrl() {
99
94
 
100
95
  switch (env) {
101
96
  case "dev":
102
- return "https://devapi.cloud.nuskin.com/cs-product-graphql/v1";
97
+ return "https://test.nuskin.com/product-api/graphql";
103
98
  case "stage":
104
99
  case "test":
105
- return "https://testapi.cloud.nuskin.com/cs-product-graphql/v1";
100
+ return "https://test.nuskin.com/product-api/graphql";
106
101
  case "unknown":
107
102
  case "prod":
108
103
  default:
109
- return "https://api.cloud.nuskin.com/cs-product-graphql/v1";
104
+ return "https://www.nuskin.com/product-api/graphql";
110
105
  }
111
106
  }
112
107
 
113
108
  /**
114
109
  * Retrieves product data for the given SKUs and/or product UIDs
115
110
  * @param {string[]} ids Product IDs; can be SKUs and/or UIDs
116
- * @param {string} csLocale Contentstack locale code (e.g. "US-en")
111
+ * @param {string} market Market country code
112
+ * @param {string} language Market language code
117
113
  * @return {Promise<ProductData[]>}
118
114
  */
119
- export async function findProductsByAnyId(ids, csLocale) {
115
+ export async function findProductsById(ids, market, language) {
120
116
  const url = getProductGraphqlUrl();
121
117
 
122
- const skus = ids.filter(id => /^\d{8}$/.test(id));
123
- const uids = ids.filter(id => /^blt[0-9a-f]{16}$/.test(id));
124
-
125
118
  const response = await axios.post(url, {
126
- query: CombinedIdsProductsQuery,
127
- variables: { uids, skus, locale: csLocale }
119
+ query: ProductsByIdQuery,
120
+ variables: { ids, market, language }
128
121
  });
129
122
 
130
- if (!response.data) return [];
131
-
132
- const uidProducts = response.data.data.productsByUid || [];
133
- const skuProducts = response.data.data.productsBySku || [];
123
+ if (!response.data || !response.data.data) return [];
134
124
 
135
- return uidProducts.concat(skuProducts);
125
+ return response.data.data.productsById.products;
136
126
  }
137
127
 
138
128
  /**
139
129
  * @param {string[]} fields Product string fields to get
140
- * @param {string} csLocale Contentstack locale code (e.g. "US-en")
130
+ * @param {string} market Market country code
131
+ * @param {string} language Market language code
141
132
  */
142
- export async function getProductTranslations(fields, csLocale) {
133
+ export async function getProductTranslations(fields, market, language) {
134
+ // If no fields are specified, don't bother attempting an API query
135
+ if (fields.length === 0) return {};
136
+
143
137
  const url = getProductGraphqlUrl();
144
138
  const query = productTranslationsQuery(fields);
145
139
 
146
140
  const response = await axios.post(url, {
147
141
  query,
148
- variables: { locale: csLocale }
142
+ variables: { market, language }
149
143
  });
150
144
 
151
145
  if (!response.data || !response.data.data) return {};
152
- return response.data.data.productTranslations || {};
146
+ return response.data.data.pdpStrings || {};
153
147
  }