@frank-auth/react
Version:
Flexible and customizable React UI components for Frank Authentication
1 lines • 5.05 kB
Source Map (JSON)
{"version":3,"file":"index.cjs","sources":["../../../../src/components/auth/index.tsx"],"sourcesContent":["/**\n * @frank-auth/react - Auth Components Index\n *\n * Main entry point for all auth related components.\n * Exports all auth variants and utilities.\n */\n\nimport UserButton, {UserAvatar, UserProfile as UserProfileDropdown} from './user-button';\nimport UserProfile, {MFASetup, PasskeySetup, ProfileForm, SecurityPanel, UserProfileModal} from './user-profile';\n\n// ============================================================================\n// Main Components\n// ============================================================================\n\nexport * from './sign-in';\nexport * from './sign-up';\nexport * from './common';\nexport * from './sign-in';\nexport * from './account-linking';\nexport * from './password';\nexport * from './magic-link';\nexport * from './invitations';\nexport * from './verification';\n\n\n/**\n * @frank-auth/react - Auth Components Index\n *\n * Main entry point for all authentication components including user management,\n * sign-in/sign-up flows, organization management, and security features.\n */\n\n// ============================================================================\n// User Button Components\n// ============================================================================\n\nexport {\n UserButton,\n UserProfile as UserProfileDropdown,\n UserAvatar,\n type UserButtonProps,\n type UserProfileMenuItem,\n type UserAvatarProps,\n} from './user-button';\n\n// ============================================================================\n// User Profile Components\n// ============================================================================\n\nexport {\n UserProfile,\n UserProfileModal,\n useUserProfileModal,\n ProfileForm,\n SecurityPanel,\n MFASetup,\n PasskeySetup,\n type UserProfileProps,\n type UserProfileModalProps,\n type UserProfileTab,\n type ProfileFormProps,\n type ProfileFormData,\n type ProfileFormField,\n type SecurityPanelProps,\n type SecurityPanelSection,\n type MFASetupProps,\n type MFAMethodConfig,\n type PasskeySetupProps,\n type PasskeyTypeConfig,\n} from './user-profile';\n\n// ============================================================================\n// Component Collections\n// ============================================================================\n\n/**\n * Collection of all user-related authentication components\n */\nexport const UserComponents = {\n UserButton,\n UserProfile,\n UserProfileModal,\n UserAvatar,\n ProfileForm,\n SecurityPanel,\n MFASetup,\n PasskeySetup,\n} as const;\n\n/**\n * Collection of user interface components\n */\nexport const UserInterfaceComponents = {\n UserButton,\n UserAvatar,\n UserProfile: UserProfileDropdown,\n} as const;\n\n/**\n * Collection of user management components\n */\nexport const UserManagementComponents = {\n ProfileForm,\n SecurityPanel,\n MFASetup,\n PasskeySetup,\n} as const;\n\n// ============================================================================\n// Hooks Re-exports\n// ============================================================================\n\n// Re-export commonly used hooks for convenience\nexport { useAuthState, useAuthActions, useAuthOrganization, useAuthStatus } from '../../hooks/use-auth';\nexport { useUser, useUserProfile, useUserVerification, useUserActions } from '../../hooks/use-user';\nexport { useSession, useSessionStatus, useMultiSession, useSessionSecurity } from '../../hooks/use-session';\nexport { useOrganization, useOrganizationMembership, useOrganizationInvitations } from '../../hooks/use-organization';\nexport { useMFA, useTOTP, useSMSMFA, useBackupCodes } from '../../hooks/use-mfa';\nexport { usePasskeys, usePasskeyRegistration, usePasskeyAuthentication } from '../../hooks/use-passkeys';\nexport { usePermissions, useOrganizationPermissions, useSystemPermissions } from '../../hooks/use-permissions';\nexport { useThemeColors, useThemeTypography, useThemeLayout } from '../../hooks/use-theme';\nexport { useFeatureFlags, useThemeConfig, useLocalizationConfig } from '../../hooks/use-config';\n\n// ============================================================================\n// Default Export (Most commonly used component)\n// ============================================================================\n\nexport { UserButton as default } from './user-button';"],"names":["UserComponents","UserButton","UserProfile","UserProfileModal","UserAvatar","ProfileForm","SecurityPanel","MFASetup","PasskeySetup","UserInterfaceComponents","UserProfileDropdown","UserManagementComponents"],"mappings":"wgBA8EaA,EAAiB,CAAA,WAC1BC,EAAA,WAAA,YACAC,EAAA,YAAA,iBACAC,EAAA,iBAAA,WACAC,EAAA,WAAA,YACAC,EAAA,YAAA,cACAC,EAAA,cAAA,SACAC,EAAA,SACAC,aAAAA,EAAAA,YACJ,EAKaC,EAA0B,CAAA,WACnCR,EAAA,WAAA,WACAG,EAAA,WACA,YAAaM,EAAAA,WACjB,EAKaC,EAA2B,CAAA,YACpCN,EAAA,YAAA,cACAC,EAAA,cAAA,SACAC,EAAA,SACAC,aAAAA,EAAAA,YACJ"}