From abc9ccb072c0867ae403094c0cc45c4cd35e67c9 Mon Sep 17 00:00:00 2001 From: GHOST Date: Mon, 31 Oct 2022 16:59:02 +0000 Subject: [PATCH 1/2] fix: remove invisible --- README.md | 8 ++++---- src/lib/Turnstile.svelte | 2 +- src/routes/+page.svelte | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2f67281..f34ba9f 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ The only required prop is the `siteKey` which you can get from [adding a site he | Prop | Type | Description | Required | |--------------|----------------------------------------|----------------------------------------------------------------------------------------------|----------------------------------------------| | `siteKey` | `string` | sitekey for your website | ✅ | -| `theme` | `'light' \| 'dark' \| 'auto'` | colour theme of the widget (defaults to `auto`) | ❌ | -| `size` | `'normal' \| 'compact' \| 'invisible'` | size of the widget (defaults to `normal`) | ❌ | +| `theme` | `'light' \| 'dark' \| 'auto'` | colour theme of the widget (defaults to `auto`) | ❌ | +| `size` | `'normal' \| 'compact'` | size of the widget (defaults to `normal`) | ❌ | | `action` | `string` | A string that can be used to differentiate widgets, returned on validation | ❌ | | `cData` | `string` | A string that can attach customer data to a challange, returned on validation | ❌ | -| `tabIndex` | `number` | Used for accessibility (defaults to `0`) | ❌ | -| `forms` | `boolean` | if true the response token will be a property on the form data (default `true`) | ❌ | +| `tabIndex` | `number` | Used for accessibility (defaults to `0`) | ❌ | +| `forms` | `boolean` | if true the response token will be a property on the form data (default `true`) | ❌ | | `formsField` | `string` | the `name` of the input which will appear on the form data (default `cf-turnstile-response`) | ❌ | For more information about some of the props [checkout the Cloudflare Documentation](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations). diff --git a/src/lib/Turnstile.svelte b/src/lib/Turnstile.svelte index e3dd9e8..c31c507 100644 --- a/src/lib/Turnstile.svelte +++ b/src/lib/Turnstile.svelte @@ -30,7 +30,7 @@ 'response-field-name'?: string; } - export type TurnstileSize = 'normal' | 'invisible' | 'compact'; + export type TurnstileSize = 'normal' | 'compact'; export type TurnstileTheme = 'light' | 'dark' | 'auto'; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5906c6a..b8ad6d3 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -57,7 +57,6 @@ From c6a092f99cc9dc8a009e6b6479fc622cb25d2af3 Mon Sep 17 00:00:00 2001 From: GHOST Date: Mon, 31 Oct 2022 16:59:11 +0000 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 325a687..00659c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte-turnstile", - "version": "0.2.0", + "version": "0.2.1", "scripts": { "dev": "vite dev", "package": "svelte-kit sync && svelte-package",