Skip to content

Commit 419772f

Browse files
committed
cap props type
1 parent 9c1e7f6 commit 419772f

File tree

5 files changed

+425
-5
lines changed

5 files changed

+425
-5
lines changed

.changeset/silent-moons-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"qwik-turnstile": patch
3+
---
4+
5+
Captilize props type

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
<h1 align='center'>Qwik Turnstile</h1>
42
<p align="center">
53
<img width="400" src="./media/turnstile.gif" alt="Cloudflare Turnstile">
@@ -21,6 +19,22 @@
2119

2220
</div>
2321

22+
<!-- toc -->
23+
24+
- [Installation](#installation)
25+
- [Usage](#usage)
26+
* [Examples](#examples)
27+
* [🦜 `useTurnstile()` hook](#%F0%9F%A6%9C-useturnstile-hook)
28+
* [`verifyTurnstile()`](#%E2%9C%85-verifyturnstile)
29+
* [🔁 `resetTurnstile()`](#%F0%9F%94%81-resetturnstile)
30+
- [Contributing](#contributing)
31+
- [Code Of Conduct](#code-of-conduct)
32+
- [Contributors](#contributors)
33+
- [Related Links](#related-links)
34+
- [License](#license)
35+
36+
<!-- tocstop -->
37+
2438
## Installation
2539

2640
```console
@@ -29,6 +43,7 @@ pnpm add qwik-turnstile
2943

3044
## Usage
3145

46+
3247
### 🦜 `useTurnstile()` hook
3348

3449
Add this hook to your Qwik component or route.
@@ -42,7 +57,7 @@ export default component$(() => {
4257
const { Turnstile, tokenSignal } = useTurnstile(
4358
{
4459
siteKey: import.meta.env.VITE_TURNSTILE_SITEKEY,
45-
onResponse$: $((response) => {
60+
onTokenResponse$: $((response) => {
4661
// set the value of an input field
4762
}),
4863
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"release": "changeset publish",
4141
"start": "vite --open --mode ssr",
4242
"test": "echo \"No test specified\" && exit 0",
43+
"toc": "markdown-toc -i README.md --maxdepth 3",
4344
"qwik": "qwik"
4445
},
4546
"peerDependencies": {
@@ -58,6 +59,7 @@
5859
"dotenv": "^16.4.5",
5960
"eslint": "8.57.0",
6061
"eslint-plugin-qwik": "1.10.0",
62+
"markdown-toc": "^1.2.0",
6163
"np": "^8.0.4",
6264
"prettier": "3.3.3",
6365
"pretty-quick": "^4.0.0",

0 commit comments

Comments
 (0)