@nuskin/product-components 3.2.3 → 3.3.0-cx15-5382.2

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"
3
+ "master", {"name":"CX15-5382", "channel":"prerelease", "prerelease":"cx15-5382"}
4
4
  ],
5
5
  "plugins": [
6
6
  "@semantic-release/npm",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # [3.3.0-cx15-5382.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.3.0-cx15-5382.1...v3.3.0-cx15-5382.2) (2023-03-15)
2
+
3
+
4
+ ### Chore
5
+
6
+ * some logging (#CX15-5382) ([280fb4d](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/280fb4de7fff61c109ab35bb7d864f0551e36584)), closes [#CX15-5382](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-5382)
7
+
8
+ ### Fix
9
+
10
+ * added some logging (#CX15-5382) ([0ceae14](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/0ceae14bafa2ed614ade8df52a09e462adb7e2da)), closes [#CX15-5382](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-5382)
11
+
12
+ # [3.3.0-cx15-5382.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.2.3...v3.3.0-cx15-5382.1) (2023-03-15)
13
+
14
+
15
+ ### New
16
+
17
+ * integrated with new QualificationService (#CX15-5382) ([62a735b](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/62a735b17df002e93857ce622c191772bd538afe)), closes [#CX15-5382](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX15-5382)
18
+
1
19
  ## [3.2.3](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.2.2...v3.2.3) (2023-03-14)
2
20
 
3
21
 
@@ -17,10 +17,11 @@ import {
17
17
  AdrService,
18
18
  FavoritesService,
19
19
  ProductStatus,
20
- QualificationService,
20
+ QualificationService as OldQualificationService,
21
21
  Product as ShopProduct,
22
22
  EquinoxCartService
23
23
  } from "@nuskin/ns-shop";
24
+ import { default as NewQualificationService } from "@nuskin/exclusive-offer-sdk";
24
25
  import webLoyalty from "@nuskin/ns-loyalty-web";
25
26
  import { getProp, getFullUrl } from "@nuskin/ns-common-lib";
26
27
  import { PriceType } from "@nuskin/ns-product-lib";
@@ -30,6 +31,10 @@ import { ProductDataService } from "@nuskin/ns-product";
30
31
  const PENDING_FAVORITE = "pendingFavorite";
31
32
  const KEY_BREADCRUMB_BACK = "breadcrumbBack";
32
33
 
34
+ const QualificationService = equinoxLocalStorage.isEquinoxEnabled()
35
+ ? NewQualificationService
36
+ : OldQualificationService;
37
+
33
38
  /**
34
39
  * NsProductMixin
35
40
  *
@@ -1077,6 +1082,13 @@ const NsProductMixin = {
1077
1082
  * Disables input fields
1078
1083
  */
1079
1084
  disable() {
1085
+ console.log({
1086
+ where: "disable",
1087
+ stuff: this
1088
+ });
1089
+
1090
+ console.trace();
1091
+
1080
1092
  this.userIsQualified = false;
1081
1093
  this.disableAddToCart = true;
1082
1094
  this.disableAddToAdr = true;
@@ -1087,6 +1099,11 @@ const NsProductMixin = {
1087
1099
  * Enables add and quantity fields depending if order type allows it
1088
1100
  */
1089
1101
  enable() {
1102
+ console.log({
1103
+ where: "enable",
1104
+ stuff: this
1105
+ });
1106
+ console.trace();
1090
1107
  this.userIsQualified = true;
1091
1108
  this.checkAddToCartAndAdr();
1092
1109
  this.disableQuantitySelector =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.2.3",
3
+ "version": "3.3.0-cx15-5382.2",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,6 +42,7 @@
42
42
  "fibers": "^4.0.1"
43
43
  },
44
44
  "peerDependencies": {
45
+ "@nuskin/exclusive-offer-sdk": "1.x",
45
46
  "@nuskin/ns-account": "5.x",
46
47
  "@nuskin/ns-checkout-common": "3.x",
47
48
  "@nuskin/ns-feature-flags": "1.x",
@@ -200,7 +200,15 @@
200
200
  </template>
201
201
 
202
202
  <script>
203
- import { QualificationService, CartService } from "@nuskin/ns-shop";
203
+ import {
204
+ QualificationService as OldQualificationService,
205
+ CartService
206
+ } from "@nuskin/ns-shop";
207
+ import { default as NewQualificationService } from "@nuskin/exclusive-offer-sdk";
208
+ import { equinoxLocalStorage } from "@nuskin/ns-util";
209
+ const QualificationService = equinoxLocalStorage.isEquinoxEnabled()
210
+ ? NewQualificationService
211
+ : OldQualificationService;
204
212
 
205
213
  import NsProductMixin from "../mixins/NsProductMixin";
206
214
  import "@nuskin/ns-core-styles/src/dist/main.css";