@graphcommerce/magento-cart-payment-method 3.6.7 → 3.6.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1688](https://github.com/graphcommerce-org/graphcommerce/pull/1688) [`f544401c7`](https://github.com/graphcommerce-org/graphcommerce/commit/f544401c7b653fda39c7c260ad0dcfb3bf543b65) Thanks [@paales](https://github.com/paales)! - Return the promise when changing the URL
8
+
9
+ - Updated dependencies [[`8393cb266`](https://github.com/graphcommerce-org/graphcommerce/commit/8393cb2662860be0c2aa5df432447bb73c427d8e), [`f544401c7`](https://github.com/graphcommerce-org/graphcommerce/commit/f544401c7b653fda39c7c260ad0dcfb3bf543b65), [`f105d4223`](https://github.com/graphcommerce-org/graphcommerce/commit/f105d4223aa68df30970149e51ae72897e489bf9)]:
10
+ - @graphcommerce/next-ui@4.29.3
11
+ - @graphcommerce/framer-scroller@2.1.45
12
+ - @graphcommerce/magento-cart@4.9.4
13
+ - @graphcommerce/magento-store@4.3.6
14
+
3
15
  ## 3.6.7
4
16
 
5
17
  ### Patch Changes
@@ -20,17 +20,17 @@ export function useCartLock<E extends CartLockState>() {
20
20
  const [queryState, setRouterQuery] = useUrlQuery<E>()
21
21
 
22
22
  const lock = (params: Omit<E, 'locked' | 'cart_id'>) => {
23
- if (!currentCartId) return
23
+ if (!currentCartId) return undefined
24
24
  setJustLocked(true)
25
- setRouterQuery({
25
+ return setRouterQuery({
26
26
  locked: '1',
27
27
  cart_id: currentCartId,
28
28
  ...params,
29
29
  } as unknown as E)
30
30
  }
31
31
 
32
- const unlock = (params: Omit<E, 'locked' | 'cart_id' | 'method'>) => {
33
- setRouterQuery({ cart_id: null, locked: null, method: null, ...params } as E)
32
+ const unlock = async (params: Omit<E, 'locked' | 'cart_id' | 'method'>) => {
33
+ await setRouterQuery({ cart_id: null, locked: null, method: null, ...params } as E)
34
34
  return queryState
35
35
  }
36
36
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-payment-method",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.6.7",
5
+ "version": "3.6.8",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -15,17 +15,17 @@
15
15
  "@graphcommerce/eslint-config-pwa": "^4.1.10",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.4",
18
- "@graphcommerce/magento-cart-shipping-address": "3.5.7",
18
+ "@graphcommerce/magento-cart-shipping-address": "3.5.8",
19
19
  "@playwright/test": "^1.21.1",
20
20
  "type-fest": "^2.12.2"
21
21
  },
22
22
  "dependencies": {
23
- "@graphcommerce/framer-scroller": "2.1.44",
23
+ "@graphcommerce/framer-scroller": "2.1.45",
24
24
  "@graphcommerce/graphql": "3.5.0",
25
25
  "@graphcommerce/image": "3.1.10",
26
- "@graphcommerce/magento-cart": "4.9.3",
27
- "@graphcommerce/magento-store": "4.3.5",
28
- "@graphcommerce/next-ui": "4.29.2",
26
+ "@graphcommerce/magento-cart": "4.9.4",
27
+ "@graphcommerce/magento-store": "4.3.6",
28
+ "@graphcommerce/next-ui": "4.29.3",
29
29
  "@graphcommerce/react-hook-form": "3.3.5"
30
30
  },
31
31
  "peerDependencies": {