@entropy-softworks/ui 2026.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/lib/components/auth/LockOverlay.d.ts +22 -0
- package/lib/components/auth/LockOverlay.d.ts.map +1 -0
- package/lib/components/auth/LockOverlay.jsx +82 -0
- package/lib/components/auth/LockOverlay.jsx.map +1 -0
- package/lib/components/auth/PasswordStrengthMeter.d.ts +12 -0
- package/lib/components/auth/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/components/auth/PasswordStrengthMeter.jsx +81 -0
- package/lib/components/auth/PasswordStrengthMeter.jsx.map +1 -0
- package/lib/components/auth/ProtectedRoute.d.ts +24 -0
- package/lib/components/auth/ProtectedRoute.d.ts.map +1 -0
- package/lib/components/auth/ProtectedRoute.jsx +56 -0
- package/lib/components/auth/ProtectedRoute.jsx.map +1 -0
- package/lib/components/auth/PwnedPasswordWarning.d.ts +13 -0
- package/lib/components/auth/PwnedPasswordWarning.d.ts.map +1 -0
- package/lib/components/auth/PwnedPasswordWarning.jsx +29 -0
- package/lib/components/auth/PwnedPasswordWarning.jsx.map +1 -0
- package/lib/components/auth/index.d.ts +5 -0
- package/lib/components/auth/index.d.ts.map +1 -0
- package/lib/components/auth/index.js +5 -0
- package/lib/components/auth/index.js.map +1 -0
- package/lib/components/bottom-nav.d.ts +25 -0
- package/lib/components/bottom-nav.d.ts.map +1 -0
- package/lib/components/bottom-nav.jsx +51 -0
- package/lib/components/bottom-nav.jsx.map +1 -0
- package/lib/components/button.d.ts +16 -0
- package/lib/components/button.d.ts.map +1 -0
- package/lib/components/button.jsx +73 -0
- package/lib/components/button.jsx.map +1 -0
- package/lib/components/card.d.ts +22 -0
- package/lib/components/card.d.ts.map +1 -0
- package/lib/components/card.jsx +36 -0
- package/lib/components/card.jsx.map +1 -0
- package/lib/components/checkbox.d.ts +12 -0
- package/lib/components/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox.jsx +16 -0
- package/lib/components/checkbox.jsx.map +1 -0
- package/lib/components/connection-settings.d.ts +41 -0
- package/lib/components/connection-settings.d.ts.map +1 -0
- package/lib/components/connection-settings.jsx +354 -0
- package/lib/components/connection-settings.jsx.map +1 -0
- package/lib/components/context-menu.d.ts +52 -0
- package/lib/components/context-menu.d.ts.map +1 -0
- package/lib/components/context-menu.jsx +24 -0
- package/lib/components/context-menu.jsx.map +1 -0
- package/lib/components/data-table.d.ts +59 -0
- package/lib/components/data-table.d.ts.map +1 -0
- package/lib/components/data-table.jsx +101 -0
- package/lib/components/data-table.jsx.map +1 -0
- package/lib/components/dialog.d.ts +58 -0
- package/lib/components/dialog.d.ts.map +1 -0
- package/lib/components/dialog.jsx +197 -0
- package/lib/components/dialog.jsx.map +1 -0
- package/lib/components/dropdown-menu.d.ts +55 -0
- package/lib/components/dropdown-menu.d.ts.map +1 -0
- package/lib/components/dropdown-menu.jsx +38 -0
- package/lib/components/dropdown-menu.jsx.map +1 -0
- package/lib/components/entropy-boot-splash.d.ts +24 -0
- package/lib/components/entropy-boot-splash.d.ts.map +1 -0
- package/lib/components/entropy-boot-splash.jsx +83 -0
- package/lib/components/entropy-boot-splash.jsx.map +1 -0
- package/lib/components/entropy-mark-animated.d.ts +20 -0
- package/lib/components/entropy-mark-animated.d.ts.map +1 -0
- package/lib/components/entropy-mark-animated.jsx +148 -0
- package/lib/components/entropy-mark-animated.jsx.map +1 -0
- package/lib/components/entropy-mark-geometry.d.ts +8 -0
- package/lib/components/entropy-mark-geometry.d.ts.map +1 -0
- package/lib/components/entropy-mark-geometry.js +10 -0
- package/lib/components/entropy-mark-geometry.js.map +1 -0
- package/lib/components/entropy-mark-sequential.d.ts +12 -0
- package/lib/components/entropy-mark-sequential.d.ts.map +1 -0
- package/lib/components/entropy-mark-sequential.jsx +53 -0
- package/lib/components/entropy-mark-sequential.jsx.map +1 -0
- package/lib/components/entropy-mark.d.ts +29 -0
- package/lib/components/entropy-mark.d.ts.map +1 -0
- package/lib/components/entropy-mark.jsx +66 -0
- package/lib/components/entropy-mark.jsx.map +1 -0
- package/lib/components/error-boundary.d.ts +31 -0
- package/lib/components/error-boundary.d.ts.map +1 -0
- package/lib/components/error-boundary.jsx +40 -0
- package/lib/components/error-boundary.jsx.map +1 -0
- package/lib/components/index.d.ts +41 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +43 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/input.d.ts +26 -0
- package/lib/components/input.d.ts.map +1 -0
- package/lib/components/input.jsx +95 -0
- package/lib/components/input.jsx.map +1 -0
- package/lib/components/item-icon.d.ts +32 -0
- package/lib/components/item-icon.d.ts.map +1 -0
- package/lib/components/item-icon.jsx +54 -0
- package/lib/components/item-icon.jsx.map +1 -0
- package/lib/components/label.d.ts +13 -0
- package/lib/components/label.d.ts.map +1 -0
- package/lib/components/label.jsx +9 -0
- package/lib/components/label.jsx.map +1 -0
- package/lib/components/legal-dialog.d.ts +18 -0
- package/lib/components/legal-dialog.d.ts.map +1 -0
- package/lib/components/legal-dialog.jsx +31 -0
- package/lib/components/legal-dialog.jsx.map +1 -0
- package/lib/components/license-gate.d.ts +17 -0
- package/lib/components/license-gate.d.ts.map +1 -0
- package/lib/components/license-gate.jsx +21 -0
- package/lib/components/license-gate.jsx.map +1 -0
- package/lib/components/logo.d.ts +15 -0
- package/lib/components/logo.d.ts.map +1 -0
- package/lib/components/logo.jsx +20 -0
- package/lib/components/logo.jsx.map +1 -0
- package/lib/components/onboarding-wizard.d.ts +89 -0
- package/lib/components/onboarding-wizard.d.ts.map +1 -0
- package/lib/components/onboarding-wizard.jsx +185 -0
- package/lib/components/onboarding-wizard.jsx.map +1 -0
- package/lib/components/pagination.d.ts +43 -0
- package/lib/components/pagination.d.ts.map +1 -0
- package/lib/components/pagination.jsx +72 -0
- package/lib/components/pagination.jsx.map +1 -0
- package/lib/components/password-generator.d.ts +15 -0
- package/lib/components/password-generator.d.ts.map +1 -0
- package/lib/components/password-generator.jsx +273 -0
- package/lib/components/password-generator.jsx.map +1 -0
- package/lib/components/pin-pad.d.ts +20 -0
- package/lib/components/pin-pad.d.ts.map +1 -0
- package/lib/components/pin-pad.jsx +93 -0
- package/lib/components/pin-pad.jsx.map +1 -0
- package/lib/components/popover.d.ts +27 -0
- package/lib/components/popover.d.ts.map +1 -0
- package/lib/components/popover.jsx +18 -0
- package/lib/components/popover.jsx.map +1 -0
- package/lib/components/profile/ProfileDialog.d.ts +25 -0
- package/lib/components/profile/ProfileDialog.d.ts.map +1 -0
- package/lib/components/profile/ProfileDialog.jsx +71 -0
- package/lib/components/profile/ProfileDialog.jsx.map +1 -0
- package/lib/components/profile/ProfileTab.d.ts +12 -0
- package/lib/components/profile/ProfileTab.d.ts.map +1 -0
- package/lib/components/profile/ProfileTab.jsx +112 -0
- package/lib/components/profile/ProfileTab.jsx.map +1 -0
- package/lib/components/profile/SecurityTab.d.ts +32 -0
- package/lib/components/profile/SecurityTab.d.ts.map +1 -0
- package/lib/components/profile/SecurityTab.jsx +145 -0
- package/lib/components/profile/SecurityTab.jsx.map +1 -0
- package/lib/components/profile/index.d.ts +4 -0
- package/lib/components/profile/index.d.ts.map +1 -0
- package/lib/components/profile/index.js +4 -0
- package/lib/components/profile/index.js.map +1 -0
- package/lib/components/segmented-toggle.d.ts +28 -0
- package/lib/components/segmented-toggle.d.ts.map +1 -0
- package/lib/components/segmented-toggle.jsx +64 -0
- package/lib/components/segmented-toggle.jsx.map +1 -0
- package/lib/components/separator.d.ts +13 -0
- package/lib/components/separator.d.ts.map +1 -0
- package/lib/components/separator.jsx +16 -0
- package/lib/components/separator.jsx.map +1 -0
- package/lib/components/server-settings.d.ts +27 -0
- package/lib/components/server-settings.d.ts.map +1 -0
- package/lib/components/server-settings.jsx +307 -0
- package/lib/components/server-settings.jsx.map +1 -0
- package/lib/components/settings/AccountSection.d.ts +26 -0
- package/lib/components/settings/AccountSection.d.ts.map +1 -0
- package/lib/components/settings/AccountSection.jsx +32 -0
- package/lib/components/settings/AccountSection.jsx.map +1 -0
- package/lib/components/settings/DangerZoneSection.d.ts +13 -0
- package/lib/components/settings/DangerZoneSection.d.ts.map +1 -0
- package/lib/components/settings/DangerZoneSection.jsx +16 -0
- package/lib/components/settings/DangerZoneSection.jsx.map +1 -0
- package/lib/components/settings/GeneralSection.d.ts +11 -0
- package/lib/components/settings/GeneralSection.d.ts.map +1 -0
- package/lib/components/settings/GeneralSection.jsx +12 -0
- package/lib/components/settings/GeneralSection.jsx.map +1 -0
- package/lib/components/settings/SupportSection.d.ts +11 -0
- package/lib/components/settings/SupportSection.d.ts.map +1 -0
- package/lib/components/settings/SupportSection.jsx +22 -0
- package/lib/components/settings/SupportSection.jsx.map +1 -0
- package/lib/components/settings/index.d.ts +5 -0
- package/lib/components/settings/index.d.ts.map +1 -0
- package/lib/components/settings/index.js +5 -0
- package/lib/components/settings/index.js.map +1 -0
- package/lib/components/settings-row.d.ts +28 -0
- package/lib/components/settings-row.d.ts.map +1 -0
- package/lib/components/settings-row.jsx +68 -0
- package/lib/components/settings-row.jsx.map +1 -0
- package/lib/components/skeleton.d.ts +8 -0
- package/lib/components/skeleton.d.ts.map +1 -0
- package/lib/components/skeleton.jsx +24 -0
- package/lib/components/skeleton.jsx.map +1 -0
- package/lib/components/social-connections.d.ts +15 -0
- package/lib/components/social-connections.d.ts.map +1 -0
- package/lib/components/social-connections.jsx +31 -0
- package/lib/components/social-connections.jsx.map +1 -0
- package/lib/components/stat-card.d.ts +29 -0
- package/lib/components/stat-card.d.ts.map +1 -0
- package/lib/components/stat-card.jsx +36 -0
- package/lib/components/stat-card.jsx.map +1 -0
- package/lib/components/tag-chip.d.ts +18 -0
- package/lib/components/tag-chip.d.ts.map +1 -0
- package/lib/components/tag-chip.jsx +54 -0
- package/lib/components/tag-chip.jsx.map +1 -0
- package/lib/components/tag-multi-select.d.ts +27 -0
- package/lib/components/tag-multi-select.d.ts.map +1 -0
- package/lib/components/tag-multi-select.jsx +65 -0
- package/lib/components/tag-multi-select.jsx.map +1 -0
- package/lib/components/text.d.ts +22 -0
- package/lib/components/text.d.ts.map +1 -0
- package/lib/components/text.jsx +43 -0
- package/lib/components/text.jsx.map +1 -0
- package/lib/components/toast/ToastPortal.d.ts +11 -0
- package/lib/components/toast/ToastPortal.d.ts.map +1 -0
- package/lib/components/toast/ToastPortal.jsx +15 -0
- package/lib/components/toast/ToastPortal.jsx.map +1 -0
- package/lib/components/toast/ToastPortal.web.d.ts +14 -0
- package/lib/components/toast/ToastPortal.web.d.ts.map +1 -0
- package/lib/components/toast/ToastPortal.web.jsx +39 -0
- package/lib/components/toast/ToastPortal.web.jsx.map +1 -0
- package/lib/components/toast/index.d.ts +3 -0
- package/lib/components/toast/index.d.ts.map +1 -0
- package/lib/components/toast/index.js +3 -0
- package/lib/components/toast/index.js.map +1 -0
- package/lib/components/toast/toast-config.d.ts +14 -0
- package/lib/components/toast/toast-config.d.ts.map +1 -0
- package/lib/components/toast/toast-config.jsx +24 -0
- package/lib/components/toast/toast-config.jsx.map +1 -0
- package/lib/components/tooltip.d.ts +30 -0
- package/lib/components/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip.jsx +14 -0
- package/lib/components/tooltip.jsx.map +1 -0
- package/lib/components/totp-display.d.ts +23 -0
- package/lib/components/totp-display.d.ts.map +1 -0
- package/lib/components/totp-display.jsx +132 -0
- package/lib/components/totp-display.jsx.map +1 -0
- package/lib/components/user-avatar.d.ts +18 -0
- package/lib/components/user-avatar.d.ts.map +1 -0
- package/lib/components/user-avatar.jsx +25 -0
- package/lib/components/user-avatar.jsx.map +1 -0
- package/lib/context/AppConfigContext.d.ts +56 -0
- package/lib/context/AppConfigContext.d.ts.map +1 -0
- package/lib/context/AppConfigContext.jsx +14 -0
- package/lib/context/AppConfigContext.jsx.map +1 -0
- package/lib/context/NavigationContext.d.ts +42 -0
- package/lib/context/NavigationContext.d.ts.map +1 -0
- package/lib/context/NavigationContext.jsx +53 -0
- package/lib/context/NavigationContext.jsx.map +1 -0
- package/lib/context/NotificationContext.d.ts +32 -0
- package/lib/context/NotificationContext.d.ts.map +1 -0
- package/lib/context/NotificationContext.jsx +49 -0
- package/lib/context/NotificationContext.jsx.map +1 -0
- package/lib/context/ThemeContext.d.ts +12 -0
- package/lib/context/ThemeContext.d.ts.map +1 -0
- package/lib/context/ThemeContext.jsx +66 -0
- package/lib/context/ThemeContext.jsx.map +1 -0
- package/lib/context/index.d.ts +5 -0
- package/lib/context/index.d.ts.map +1 -0
- package/lib/context/index.js +5 -0
- package/lib/context/index.js.map +1 -0
- package/lib/flags.d.ts +9 -0
- package/lib/flags.d.ts.map +1 -0
- package/lib/flags.js +37 -0
- package/lib/flags.js.map +1 -0
- package/lib/forms/form-error.d.ts +12 -0
- package/lib/forms/form-error.d.ts.map +1 -0
- package/lib/forms/form-error.jsx +14 -0
- package/lib/forms/form-error.jsx.map +1 -0
- package/lib/forms/index.d.ts +3 -0
- package/lib/forms/index.d.ts.map +1 -0
- package/lib/forms/index.js +3 -0
- package/lib/forms/index.js.map +1 -0
- package/lib/forms/shake-field.d.ts +18 -0
- package/lib/forms/shake-field.d.ts.map +1 -0
- package/lib/forms/shake-field.jsx +30 -0
- package/lib/forms/shake-field.jsx.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +6 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useAuth.d.ts +109 -0
- package/lib/hooks/useAuth.d.ts.map +1 -0
- package/lib/hooks/useAuth.jsx +404 -0
- package/lib/hooks/useAuth.jsx.map +1 -0
- package/lib/hooks/useAutoLock.d.ts +22 -0
- package/lib/hooks/useAutoLock.d.ts.map +1 -0
- package/lib/hooks/useAutoLock.js +85 -0
- package/lib/hooks/useAutoLock.js.map +1 -0
- package/lib/hooks/useDebouncedValue.d.ts +19 -0
- package/lib/hooks/useDebouncedValue.d.ts.map +1 -0
- package/lib/hooks/useDebouncedValue.js +29 -0
- package/lib/hooks/useDebouncedValue.js.map +1 -0
- package/lib/hooks/useShakeAnimation.d.ts +17 -0
- package/lib/hooks/useShakeAnimation.d.ts.map +1 -0
- package/lib/hooks/useShakeAnimation.js +22 -0
- package/lib/hooks/useShakeAnimation.js.map +1 -0
- package/lib/hooks/useUploadBlobUrl.d.ts +13 -0
- package/lib/hooks/useUploadBlobUrl.d.ts.map +1 -0
- package/lib/hooks/useUploadBlobUrl.js +60 -0
- package/lib/hooks/useUploadBlobUrl.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +47 -0
- package/lib/index.js.map +1 -0
- package/lib/screens/auth/AccountPickerScreen.d.ts +24 -0
- package/lib/screens/auth/AccountPickerScreen.d.ts.map +1 -0
- package/lib/screens/auth/AccountPickerScreen.jsx +47 -0
- package/lib/screens/auth/AccountPickerScreen.jsx.map +1 -0
- package/lib/screens/auth/AuthScreen.d.ts +59 -0
- package/lib/screens/auth/AuthScreen.d.ts.map +1 -0
- package/lib/screens/auth/AuthScreen.jsx +594 -0
- package/lib/screens/auth/AuthScreen.jsx.map +1 -0
- package/lib/screens/auth/ConsentScreen.d.ts +27 -0
- package/lib/screens/auth/ConsentScreen.d.ts.map +1 -0
- package/lib/screens/auth/ConsentScreen.jsx +55 -0
- package/lib/screens/auth/ConsentScreen.jsx.map +1 -0
- package/lib/screens/auth/ErrorScreen.d.ts +20 -0
- package/lib/screens/auth/ErrorScreen.d.ts.map +1 -0
- package/lib/screens/auth/ErrorScreen.jsx +43 -0
- package/lib/screens/auth/ErrorScreen.jsx.map +1 -0
- package/lib/screens/auth/ExpiredLinkScreen.d.ts +19 -0
- package/lib/screens/auth/ExpiredLinkScreen.d.ts.map +1 -0
- package/lib/screens/auth/ExpiredLinkScreen.jsx +38 -0
- package/lib/screens/auth/ExpiredLinkScreen.jsx.map +1 -0
- package/lib/screens/auth/ForgotPasswordScreen.d.ts +4 -0
- package/lib/screens/auth/ForgotPasswordScreen.d.ts.map +1 -0
- package/lib/screens/auth/ForgotPasswordScreen.jsx +123 -0
- package/lib/screens/auth/ForgotPasswordScreen.jsx.map +1 -0
- package/lib/screens/auth/ImportDataScreen.d.ts +17 -0
- package/lib/screens/auth/ImportDataScreen.d.ts.map +1 -0
- package/lib/screens/auth/ImportDataScreen.jsx +73 -0
- package/lib/screens/auth/ImportDataScreen.jsx.map +1 -0
- package/lib/screens/auth/LoginScreen.d.ts +38 -0
- package/lib/screens/auth/LoginScreen.d.ts.map +1 -0
- package/lib/screens/auth/LoginScreen.jsx +326 -0
- package/lib/screens/auth/LoginScreen.jsx.map +1 -0
- package/lib/screens/auth/MfaChallengeScreen.d.ts +4 -0
- package/lib/screens/auth/MfaChallengeScreen.d.ts.map +1 -0
- package/lib/screens/auth/MfaChallengeScreen.jsx +139 -0
- package/lib/screens/auth/MfaChallengeScreen.jsx.map +1 -0
- package/lib/screens/auth/MfaEnrollScreen.d.ts +12 -0
- package/lib/screens/auth/MfaEnrollScreen.d.ts.map +1 -0
- package/lib/screens/auth/MfaEnrollScreen.jsx +267 -0
- package/lib/screens/auth/MfaEnrollScreen.jsx.map +1 -0
- package/lib/screens/auth/PasskeyEnrollScreen.d.ts +18 -0
- package/lib/screens/auth/PasskeyEnrollScreen.d.ts.map +1 -0
- package/lib/screens/auth/PasskeyEnrollScreen.jsx +51 -0
- package/lib/screens/auth/PasskeyEnrollScreen.jsx.map +1 -0
- package/lib/screens/auth/PrivacyPolicyScreen.d.ts +19 -0
- package/lib/screens/auth/PrivacyPolicyScreen.d.ts.map +1 -0
- package/lib/screens/auth/PrivacyPolicyScreen.jsx +143 -0
- package/lib/screens/auth/PrivacyPolicyScreen.jsx.map +1 -0
- package/lib/screens/auth/RegisterScreen.d.ts +14 -0
- package/lib/screens/auth/RegisterScreen.d.ts.map +1 -0
- package/lib/screens/auth/RegisterScreen.jsx +296 -0
- package/lib/screens/auth/RegisterScreen.jsx.map +1 -0
- package/lib/screens/auth/ResetPasswordScreen.d.ts +12 -0
- package/lib/screens/auth/ResetPasswordScreen.d.ts.map +1 -0
- package/lib/screens/auth/ResetPasswordScreen.jsx +276 -0
- package/lib/screens/auth/ResetPasswordScreen.jsx.map +1 -0
- package/lib/screens/auth/ServerConfigScreen.d.ts +18 -0
- package/lib/screens/auth/ServerConfigScreen.d.ts.map +1 -0
- package/lib/screens/auth/ServerConfigScreen.jsx +259 -0
- package/lib/screens/auth/ServerConfigScreen.jsx.map +1 -0
- package/lib/screens/auth/TermsOfServiceScreen.d.ts +30 -0
- package/lib/screens/auth/TermsOfServiceScreen.d.ts.map +1 -0
- package/lib/screens/auth/TermsOfServiceScreen.jsx +130 -0
- package/lib/screens/auth/TermsOfServiceScreen.jsx.map +1 -0
- package/lib/screens/auth/VerifyEmailScreen.d.ts +4 -0
- package/lib/screens/auth/VerifyEmailScreen.d.ts.map +1 -0
- package/lib/screens/auth/VerifyEmailScreen.jsx +249 -0
- package/lib/screens/auth/VerifyEmailScreen.jsx.map +1 -0
- package/lib/screens/auth/WelcomeScreen.d.ts +17 -0
- package/lib/screens/auth/WelcomeScreen.d.ts.map +1 -0
- package/lib/screens/auth/WelcomeScreen.jsx +58 -0
- package/lib/screens/auth/WelcomeScreen.jsx.map +1 -0
- package/lib/screens/auth/index.d.ts +19 -0
- package/lib/screens/auth/index.d.ts.map +1 -0
- package/lib/screens/auth/index.js +19 -0
- package/lib/screens/auth/index.js.map +1 -0
- package/lib/screens/index.d.ts +2 -0
- package/lib/screens/index.d.ts.map +1 -0
- package/lib/screens/index.js +2 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/services/api-config.d.ts +87 -0
- package/lib/services/api-config.d.ts.map +1 -0
- package/lib/services/api-config.js +202 -0
- package/lib/services/api-config.js.map +1 -0
- package/lib/services/auth.service.d.ts +140 -0
- package/lib/services/auth.service.d.ts.map +1 -0
- package/lib/services/auth.service.js +376 -0
- package/lib/services/auth.service.js.map +1 -0
- package/lib/services/favicon.d.ts +46 -0
- package/lib/services/favicon.d.ts.map +1 -0
- package/lib/services/favicon.js +84 -0
- package/lib/services/favicon.js.map +1 -0
- package/lib/services/hibp-cache.d.ts +23 -0
- package/lib/services/hibp-cache.d.ts.map +1 -0
- package/lib/services/hibp-cache.js +56 -0
- package/lib/services/hibp-cache.js.map +1 -0
- package/lib/services/hibp.d.ts +28 -0
- package/lib/services/hibp.d.ts.map +1 -0
- package/lib/services/hibp.js +92 -0
- package/lib/services/hibp.js.map +1 -0
- package/lib/services/index.d.ts +8 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +7 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/passkey.d.ts +10 -0
- package/lib/services/passkey.d.ts.map +1 -0
- package/lib/services/passkey.js +192 -0
- package/lib/services/passkey.js.map +1 -0
- package/lib/utils/api-fetch.d.ts +11 -0
- package/lib/utils/api-fetch.d.ts.map +1 -0
- package/lib/utils/api-fetch.js +52 -0
- package/lib/utils/api-fetch.js.map +1 -0
- package/lib/utils/clipboard.d.ts +31 -0
- package/lib/utils/clipboard.d.ts.map +1 -0
- package/lib/utils/clipboard.js +66 -0
- package/lib/utils/clipboard.js.map +1 -0
- package/lib/utils/cn.d.ts +9 -0
- package/lib/utils/cn.d.ts.map +1 -0
- package/lib/utils/cn.js +12 -0
- package/lib/utils/cn.js.map +1 -0
- package/lib/utils/debounce.d.ts +13 -0
- package/lib/utils/debounce.d.ts.map +1 -0
- package/lib/utils/debounce.js +28 -0
- package/lib/utils/debounce.js.map +1 -0
- package/lib/utils/error.d.ts +9 -0
- package/lib/utils/error.d.ts.map +1 -0
- package/lib/utils/error.js +11 -0
- package/lib/utils/error.js.map +1 -0
- package/lib/utils/fetch.d.ts +17 -0
- package/lib/utils/fetch.d.ts.map +1 -0
- package/lib/utils/fetch.js +29 -0
- package/lib/utils/fetch.js.map +1 -0
- package/lib/utils/http-error.d.ts +41 -0
- package/lib/utils/http-error.d.ts.map +1 -0
- package/lib/utils/http-error.js +63 -0
- package/lib/utils/http-error.js.map +1 -0
- package/lib/utils/index.d.ts +11 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +11 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/palette.d.ts +46 -0
- package/lib/utils/palette.d.ts.map +1 -0
- package/lib/utils/palette.js +75 -0
- package/lib/utils/palette.js.map +1 -0
- package/lib/utils/password.d.ts +20 -0
- package/lib/utils/password.d.ts.map +1 -0
- package/lib/utils/password.js +51 -0
- package/lib/utils/password.js.map +1 -0
- package/lib/utils/settings-storage.d.ts +3 -0
- package/lib/utils/settings-storage.d.ts.map +1 -0
- package/lib/utils/settings-storage.js +62 -0
- package/lib/utils/settings-storage.js.map +1 -0
- package/lib/utils/validation.d.ts +29 -0
- package/lib/utils/validation.d.ts.map +1 -0
- package/lib/utils/validation.js +58 -0
- package/lib/utils/validation.js.map +1 -0
- package/package.json +204 -0
- package/src/components/__tests__/data-table.test.ts +94 -0
- package/src/components/__tests__/pagination.test.ts +73 -0
- package/src/components/__tests__/stat-card.test.ts +21 -0
- package/src/components/auth/LockOverlay.tsx +122 -0
- package/src/components/auth/PasswordStrengthMeter.tsx +96 -0
- package/src/components/auth/ProtectedRoute.tsx +91 -0
- package/src/components/auth/PwnedPasswordWarning.tsx +54 -0
- package/src/components/auth/index.ts +10 -0
- package/src/components/bottom-nav.tsx +99 -0
- package/src/components/button.tsx +144 -0
- package/src/components/card.tsx +82 -0
- package/src/components/checkbox.tsx +48 -0
- package/src/components/connection-settings.tsx +583 -0
- package/src/components/context-menu.tsx +95 -0
- package/src/components/data-table.tsx +223 -0
- package/src/components/dialog.tsx +376 -0
- package/src/components/dropdown-menu.tsx +120 -0
- package/src/components/entropy-boot-splash.tsx +114 -0
- package/src/components/entropy-mark-animated.tsx +260 -0
- package/src/components/entropy-mark-geometry.ts +11 -0
- package/src/components/entropy-mark-sequential.tsx +132 -0
- package/src/components/entropy-mark.tsx +135 -0
- package/src/components/error-boundary.tsx +70 -0
- package/src/components/index.ts +156 -0
- package/src/components/input.tsx +246 -0
- package/src/components/item-icon.tsx +111 -0
- package/src/components/label.tsx +25 -0
- package/src/components/legal-dialog.tsx +47 -0
- package/src/components/license-gate.tsx +28 -0
- package/src/components/logo.tsx +34 -0
- package/src/components/onboarding-wizard.tsx +353 -0
- package/src/components/pagination.tsx +154 -0
- package/src/components/password-generator.tsx +393 -0
- package/src/components/pin-pad.tsx +156 -0
- package/src/components/popover.tsx +38 -0
- package/src/components/profile/ProfileDialog.tsx +129 -0
- package/src/components/profile/ProfileTab.tsx +151 -0
- package/src/components/profile/SecurityTab.tsx +229 -0
- package/src/components/profile/index.ts +3 -0
- package/src/components/segmented-toggle.tsx +119 -0
- package/src/components/separator.tsx +41 -0
- package/src/components/server-settings.tsx +442 -0
- package/src/components/settings/AccountSection.tsx +76 -0
- package/src/components/settings/DangerZoneSection.tsx +37 -0
- package/src/components/settings/GeneralSection.tsx +39 -0
- package/src/components/settings/SupportSection.tsx +53 -0
- package/src/components/settings/index.ts +4 -0
- package/src/components/settings-row.tsx +126 -0
- package/src/components/skeleton.tsx +48 -0
- package/src/components/social-connections.tsx +55 -0
- package/src/components/stat-card.tsx +64 -0
- package/src/components/tag-chip.tsx +78 -0
- package/src/components/tag-multi-select.tsx +136 -0
- package/src/components/text.tsx +77 -0
- package/src/components/toast/ToastPortal.tsx +16 -0
- package/src/components/toast/ToastPortal.web.tsx +47 -0
- package/src/components/toast/index.ts +2 -0
- package/src/components/toast/toast-config.tsx +31 -0
- package/src/components/tooltip.tsx +30 -0
- package/src/components/totp-display.tsx +207 -0
- package/src/components/user-avatar.tsx +46 -0
- package/src/context/AppConfigContext.tsx +76 -0
- package/src/context/NavigationContext.tsx +75 -0
- package/src/context/NotificationContext.tsx +69 -0
- package/src/context/ThemeContext.tsx +83 -0
- package/src/context/__tests__/NavigationContext.test.tsx +53 -0
- package/src/context/index.ts +24 -0
- package/src/flags.ts +44 -0
- package/src/forms/form-error.tsx +20 -0
- package/src/forms/index.ts +2 -0
- package/src/forms/shake-field.tsx +52 -0
- package/src/hooks/__tests__/useUploadBlobUrl.test.tsx +77 -0
- package/src/hooks/index.ts +18 -0
- package/src/hooks/useAuth.tsx +567 -0
- package/src/hooks/useAutoLock.ts +110 -0
- package/src/hooks/useDebouncedValue.ts +32 -0
- package/src/hooks/useShakeAnimation.ts +42 -0
- package/src/hooks/useUploadBlobUrl.ts +75 -0
- package/src/index.ts +48 -0
- package/src/screens/auth/AccountPickerScreen.tsx +103 -0
- package/src/screens/auth/AuthScreen.tsx +941 -0
- package/src/screens/auth/ConsentScreen.tsx +118 -0
- package/src/screens/auth/ErrorScreen.tsx +96 -0
- package/src/screens/auth/ExpiredLinkScreen.tsx +87 -0
- package/src/screens/auth/ForgotPasswordScreen.tsx +182 -0
- package/src/screens/auth/ImportDataScreen.tsx +112 -0
- package/src/screens/auth/LoginScreen.tsx +484 -0
- package/src/screens/auth/MfaChallengeScreen.tsx +216 -0
- package/src/screens/auth/MfaEnrollScreen.tsx +388 -0
- package/src/screens/auth/PasskeyEnrollScreen.tsx +96 -0
- package/src/screens/auth/PrivacyPolicyScreen.tsx +249 -0
- package/src/screens/auth/RegisterScreen.tsx +430 -0
- package/src/screens/auth/ResetPasswordScreen.tsx +377 -0
- package/src/screens/auth/ServerConfigScreen.tsx +388 -0
- package/src/screens/auth/TermsOfServiceScreen.tsx +236 -0
- package/src/screens/auth/VerifyEmailScreen.tsx +310 -0
- package/src/screens/auth/WelcomeScreen.tsx +78 -0
- package/src/screens/auth/index.ts +36 -0
- package/src/screens/index.ts +1 -0
- package/src/services/__tests__/api-config.test.ts +67 -0
- package/src/services/__tests__/favicon.test.ts +88 -0
- package/src/services/__tests__/hibp-cache.test.ts +37 -0
- package/src/services/__tests__/hibp.test.ts +39 -0
- package/src/services/api-config.ts +260 -0
- package/src/services/auth.service.ts +498 -0
- package/src/services/favicon.ts +102 -0
- package/src/services/hibp-cache.ts +71 -0
- package/src/services/hibp.ts +120 -0
- package/src/services/index.ts +52 -0
- package/src/services/passkey.ts +213 -0
- package/src/types/external.d.ts +24 -0
- package/src/utils/__tests__/clipboard.test.ts +59 -0
- package/src/utils/__tests__/cn.test.ts +24 -0
- package/src/utils/__tests__/debounce.test.ts +42 -0
- package/src/utils/__tests__/error.test.ts +18 -0
- package/src/utils/__tests__/http-error.test.ts +33 -0
- package/src/utils/__tests__/palette.test.ts +22 -0
- package/src/utils/__tests__/password.test.ts +55 -0
- package/src/utils/__tests__/settings-storage.test.ts +15 -0
- package/src/utils/__tests__/validation.test.ts +52 -0
- package/src/utils/api-fetch.ts +61 -0
- package/src/utils/clipboard.ts +69 -0
- package/src/utils/cn.ts +12 -0
- package/src/utils/debounce.ts +33 -0
- package/src/utils/error.ts +10 -0
- package/src/utils/fetch.ts +33 -0
- package/src/utils/http-error.ts +81 -0
- package/src/utils/index.ts +23 -0
- package/src/utils/palette.ts +105 -0
- package/src/utils/password.ts +64 -0
- package/src/utils/settings-storage.ts +68 -0
- package/src/utils/validation.ts +71 -0
- package/styles/globals.css +262 -0
- package/tailwind-preset.js +163 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
2
|
+
import { Pressable, ScrollView, View } from "react-native";
|
|
3
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
4
|
+
import { useNavigation } from "../../context/NavigationContext";
|
|
5
|
+
import { StatusBar } from "expo-status-bar";
|
|
6
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
7
|
+
import { useColorScheme } from "nativewind";
|
|
8
|
+
import * as Haptics from "expo-haptics";
|
|
9
|
+
import { copyToClipboard as sharedCopy } from "../../utils/clipboard";
|
|
10
|
+
import QRCode from "react-native-qrcode-svg";
|
|
11
|
+
import Toast from "react-native-toast-message";
|
|
12
|
+
import { MonoText, MutedText } from "../../components/text";
|
|
13
|
+
import { Button } from "../../components/button";
|
|
14
|
+
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "../../components/card";
|
|
15
|
+
import { Input } from "../../components/input";
|
|
16
|
+
import { Separator } from "../../components/separator";
|
|
17
|
+
import AuthService from "../../services/auth.service";
|
|
18
|
+
import { useAuth } from "../../hooks/useAuth";
|
|
19
|
+
import { useAppConfig } from "../../context/AppConfigContext";
|
|
20
|
+
import { getErrorMessage } from "../../utils/error";
|
|
21
|
+
export function MfaEnrollScreen({ authenticatorAppPromo } = {}) {
|
|
22
|
+
const { refreshUser } = useAuth();
|
|
23
|
+
const { colorScheme } = useColorScheme();
|
|
24
|
+
const isDark = colorScheme === "dark";
|
|
25
|
+
const router = useNavigation();
|
|
26
|
+
const { appName, routes } = useAppConfig();
|
|
27
|
+
const [step, setStep] = useState("prompt");
|
|
28
|
+
const [setupData, setSetupData] = useState(null);
|
|
29
|
+
const [code, setCode] = useState("");
|
|
30
|
+
const [error, setError] = useState("");
|
|
31
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
32
|
+
const [copied, setCopied] = useState(null);
|
|
33
|
+
const copiedResetTimerRef = useRef(undefined);
|
|
34
|
+
useEffect(() => () => {
|
|
35
|
+
if (copiedResetTimerRef.current) {
|
|
36
|
+
clearTimeout(copiedResetTimerRef.current);
|
|
37
|
+
}
|
|
38
|
+
}, []);
|
|
39
|
+
// The shared `copyToClipboard` writes the value AND schedules the
|
|
40
|
+
// 30s auto-wipe at module scope, so unmounting this screen no
|
|
41
|
+
// longer cancels the wipe (the previous component-scoped timer
|
|
42
|
+
// was the exact footgun the shared helper exists to avoid).
|
|
43
|
+
const copyToClipboard = async (text, label) => {
|
|
44
|
+
const ok = await sharedCopy(text);
|
|
45
|
+
if (!ok) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
setCopied(label);
|
|
49
|
+
Toast.show({ type: "success", text1: `${label} copied`, visibilityTime: 1500 });
|
|
50
|
+
if (copiedResetTimerRef.current) {
|
|
51
|
+
clearTimeout(copiedResetTimerRef.current);
|
|
52
|
+
}
|
|
53
|
+
copiedResetTimerRef.current = setTimeout(() => {
|
|
54
|
+
setCopied(null);
|
|
55
|
+
}, 30_000);
|
|
56
|
+
};
|
|
57
|
+
const handleStartSetup = async () => {
|
|
58
|
+
setIsLoading(true);
|
|
59
|
+
try {
|
|
60
|
+
const data = await AuthService.setupMfa();
|
|
61
|
+
setSetupData(data);
|
|
62
|
+
setStep("setup");
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
Toast.show({
|
|
66
|
+
type: "error",
|
|
67
|
+
text1: getErrorMessage(e, "Failed to start MFA setup"),
|
|
68
|
+
visibilityTime: 3000,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
setIsLoading(false);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const handleVerifyCode = async () => {
|
|
76
|
+
if (code.length !== 6) {
|
|
77
|
+
setError("Enter the 6-digit code from your authenticator app");
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
setIsLoading(true);
|
|
81
|
+
try {
|
|
82
|
+
await AuthService.verifyMfaSetup(code);
|
|
83
|
+
await Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
|
|
84
|
+
if (setupData) {
|
|
85
|
+
setSetupData({ ...setupData, secret: "", uri: "" });
|
|
86
|
+
}
|
|
87
|
+
setStep("recovery");
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
setError(getErrorMessage(e, "Invalid code. Make sure your authenticator is synced."));
|
|
91
|
+
await Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error);
|
|
92
|
+
}
|
|
93
|
+
finally {
|
|
94
|
+
setIsLoading(false);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const handleFinish = async () => {
|
|
98
|
+
try {
|
|
99
|
+
await refreshUser();
|
|
100
|
+
setSetupData(null);
|
|
101
|
+
Toast.show({
|
|
102
|
+
type: "success",
|
|
103
|
+
text1: "MFA enabled!",
|
|
104
|
+
text2: "Your account is now protected with two-factor authentication.",
|
|
105
|
+
visibilityTime: 3000,
|
|
106
|
+
});
|
|
107
|
+
router.replace(routes.importData);
|
|
108
|
+
}
|
|
109
|
+
catch (e) {
|
|
110
|
+
Toast.show({
|
|
111
|
+
type: "error",
|
|
112
|
+
text1: getErrorMessage(e, "Failed to continue"),
|
|
113
|
+
visibilityTime: 3000,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const handleSkip = async () => {
|
|
118
|
+
try {
|
|
119
|
+
setSetupData(null);
|
|
120
|
+
await AuthService.completeOnboarding();
|
|
121
|
+
await refreshUser();
|
|
122
|
+
router.replace(routes.importData);
|
|
123
|
+
}
|
|
124
|
+
catch (e) {
|
|
125
|
+
Toast.show({
|
|
126
|
+
type: "error",
|
|
127
|
+
text1: getErrorMessage(e, "Failed to skip"),
|
|
128
|
+
visibilityTime: 3000,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
return (<SafeAreaView className="flex-1 bg-background">
|
|
133
|
+
<StatusBar style={isDark ? "light" : "dark"}/>
|
|
134
|
+
<ScrollView className="flex-1" contentContainerClassName="flex-1 items-center justify-center p-6" keyboardShouldPersistTaps="handled">
|
|
135
|
+
<Card className="w-full max-w-[400px]">
|
|
136
|
+
{step === "prompt" ? (<>
|
|
137
|
+
<CardHeader className="items-center">
|
|
138
|
+
<View className="mb-3 h-16 w-16 items-center justify-center rounded-full bg-secondary dark:bg-neutral-800">
|
|
139
|
+
<Ionicons name="shield-checkmark-outline" size={32} color={isDark ? "#FFFFFF" : "#000000"}/>
|
|
140
|
+
</View>
|
|
141
|
+
<CardTitle className="text-center">Secure your account</CardTitle>
|
|
142
|
+
<CardDescription className="text-center">
|
|
143
|
+
Add an extra layer of security with two-factor authentication (MFA). You'll
|
|
144
|
+
need an authenticator app to generate verification codes.
|
|
145
|
+
</CardDescription>
|
|
146
|
+
</CardHeader>
|
|
147
|
+
|
|
148
|
+
{authenticatorAppPromo ? (<CardContent className="gap-3">{authenticatorAppPromo}</CardContent>) : null}
|
|
149
|
+
|
|
150
|
+
<CardFooter className="flex-col gap-3 border-t-0">
|
|
151
|
+
<Button className="w-full" onPress={handleStartSetup} isLoading={isLoading} accessibilityLabel="Enable MFA" accessibilityRole="button">
|
|
152
|
+
Enable MFA
|
|
153
|
+
</Button>
|
|
154
|
+
<Button variant="ghost" className="w-full" onPress={handleSkip} accessibilityLabel="Skip for now" accessibilityRole="button">
|
|
155
|
+
Skip for now
|
|
156
|
+
</Button>
|
|
157
|
+
</CardFooter>
|
|
158
|
+
</>) : null}
|
|
159
|
+
|
|
160
|
+
{step === "setup" && setupData ? (<>
|
|
161
|
+
<CardHeader className="items-center">
|
|
162
|
+
<CardTitle className="text-center">Scan QR code</CardTitle>
|
|
163
|
+
<CardDescription className="text-center">
|
|
164
|
+
Open your authenticator app and scan this QR code, or enter the secret key
|
|
165
|
+
manually.
|
|
166
|
+
</CardDescription>
|
|
167
|
+
</CardHeader>
|
|
168
|
+
|
|
169
|
+
<CardContent className="gap-4">
|
|
170
|
+
<View className="items-center">
|
|
171
|
+
<View className="rounded-xl bg-white p-4">
|
|
172
|
+
<QRCode value={setupData.uri} size={200} backgroundColor="#FFFFFF" color="#000000"/>
|
|
173
|
+
</View>
|
|
174
|
+
<MutedText className="mt-2 text-center text-xs">
|
|
175
|
+
Scan with your authenticator app
|
|
176
|
+
</MutedText>
|
|
177
|
+
</View>
|
|
178
|
+
|
|
179
|
+
<Separator />
|
|
180
|
+
|
|
181
|
+
<View>
|
|
182
|
+
<MutedText className="mb-2 text-center text-xs font-medium">
|
|
183
|
+
Can't scan? Enter the secret key manually
|
|
184
|
+
</MutedText>
|
|
185
|
+
<Pressable onPress={() => copyToClipboard(setupData.secret, "Secret")} className="rounded-lg bg-secondary p-3 active:opacity-70 dark:bg-neutral-800" accessibilityRole="button" accessibilityLabel="Copy secret key" accessibilityHint="Double tap to copy the secret key to clipboard">
|
|
186
|
+
<MonoText className="text-center text-base font-bold tracking-widest">
|
|
187
|
+
{setupData.secret}
|
|
188
|
+
</MonoText>
|
|
189
|
+
</Pressable>
|
|
190
|
+
<MutedText className="mt-1 text-center text-xs">Tap to copy</MutedText>
|
|
191
|
+
</View>
|
|
192
|
+
|
|
193
|
+
<Pressable onPress={() => copyToClipboard(setupData.uri, "URI")} className="rounded-lg bg-secondary px-3 py-2 active:opacity-70 dark:bg-neutral-800" accessibilityRole="button" accessibilityLabel="Copy full OTP URI">
|
|
194
|
+
<MutedText className="text-center text-xs">Copy full OTP URI</MutedText>
|
|
195
|
+
</Pressable>
|
|
196
|
+
|
|
197
|
+
<Separator />
|
|
198
|
+
|
|
199
|
+
<View>
|
|
200
|
+
<MutedText className="mb-1.5 text-center text-xs font-medium">
|
|
201
|
+
Enter the 6-digit code from your authenticator
|
|
202
|
+
</MutedText>
|
|
203
|
+
<Input value={code} onChangeText={(text) => {
|
|
204
|
+
setCode(text.replace(/[^0-9]/g, "").slice(0, 6));
|
|
205
|
+
if (error) {
|
|
206
|
+
setError("");
|
|
207
|
+
}
|
|
208
|
+
}} error={error} placeholder="000000" keyboardType="number-pad" className="text-center font-mono text-xl tracking-widest" returnKeyType="done" onSubmitEditing={handleVerifyCode} accessibilityLabel="Authenticator code"/>
|
|
209
|
+
</View>
|
|
210
|
+
</CardContent>
|
|
211
|
+
|
|
212
|
+
<CardFooter className="flex-col gap-3 border-t-0">
|
|
213
|
+
<Button className="w-full" onPress={handleVerifyCode} isLoading={isLoading} disabled={code.length !== 6} accessibilityLabel="Verify and enable MFA" accessibilityRole="button">
|
|
214
|
+
Verify & Enable
|
|
215
|
+
</Button>
|
|
216
|
+
<Button variant="ghost" className="w-full" onPress={handleSkip} accessibilityLabel="Skip for now" accessibilityRole="button">
|
|
217
|
+
Skip for now
|
|
218
|
+
</Button>
|
|
219
|
+
</CardFooter>
|
|
220
|
+
</>) : null}
|
|
221
|
+
|
|
222
|
+
{step === "recovery" && setupData ? (<>
|
|
223
|
+
<CardHeader className="items-center">
|
|
224
|
+
<View className="mb-3 h-16 w-16 items-center justify-center rounded-full bg-secondary dark:bg-neutral-800">
|
|
225
|
+
<Ionicons name="shield-checkmark" size={32} color={isDark ? "#FFFFFF" : "#000000"}/>
|
|
226
|
+
</View>
|
|
227
|
+
<CardTitle className="text-center">MFA enabled!</CardTitle>
|
|
228
|
+
<CardDescription className="text-center">
|
|
229
|
+
Save these recovery codes in a safe place. You'll need them to access your
|
|
230
|
+
account if you lose your authenticator device.
|
|
231
|
+
</CardDescription>
|
|
232
|
+
</CardHeader>
|
|
233
|
+
|
|
234
|
+
<CardContent className="gap-3">
|
|
235
|
+
<View className="rounded-lg border border-border bg-secondary p-4 dark:border-neutral-700 dark:bg-neutral-800">
|
|
236
|
+
{setupData.recovery_codes.map((rc) => (<MonoText key={rc} className="text-center text-sm leading-6">
|
|
237
|
+
{rc}
|
|
238
|
+
</MonoText>))}
|
|
239
|
+
</View>
|
|
240
|
+
|
|
241
|
+
<Button variant="outline" className="w-full" onPress={() => copyToClipboard(setupData.recovery_codes.join("\n"), "Recovery codes")} accessibilityLabel="Copy all recovery codes" accessibilityRole="button">
|
|
242
|
+
{copied === "Recovery codes" ? "Copied!" : "Copy all codes"}
|
|
243
|
+
</Button>
|
|
244
|
+
|
|
245
|
+
<View className="rounded-lg bg-secondary p-3 dark:bg-neutral-800">
|
|
246
|
+
<View className="flex-row items-start gap-2">
|
|
247
|
+
<Ionicons name="warning-outline" size={16} color={isDark ? "#F59E0B" : "#D97706"}/>
|
|
248
|
+
<MutedText className="flex-1 text-xs leading-4">
|
|
249
|
+
Each code can only be used once. Store them securely — they cannot be
|
|
250
|
+
recovered if lost.
|
|
251
|
+
</MutedText>
|
|
252
|
+
</View>
|
|
253
|
+
</View>
|
|
254
|
+
</CardContent>
|
|
255
|
+
|
|
256
|
+
<CardFooter className="border-t-0">
|
|
257
|
+
<Button className="w-full" onPress={handleFinish} accessibilityLabel={`Continue to ${appName}`} accessibilityRole="button">
|
|
258
|
+
Continue to {appName}
|
|
259
|
+
</Button>
|
|
260
|
+
</CardFooter>
|
|
261
|
+
</>) : null}
|
|
262
|
+
</Card>
|
|
263
|
+
</ScrollView>
|
|
264
|
+
</SafeAreaView>);
|
|
265
|
+
}
|
|
266
|
+
export default MfaEnrollScreen;
|
|
267
|
+
//# sourceMappingURL=MfaEnrollScreen.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MfaEnrollScreen.jsx","sourceRoot":"","sources":["../../../src/screens/auth/MfaEnrollScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAC7C,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,4BA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,EAAE,gBAAgB,CACvE,CAAC,CACD,kBAAkB,CAAC,yBAAyB,CAC5C,iBAAiB,CAAC,QAAQ,CAE1B;kBAAA,CAAC,MAAM,KAAK,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAC7D;gBAAA,EAAE,MAAM,CAER;;gBAAA,CAAC,IAAI,CAAC,SAAS,CAAC,iDAAiD,CAC/D;kBAAA,CAAC,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAC1C;oBAAA,CAAC,QAAQ,CACP,IAAI,CAAC,iBAAiB,CACtB,IAAI,CAAC,CAAC,EAAE,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,EAExC;oBAAA,CAAC,SAAS,CAAC,SAAS,CAAC,0BAA0B,CAC7C;;;oBAEF,EAAE,SAAS,CACb;kBAAA,EAAE,IAAI,CACR;gBAAA,EAAE,IAAI,CACR;cAAA,EAAE,WAAW,CAEb;;cAAA,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAChC;gBAAA,CAAC,MAAM,CACL,SAAS,CAAC,QAAQ,CAClB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,kBAAkB,CAAC,CAAC,eAAe,OAAO,EAAE,CAAC,CAC7C,iBAAiB,CAAC,QAAQ,CAE1B;8BAAY,CAAC,OAAO,CACtB;gBAAA,EAAE,MAAM,CACV;cAAA,EAAE,UAAU,CACd;YAAA,GAAG,CACJ,CAAC,CAAC,CAAC,IAAI,CACV;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,UAAU,CACd;IAAA,EAAE,YAAY,CAAC,CAChB,CAAC;AACJ,CAAC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PasskeyEnrollScreenProps {
|
|
3
|
+
/** Start the WebAuthn registration ceremony (host app owns the ceremony). */
|
|
4
|
+
onEnroll: () => void;
|
|
5
|
+
/** Continue without enrolling a passkey. */
|
|
6
|
+
onSkip: () => void;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
error?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Standalone passkey (WebAuthn) enrollment prompt — offered after sign-in so a
|
|
12
|
+
* user can add a passkey without going through account settings. Presentational:
|
|
13
|
+
* the host app runs the actual `navigator.credentials` ceremony via its
|
|
14
|
+
* AuthService and drives navigation on enroll / skip.
|
|
15
|
+
*/
|
|
16
|
+
export declare function PasskeyEnrollScreen({ onEnroll, onSkip, isLoading, error, }: PasskeyEnrollScreenProps): React.JSX.Element;
|
|
17
|
+
export default PasskeyEnrollScreen;
|
|
18
|
+
//# sourceMappingURL=PasskeyEnrollScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasskeyEnrollScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/auth/PasskeyEnrollScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,GACN,EAAE,wBAAwB,qBAyD1B;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ScrollView } from "react-native";
|
|
3
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
4
|
+
import { StatusBar } from "expo-status-bar";
|
|
5
|
+
import { useColorScheme } from "nativewind";
|
|
6
|
+
import { MutedText, Text } from "../../components/text";
|
|
7
|
+
import { Button } from "../../components/button";
|
|
8
|
+
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "../../components/card";
|
|
9
|
+
/**
|
|
10
|
+
* Standalone passkey (WebAuthn) enrollment prompt — offered after sign-in so a
|
|
11
|
+
* user can add a passkey without going through account settings. Presentational:
|
|
12
|
+
* the host app runs the actual `navigator.credentials` ceremony via its
|
|
13
|
+
* AuthService and drives navigation on enroll / skip.
|
|
14
|
+
*/
|
|
15
|
+
export function PasskeyEnrollScreen({ onEnroll, onSkip, isLoading, error, }) {
|
|
16
|
+
const { colorScheme } = useColorScheme();
|
|
17
|
+
const isDark = colorScheme === "dark";
|
|
18
|
+
return (<SafeAreaView className="flex-1 bg-background">
|
|
19
|
+
<StatusBar style={isDark ? "light" : "dark"}/>
|
|
20
|
+
<ScrollView className="flex-1" contentContainerClassName="flex-1 items-center justify-center p-6" keyboardShouldPersistTaps="handled">
|
|
21
|
+
<Card className="w-full max-w-[380px]">
|
|
22
|
+
<CardHeader>
|
|
23
|
+
<CardTitle>Add a passkey</CardTitle>
|
|
24
|
+
<CardDescription>
|
|
25
|
+
Sign in faster and more securely next time with a passkey — your
|
|
26
|
+
device unlocks it with your fingerprint, face, or PIN. No password
|
|
27
|
+
to remember or phish.
|
|
28
|
+
</CardDescription>
|
|
29
|
+
</CardHeader>
|
|
30
|
+
|
|
31
|
+
<CardContent className="gap-2">
|
|
32
|
+
{error ? (<Text className="text-sm text-destructive">{error}</Text>) : (<MutedText className="text-sm">
|
|
33
|
+
You can always add or remove passkeys later in your account
|
|
34
|
+
settings.
|
|
35
|
+
</MutedText>)}
|
|
36
|
+
</CardContent>
|
|
37
|
+
|
|
38
|
+
<CardFooter className="flex-col gap-3 border-t-0">
|
|
39
|
+
<Button className="w-full" onPress={onEnroll} isLoading={isLoading} accessibilityLabel="Add a passkey" accessibilityRole="button">
|
|
40
|
+
Add a passkey
|
|
41
|
+
</Button>
|
|
42
|
+
<Button className="w-full" variant="ghost" onPress={onSkip} accessibilityLabel="Not now" accessibilityRole="button">
|
|
43
|
+
Not now
|
|
44
|
+
</Button>
|
|
45
|
+
</CardFooter>
|
|
46
|
+
</Card>
|
|
47
|
+
</ScrollView>
|
|
48
|
+
</SafeAreaView>);
|
|
49
|
+
}
|
|
50
|
+
export default PasskeyEnrollScreen;
|
|
51
|
+
//# sourceMappingURL=PasskeyEnrollScreen.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasskeyEnrollScreen.jsx","sourceRoot":"","sources":["../../../src/screens/auth/PasskeyEnrollScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,uBAAuB,CAAC;AAW/B;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,GACoB;IACzB,MAAM,EAAE,WAAW,EAAE,GAAG,cAAc,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,WAAW,KAAK,MAAM,CAAC;IAEtC,OAAO,CACL,CAAC,YAAY,CAAC,SAAS,CAAC,sBAAsB,CAC5C;MAAA,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAC5C;MA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react";
|
|
2
|
+
import type { LegalSection } from "./TermsOfServiceScreen";
|
|
3
|
+
export interface PrivacyPolicyScreenProps {
|
|
4
|
+
/**
|
|
5
|
+
* Per-app section list. When omitted, falls back to
|
|
6
|
+
* `AppConfig.privacyText` (rendered as a single section) or a generic
|
|
7
|
+
* placeholder.
|
|
8
|
+
*/
|
|
9
|
+
sections?: LegalSection[];
|
|
10
|
+
/** Optional highlight bullet list (vault renders four privacy bullets). */
|
|
11
|
+
highlights?: string[];
|
|
12
|
+
buildLabel?: string;
|
|
13
|
+
effectiveDate?: string;
|
|
14
|
+
supportEmail?: string;
|
|
15
|
+
organisationName?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function PrivacyPolicyScreen({ sections, highlights, buildLabel, effectiveDate, supportEmail, organisationName, }: PrivacyPolicyScreenProps): React.JSX.Element;
|
|
18
|
+
export default PrivacyPolicyScreen;
|
|
19
|
+
//# sourceMappingURL=PrivacyPolicyScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrivacyPolicyScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/auth/PrivacyPolicyScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,UAAU,EACV,UAAU,EACV,aAAa,EACb,YAA6C,EAC7C,gBAAgB,GACjB,EAAE,wBAAwB,qBAoN1B;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Linking, ScrollView, Text, View } from "react-native";
|
|
3
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
4
|
+
import { useNavigation } from "../../context/NavigationContext";
|
|
5
|
+
import { StatusBar } from "expo-status-bar";
|
|
6
|
+
import { Ionicons } from "@expo/vector-icons";
|
|
7
|
+
import { useColorScheme } from "nativewind";
|
|
8
|
+
import { IconButton } from "../../components/button";
|
|
9
|
+
import { EntropyByline } from "../../components/entropy-mark";
|
|
10
|
+
import { useAppConfig } from "../../context/AppConfigContext";
|
|
11
|
+
export function PrivacyPolicyScreen({ sections, highlights, buildLabel, effectiveDate, supportEmail = "support@entropysoftworks.com", organisationName, }) {
|
|
12
|
+
const { colorScheme } = useColorScheme();
|
|
13
|
+
const isDark = colorScheme === "dark";
|
|
14
|
+
const router = useNavigation();
|
|
15
|
+
const { appName, privacyText } = useAppConfig();
|
|
16
|
+
const resolvedSections = sections ??
|
|
17
|
+
(privacyText
|
|
18
|
+
? [{ title: "Privacy", content: privacyText }]
|
|
19
|
+
: [{ title: "Privacy Policy", content: `Privacy policy for ${appName}.` }]);
|
|
20
|
+
const today = effectiveDate ??
|
|
21
|
+
new Date().toLocaleDateString("en-US", {
|
|
22
|
+
year: "numeric",
|
|
23
|
+
month: "long",
|
|
24
|
+
day: "numeric",
|
|
25
|
+
});
|
|
26
|
+
const org = organisationName ?? appName;
|
|
27
|
+
return (<SafeAreaView className="flex-1" style={{ backgroundColor: isDark ? "#000000" : "#FFFFFF" }}>
|
|
28
|
+
<StatusBar style={isDark ? "light" : "dark"}/>
|
|
29
|
+
|
|
30
|
+
<View className="flex-1" style={{ backgroundColor: isDark ? "#000000" : "#FFFFFF" }}>
|
|
31
|
+
<View className="px-6 pt-4 pb-6">
|
|
32
|
+
<View className="flex-row items-center justify-between mb-6">
|
|
33
|
+
<IconButton variant="ghost" size="sm" onPress={() => router.back()}>
|
|
34
|
+
<Ionicons name="arrow-back" size={20} color={isDark ? "#FFFFFF" : "#000000"}/>
|
|
35
|
+
</IconButton>
|
|
36
|
+
|
|
37
|
+
{buildLabel ? (<Text className="text-xs" style={{ color: isDark ? "#999999" : "#666666" }}>
|
|
38
|
+
{buildLabel}
|
|
39
|
+
</Text>) : null}
|
|
40
|
+
</View>
|
|
41
|
+
|
|
42
|
+
<Text className="font-sans-bold mb-3" style={{ fontSize: 36, color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
43
|
+
Privacy Policy
|
|
44
|
+
</Text>
|
|
45
|
+
|
|
46
|
+
<Text className="font-mono text-sm" style={{ color: isDark ? "#999999" : "#666666" }}>
|
|
47
|
+
Effective Date: {today}
|
|
48
|
+
</Text>
|
|
49
|
+
</View>
|
|
50
|
+
|
|
51
|
+
<ScrollView className="flex-1 px-6" showsVerticalScrollIndicator={false} contentContainerStyle={{ paddingBottom: 40 }}>
|
|
52
|
+
<View className="rounded-lg mb-4 p-4" style={{
|
|
53
|
+
backgroundColor: isDark ? "#1A1A1A" : "#F9F9F9",
|
|
54
|
+
borderWidth: 1,
|
|
55
|
+
borderColor: isDark ? "#333333" : "#E5E5E5",
|
|
56
|
+
}}>
|
|
57
|
+
<Text className="font-mono text-base" style={{ color: isDark ? "#E5E5E5" : "#333333", lineHeight: 24 }}>
|
|
58
|
+
This Privacy Policy explains how we collect, use, disclose, and safeguard your
|
|
59
|
+
information when you use {appName}.
|
|
60
|
+
</Text>
|
|
61
|
+
</View>
|
|
62
|
+
|
|
63
|
+
{highlights && highlights.length > 0 ? (<View className="rounded-lg mb-4 p-4" style={{
|
|
64
|
+
backgroundColor: isDark ? "#1A2E1A" : "#F0FFF4",
|
|
65
|
+
borderWidth: 1,
|
|
66
|
+
borderColor: isDark ? "#4A7C4A" : "#9AE6B4",
|
|
67
|
+
}}>
|
|
68
|
+
<Text className="font-sans-medium text-lg mb-3" style={{ color: isDark ? "#9AE6B4" : "#22543D" }}>
|
|
69
|
+
Key Privacy Features
|
|
70
|
+
</Text>
|
|
71
|
+
<View className="gap-2">
|
|
72
|
+
{highlights.map((item, idx) => (<View key={idx} className="flex-row items-center">
|
|
73
|
+
<Ionicons name="checkmark-circle" size={16} color={isDark ? "#4ADE80" : "#16A34A"}/>
|
|
74
|
+
<Text className="font-mono ml-2 text-sm" style={{ color: isDark ? "#9AE6B4" : "#22543D" }}>
|
|
75
|
+
{item}
|
|
76
|
+
</Text>
|
|
77
|
+
</View>))}
|
|
78
|
+
</View>
|
|
79
|
+
</View>) : null}
|
|
80
|
+
|
|
81
|
+
<View className="gap-4">
|
|
82
|
+
{resolvedSections.map((section, index) => (<View key={index} className="rounded-lg p-4" style={{
|
|
83
|
+
backgroundColor: isDark ? "#0A0A0A" : "#FFFFFF",
|
|
84
|
+
borderWidth: 1,
|
|
85
|
+
borderColor: isDark ? "#333333" : "#E5E5E5",
|
|
86
|
+
}}>
|
|
87
|
+
<Text className="font-sans-medium text-lg mb-2" style={{ color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
88
|
+
{section.title}
|
|
89
|
+
</Text>
|
|
90
|
+
<Text className="font-mono text-sm" style={{ color: isDark ? "#999999" : "#666666", lineHeight: 22 }}>
|
|
91
|
+
{section.content}
|
|
92
|
+
</Text>
|
|
93
|
+
</View>))}
|
|
94
|
+
|
|
95
|
+
<View className="rounded-lg p-4" style={{
|
|
96
|
+
backgroundColor: isDark ? "#0A0A0A" : "#FFFFFF",
|
|
97
|
+
borderWidth: 1,
|
|
98
|
+
borderColor: isDark ? "#333333" : "#E5E5E5",
|
|
99
|
+
}}>
|
|
100
|
+
<Text className="font-sans-medium text-lg mb-2" style={{ color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
101
|
+
Contact
|
|
102
|
+
</Text>
|
|
103
|
+
<Text className="font-mono text-sm" style={{ color: isDark ? "#999999" : "#666666", lineHeight: 22 }}>
|
|
104
|
+
For privacy-related questions or concerns email{" "}
|
|
105
|
+
<Text className="font-mono text-sm underline" style={{ color: isDark ? "#6BA3E5" : "#4A90E2" }} onPress={() => Linking.openURL(`mailto:${supportEmail}`)}>
|
|
106
|
+
{supportEmail}
|
|
107
|
+
</Text>
|
|
108
|
+
</Text>
|
|
109
|
+
</View>
|
|
110
|
+
</View>
|
|
111
|
+
|
|
112
|
+
<View className="rounded-lg mt-6 p-4" style={{
|
|
113
|
+
backgroundColor: isDark ? "#1A2332" : "#F0F8FF",
|
|
114
|
+
borderWidth: 1,
|
|
115
|
+
borderColor: isDark ? "#2A3F5F" : "#D0E0FF",
|
|
116
|
+
}}>
|
|
117
|
+
<View className="flex-row items-start">
|
|
118
|
+
<Ionicons name="shield-checkmark" size={20} color="#4A90E2" style={{ marginTop: 2, marginRight: 8 }}/>
|
|
119
|
+
<View className="flex-1">
|
|
120
|
+
<Text className="font-sans-medium text-sm mb-2" style={{ color: isDark ? "#FFFFFF" : "#000000" }}>
|
|
121
|
+
Your Consent
|
|
122
|
+
</Text>
|
|
123
|
+
<Text className="font-mono text-xs" style={{ color: isDark ? "#999999" : "#666666", lineHeight: 20 }}>
|
|
124
|
+
By using {appName}, you consent to this Privacy Policy and agree to its terms.
|
|
125
|
+
</Text>
|
|
126
|
+
</View>
|
|
127
|
+
</View>
|
|
128
|
+
</View>
|
|
129
|
+
|
|
130
|
+
<View className="mt-8 items-center">
|
|
131
|
+
<Text className="font-mono text-xs text-center" style={{ color: isDark ? "#666666" : "#999999" }}>
|
|
132
|
+
© {new Date().getFullYear()} {org}. All rights reserved.
|
|
133
|
+
</Text>
|
|
134
|
+
<View style={{ marginTop: 20 }}>
|
|
135
|
+
<EntropyByline size={16}/>
|
|
136
|
+
</View>
|
|
137
|
+
</View>
|
|
138
|
+
</ScrollView>
|
|
139
|
+
</View>
|
|
140
|
+
</SafeAreaView>);
|
|
141
|
+
}
|
|
142
|
+
export default PrivacyPolicyScreen;
|
|
143
|
+
//# sourceMappingURL=PrivacyPolicyScreen.jsx.map
|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,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface RegisterScreenProps {
|
|
3
|
+
/** Optional widget rendered top-right (vault wires its admin cog here). */
|
|
4
|
+
topAccessory?: React.ReactNode;
|
|
5
|
+
/** Optional social-auth block rendered under the create-account button. */
|
|
6
|
+
socialAuth?: React.ReactNode;
|
|
7
|
+
/** Master-password field label. */
|
|
8
|
+
passwordLabel?: string;
|
|
9
|
+
/** Master-password field placeholder. */
|
|
10
|
+
passwordPlaceholder?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function RegisterScreen({ topAccessory, socialAuth, passwordLabel, passwordPlaceholder, }?: RegisterScreenProps): React.JSX.Element;
|
|
13
|
+
export default RegisterScreen;
|
|
14
|
+
//# sourceMappingURL=RegisterScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisterScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/auth/RegisterScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA4B5D,MAAM,WAAW,mBAAmB;IAClC,2EAA2E;IAC3E,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,mCAAmC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,UAAU,EACV,aAA0B,EAC1B,mBAAgD,GACjD,GAAE,mBAAwB,qBA+X1B;AAED,eAAe,cAAc,CAAC"}
|