Skip to content

Commit bc9143c

Browse files
authored
Merge pull request #4 from ghostdevv/remove-invisible
2 parents 1c69b71 + c6a092f commit bc9143c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ The only required prop is the `siteKey` which you can get from [adding a site he
2929
| Prop | Type | Description | Required |
3030
|--------------|----------------------------------------|----------------------------------------------------------------------------------------------|----------------------------------------------|
3131
| `siteKey` | `string` | sitekey for your website ||
32-
| `theme` | `'light' \| 'dark' \| 'auto'` | colour theme of the widget (defaults to `auto`) ||
33-
| `size` | `'normal' \| 'compact' \| 'invisible'` | size of the widget (defaults to `normal`) ||
32+
| `theme` | `'light' \| 'dark' \| 'auto'` | colour theme of the widget (defaults to `auto`) ||
33+
| `size` | `'normal' \| 'compact'` | size of the widget (defaults to `normal`) ||
3434
| `action` | `string` | A string that can be used to differentiate widgets, returned on validation ||
3535
| `cData` | `string` | A string that can attach customer data to a challange, returned on validation ||
36-
| `tabIndex` | `number` | Used for accessibility (defaults to `0`) ||
37-
| `forms` | `boolean` | if true the response token will be a property on the form data (default `true`) ||
36+
| `tabIndex` | `number` | Used for accessibility (defaults to `0`) ||
37+
| `forms` | `boolean` | if true the response token will be a property on the form data (default `true`) ||
3838
| `formsField` | `string` | the `name` of the input which will appear on the form data (default `cf-turnstile-response`) ||
3939

4040
For more information about some of the props [checkout the Cloudflare Documentation](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations).

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-turnstile",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"scripts": {
55
"dev": "vite dev",
66
"package": "svelte-kit sync && svelte-package",

src/lib/Turnstile.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'response-field-name'?: string;
3131
}
3232
33-
export type TurnstileSize = 'normal' | 'invisible' | 'compact';
33+
export type TurnstileSize = 'normal' | 'compact';
3434
export type TurnstileTheme = 'light' | 'dark' | 'auto';
3535
</script>
3636

src/routes/+page.svelte

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757

5858
<select bind:value={size}>
5959
<option value="normal">Normal</option>
60-
<option value="invisible">Invisible</option>
6160
<option value="compact">Compact</option>
6261
</select>
6362
</label>

0 commit comments

Comments
 (0)