@graphcommerce/magento-customer 9.0.0-canary.63 → 9.0.0-canary.65

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.65
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2333](https://github.com/graphcommerce-org/graphcommerce/pull/2333) [`03c28ab`](https://github.com/graphcommerce-org/graphcommerce/commit/03c28ab342bca3179b7ce1650fa7c16df1119a86) - Avoid displaying 'undefined' for countryName or regionName ([@carlocarels90](https://github.com/carlocarels90))
8
+
9
+ ## 9.0.0-canary.64
10
+
3
11
  ## 9.0.0-canary.63
4
12
 
5
13
  ## 9.0.0-canary.62
@@ -15,8 +15,8 @@ export function AddressSingleLine(props: CustomerAddressFragment) {
15
15
  postcode,
16
16
  country_code,
17
17
  } = props
18
- const countryName = useFindCountry(country_code)?.full_name_locale
19
- const regionName = typeof region === 'string' ? region : region?.region
18
+ const countryName = useFindCountry(country_code)?.full_name_locale ?? ''
19
+ const regionName = typeof region === 'string' ? region : region?.region || ''
20
20
 
21
21
  // todo: detect correct format by locale
22
22
  // for now, US format will be returned by default
@@ -11,7 +11,7 @@ export const xMagentoCacheIdHeader = new ApolloLink((operation, forward) => {
11
11
  })
12
12
 
13
13
  return forward(operation).map((data) => {
14
- const cache = operation.getContext().cache
14
+ const { cache } = operation.getContext()
15
15
  if (!cache) return data
16
16
 
17
17
  const xMagentoCacheId = (data.extensions as { forwardedHeaders: Record<string, string> })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-customer",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.63",
5
+ "version": "9.0.0-canary.65",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,19 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.63",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.63",
17
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.63",
18
- "@graphcommerce/framer-utils": "^9.0.0-canary.63",
19
- "@graphcommerce/graphql": "^9.0.0-canary.63",
20
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.63",
21
- "@graphcommerce/image": "^9.0.0-canary.63",
22
- "@graphcommerce/magento-graphql": "^9.0.0-canary.63",
23
- "@graphcommerce/magento-store": "^9.0.0-canary.63",
24
- "@graphcommerce/next-ui": "^9.0.0-canary.63",
25
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.63",
26
- "@graphcommerce/react-hook-form": "^9.0.0-canary.63",
27
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.63",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.65",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.65",
17
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.65",
18
+ "@graphcommerce/framer-utils": "^9.0.0-canary.65",
19
+ "@graphcommerce/graphql": "^9.0.0-canary.65",
20
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.65",
21
+ "@graphcommerce/image": "^9.0.0-canary.65",
22
+ "@graphcommerce/magento-graphql": "^9.0.0-canary.65",
23
+ "@graphcommerce/magento-store": "^9.0.0-canary.65",
24
+ "@graphcommerce/next-ui": "^9.0.0-canary.65",
25
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.65",
26
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.65",
27
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.65",
28
28
  "@lingui/core": "^4.2.1",
29
29
  "@lingui/macro": "^4.2.1",
30
30
  "@lingui/react": "^4.2.1",
@@ -1,6 +1,6 @@
1
- import { PluginConfig, PluginProps } from '@graphcommerce/next-config'
2
- import { xMagentoCacheIdHeader } from '../link/xMagentoCacheIdHeader'
3
1
  import { GraphQLProviderProps } from '@graphcommerce/graphql'
2
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
3
+ import { xMagentoCacheIdHeader } from '../link/xMagentoCacheIdHeader'
4
4
 
5
5
  export const config: PluginConfig = {
6
6
  type: 'component',
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "exclude": ["**/node_modules", "**/.*/"],
3
3
  "include": ["**/*.ts", "**/*.tsx"],
4
- "extends": "@graphcommerce/typescript-config-pwa/nextjs.json",
4
+ "extends": "@graphcommerce/typescript-config-pwa/nextjs.json"
5
5
  }