@graphcommerce/googlerecaptcha 8.1.0-canary.9 → 9.0.0-canary.100

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,191 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.100
4
+
5
+ ## 9.0.0-canary.99
6
+
7
+ ## 9.0.0-canary.98
8
+
9
+ ## 9.0.0-canary.97
10
+
11
+ ## 9.0.0-canary.96
12
+
13
+ ## 9.0.0-canary.95
14
+
15
+ ## 9.0.0-canary.94
16
+
17
+ ## 9.0.0-canary.93
18
+
19
+ ## 9.0.0-canary.92
20
+
21
+ ## 9.0.0-canary.91
22
+
23
+ ## 9.0.0-canary.90
24
+
25
+ ## 9.0.0-canary.89
26
+
27
+ ## 9.0.0-canary.88
28
+
29
+ ## 9.0.0-canary.87
30
+
31
+ ## 9.0.0-canary.86
32
+
33
+ ## 9.0.0-canary.85
34
+
35
+ ## 9.0.0-canary.84
36
+
37
+ ## 9.0.0-canary.83
38
+
39
+ ## 9.0.0-canary.82
40
+
41
+ ## 9.0.0-canary.81
42
+
43
+ ## 9.0.0-canary.80
44
+
45
+ ## 9.0.0-canary.79
46
+
47
+ ## 9.0.0-canary.78
48
+
49
+ ## 9.0.0-canary.77
50
+
51
+ ## 9.0.0-canary.76
52
+
53
+ ## 9.0.0-canary.75
54
+
55
+ ## 9.0.0-canary.74
56
+
57
+ ## 9.0.0-canary.73
58
+
59
+ ## 9.0.0-canary.72
60
+
61
+ ## 9.0.0-canary.71
62
+
63
+ ## 9.0.0-canary.70
64
+
65
+ ## 9.0.0-canary.69
66
+
67
+ ## 9.0.0-canary.68
68
+
69
+ ## 9.0.0-canary.67
70
+
71
+ ## 9.0.0-canary.66
72
+
73
+ ## 9.0.0-canary.65
74
+
75
+ ## 9.0.0-canary.64
76
+
77
+ ## 9.0.0-canary.63
78
+
79
+ ## 9.0.0-canary.62
80
+
81
+ ## 9.0.0-canary.61
82
+
83
+ ## 9.0.0-canary.60
84
+
85
+ ### Patch Changes
86
+
87
+ - [#2331](https://github.com/graphcommerce-org/graphcommerce/pull/2331) [`702bfc9`](https://github.com/graphcommerce-org/graphcommerce/commit/702bfc93566c9745546988e57988431d5d4d8cb0) - Moved plugins to new format ([@paales](https://github.com/paales))
88
+
89
+ ## 9.0.0-canary.59
90
+
91
+ ## 9.0.0-canary.58
92
+
93
+ ## 9.0.0-canary.57
94
+
95
+ ## 9.0.0-canary.56
96
+
97
+ ## 9.0.0-canary.55
98
+
99
+ ## 9.0.0-canary.54
100
+
101
+ ## 8.1.0-canary.53
102
+
103
+ ## 8.1.0-canary.52
104
+
105
+ ## 8.1.0-canary.51
106
+
107
+ ## 8.1.0-canary.50
108
+
109
+ ## 8.1.0-canary.49
110
+
111
+ ## 8.1.0-canary.48
112
+
113
+ ## 8.1.0-canary.47
114
+
115
+ ## 8.1.0-canary.46
116
+
117
+ ## 8.1.0-canary.45
118
+
119
+ ## 8.1.0-canary.44
120
+
121
+ ## 8.1.0-canary.43
122
+
123
+ ## 8.1.0-canary.42
124
+
125
+ ## 8.1.0-canary.41
126
+
127
+ ## 8.1.0-canary.40
128
+
129
+ ## 8.1.0-canary.39
130
+
131
+ ## 8.1.0-canary.38
132
+
133
+ ## 8.1.0-canary.37
134
+
135
+ ## 8.1.0-canary.36
136
+
137
+ ## 8.1.0-canary.35
138
+
139
+ ## 8.1.0-canary.34
140
+
141
+ ## 8.1.0-canary.33
142
+
143
+ ## 8.1.0-canary.32
144
+
145
+ ## 8.1.0-canary.31
146
+
147
+ ## 8.1.0-canary.30
148
+
149
+ ## 8.1.0-canary.29
150
+
151
+ ## 8.1.0-canary.28
152
+
153
+ ## 8.1.0-canary.27
154
+
155
+ ## 8.1.0-canary.26
156
+
157
+ ## 8.1.0-canary.25
158
+
159
+ ## 8.1.0-canary.24
160
+
161
+ ## 8.1.0-canary.23
162
+
163
+ ## 8.1.0-canary.22
164
+
165
+ ## 8.1.0-canary.21
166
+
167
+ ## 8.1.0-canary.20
168
+
169
+ ## 8.1.0-canary.19
170
+
171
+ ## 8.1.0-canary.18
172
+
173
+ ## 8.1.0-canary.17
174
+
175
+ ## 8.1.0-canary.16
176
+
177
+ ## 8.1.0-canary.15
178
+
179
+ ## 8.1.0-canary.14
180
+
181
+ ## 8.1.0-canary.13
182
+
183
+ ## 8.1.0-canary.12
184
+
185
+ ## 8.1.0-canary.11
186
+
187
+ ## 8.1.0-canary.10
188
+
3
189
  ## 8.1.0-canary.9
4
190
 
5
191
  ## 8.1.0-canary.8
@@ -8,8 +194,7 @@
8
194
 
9
195
  ### Patch Changes
10
196
 
11
- - [#2245](https://github.com/graphcommerce-org/graphcommerce/pull/2245) [`898224c`](https://github.com/graphcommerce-org/graphcommerce/commit/898224c0343dd195ab2574218475834469182315) - Solve an issue where the grecaptcha.execute method would throw ‘null’ causing the checkout to break in unexpected ways.
12
- ([@paales](https://github.com/paales))
197
+ - [#2245](https://github.com/graphcommerce-org/graphcommerce/pull/2245) [`898224c`](https://github.com/graphcommerce-org/graphcommerce/commit/898224c0343dd195ab2574218475834469182315) - Solve an issue where the grecaptcha.execute method would throw ‘null’ causing the checkout to break in unexpected ways. ([@paales](https://github.com/paales))
13
198
 
14
199
  ## 8.1.0-canary.6
15
200
 
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": "8.1.0-canary.9",
5
+ "version": "9.0.0-canary.100",
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
- "@types/grecaptcha": "^3.0.7"
15
+ "@types/grecaptcha": "^3.0.9"
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.9",
19
- "@graphcommerce/graphql": "^8.1.0-canary.9",
20
- "@graphcommerce/next-ui": "^8.1.0-canary.9",
21
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.9",
22
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.9",
18
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.100",
19
+ "@graphcommerce/graphql": "^9.0.0-canary.100",
20
+ "@graphcommerce/next-ui": "^9.0.0-canary.100",
21
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.100",
22
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.100",
23
23
  "@mui/material": "^5.10.16",
24
24
  "next": "*",
25
25
  "react": "^18.2.0",
@@ -1,15 +1,15 @@
1
1
  import type { ApolloErrorAlertProps } from '@graphcommerce/ecommerce-ui'
2
- import type { PluginProps } from '@graphcommerce/next-config'
2
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { useGoogleRecaptcha } from '../hooks/useGoogleRecaptcha'
4
4
 
5
- export const component = 'ApolloErrorAlert'
6
- export const exported = '@graphcommerce/ecommerce-ui'
7
- export const ifConfig = 'googleRecaptchaKey'
5
+ export const config: PluginConfig = {
6
+ type: 'component',
7
+ module: '@graphcommerce/ecommerce-ui',
8
+ ifConfig: 'googleRecaptchaKey',
9
+ }
8
10
 
9
- function GrecaptchaApolloErrorAlert(props: PluginProps<ApolloErrorAlertProps>) {
11
+ export function ApolloErrorAlert(props: PluginProps<ApolloErrorAlertProps>) {
10
12
  const { Prev, ...rest } = props
11
13
  useGoogleRecaptcha()
12
14
  return <Prev {...rest} />
13
15
  }
14
-
15
- export const Plugin = GrecaptchaApolloErrorAlert
@@ -1,15 +1,15 @@
1
1
  import type { ApolloErrorFullPageProps } from '@graphcommerce/ecommerce-ui'
2
- import type { PluginProps } from '@graphcommerce/next-config'
2
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { useGoogleRecaptcha } from '../hooks/useGoogleRecaptcha'
4
4
 
5
- export const component = 'ApolloErrorFullPage'
6
- export const exported = '@graphcommerce/ecommerce-ui'
7
- export const ifConfig = 'googleRecaptchaKey'
5
+ export const config: PluginConfig = {
6
+ type: 'component',
7
+ module: '@graphcommerce/ecommerce-ui',
8
+ ifConfig: 'googleRecaptchaKey',
9
+ }
8
10
 
9
- function GrecaptchaApolloErrorFullPage(props: PluginProps<ApolloErrorFullPageProps>) {
11
+ export function ApolloErrorFullPage(props: PluginProps<ApolloErrorFullPageProps>) {
10
12
  const { Prev, ...rest } = props
11
13
  useGoogleRecaptcha()
12
14
  return <Prev {...rest} />
13
15
  }
14
-
15
- export const Plugin = GrecaptchaApolloErrorFullPage
@@ -1,15 +1,15 @@
1
1
  import type { ApolloErrorSnackbarProps } from '@graphcommerce/ecommerce-ui'
2
- import type { PluginProps } from '@graphcommerce/next-config'
2
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { useGoogleRecaptcha } from '../hooks/useGoogleRecaptcha'
4
4
 
5
- export const component = 'ApolloErrorSnackbar'
6
- export const exported = '@graphcommerce/ecommerce-ui'
7
- export const ifConfig = 'googleRecaptchaKey'
5
+ export const config: PluginConfig = {
6
+ type: 'component',
7
+ module: '@graphcommerce/ecommerce-ui',
8
+ ifConfig: 'googleRecaptchaKey',
9
+ }
8
10
 
9
- function GrecaptchaApolloErrorSnackbar(props: PluginProps<ApolloErrorSnackbarProps>) {
11
+ export function ApolloErrorSnackbar(props: PluginProps<ApolloErrorSnackbarProps>) {
10
12
  const { Prev, ...rest } = props
11
13
  useGoogleRecaptcha()
12
14
  return <Prev {...rest} />
13
15
  }
14
-
15
- export const Plugin = GrecaptchaApolloErrorSnackbar
@@ -1,5 +1,5 @@
1
1
  import { GraphQLProviderProps } from '@graphcommerce/graphql'
2
- import type { PluginProps } from '@graphcommerce/next-config'
2
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { GlobalStyles } from '@mui/material'
4
4
  import Script from 'next/script'
5
5
  import { useState, useMemo } from 'react'
@@ -7,11 +7,13 @@ import { recaptchaContext, RecaptchaContext } from '../context/recaptchaContext'
7
7
  import { useGoogleRecaptchaSiteKey } from '../hooks/useGoogleRecaptchaSiteKey'
8
8
  import { recaptchaLink } from '../link/recaptchaLink'
9
9
 
10
- export const component = 'GraphQLProvider'
11
- export const exported = '@graphcommerce/graphql'
12
- export const ifConfig = 'googleRecaptchaKey'
10
+ export const config: PluginConfig = {
11
+ type: 'component',
12
+ module: '@graphcommerce/graphql',
13
+ ifConfig: 'googleRecaptchaKey',
14
+ }
13
15
 
14
- function GrecaptchaGraphQLProvider(props: PluginProps<GraphQLProviderProps>) {
16
+ export function GraphQLProvider(props: PluginProps<GraphQLProviderProps>) {
15
17
  const { Prev, links = [], ...prev } = props
16
18
 
17
19
  const [enabled, setEnabled] = useState(false)
@@ -42,5 +44,3 @@ function GrecaptchaGraphQLProvider(props: PluginProps<GraphQLProviderProps>) {
42
44
  </recaptchaContext.Provider>
43
45
  )
44
46
  }
45
-
46
- export const Plugin = GrecaptchaGraphQLProvider