@graphcommerce/magento-payment-included 2.105.48 → 3.0.0

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,74 +1,95 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3
+ ## 3.0.0
5
4
 
6
- # [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)
5
+ ### Major Changes
7
6
 
7
+ - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
8
+ [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
9
+ Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
8
10
 
9
- ### Features
11
+ ### Patch Changes
10
12
 
11
- * added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
13
+ - Updated dependencies
14
+ [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
15
+ - @graphcommerce/graphql@3.0.0
16
+ - @graphcommerce/image@3.0.0
17
+ - @graphcommerce/magento-cart@4.0.0
18
+ - @graphcommerce/magento-cart-payment-method@3.0.0
19
+ - @graphcommerce/magento-store@4.0.0
20
+ - @graphcommerce/next-ui@4.0.0
21
+ - @graphcommerce/react-hook-form@3.0.0
12
22
 
23
+ All notable changes to this project will be documented in this file. See
24
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
13
25
 
26
+ # [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)
14
27
 
28
+ ### Features
15
29
 
30
+ - added tons of translations
31
+ ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
16
32
 
17
33
  # [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
34
 
19
-
20
35
  ### Features
21
36
 
22
- * **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
23
-
24
-
25
-
26
-
37
+ - **nextjs:** upgraded to nextjs 12
38
+ ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
27
39
 
28
40
  ## [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
41
 
30
42
  **Note:** Version bump only for package @graphcommerce/magento-payment-included
31
43
 
32
-
33
-
34
-
35
-
36
44
  # 2.103.0 (2021-09-27)
37
45
 
38
-
39
46
  ### Bug Fixes
40
47
 
41
- * **checkout:** purchaseorder and other build in methods wouldnt properly submit ([331cb8e](https://github.com/ho-nl/m2-pwa/commit/331cb8e2bed58c14cd41fceeab03e2cdfbe7e6a9))
42
- * ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
43
- * implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
44
- * paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
45
- * **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
46
-
48
+ - **checkout:** purchaseorder and other build in methods wouldnt properly submit
49
+ ([331cb8e](https://github.com/ho-nl/m2-pwa/commit/331cb8e2bed58c14cd41fceeab03e2cdfbe7e6a9))
50
+ - ignore md files from triggering version updates
51
+ ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
52
+ - implement next-ui barrel imports
53
+ ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
54
+ - paymentDone removed in favor of a more simple clearCart method
55
+ ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
56
+ - **playwright:** checkout button was renamed
57
+ ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
47
58
 
48
59
  ### Features
49
60
 
50
- * **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
51
- * **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
52
- * implemented checkmo payment method ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
53
- * implemented purchase order ([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
54
- * **mollie:** first version of mollie payment methods ([e2f7d78](https://github.com/ho-nl/m2-pwa/commit/e2f7d78e50a9afe928f1d8c478f946e03c63b0f2))
55
- * next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
56
- * only show free payment method when zero subtotal quote ([fd3ba86](https://github.com/ho-nl/m2-pwa/commit/fd3ba86d3060ebe7dc72ce27fca21464b46b4392))
57
- * **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
58
- * **react-hook-form:** added buttonState to ComposedSubmit ([57e77c2](https://github.com/ho-nl/m2-pwa/commit/57e77c29f17720f7f3ee3b63be82779c0e5d8714))
59
- * renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
60
- * solve issue where the order couldn’t be submitted ([ec0d357](https://github.com/ho-nl/m2-pwa/commit/ec0d3579a1277976e2dc515f420996cf716f83a6))
61
- * upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
62
- * useFormMutationCart and simpler imports ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
63
-
61
+ - **graphql:** introduced new graphql package that holds all generated files
62
+ ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
63
+ - **image:** introduced completely rewritten Image component
64
+ ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
65
+ - implemented checkmo payment method
66
+ ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
67
+ - implemented purchase order
68
+ ([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
69
+ - **mollie:** first version of mollie payment methods
70
+ ([e2f7d78](https://github.com/ho-nl/m2-pwa/commit/e2f7d78e50a9afe928f1d8c478f946e03c63b0f2))
71
+ - next.js 11
72
+ ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
73
+ - only show free payment method when zero subtotal quote
74
+ ([fd3ba86](https://github.com/ho-nl/m2-pwa/commit/fd3ba86d3060ebe7dc72ce27fca21464b46b4392))
75
+ - **playwright:** added new playwright package to enable browser testing
76
+ ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
77
+ - **react-hook-form:** added buttonState to ComposedSubmit
78
+ ([57e77c2](https://github.com/ho-nl/m2-pwa/commit/57e77c29f17720f7f3ee3b63be82779c0e5d8714))
79
+ - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
80
+ [@reachdigital](https://github.com/reachdigital)
81
+ ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
82
+ - solve issue where the order couldn’t be submitted
83
+ ([ec0d357](https://github.com/ho-nl/m2-pwa/commit/ec0d3579a1277976e2dc515f420996cf716f83a6))
84
+ - upgraded to nextjs 11
85
+ ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
86
+ - useFormMutationCart and simpler imports
87
+ ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
64
88
 
65
89
  ### Reverts
66
90
 
67
- * Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
68
-
69
-
70
-
71
-
91
+ - Revert "chore: upgrade @apollo/client"
92
+ ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
72
93
 
73
94
  # Change Log
74
95
 
@@ -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 { TextField, Typography } from '@material-ui/core'
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,8 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-payment-included",
3
- "version": "2.105.48",
3
+ "version": "3.0.0",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
- "browserslist": [
7
- "extends @graphcommerce/browserslist-config-pwa"
8
- ],
9
6
  "eslintConfig": {
10
7
  "extends": "@graphcommerce/eslint-config-pwa",
11
8
  "parserOptions": {
@@ -13,33 +10,28 @@
13
10
  }
14
11
  },
15
12
  "devDependencies": {
16
- "@graphcommerce/browserslist-config-pwa": "^3.0.3",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.10",
18
- "@graphcommerce/magento-cart-shipping-address": "^2.106.47",
19
- "@graphcommerce/magento-product": "^3.8.13",
20
- "@graphcommerce/magento-product-configurable": "^3.6.43",
21
- "@graphcommerce/prettier-config-pwa": "^3.0.5",
22
- "@graphcommerce/typescript-config-pwa": "^3.1.2",
23
- "@playwright/test": "^1.17.1"
13
+ "@graphcommerce/eslint-config-pwa": "^4.0.0",
14
+ "@graphcommerce/magento-cart-shipping-address": "^3.0.0",
15
+ "@graphcommerce/magento-product": "^4.0.0",
16
+ "@graphcommerce/magento-product-configurable": "^4.0.0",
17
+ "@graphcommerce/prettier-config-pwa": "^4.0.0",
18
+ "@graphcommerce/typescript-config-pwa": "^4.0.0",
19
+ "@playwright/test": "^1.18.1"
24
20
  },
25
21
  "dependencies": {
26
- "@apollo/client": "^3.5.6",
27
- "@graphcommerce/graphql": "^2.105.13",
28
- "@graphcommerce/image": "^2.105.13",
29
- "@graphcommerce/magento-cart": "^3.10.3",
30
- "@graphcommerce/magento-cart-payment-method": "^2.111.47",
31
- "@graphcommerce/magento-store": "^3.4.12",
32
- "@graphcommerce/next-ui": "^3.25.3",
33
- "@graphcommerce/react-hook-form": "^2.104.7",
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",
22
+ "@graphcommerce/graphql": "^3.0.0",
23
+ "@graphcommerce/image": "^3.0.0",
24
+ "@graphcommerce/magento-cart": "^4.0.0",
25
+ "@graphcommerce/magento-cart-payment-method": "^3.0.0",
26
+ "@graphcommerce/magento-store": "^4.0.0",
27
+ "@graphcommerce/next-ui": "^4.0.0",
28
+ "@graphcommerce/react-hook-form": "^3.0.0",
29
+ "@lingui/macro": "^3.13.2",
30
+ "@mui/material": "^5.4.1",
31
+ "framer-motion": "^6.2.4",
32
+ "next": "^12.0.10",
40
33
  "react": "^17.0.2",
41
34
  "react-dom": "^17.0.2",
42
- "type-fest": "^2.8.0"
43
- },
44
- "gitHead": "41e42c8cd6f565ab0cbba81a1954a0041dc46768"
35
+ "type-fest": "^2.11.2"
36
+ }
45
37
  }