@graphcommerce/magento-cart-shipping-address 9.0.1-canary.0 → 9.0.1-canary.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,132 +1,52 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 9.0.1-canary.
|
|
4
|
-
|
|
5
|
-
## 9.0.0
|
|
6
|
-
|
|
7
|
-
### Minor Changes
|
|
8
|
-
|
|
9
|
-
- [#2319](https://github.com/graphcommerce-org/graphcommerce/pull/2319) [`a3409e8`](https://github.com/graphcommerce-org/graphcommerce/commit/a3409e8a629ee95413da6547cbdcf48aa2502c23) - Created a new `<TelephoneElement />` component to make re-use easier. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
10
|
-
|
|
11
|
-
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Added `<CompanyFields/>` with `<CompanyName />` and `<CompanyVAT />` to shipping and billing forms. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
12
|
-
|
|
13
|
-
- [#2307](https://github.com/graphcommerce-org/graphcommerce/pull/2307) [`20cb571`](https://github.com/graphcommerce-org/graphcommerce/commit/20cb57171ae5bff0b86a341ea4db59ea3f4f639a) - Add a 'save in address book' checkbox to the shipping address form. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
14
|
-
|
|
15
|
-
- [#2313](https://github.com/graphcommerce-org/graphcommerce/pull/2313) [`511e75c`](https://github.com/graphcommerce-org/graphcommerce/commit/511e75c3f8c077e617ed17e5042796e2411f312f) - Add the `customerNote` field to the shipping and customer address forms. Added configuration `customerAddressNoteEnable` to enable or disable the field. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
16
|
-
|
|
17
|
-
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename `experimental_useV2` prop to `deprecated_useV1` in `useFromGql` and enable it by default. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`3043f94`](https://github.com/graphcommerce-org/graphcommerce/commit/3043f945c4caa2931c46f1f9ad940fd80b07e999) - In the shipping step show errors with a `<ApolloCartErrorSnackbar />` instead of a `<ApolloCartErrorAlert />`. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
22
|
-
|
|
23
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`0767bc4`](https://github.com/graphcommerce-org/graphcommerce/commit/0767bc40f7b596209f24ca4e745ff0441f3275c9) - Upgrade input components to no longer use `muiRegister`, which improves INP scores. ([@FrankHarland](https://github.com/FrankHarland))
|
|
24
|
-
|
|
25
|
-
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`3101681`](https://github.com/graphcommerce-org/graphcommerce/commit/3101681180e1a5a0cfba1bb89d72deb02cafdbbf) - When saving a shipping address it would always save the company after it was once saved. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
26
|
-
|
|
27
|
-
- [#2295](https://github.com/graphcommerce-org/graphcommerce/pull/2295) [`0ca6827`](https://github.com/graphcommerce-org/graphcommerce/commit/0ca682793bf7feb0cae2bd776a4eaa2899d980a0) - Fixed shipping address not getting set for logged-in customers with default address. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
28
|
-
|
|
29
|
-
- [#2300](https://github.com/graphcommerce-org/graphcommerce/pull/2300) [`19adebe`](https://github.com/graphcommerce-org/graphcommerce/commit/19adebe2ff896c65d21543fc9243a36393747e06) - Fixed `<CustomerAddressForm/>` resetting to a saved address when trying to use a new address. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
30
|
-
|
|
31
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of `useFormPersist` to the `<FormPersist/>` component to prevent rerenders. ([@FrankHarland](https://github.com/FrankHarland))
|
|
32
|
-
|
|
33
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`43bd04a`](https://github.com/graphcommerce-org/graphcommerce/commit/43bd04a777c5800cc7e01bee1e123a5aad82f194) - The billing and shipping address of a customer would not be recognized as the same address although they would effectively be the same ([@FrankHarland](https://github.com/FrankHarland))
|
|
34
|
-
|
|
35
|
-
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Fix bug with persist not applying saved changes by moving `<FromPersist/>` below the form components. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
36
|
-
|
|
37
|
-
- [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
38
|
-
|
|
39
|
-
## 9.0.0-canary.118
|
|
40
|
-
|
|
41
|
-
## 9.0.0-canary.117
|
|
42
|
-
|
|
43
|
-
## 9.0.0-canary.116
|
|
44
|
-
|
|
45
|
-
## 9.0.0-canary.115
|
|
46
|
-
|
|
47
|
-
## 9.0.0-canary.114
|
|
48
|
-
|
|
49
|
-
## 9.0.0-canary.113
|
|
50
|
-
|
|
51
|
-
## 9.0.0-canary.112
|
|
52
|
-
|
|
53
|
-
## 9.0.0-canary.111
|
|
54
|
-
|
|
55
|
-
## 9.0.0-canary.110
|
|
56
|
-
|
|
57
|
-
## 9.0.0-canary.109
|
|
58
|
-
|
|
59
|
-
## 9.0.0-canary.108
|
|
3
|
+
## 9.0.1-canary.2
|
|
60
4
|
|
|
61
5
|
### Patch Changes
|
|
62
6
|
|
|
63
|
-
- [#
|
|
64
|
-
|
|
65
|
-
## 9.0.0-canary.107
|
|
66
|
-
|
|
67
|
-
## 9.0.0-canary.106
|
|
68
|
-
|
|
69
|
-
## 9.0.0-canary.105
|
|
70
|
-
|
|
71
|
-
## 9.0.0-canary.104
|
|
72
|
-
|
|
73
|
-
## 9.0.0-canary.103
|
|
7
|
+
- [#2465](https://github.com/graphcommerce-org/graphcommerce/pull/2465) [`b11f29a`](https://github.com/graphcommerce-org/graphcommerce/commit/b11f29a9253cdcd54ed1e0a58abc2ef2f2bb3ebd) - Make sure we are toggling the selected shipping method when a user selects a previously selected shipping method ([@paales](https://github.com/paales))
|
|
74
8
|
|
|
75
|
-
## 9.0.
|
|
76
|
-
|
|
77
|
-
### Minor Changes
|
|
78
|
-
|
|
79
|
-
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename experimental_useV2 prop to deprecated_useV1 in useFromGql and enable it by default ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
9
|
+
## 9.0.1-canary.1
|
|
80
10
|
|
|
81
11
|
### Patch Changes
|
|
82
12
|
|
|
83
|
-
- [#
|
|
84
|
-
|
|
85
|
-
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`3101681`](https://github.com/graphcommerce-org/graphcommerce/commit/3101681180e1a5a0cfba1bb89d72deb02cafdbbf) - When saving a shipping address it would always save the company after it was once saved. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
13
|
+
- [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`3066a2f`](https://github.com/graphcommerce-org/graphcommerce/commit/3066a2fea83b40ca2ab96987adf1261f63d24e77) - When a Customer deselected their shipping address, but had a shipping note filled in it would try to submit the form causing an error. By making the customer_address_id field required we prevent this. ([@paales](https://github.com/paales))
|
|
86
14
|
|
|
87
|
-
##
|
|
15
|
+
## 9.0.0
|
|
88
16
|
|
|
89
|
-
###
|
|
17
|
+
### Major Changes
|
|
90
18
|
|
|
91
|
-
- [#
|
|
19
|
+
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Added `<CompanyFields/>` with `<CompanyName />` and `<CompanyVAT />` to shipping and billing forms. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
92
20
|
|
|
93
|
-
|
|
21
|
+
- [#2307](https://github.com/graphcommerce-org/graphcommerce/pull/2307) [`20cb571`](https://github.com/graphcommerce-org/graphcommerce/commit/20cb57171ae5bff0b86a341ea4db59ea3f4f639a) - Add a 'Save in address book' checkbox to the shipping address form. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
94
22
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
- [#2307](https://github.com/graphcommerce-org/graphcommerce/pull/2307) [`20cb571`](https://github.com/graphcommerce-org/graphcommerce/commit/20cb57171ae5bff0b86a341ea4db59ea3f4f639a) - Add save in address book checkbox to shipping address form ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
23
|
+
- [#2313](https://github.com/graphcommerce-org/graphcommerce/pull/2313) [`511e75c`](https://github.com/graphcommerce-org/graphcommerce/commit/511e75c3f8c077e617ed17e5042796e2411f312f) - Add the `customerNote` field to the shipping and customer address forms. Added configuration `customerAddressNoteEnable` to enable or disable the field. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
98
24
|
|
|
99
|
-
|
|
25
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - INP improvements: Moved all usages of `useFormPersist` to the `<FormPersist/>` component to prevent rerenders. ([@FrankHarland](https://github.com/FrankHarland))
|
|
100
26
|
|
|
101
27
|
### Minor Changes
|
|
102
28
|
|
|
103
|
-
- [#
|
|
104
|
-
|
|
105
|
-
### Patch Changes
|
|
106
|
-
|
|
107
|
-
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Fix bug with persist not applying saved changes by moving <FromPersist/> below the form components ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
108
|
-
|
|
109
|
-
## 8.1.0-canary.37
|
|
29
|
+
- [#2319](https://github.com/graphcommerce-org/graphcommerce/pull/2319) [`a3409e8`](https://github.com/graphcommerce-org/graphcommerce/commit/a3409e8a629ee95413da6547cbdcf48aa2502c23) - Created a new `<TelephoneElement />` component to make re-use easier. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
110
30
|
|
|
111
31
|
### Patch Changes
|
|
112
32
|
|
|
113
|
-
- [#
|
|
33
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename `experimental_useV2` prop to `deprecated_useV1` in `useFromGql` and enable it by default. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
114
34
|
|
|
115
|
-
|
|
35
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`3043f94`](https://github.com/graphcommerce-org/graphcommerce/commit/3043f945c4caa2931c46f1f9ad940fd80b07e999) - In the shipping step show errors with a `<ApolloCartErrorSnackbar />` instead of a `<ApolloCartErrorAlert />`. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
116
36
|
|
|
117
|
-
|
|
37
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`0767bc4`](https://github.com/graphcommerce-org/graphcommerce/commit/0767bc40f7b596209f24ca4e745ff0441f3275c9) - Upgrade input components to no longer use `muiRegister`, which improves INP scores. ([@FrankHarland](https://github.com/FrankHarland))
|
|
118
38
|
|
|
119
|
-
- [#
|
|
39
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`3101681`](https://github.com/graphcommerce-org/graphcommerce/commit/3101681180e1a5a0cfba1bb89d72deb02cafdbbf) - When saving a shipping address it would always save the company after it was once saved. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
120
40
|
|
|
121
|
-
|
|
41
|
+
- [#2295](https://github.com/graphcommerce-org/graphcommerce/pull/2295) [`0ca6827`](https://github.com/graphcommerce-org/graphcommerce/commit/0ca682793bf7feb0cae2bd776a4eaa2899d980a0) - Fixed shipping address not getting set for logged-in customers with default address. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
122
42
|
|
|
123
|
-
|
|
43
|
+
- [#2300](https://github.com/graphcommerce-org/graphcommerce/pull/2300) [`19adebe`](https://github.com/graphcommerce-org/graphcommerce/commit/19adebe2ff896c65d21543fc9243a36393747e06) - Fixed `<CustomerAddressForm/>` resetting to a saved address when trying to use a new address. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
124
44
|
|
|
125
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`
|
|
45
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`43bd04a`](https://github.com/graphcommerce-org/graphcommerce/commit/43bd04a777c5800cc7e01bee1e123a5aad82f194) - The billing and shipping address of a customer would not be recognized as the same address although they would effectively be the same ([@FrankHarland](https://github.com/FrankHarland))
|
|
126
46
|
|
|
127
|
-
- [#
|
|
47
|
+
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Fix bug with persist not applying saved changes by moving `<FromPersist/>` below the form components. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
128
48
|
|
|
129
|
-
- [#
|
|
49
|
+
- [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
130
50
|
|
|
131
51
|
## 8.0.5
|
|
132
52
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useFormGqlMutationCart,
|
|
14
14
|
} from '@graphcommerce/magento-cart'
|
|
15
15
|
import { CustomerDocument } from '@graphcommerce/magento-customer'
|
|
16
|
-
import {
|
|
16
|
+
import { filterNonNullableKeys, FormRow } from '@graphcommerce/next-ui'
|
|
17
17
|
import { i18n } from '@lingui/core'
|
|
18
18
|
import { Trans } from '@lingui/macro'
|
|
19
19
|
import type { SxProps, Theme } from '@mui/material'
|
|
@@ -86,7 +86,6 @@ export function CustomerAddressForm(props: CustomerAddressListProps) {
|
|
|
86
86
|
}
|
|
87
87
|
>(Mutation, {
|
|
88
88
|
defaultValues: { customer_address_id: cartAddressId },
|
|
89
|
-
skipUnchanged: true,
|
|
90
89
|
onBeforeSubmit: (vars) => {
|
|
91
90
|
const { customer_address_id } = vars
|
|
92
91
|
if (customer_address_id === -1) return false
|
|
@@ -158,6 +157,7 @@ export function CustomerAddressForm(props: CustomerAddressListProps) {
|
|
|
158
157
|
collapse
|
|
159
158
|
size='large'
|
|
160
159
|
color='secondary'
|
|
160
|
+
required
|
|
161
161
|
items={[
|
|
162
162
|
...customerAddresses.map((address) => ({ ...address, value: address.id })),
|
|
163
163
|
{ value: -1 },
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-shipping-address",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.1-canary.
|
|
5
|
+
"version": "9.0.1-canary.2",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.1-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.1-canary.
|
|
17
|
-
"@graphcommerce/graphql": "^9.0.1-canary.
|
|
18
|
-
"@graphcommerce/graphql-mesh": "^9.0.1-canary.
|
|
19
|
-
"@graphcommerce/image": "^9.0.1-canary.
|
|
20
|
-
"@graphcommerce/magento-cart": "^9.0.1-canary.
|
|
21
|
-
"@graphcommerce/magento-customer": "^9.0.1-canary.
|
|
22
|
-
"@graphcommerce/magento-store": "^9.0.1-canary.
|
|
23
|
-
"@graphcommerce/next-ui": "^9.0.1-canary.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.1-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.1-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.1-canary.2",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.1-canary.2",
|
|
17
|
+
"@graphcommerce/graphql": "^9.0.1-canary.2",
|
|
18
|
+
"@graphcommerce/graphql-mesh": "^9.0.1-canary.2",
|
|
19
|
+
"@graphcommerce/image": "^9.0.1-canary.2",
|
|
20
|
+
"@graphcommerce/magento-cart": "^9.0.1-canary.2",
|
|
21
|
+
"@graphcommerce/magento-customer": "^9.0.1-canary.2",
|
|
22
|
+
"@graphcommerce/magento-store": "^9.0.1-canary.2",
|
|
23
|
+
"@graphcommerce/next-ui": "^9.0.1-canary.2",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.1-canary.2",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.1-canary.2",
|
|
26
26
|
"@lingui/core": "^4.2.1",
|
|
27
27
|
"@lingui/macro": "^4.2.1",
|
|
28
28
|
"@lingui/react": "^4.2.1",
|