merchi_cart 1.2.0 → 1.2.2
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/README.md +2 -1
- package/esm/CartProvider.js +93 -57
- package/esm/forms/index.js +3 -3
- package/lib/CartProvider.js +93 -57
- package/lib/forms/index.js +11 -2
- package/package.json +1 -1
- package/src/CartProvider.tsx +15 -0
- package/src/forms/index.ts +2 -1
package/README.md
CHANGED
|
@@ -31,7 +31,8 @@ yarn add merchi_cart
|
|
|
31
31
|
context functions:
|
|
32
32
|
setCartComplete - Resets the cart
|
|
33
33
|
refetchCart - refetches the cart
|
|
34
|
-
createCartAndCookie
|
|
34
|
+
createCartAndCookie - clears and resets the cart with a new cookie
|
|
35
|
+
getCartShipmentOptions - refetches the cart shipment options
|
|
35
36
|
|
|
36
37
|
window functions:
|
|
37
38
|
addCartItem - takes job json and creates a cart item
|