Cloudflare Turnstile integration for React.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] about 2 months ago
Published by github-actions[bot] 2 months ago
Now we ship ESM-only code, this will decrease the bundle size significantly.
If you are a CommonJS user, I suggest you to keep using the version 0.7.2
or upgrade your project to ESM.
Removed "auto" widget size due to is not even a valid size for Cloudflare Turnstile.
We have been sending undefined
when the size was "auto", so if you were using this size, then you can simply remove it.
Peer dependencies for react
and react-dom
have been updated to 17.x and above.
onTimeout
refreshTimeout
and feedbackEnabled
(Closes #82)AppearanceMode
, ExecutionMode
, FailureRetryMode
, RefreshExpiredMode
, RefreshTimeoutMode
, WidgetSize
. Inspired by @types/cloudflare-turnstile
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
"auto"
size option - by @harrygr (8a8a7)
Published by github-actions[bot] 6 months ago
Published by marsidev 6 months ago
onWidgetLoad
exists by @marsidev in https://github.com/marsidev/react-turnstile/pull/66
Full Changelog: https://github.com/marsidev/react-turnstile/compare/v0.5.4...v0.6.0
Published by github-actions[bot] 7 months ago
useImperativeHandle
not grabbing window.turnstile
- by @Cretezy (d9da706)
Published by github-actions[bot] 8 months ago
Published by github-actions[bot] 8 months ago
Published by github-actions[bot] 9 months ago
??
) to improve compatibility with old browsers - by @marsidev (80f61)
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 11 months ago
crossOrigin
to scriptOptions
- by @kaichii (a588b)
onLoadScript
callback - by @marsidev (4e5bc)
isExpired()
method - by @marsidev (7daca)
Published by github-actions[bot] 12 months ago
Published by github-actions[bot] about 1 year ago
TurnstileTheme
and TurnstileLangCode
types - by @marsidev (1ddb8) - Thanks @Zerebokep for the suggestion!Published by github-actions[bot] about 1 year ago
scriptId
and onLoadCallbackName
now includes the containerId
(e.g. cf-turnstile-script__cf-turnstile
-> {SCRIPT_ID_PREFIX}__{CONTAINER_ID}
)Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago