@nuskin/product-components 3.6.5 → 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 +143 -6
- package/cyclonedx-npm-yarn.json +2 -2
- package/mixins/NsProductMixin.js +54 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [3.6.5](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.4...v3.6.5) (2023-06-06)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -24,14 +31,80 @@
|
|
|
24
31
|
|
|
25
32
|
### Fix
|
|
26
33
|
|
|
27
|
-
*
|
|
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)
|
|
28
37
|
|
|
29
|
-
## [3.6.
|
|
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)
|
|
30
39
|
|
|
31
40
|
|
|
32
41
|
### Fix
|
|
33
42
|
|
|
34
|
-
*
|
|
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))
|
|
80
|
+
|
|
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)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Fix
|
|
85
|
+
|
|
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))
|
|
35
108
|
|
|
36
109
|
## [3.6.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.6.0...v3.6.1) (2023-06-01)
|
|
37
110
|
|
|
@@ -52,14 +125,78 @@
|
|
|
52
125
|
|
|
53
126
|
### Fix
|
|
54
127
|
|
|
55
|
-
*
|
|
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))
|
|
56
148
|
|
|
57
|
-
## [3.5.
|
|
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)
|
|
58
150
|
|
|
59
151
|
|
|
60
152
|
### Fix
|
|
61
153
|
|
|
62
|
-
*
|
|
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)
|
|
155
|
+
|
|
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)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Fix
|
|
160
|
+
|
|
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))
|
|
63
200
|
|
|
64
201
|
## [3.5.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.5.1...v3.5.2) (2023-05-18)
|
|
65
202
|
|
package/cyclonedx-npm-yarn.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.4",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:f6e8ef81-0c08-4a27-85de-a2ac28e60db2",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2023-06-
|
|
7
|
+
"timestamp": "2023-06-07T16:54:22Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "GitLab",
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -723,23 +723,52 @@ const NsProductMixin = {
|
|
|
723
723
|
await getQualificationService()
|
|
724
724
|
).getQualification(this.activeSku);
|
|
725
725
|
|
|
726
|
-
let cartQuantity;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
)
|
|
734
|
-
|
|
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
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
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
|
});
|