@graphcommerce/magento-cart-shipping-address 9.0.3 → 9.0.4-canary.1

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,8 +1,8 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.3
3
+ ## 9.0.4-canary.1
4
4
 
5
- ## 9.0.3-canary.0
5
+ ## 9.0.4-canary.0
6
6
 
7
7
  ## 9.0.2
8
8
 
@@ -10,24 +10,12 @@
10
10
 
11
11
  - [`30d769e`](https://github.com/graphcommerce-org/graphcommerce/commit/30d769eacb3b5a2b6f48b1da291d9154b32948b4) - Make sure we are toggling the selected shipping method when a user selects a previously selected shipping method ([@paales](https://github.com/paales))
12
12
 
13
- ## 9.0.2-canary.0
14
-
15
- ### Patch Changes
16
-
17
- - [`30d769e`](https://github.com/graphcommerce-org/graphcommerce/commit/30d769eacb3b5a2b6f48b1da291d9154b32948b4) - Make sure we are toggling the selected shipping method when a user selects a previously selected shipping method ([@paales](https://github.com/paales))
18
-
19
13
  ## 9.0.1
20
14
 
21
15
  ### Patch Changes
22
16
 
23
17
  - [#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))
24
18
 
25
- ## 9.0.1-canary.1
26
-
27
- ### Patch Changes
28
-
29
- - [#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))
30
-
31
19
  ## 9.0.0
32
20
 
33
21
  ### Major Changes
@@ -1,7 +1,7 @@
1
1
  import type { ActionCardItemRenderProps } from '@graphcommerce/ecommerce-ui'
2
2
  import type { CustomerAddressFragment } from '@graphcommerce/magento-customer/components/CreateCustomerAddressForm/CustomerAddress.gql'
3
3
  import { useFindCountry } from '@graphcommerce/magento-store'
4
- import { ActionCard, IconSvg, iconHome } from '@graphcommerce/next-ui'
4
+ import { ActionCard, iconHome, IconSvg } from '@graphcommerce/next-ui'
5
5
  import { Trans } from '@lingui/react'
6
6
  import { Button } from '@mui/material'
7
7
  import { useRouter } from 'next/router'
@@ -31,11 +31,14 @@ import { isSameAddress } from '../../utils/isSameAddress'
31
31
  import { GetAddressesDocument } from './GetAddresses.gql'
32
32
  import { SetBillingAddressDocument } from './SetBillingAddress.gql'
33
33
  import { SetShippingAddressDocument } from './SetShippingAddress.gql'
34
+ import type { SetShippingBillingAddressMutationVariables } from './SetShippingBillingAddress.gql'
34
35
  import { SetShippingBillingAddressDocument } from './SetShippingBillingAddress.gql'
35
36
 
36
37
  export type ShippingAddressFormProps = Pick<UseFormComposeOptions, 'step'> & {
37
38
  /**
38
- * @deprecated This was used to make sure the form wasn't filled with a customer's address. However this also broke the checkout when navigating back from the checkout. This is now automatically handled.
39
+ * @deprecated This was used to make sure the form wasn't filled with a customer's address.
40
+ * However this also broke the checkout when navigating back from the checkout. This is now
41
+ * automatically handled.
39
42
  */
40
43
  ignoreCache?: boolean
41
44
  sx?: SxProps<Theme>
@@ -137,9 +140,9 @@ export const ShippingAddressForm = React.memo<ShippingAddressFormProps>((props)
137
140
  name={['postcode', 'countryCode', 'regionId']}
138
141
  />
139
142
 
140
- <CompanyFields form={form} />
143
+ <CompanyFields<SetShippingBillingAddressMutationVariables> form={form} />
141
144
  <NameFields form={form} />
142
- <AddressFields form={form} />
145
+ <AddressFields<SetShippingBillingAddressMutationVariables> form={form} />
143
146
 
144
147
  <FormRow>
145
148
  <TelephoneElement
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.3",
5
+ "version": "9.0.4-canary.1",
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.3",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.3",
17
- "@graphcommerce/graphql": "^9.0.3",
18
- "@graphcommerce/graphql-mesh": "^9.0.3",
19
- "@graphcommerce/image": "^9.0.3",
20
- "@graphcommerce/magento-cart": "^9.0.3",
21
- "@graphcommerce/magento-customer": "^9.0.3",
22
- "@graphcommerce/magento-store": "^9.0.3",
23
- "@graphcommerce/next-ui": "^9.0.3",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.3",
25
- "@graphcommerce/typescript-config-pwa": "^9.0.3",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.4-canary.1",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.1",
17
+ "@graphcommerce/graphql": "^9.0.4-canary.1",
18
+ "@graphcommerce/graphql-mesh": "^9.0.4-canary.1",
19
+ "@graphcommerce/image": "^9.0.4-canary.1",
20
+ "@graphcommerce/magento-cart": "^9.0.4-canary.1",
21
+ "@graphcommerce/magento-customer": "^9.0.4-canary.1",
22
+ "@graphcommerce/magento-store": "^9.0.4-canary.1",
23
+ "@graphcommerce/next-ui": "^9.0.4-canary.1",
24
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.1",
25
+ "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.1",
26
26
  "@lingui/core": "^4.2.1",
27
27
  "@lingui/macro": "^4.2.1",
28
28
  "@lingui/react": "^4.2.1",