altcha
Version:
Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.
27 lines (26 loc) • 805 B
TypeScript
import './global';
import type { CodeChallenge, ServerVerificationResult, State, WidgetAttributes } from './';
export {};
interface AltchaWidgetSvelte extends WidgetAttributes {
oncodechallenge?: (ev: CustomEvent<{
codeChallenge: CodeChallenge;
}>) => void;
onexpired?: (ev: CustomEvent<unknown>) => void;
onload?: (ev: CustomEvent<unknown>) => void;
onstatechange?: (e: CustomEvent<{
payload?: string;
state: State;
}>) => void;
onserververification?: (e: CustomEvent<ServerVerificationResult>) => void;
onverified?: (e: CustomEvent<{
payload: string;
}>) => void;
style?: string;
}
declare global {
namespace svelteHTML {
interface IntrinsicElements {
'altcha-widget': AltchaWidgetSvelte;
}
}
}