@graphcommerce/googlerecaptcha 6.0.0-canary.28 → 6.0.0-canary.30

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.30
4
+
5
+ ## 6.0.0-canary.29
6
+
7
+ ### Patch Changes
8
+
9
+ - [#1827](https://github.com/graphcommerce-org/graphcommerce/pull/1827) [`b23c415da`](https://github.com/graphcommerce-org/graphcommerce/commit/b23c415da019e7b4378de6619c6fcbd03d85a1e8) - Fix recaptcha ([@paales](https://github.com/paales))
10
+
3
11
  ## 6.0.0-canary.28
4
12
 
5
13
  ### Patch Changes
@@ -2,16 +2,13 @@ import { GlobalStyles } from '@mui/material'
2
2
  import Script from 'next/script'
3
3
  import { useContext } from 'react'
4
4
  import { recaptchaContext } from '../context/recaptchaContext'
5
+ import { useGoogleRecaptchaSiteKey } from '../hooks/useGoogleRecaptchaSiteKey'
5
6
 
6
7
  export function GoogleRecaptchaV3Script() {
7
- const { siteKey, enabled } = useContext(recaptchaContext)
8
+ const { enabled } = useContext(recaptchaContext)
8
9
 
9
- if (process.env.NODE_ENV !== 'production' && !siteKey && enabled)
10
- console.warn(
11
- '[@graphcommerce/googletagmanager]: NEXT_PUBLIC_GOOGLE_RECAPTCHA_V3_SITE_KEY not found',
12
- )
13
-
14
- if (!siteKey || !enabled) return null
10
+ const siteKey = useGoogleRecaptchaSiteKey()
11
+ if (!enabled) return null
15
12
 
16
13
  return (
17
14
  <>
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.28",
5
+ "version": "6.0.0-canary.30",
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.28",
16
- "@graphcommerce/prettier-config-pwa": "6.0.0-canary.28",
17
- "@graphcommerce/typescript-config-pwa": "6.0.0-canary.28",
15
+ "@graphcommerce/eslint-config-pwa": "6.0.0-canary.30",
16
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.30",
17
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.30",
18
18
  "@types/grecaptcha": "^3.0.4"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "6.0.0-canary.28",
22
- "@graphcommerce/next-ui": "6.0.0-canary.28"
21
+ "@graphcommerce/graphql": "6.0.0-canary.30",
22
+ "@graphcommerce/next-ui": "6.0.0-canary.30"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "next": "^13.2.0",