@anker-in/shopify-react 0.1.1-beta.36 → 0.1.1-beta.38
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/hooks/index.d.mts +11 -7
- package/dist/hooks/index.d.ts +11 -7
- package/dist/hooks/index.js +7 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +7 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +4 -1
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +4 -1
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/hooks/index.mjs
CHANGED
|
@@ -2398,7 +2398,10 @@ var createInitialValue = () => ({
|
|
|
2398
2398
|
freeShippingMethods: [],
|
|
2399
2399
|
paymentShippingMethods: [],
|
|
2400
2400
|
nddOverweight: false,
|
|
2401
|
-
tddOverweight: false
|
|
2401
|
+
tddOverweight: false,
|
|
2402
|
+
nddCoupon: void 0,
|
|
2403
|
+
tddCoupon: void 0,
|
|
2404
|
+
isLoadingCoupon: false
|
|
2402
2405
|
},
|
|
2403
2406
|
selectedPlusMemberProduct: null,
|
|
2404
2407
|
plusMemberProducts: [],
|
|
@@ -2443,7 +2446,9 @@ function usePlusAnnualProductVariant() {
|
|
|
2443
2446
|
}, [plusMemberProducts, plusAnnual]);
|
|
2444
2447
|
return plusAnnualProductVariant;
|
|
2445
2448
|
}
|
|
2446
|
-
var useAvailableDeliveryCoupon = ({
|
|
2449
|
+
var useAvailableDeliveryCoupon = ({
|
|
2450
|
+
profile
|
|
2451
|
+
}) => {
|
|
2447
2452
|
const { data: availableDeliveryCoupon, isLoading } = useSWR(
|
|
2448
2453
|
profile?.email ? ["/api/multipass/subsrv/v1/prime/delivery_coupons/current/available", profile?.email] : void 0,
|
|
2449
2454
|
async ([apiPath]) => {
|