@ordergroove/offers 2.34.2 → 2.34.3-alpha-PR-760-1.3
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/dist/offers.js +1 -1
- package/dist/offers.js.map +2 -2
- package/package.json +2 -2
- package/src/shopify/shopifyMiddleware.ts +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ordergroove/offers",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.3-alpha-PR-760-1.3+fa11ae51",
|
|
4
4
|
"description": "offer state component",
|
|
5
5
|
"author": "Eugenio Lattanzio <eugenio63@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ordergroove/plush-toys#readme",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@ordergroove/offers-templates": "^0.9.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "fa11ae5149aee84bd080c48dff11a705179e9bea"
|
|
51
51
|
}
|
|
@@ -26,8 +26,14 @@ const PRODUCTS_URL = `${SHOPIFY_ROOT}products/`;
|
|
|
26
26
|
/**
|
|
27
27
|
* List of section DOM elements to update via section-rendering api https://shopify.dev/api/section-rendering
|
|
28
28
|
*/
|
|
29
|
-
const DEFAULT_SHOPIFY_CART_AJAX_SECTIONS =
|
|
30
|
-
'[id^="shopify-section-"][id$=__cart-items],
|
|
29
|
+
const DEFAULT_SHOPIFY_CART_AJAX_SECTIONS = [
|
|
30
|
+
'[id^="shopify-section-"][id$=__cart-items]',
|
|
31
|
+
'[id^="shopify-section-"][id$="__cart-footer"]',
|
|
32
|
+
'#shopify-section-main-cart-footer', //greenies
|
|
33
|
+
'#cart-live-region-text',
|
|
34
|
+
'#cart-icon-bubble'
|
|
35
|
+
].join(',');
|
|
36
|
+
|
|
31
37
|
const makeSyncProductId = offer =>
|
|
32
38
|
debounce(100, false, function(form) {
|
|
33
39
|
const { id } = Object.fromEntries([...new FormData(form).entries()]);
|