@graphcommerce/mollie-magento-payment 3.3.5 → 3.4.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`18054c441`](https://github.com/graphcommerce-org/graphcommerce/commit/18054c441962ba750bed3acc39ab46c8d3a341ce), [`c5c539c44`](https://github.com/graphcommerce-org/graphcommerce/commit/c5c539c44eeac524cd62ce649e132d2e00333794), [`6f69bc54c`](https://github.com/graphcommerce-org/graphcommerce/commit/6f69bc54c6e0224452817c532ae58d9c332b61ea), [`21886d6fa`](https://github.com/graphcommerce-org/graphcommerce/commit/21886d6fa64a48d9e932bfaf8d138c9b13c36e43)]:
|
|
8
|
+
- @graphcommerce/graphql@3.4.1
|
|
9
|
+
- @graphcommerce/graphql-mesh@4.1.5
|
|
10
|
+
- @graphcommerce/next-ui@4.13.1
|
|
11
|
+
- @graphcommerce/magento-cart@4.5.2
|
|
12
|
+
- @graphcommerce/magento-cart-payment-method@3.4.2
|
|
13
|
+
- @graphcommerce/magento-store@4.2.17
|
|
14
|
+
|
|
15
|
+
## 3.4.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`8d8fda262`](https://github.com/graphcommerce-org/graphcommerce/commit/8d8fda2623e561cb43441110c67ffa34b692668a), [`d41cff721`](https://github.com/graphcommerce-org/graphcommerce/commit/d41cff7211230561ceeb7786cf75790efd6377cd), [`cefa7b365`](https://github.com/graphcommerce-org/graphcommerce/commit/cefa7b3652b55108d2178927e3c5d98a111cf373)]:
|
|
20
|
+
- @graphcommerce/next-ui@4.13.0
|
|
21
|
+
- @graphcommerce/magento-store@4.2.16
|
|
22
|
+
- @graphcommerce/magento-cart@4.5.1
|
|
23
|
+
- @graphcommerce/magento-cart-payment-method@3.4.1
|
|
24
|
+
|
|
25
|
+
## 3.4.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- [#1544](https://github.com/graphcommerce-org/graphcommerce/pull/1544) [`5f927ebdc`](https://github.com/graphcommerce-org/graphcommerce/commit/5f927ebdc6f0331833e02b96e4f169bfe475ac6b) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Fixed hydration errors on account, cart and wishlist
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`5f927ebdc`](https://github.com/graphcommerce-org/graphcommerce/commit/5f927ebdc6f0331833e02b96e4f169bfe475ac6b), [`c87a28e7d`](https://github.com/graphcommerce-org/graphcommerce/commit/c87a28e7dad87bffd0bd125ad5fdca65aaa389cc), [`c756f42e5`](https://github.com/graphcommerce-org/graphcommerce/commit/c756f42e503761a497e4a5a7a02d02141df231c3)]:
|
|
34
|
+
- @graphcommerce/graphql@3.4.0
|
|
35
|
+
- @graphcommerce/magento-cart@4.5.0
|
|
36
|
+
- @graphcommerce/magento-cart-payment-method@3.4.0
|
|
37
|
+
- @graphcommerce/react-hook-form@3.3.0
|
|
38
|
+
- @graphcommerce/next-ui@4.12.0
|
|
39
|
+
- @graphcommerce/magento-store@4.2.15
|
|
40
|
+
|
|
3
41
|
## 3.3.5
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ import { MolliePlaceOrderDocument } from './MolliePlaceOrder.gql'
|
|
|
12
12
|
export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
13
13
|
const { step, code } = props
|
|
14
14
|
const { push } = useRouter()
|
|
15
|
-
const
|
|
15
|
+
const { currentCartId } = useCurrentCartId()
|
|
16
16
|
const [, lock] = useCartLockWithToken()
|
|
17
17
|
const { selectedMethod } = usePaymentMethodContext()
|
|
18
18
|
|
|
@@ -23,18 +23,18 @@ export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
const current = new URL(window.location.href.replace(window.location.hash, ''))
|
|
25
25
|
// current.searchParams.append('locked', '1')
|
|
26
|
-
current.searchParams.set('cart_id',
|
|
26
|
+
current.searchParams.set('cart_id', currentCartId ?? '')
|
|
27
27
|
current.searchParams.set('mollie_payment_token', 'PAYMENT_TOKEN')
|
|
28
28
|
current.searchParams.set('method', selectedMethod?.code ?? '')
|
|
29
29
|
current.searchParams.set('locked', '1')
|
|
30
30
|
const replaced = current.toString().replace('PAYMENT_TOKEN', '{{payment_token}}')
|
|
31
31
|
setValue('returnUrl', replaced)
|
|
32
|
-
}, [
|
|
32
|
+
}, [currentCartId, selectedMethod?.code, setValue])
|
|
33
33
|
|
|
34
34
|
const submit = handleSubmit(() => {})
|
|
35
35
|
|
|
36
36
|
useEffect(() => {
|
|
37
|
-
if (!data?.placeOrder?.order || error || !
|
|
37
|
+
if (!data?.placeOrder?.order || error || !currentCartId) return
|
|
38
38
|
const redirectUrl = data?.placeOrder?.order.mollie_redirect_url
|
|
39
39
|
const mollie_payment_token = data?.placeOrder?.order.mollie_payment_token
|
|
40
40
|
|
|
@@ -48,7 +48,7 @@ export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
|
48
48
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
49
49
|
push(redirectUrl)
|
|
50
50
|
}
|
|
51
|
-
}, [
|
|
51
|
+
}, [currentCartId, data?.placeOrder?.order, error, lock, push, selectedMethod?.code])
|
|
52
52
|
|
|
53
53
|
useFormCompose({ form, step, submit, key: `PaymentMethodPlaceOrder_${code}` })
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/mollie-magento-payment",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.4.2",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,24 +12,24 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.1.
|
|
16
|
-
"@graphcommerce/magento-cart-shipping-address": "3.2.
|
|
17
|
-
"@graphcommerce/magento-product": "4.4.
|
|
18
|
-
"@graphcommerce/magento-product-configurable": "4.1.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.9",
|
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "3.2.7",
|
|
17
|
+
"@graphcommerce/magento-product": "4.4.15",
|
|
18
|
+
"@graphcommerce/magento-product-configurable": "4.1.22",
|
|
19
19
|
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
20
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
20
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.4",
|
|
21
21
|
"@playwright/test": "^1.21.1",
|
|
22
22
|
"type-fest": "^2.12.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@graphcommerce/graphql": "3.
|
|
26
|
-
"@graphcommerce/graphql-mesh": "4.1.
|
|
25
|
+
"@graphcommerce/graphql": "3.4.1",
|
|
26
|
+
"@graphcommerce/graphql-mesh": "4.1.5",
|
|
27
27
|
"@graphcommerce/image": "3.1.7",
|
|
28
|
-
"@graphcommerce/magento-cart": "4.
|
|
29
|
-
"@graphcommerce/magento-cart-payment-method": "3.
|
|
30
|
-
"@graphcommerce/magento-store": "4.2.
|
|
31
|
-
"@graphcommerce/next-ui": "4.
|
|
32
|
-
"@graphcommerce/react-hook-form": "3.
|
|
28
|
+
"@graphcommerce/magento-cart": "4.5.2",
|
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "3.4.2",
|
|
30
|
+
"@graphcommerce/magento-store": "4.2.17",
|
|
31
|
+
"@graphcommerce/next-ui": "4.13.1",
|
|
32
|
+
"@graphcommerce/react-hook-form": "3.3.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@lingui/react": "^3.13.2",
|