@graphcommerce/magento-payment-included 2.105.48 → 3.0.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 +118 -44
- package/PurchaseOrder/PurchaseOrderOptions.tsx +4 -3
- package/package.json +26 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,74 +1,148 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
8
|
+
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
|
|
9
|
+
Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
|
|
10
|
+
`dependencies` to `peerDependencies`. The result of this is that there will be significantly less
|
|
11
|
+
duplicate packages in the node_modules folders.
|
|
12
|
+
|
|
13
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
14
|
+
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
15
|
+
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
16
|
+
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
17
|
+
implementing
|
|
18
|
+
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
19
|
+
soon.
|
|
20
|
+
|
|
21
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
22
|
+
frontend to be able to revalidate pages manually.
|
|
23
|
+
|
|
24
|
+
* Updated dependencies
|
|
25
|
+
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
26
|
+
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
27
|
+
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
28
|
+
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
29
|
+
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
30
|
+
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
31
|
+
- @graphcommerce/magento-cart@4.1.1
|
|
32
|
+
- @graphcommerce/magento-cart-payment-method@3.0.2
|
|
33
|
+
- @graphcommerce/next-ui@4.1.1
|
|
34
|
+
- @graphcommerce/react-hook-form@3.0.2
|
|
35
|
+
- @graphcommerce/graphql@3.0.2
|
|
36
|
+
- @graphcommerce/image@3.0.2
|
|
37
|
+
- @graphcommerce/magento-store@4.0.2
|
|
38
|
+
|
|
39
|
+
## 3.0.1
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
44
|
+
Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
|
|
45
|
+
so that the packages link to back to the website and repository
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
48
|
+
- @graphcommerce/graphql@3.0.1
|
|
49
|
+
- @graphcommerce/image@3.0.1
|
|
50
|
+
- @graphcommerce/magento-cart@4.0.1
|
|
51
|
+
- @graphcommerce/magento-cart-payment-method@3.0.1
|
|
52
|
+
- @graphcommerce/magento-store@4.0.1
|
|
53
|
+
- @graphcommerce/next-ui@4.0.1
|
|
54
|
+
- @graphcommerce/react-hook-form@3.0.1
|
|
55
|
+
|
|
56
|
+
## 3.0.0
|
|
57
|
+
|
|
58
|
+
### Major Changes
|
|
59
|
+
|
|
60
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
61
|
+
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
62
|
+
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- Updated dependencies
|
|
67
|
+
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
68
|
+
- @graphcommerce/graphql@3.0.0
|
|
69
|
+
- @graphcommerce/image@3.0.0
|
|
70
|
+
- @graphcommerce/magento-cart@4.0.0
|
|
71
|
+
- @graphcommerce/magento-cart-payment-method@3.0.0
|
|
72
|
+
- @graphcommerce/magento-store@4.0.0
|
|
73
|
+
- @graphcommerce/next-ui@4.0.0
|
|
74
|
+
- @graphcommerce/react-hook-form@3.0.0
|
|
5
75
|
|
|
6
|
-
|
|
76
|
+
All notable changes to this project will be documented in this file. See
|
|
77
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
78
|
|
|
79
|
+
# [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-included@2.104.32...@graphcommerce/magento-payment-included@2.105.0) (2021-11-12)
|
|
8
80
|
|
|
9
81
|
### Features
|
|
10
82
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
83
|
+
- added tons of translations
|
|
84
|
+
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
16
85
|
|
|
17
86
|
# [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-included@2.103.39...@graphcommerce/magento-payment-included@2.104.0) (2021-10-27)
|
|
18
87
|
|
|
19
|
-
|
|
20
88
|
### Features
|
|
21
89
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
90
|
+
- **nextjs:** upgraded to nextjs 12
|
|
91
|
+
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
27
92
|
|
|
28
93
|
## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-included@2.103.0...@graphcommerce/magento-payment-included@2.103.1) (2021-09-27)
|
|
29
94
|
|
|
30
95
|
**Note:** Version bump only for package @graphcommerce/magento-payment-included
|
|
31
96
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
97
|
# 2.103.0 (2021-09-27)
|
|
37
98
|
|
|
38
|
-
|
|
39
99
|
### Bug Fixes
|
|
40
100
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
101
|
+
- **checkout:** purchaseorder and other build in methods wouldnt properly submit
|
|
102
|
+
([331cb8e](https://github.com/ho-nl/m2-pwa/commit/331cb8e2bed58c14cd41fceeab03e2cdfbe7e6a9))
|
|
103
|
+
- ignore md files from triggering version updates
|
|
104
|
+
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
105
|
+
- implement next-ui barrel imports
|
|
106
|
+
([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
|
107
|
+
- paymentDone removed in favor of a more simple clearCart method
|
|
108
|
+
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
109
|
+
- **playwright:** checkout button was renamed
|
|
110
|
+
([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
|
|
47
111
|
|
|
48
112
|
### Features
|
|
49
113
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
114
|
+
- **graphql:** introduced new graphql package that holds all generated files
|
|
115
|
+
([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
|
116
|
+
- **image:** introduced completely rewritten Image component
|
|
117
|
+
([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
|
118
|
+
- implemented checkmo payment method
|
|
119
|
+
([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
|
|
120
|
+
- implemented purchase order
|
|
121
|
+
([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
|
|
122
|
+
- **mollie:** first version of mollie payment methods
|
|
123
|
+
([e2f7d78](https://github.com/ho-nl/m2-pwa/commit/e2f7d78e50a9afe928f1d8c478f946e03c63b0f2))
|
|
124
|
+
- next.js 11
|
|
125
|
+
([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
126
|
+
- only show free payment method when zero subtotal quote
|
|
127
|
+
([fd3ba86](https://github.com/ho-nl/m2-pwa/commit/fd3ba86d3060ebe7dc72ce27fca21464b46b4392))
|
|
128
|
+
- **playwright:** added new playwright package to enable browser testing
|
|
129
|
+
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
130
|
+
- **react-hook-form:** added buttonState to ComposedSubmit
|
|
131
|
+
([57e77c2](https://github.com/ho-nl/m2-pwa/commit/57e77c29f17720f7f3ee3b63be82779c0e5d8714))
|
|
132
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
133
|
+
[@reachdigital](https://github.com/reachdigital)
|
|
134
|
+
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
135
|
+
- solve issue where the order couldn’t be submitted
|
|
136
|
+
([ec0d357](https://github.com/ho-nl/m2-pwa/commit/ec0d3579a1277976e2dc515f420996cf716f83a6))
|
|
137
|
+
- upgraded to nextjs 11
|
|
138
|
+
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
139
|
+
- useFormMutationCart and simpler imports
|
|
140
|
+
([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
64
141
|
|
|
65
142
|
### Reverts
|
|
66
143
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
144
|
+
- Revert "chore: upgrade @apollo/client"
|
|
145
|
+
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
72
146
|
|
|
73
147
|
# Change Log
|
|
74
148
|
|
|
@@ -2,12 +2,13 @@ import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
|
|
2
2
|
import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
|
3
3
|
import { FormRow, InputCheckmark } from '@graphcommerce/next-ui'
|
|
4
4
|
import { useFormCompose, useFormValidFields } from '@graphcommerce/react-hook-form'
|
|
5
|
-
import {
|
|
5
|
+
import { Trans } from '@lingui/macro'
|
|
6
|
+
import { TextField, Typography } from '@mui/material'
|
|
6
7
|
import React from 'react'
|
|
7
8
|
import { PurchaseOrderOptionsDocument } from './PurchaseOrderOptions.gql'
|
|
8
9
|
|
|
9
10
|
function PurchaseOrderOptions(props: PaymentOptionsProps) {
|
|
10
|
-
const { code, step, selected, Container, title } = props
|
|
11
|
+
const { code, step, selected, Container, title = '' } = props
|
|
11
12
|
const poNumber = selected?.purchase_order_number ?? undefined
|
|
12
13
|
|
|
13
14
|
const form = useFormGqlMutationCart(PurchaseOrderOptionsDocument, {
|
|
@@ -23,7 +24,7 @@ function PurchaseOrderOptions(props: PaymentOptionsProps) {
|
|
|
23
24
|
return (
|
|
24
25
|
<Container>
|
|
25
26
|
<Typography variant='h5' component='span'>
|
|
26
|
-
Pay with {title}
|
|
27
|
+
<Trans>Pay with {title}</Trans>
|
|
27
28
|
</Typography>
|
|
28
29
|
<form onSubmit={submit} noValidate>
|
|
29
30
|
<FormRow>
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-payment-included",
|
|
3
|
-
"
|
|
3
|
+
"homepage": "https://www.graphcommerce.org/",
|
|
4
|
+
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
+
"version": "3.0.2",
|
|
4
6
|
"sideEffects": false,
|
|
5
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
|
-
"browserslist": [
|
|
7
|
-
"extends @graphcommerce/browserslist-config-pwa"
|
|
8
|
-
],
|
|
9
8
|
"eslintConfig": {
|
|
10
9
|
"extends": "@graphcommerce/eslint-config-pwa",
|
|
11
10
|
"parserOptions": {
|
|
@@ -13,33 +12,30 @@
|
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
"devDependencies": {
|
|
16
|
-
"@graphcommerce/
|
|
17
|
-
"@graphcommerce/
|
|
18
|
-
"@graphcommerce/magento-
|
|
19
|
-
"@graphcommerce/magento-product": "^
|
|
20
|
-
"@graphcommerce/
|
|
21
|
-
"@graphcommerce/
|
|
22
|
-
"@
|
|
23
|
-
"@playwright/test": "^1.17.1"
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.2",
|
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.2",
|
|
17
|
+
"@graphcommerce/magento-product": "^4.0.2",
|
|
18
|
+
"@graphcommerce/magento-product-configurable": "^4.0.2",
|
|
19
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.1",
|
|
20
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.1",
|
|
21
|
+
"@playwright/test": "^1.19.1"
|
|
24
22
|
},
|
|
25
23
|
"dependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@graphcommerce/
|
|
28
|
-
"@graphcommerce/
|
|
29
|
-
"@graphcommerce/magento-cart": "^3.
|
|
30
|
-
"@graphcommerce/magento-
|
|
31
|
-
"@graphcommerce/
|
|
32
|
-
"@graphcommerce/
|
|
33
|
-
"
|
|
34
|
-
"@lingui/macro": "^3.13.0",
|
|
35
|
-
"@material-ui/core": "^4.12.3",
|
|
36
|
-
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
37
|
-
"clsx": "^1.1.1",
|
|
38
|
-
"framer-motion": "^5.5.5",
|
|
39
|
-
"next": "^12.0.7",
|
|
40
|
-
"react": "^17.0.2",
|
|
41
|
-
"react-dom": "^17.0.2",
|
|
42
|
-
"type-fest": "^2.8.0"
|
|
24
|
+
"@graphcommerce/graphql": "^3.0.2",
|
|
25
|
+
"@graphcommerce/image": "^3.0.2",
|
|
26
|
+
"@graphcommerce/magento-cart": "^4.1.1",
|
|
27
|
+
"@graphcommerce/magento-cart-payment-method": "^3.0.2",
|
|
28
|
+
"@graphcommerce/magento-store": "^4.0.2",
|
|
29
|
+
"@graphcommerce/next-ui": "^4.1.1",
|
|
30
|
+
"@graphcommerce/react-hook-form": "^3.0.2",
|
|
31
|
+
"type-fest": "^2.11.2"
|
|
43
32
|
},
|
|
44
|
-
"
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@lingui/macro": "^3.13.2",
|
|
35
|
+
"@mui/material": "^5.4.1",
|
|
36
|
+
"framer-motion": "^6.2.4",
|
|
37
|
+
"next": "^12.0.10",
|
|
38
|
+
"react": "^17.0.2",
|
|
39
|
+
"react-dom": "^17.0.2"
|
|
40
|
+
}
|
|
45
41
|
}
|