@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/index.mjs
CHANGED
|
@@ -2512,7 +2512,10 @@ var createInitialValue = () => ({
|
|
|
2512
2512
|
freeShippingMethods: [],
|
|
2513
2513
|
paymentShippingMethods: [],
|
|
2514
2514
|
nddOverweight: false,
|
|
2515
|
-
tddOverweight: false
|
|
2515
|
+
tddOverweight: false,
|
|
2516
|
+
nddCoupon: void 0,
|
|
2517
|
+
tddCoupon: void 0,
|
|
2518
|
+
isLoadingCoupon: false
|
|
2516
2519
|
},
|
|
2517
2520
|
selectedPlusMemberProduct: null,
|
|
2518
2521
|
plusMemberProducts: [],
|
|
@@ -2557,7 +2560,9 @@ function usePlusAnnualProductVariant() {
|
|
|
2557
2560
|
}, [plusMemberProducts, plusAnnual]);
|
|
2558
2561
|
return plusAnnualProductVariant;
|
|
2559
2562
|
}
|
|
2560
|
-
var useAvailableDeliveryCoupon = ({
|
|
2563
|
+
var useAvailableDeliveryCoupon = ({
|
|
2564
|
+
profile
|
|
2565
|
+
}) => {
|
|
2561
2566
|
const { data: availableDeliveryCoupon, isLoading } = useSWR(
|
|
2562
2567
|
profile?.email ? ["/api/multipass/subsrv/v1/prime/delivery_coupons/current/available", profile?.email] : void 0,
|
|
2563
2568
|
async ([apiPath]) => {
|