Files
ipal-kit/src/modules/turnstile/client.ts
T

9 lines
697 B
TypeScript

// No 'use client' on this barrel (1.18.0): every component behind it carries its own. A barrel with the
// directive is one client boundary, so a page that imported one export shipped ALL of them (docs/performance.md).
// Client-only exports — the Turnstile widget. Kept separate from index.ts so
// the server-only verify never leaks into a browser bundle.
// `Turnstile` is the lazy wrapper since 1.18.0 (same props): the widget's code loads where a form shows it
export { LazyTurnstile as Turnstile } from './LazyTurnstile.js'
export type { TurnstileProps, TurnstileTheme } from './Turnstile.js'
export { TurnstileProvider, useOptionalTurnstile, useTurnstile } from './TurnstileProvider.js'