@graphcommerce/magento-cart-shipping-address 9.0.4-canary.3 → 9.0.4-canary.4

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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.4-canary.4
4
+
3
5
  ## 9.0.4-canary.3
4
6
 
5
7
  ## 9.0.4-canary.2
@@ -6,24 +6,15 @@ import { Trans } from '@lingui/react'
6
6
  import { Button } from '@mui/material'
7
7
  import { useRouter } from 'next/router'
8
8
 
9
- export type CustomerAddressActionCardProps = ActionCardItemRenderProps<
10
- CustomerAddressFragment | null | undefined
11
- >
9
+ export type CustomerAddressActionCardProps = ActionCardItemRenderProps<{
10
+ address?: CustomerAddressFragment | null | undefined
11
+ }>
12
12
 
13
13
  export function CustomerAddressActionCard(props: CustomerAddressActionCardProps) {
14
- const {
15
- onReset,
16
- company,
17
- firstname,
18
- lastname,
19
- street,
20
- postcode,
21
- city,
22
- country_code,
23
- region,
24
- id,
25
- ...cardProps
26
- } = props
14
+ const { onReset, address, ...cardProps } = props
15
+ const { company, firstname, lastname, street, postcode, city, country_code, region, id } =
16
+ address ?? {}
17
+
27
18
  const { push } = useRouter()
28
19
  const country = useFindCountry(country_code)
29
20
 
@@ -159,7 +159,7 @@ export function CustomerAddressForm(props: CustomerAddressListProps) {
159
159
  color='secondary'
160
160
  required
161
161
  items={[
162
- ...customerAddresses.map((address) => ({ ...address, value: address.id })),
162
+ ...customerAddresses.map((address) => ({ address, value: address.id })),
163
163
  { value: -1 },
164
164
  ]}
165
165
  render={CustomerAddressActionCard}
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.4-canary.3",
5
+ "version": "9.0.4-canary.4",
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.4-canary.3",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.3",
17
- "@graphcommerce/graphql": "^9.0.4-canary.3",
18
- "@graphcommerce/graphql-mesh": "^9.0.4-canary.3",
19
- "@graphcommerce/image": "^9.0.4-canary.3",
20
- "@graphcommerce/magento-cart": "^9.0.4-canary.3",
21
- "@graphcommerce/magento-customer": "^9.0.4-canary.3",
22
- "@graphcommerce/magento-store": "^9.0.4-canary.3",
23
- "@graphcommerce/next-ui": "^9.0.4-canary.3",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.3",
25
- "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.3",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.4-canary.4",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.4",
17
+ "@graphcommerce/graphql": "^9.0.4-canary.4",
18
+ "@graphcommerce/graphql-mesh": "^9.0.4-canary.4",
19
+ "@graphcommerce/image": "^9.0.4-canary.4",
20
+ "@graphcommerce/magento-cart": "^9.0.4-canary.4",
21
+ "@graphcommerce/magento-customer": "^9.0.4-canary.4",
22
+ "@graphcommerce/magento-store": "^9.0.4-canary.4",
23
+ "@graphcommerce/next-ui": "^9.0.4-canary.4",
24
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.4",
25
+ "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.4",
26
26
  "@lingui/core": "^4.2.1",
27
27
  "@lingui/macro": "^4.2.1",
28
28
  "@lingui/react": "^4.2.1",