@htmlbricks/hb-captcha-google-recaptcha-v2-invisible 0.71.36 → 0.72.0
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/README.md +1 -3
- package/manifest.json +2 -8
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +1 -7
- package/types/webcomponent.type.d.ts +0 -2
package/README.md
CHANGED
|
@@ -31,8 +31,6 @@ Custom element that loads Google’s reCAPTCHA v2 **explicit** API, mounts an **
|
|
|
31
31
|
| --- | --- | --- |
|
|
32
32
|
| `api_key` | `string` (optional) | reCAPTCHA **site key** passed to `grecaptcha.render` as `sitekey`. |
|
|
33
33
|
| `get` | optional (typed `any`) | Participates in the post-render `$effect` / `execCaptcha()` flow; see above (`get !== null`). |
|
|
34
|
-
| `id` | `string` (optional) | Declared on `Component`; standard host id if your toolchain maps it. |
|
|
35
|
-
| `style` | `string` (optional) | Declared on `Component`; standard host inline style if your toolchain maps it. |
|
|
36
34
|
|
|
37
35
|
HTML consumers should follow your platform’s rules for string attributes (e.g. booleans as `yes` / `no` where applicable).
|
|
38
36
|
|
|
@@ -57,7 +55,7 @@ HTML consumers should follow your platform’s rules for string attributes (e.g.
|
|
|
57
55
|
|
|
58
56
|
Authoring types live in `types/webcomponent.type.d.ts`:
|
|
59
57
|
|
|
60
|
-
- **`Component`:** `
|
|
58
|
+
- **`Component`:** `api_key?`, `get?`
|
|
61
59
|
- **`Events`:** `googleRecaptchaV2Response` → `{ response: string }`; `googleRecaptchaRendered` → `{ render: true }`
|
|
62
60
|
|
|
63
61
|
## Example
|
package/manifest.json
CHANGED
|
@@ -51,13 +51,7 @@
|
|
|
51
51
|
"api_key": {
|
|
52
52
|
"type": "string"
|
|
53
53
|
},
|
|
54
|
-
"get": {}
|
|
55
|
-
"id": {
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
"style": {
|
|
59
|
-
"type": "string"
|
|
60
|
-
}
|
|
54
|
+
"get": {}
|
|
61
55
|
},
|
|
62
56
|
"type": "object"
|
|
63
57
|
}
|
|
@@ -156,5 +150,5 @@
|
|
|
156
150
|
"size": {},
|
|
157
151
|
"iifePath": "main.iife.js",
|
|
158
152
|
"repoName": "@htmlbricks/hb-captcha-google-recaptcha-v2-invisible",
|
|
159
|
-
"version": "0.
|
|
153
|
+
"version": "0.72.0"
|
|
160
154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-captcha-google-recaptcha-v2-invisible",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Loads the Google reCAPTCHA v2 invisible SDK, renders the widget with your `api_key`, and exposes `grecaptcha.execute()` / reset when the `get` attribute changes after render. Dispatches `googleRecaptchaRendered` once mounted and `googleRecaptchaV2Response` with the token from the verification callback.",
|
|
6
6
|
"licenses": [
|