UNPKG

altcha

Version:

Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.

26 lines (25 loc) 820 B
import './global'; import type { HTMLAttributes } from 'svelte/elements'; import type { CodeChallenge, ServerVerificationResult, State, WidgetAttributes } from './'; export {}; interface AltchaWidgetSvelte extends WidgetAttributes, HTMLAttributes<HTMLElement> { oncodechallenge?: (ev: CustomEvent<{ codeChallenge: CodeChallenge; }>) => void; onexpired?: (ev: CustomEvent<unknown>) => void; onstatechange?: (e: CustomEvent<{ payload?: string; state: State; }>) => void; onserververification?: (e: CustomEvent<ServerVerificationResult>) => void; onverified?: (e: CustomEvent<{ payload: string; }>) => void; } declare global { namespace svelteHTML { interface IntrinsicElements { 'altcha-widget': AltchaWidgetSvelte; } } }