@graphcommerce/graphcms-ui 6.0.0-canary.43 → 6.0.0-canary.44

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.0-canary.44
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1842](https://github.com/graphcommerce-org/graphcommerce/pull/1842) [`7b67d84bd`](https://github.com/graphcommerce-org/graphcommerce/commit/7b67d84bd269c3fc91afbd69f6683c5d12808d36) - Renamed i18n to storefront in configuration ([@paales](https://github.com/paales))
8
+
3
9
  ## 6.0.0-canary.43
4
10
 
5
11
  ## 6.0.0-canary.42
package/Config.graphqls CHANGED
@@ -7,7 +7,7 @@ extend input GraphCommerceConfig {
7
7
  hygraphEndpoint: String!
8
8
  }
9
9
 
10
- extend input GraphCommerceI18nConfig {
10
+ extend input GraphCommerceStorefrontConfig {
11
11
  """
12
12
  Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks.
13
13
  """
@@ -1,12 +1,12 @@
1
1
  import { setContext } from '@graphcommerce/graphql'
2
- import { i18nConfig } from '@graphcommerce/next-ui'
2
+ import { storefrontConfig } from '@graphcommerce/next-ui'
3
3
 
4
4
  /** Add a gcms-locales header to make sure queries return in a certain language. */
5
5
  export const createHygraphLink = (locale?: string) =>
6
6
  setContext((_, context) => {
7
7
  if (!context.headers) context.headers = {}
8
8
 
9
- const locales = i18nConfig(locale)?.hygraphLocales
9
+ const locales = storefrontConfig(locale)?.hygraphLocales
10
10
  if (locales) context.headers['gcms-locales'] = locales.join(',')
11
11
 
12
12
  return context
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphcms-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "6.0.0-canary.43",
5
+ "version": "6.0.0-canary.44",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,14 +12,14 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "6.0.0-canary.43",
16
- "@graphcommerce/prettier-config-pwa": "6.0.0-canary.43",
17
- "@graphcommerce/typescript-config-pwa": "6.0.0-canary.43"
15
+ "@graphcommerce/eslint-config-pwa": "6.0.0-canary.44",
16
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.44",
17
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.44"
18
18
  },
19
19
  "dependencies": {
20
- "@graphcommerce/graphql": "6.0.0-canary.43",
21
- "@graphcommerce/image": "6.0.0-canary.43",
22
- "@graphcommerce/next-ui": "6.0.0-canary.43"
20
+ "@graphcommerce/graphql": "6.0.0-canary.44",
21
+ "@graphcommerce/image": "6.0.0-canary.44",
22
+ "@graphcommerce/next-ui": "6.0.0-canary.44"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@mui/material": "^5.10.16",