@anker-in/shopify-react 1.3.0-beta.3 → 1.3.0-beta.5
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 +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +51 -23
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +52 -24
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +51 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -24
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +4 -4
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +3 -3
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/provider/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var Decimal3 = require('decimal.js');
|
|
8
8
|
var shopifyCore = require('@anker-in/shopify-core');
|
|
9
9
|
var useSWR = require('swr');
|
|
10
|
-
var
|
|
10
|
+
var useSWRMutation6 = require('swr/mutation');
|
|
11
11
|
var ahooks = require('ahooks');
|
|
12
12
|
|
|
13
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -15,7 +15,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
15
15
|
var Cookies5__default = /*#__PURE__*/_interopDefault(Cookies5);
|
|
16
16
|
var Decimal3__default = /*#__PURE__*/_interopDefault(Decimal3);
|
|
17
17
|
var useSWR__default = /*#__PURE__*/_interopDefault(useSWR);
|
|
18
|
-
var
|
|
18
|
+
var useSWRMutation6__default = /*#__PURE__*/_interopDefault(useSWRMutation6);
|
|
19
19
|
|
|
20
20
|
// src/provider/context.ts
|
|
21
21
|
var ShopifyContext = react.createContext(null);
|
|
@@ -796,7 +796,7 @@ function useRemoveCartLines(options) {
|
|
|
796
796
|
},
|
|
797
797
|
[client, locale, cartCookieAdapter, mutateCart, metafieldIdentifiers]
|
|
798
798
|
);
|
|
799
|
-
return
|
|
799
|
+
return useSWRMutation6__default.default("remove-cart-lines", removeLines, options);
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
// src/hooks/cart/feature/use-auto-remove-free-gifts.ts
|
|
@@ -1317,7 +1317,7 @@ function useUpdateCartAttributes({
|
|
|
1317
1317
|
},
|
|
1318
1318
|
[client, locale, cartCookieAdapter, mutate, metafieldIdentifiers, disabled]
|
|
1319
1319
|
);
|
|
1320
|
-
return
|
|
1320
|
+
return useSWRMutation6__default.default("update-cart-attributes", updateAttributes, swrOptions);
|
|
1321
1321
|
}
|
|
1322
1322
|
var CartContext = react.createContext(null);
|
|
1323
1323
|
function AutoRemoveGiftsHandler({
|