@ordergroove/offers 2.45.0 → 2.45.1
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 +11 -0
- package/dist/offers.js +8 -8
- package/dist/offers.js.map +4 -4
- package/package.json +2 -2
- package/src/make-api.js +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ordergroove/offers",
|
|
3
|
-
"version": "2.45.
|
|
3
|
+
"version": "2.45.1",
|
|
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": "
|
|
52
|
+
"gitHead": "d5092e2985909a115f17b1f2706fa37698b5c567"
|
|
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 {
|
|
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
|
|
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) {
|