@graphcommerce/googlerecaptcha 9.1.0-canary.17 → 9.1.0-canary.19
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
package/graphql/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './query/RecaptchaV3Config.gql'
|
package/link/recaptchaLink.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GraphQLRequest } from '@graphcommerce/graphql'
|
|
2
2
|
import { setContext } from '@graphcommerce/graphql/apollo'
|
|
3
3
|
import { Kind, OperationTypeNode } from 'graphql'
|
|
4
|
-
import { RecaptchaV3ConfigDocument } from '../graphql
|
|
4
|
+
import { RecaptchaV3ConfigDocument } from '../graphql'
|
|
5
5
|
|
|
6
6
|
const isMutation = (operation: GraphQLRequest) =>
|
|
7
7
|
operation.query.definitions.some(
|
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": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.19",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"@types/grecaptcha": "^3.0.9"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
19
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
20
|
-
"@graphcommerce/graphql-mesh": "^9.1.0-canary.
|
|
21
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
18
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.19",
|
|
19
|
+
"@graphcommerce/graphql": "^9.1.0-canary.19",
|
|
20
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.19",
|
|
21
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.19",
|
|
22
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.19",
|
|
23
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.19",
|
|
24
24
|
"@mui/material": "^5.10.16",
|
|
25
25
|
"graphql": "^16.9.0",
|
|
26
26
|
"next": "*",
|
|
@@ -5,7 +5,7 @@ import Script from 'next/script'
|
|
|
5
5
|
import { useMemo, useState } from 'react'
|
|
6
6
|
import type { RecaptchaContext } from '../context/recaptchaContext'
|
|
7
7
|
import { recaptchaContext } from '../context/recaptchaContext'
|
|
8
|
-
import { RecaptchaV3ConfigDocument } from '../graphql
|
|
8
|
+
import { RecaptchaV3ConfigDocument } from '../graphql'
|
|
9
9
|
import { recaptchaLink } from '../link/recaptchaLink'
|
|
10
10
|
|
|
11
11
|
export const config: PluginConfig = {
|
|
@@ -16,8 +16,6 @@ export const config: PluginConfig = {
|
|
|
16
16
|
function ReCaptchaScript() {
|
|
17
17
|
const siteKey = useQuery(RecaptchaV3ConfigDocument).data?.recaptchaV3Config?.website_key
|
|
18
18
|
|
|
19
|
-
console.log(siteKey)
|
|
20
|
-
|
|
21
19
|
if (!siteKey) return null
|
|
22
20
|
return (
|
|
23
21
|
<Script
|
|
File without changes
|