/** * @buzztrail-ai/gating * * Pre-conversation lead capture form with i18n support. * Single source of truth for gating across all BuzzTrail packages. * * @packageDocumentation */ // Types export type { GatingLanguage, GatingInfoField, StorageDestination, EmailValidationConfig, StorageConfig, GatingTranslationOverrides, GatingConfig, GatingLeadData, GatingValidationState, GatingSubmissionState, } from './lib/types/gating'; // Components export { GatingForm } from './lib/components/GatingForm'; export type { GatingFormProps } from './lib/components/GatingForm'; export { GatingFormField } from './lib/components/GatingFormField'; export type { GatingFormFieldProps } from './lib/components/GatingFormField'; export { GatingPrivacyConsent } from './lib/components/GatingPrivacyConsent'; export type { GatingPrivacyConsentProps } from './lib/components/GatingPrivacyConsent'; // Hooks export { useGatingForm } from './lib/hooks/useGatingForm'; export type { UseGatingFormOptions, UseGatingFormReturn } from './lib/hooks/useGatingForm'; // Validation export { isValidEmail, isValidPhone, validateEmail, validateField, validateGatingForm, getFieldLabelKey, getFieldPlaceholderKey, getFreeEmailProviders, } from './lib/validation/gating'; // Email providers export { FREE_EMAIL_PROVIDERS, isFreeEmailProvider, isBusinessEmail, } from './lib/utils/free-email-providers'; // i18n export { initGatingI18n, t, changeLanguage, getCurrentLanguage, } from './lib/i18n/config'; export { translations } from './lib/i18n/translations'; // Supabase submission export { submitLeadToSupabase, submitLeadToWebhook, submitLead, } from './lib/supabase/submit-lead';