@ordergroove/offers 2.45.0 → 2.45.1-alpha-PR-1173-2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordergroove/offers",
3
- "version": "2.45.0",
3
+ "version": "2.45.1-alpha-PR-1173-2.7+bf3bacaa",
4
4
  "description": "offer state component",
5
5
  "author": "Eugenio Lattanzio <eugenio63@gmail.com>",
6
6
  "homepage": "https://github.com/ordergroove/plush-toys#readme",
@@ -49,5 +49,5 @@
49
49
  "@ordergroove/offers-templates": "^0.9.7",
50
50
  "@types/lodash.memoize": "^4.1.9"
51
51
  },
52
- "gitHead": "221fe44cdecde025a85ff117df9639fb5068dfd5"
52
+ "gitHead": "bf3bacaab0a6a40e6bda503b409dd9c3a407a943"
53
53
  }
package/src/make-api.js CHANGED
@@ -25,11 +25,9 @@ import { ConnectedPrepaidButton } from './components/PrepaidButton';
25
25
  import { ConnectedPrepaidSelect } from './components/PrepaidSelect';
26
26
  import { ConnectedSubscriptionButton } from './components/SubscriptionButton';
27
27
  import * as testMode from './test-mode';
28
- import { api } from './core/api';
29
- import { environment } from './core/reducer';
30
- import { DEFAULT_OFFER_MODULE, RECEIVE_PRODUCT_PLANS } from './core/constants';
28
+ import { RECEIVE_PRODUCT_PLANS } from './core/constants';
31
29
  import ConnectedPrice from './components/Price';
32
- import { safeProductId } from './core/utils';
30
+ import platform from './platform';
33
31
 
34
32
  export default function makeApi(store) {
35
33
  testMode.enable();
@@ -139,6 +137,9 @@ export default function makeApi(store) {
139
137
  },
140
138
 
141
139
  resolveSettings(merchantId, env, settings, storeInstance = store) {
140
+ // window.og_settings does not affect Shopify selling plan offers
141
+ if (platform.shopify_selling_plans) return;
142
+
142
143
  if (merchantId && env && settings) {
143
144
  let products = [];
144
145
  if (settings.product) {