@graphcommerce/googlerecaptcha 6.0.0-canary.43 → 6.0.0-canary.45

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
+ ## 6.0.0-canary.45
4
+
5
+ ## 6.0.0-canary.44
6
+
7
+ ### Patch Changes
8
+
9
+ - [#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))
10
+
3
11
  ## 6.0.0-canary.43
4
12
 
5
13
  ## 6.0.0-canary.42
package/Config.graphqls CHANGED
@@ -7,7 +7,7 @@ extend input GraphCommerceConfig {
7
7
  googleRecaptchaKey: String
8
8
  }
9
9
 
10
- extend input GraphCommerceI18nConfig {
10
+ extend input GraphCommerceStorefrontConfig {
11
11
  """
12
12
  Locale specific google reCAPTCHA key.
13
13
  """
@@ -1,7 +1,8 @@
1
- import { useI18nConfig } from '@graphcommerce/next-ui'
1
+ import { useStorefrontConfig } from '@graphcommerce/next-ui'
2
2
 
3
3
  export function useGoogleRecaptchaSiteKey() {
4
- const key = useI18nConfig().googleRecaptchaKey ?? import.meta.graphCommerce.googleRecaptchaKey
4
+ const key =
5
+ useStorefrontConfig().googleRecaptchaKey ?? import.meta.graphCommerce.googleRecaptchaKey
5
6
  if (!key) throw new Error('[@graphcommerce/googlerecaptcha]: googleRecaptchaKey not configured')
6
7
  return key
7
8
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/googlerecaptcha",
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.45",
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.45",
16
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.45",
17
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.45",
18
18
  "@types/grecaptcha": "^3.0.4"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "6.0.0-canary.43",
22
- "@graphcommerce/next-ui": "6.0.0-canary.43"
21
+ "@graphcommerce/graphql": "6.0.0-canary.45",
22
+ "@graphcommerce/next-ui": "6.0.0-canary.45"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "next": "^13.2.0",