@oxyhq/services 19.0.1 → 19.1.0
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/lib/commonjs/assets/assets/icons/OxyServices.tsx +5 -12
- package/lib/commonjs/assets/icons/OxyServices.js +7 -7
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/index.js +56 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +121 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/commonjs/ui/client.js +10 -17
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +28 -92
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +127 -241
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialog.js +22 -18
- package/lib/commonjs/ui/components/OxyAccountDialog.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +4 -6
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +45 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/commonjs/ui/components/OxyPayButton.js +20 -71
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +3 -3
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +30 -135
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +4 -2
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +99 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js +7 -10
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +9 -9
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +20 -23
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +6 -6
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +14 -9
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +55 -55
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +13 -13
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +129 -260
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/oxyContextHelpers.js +64 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/commonjs/ui/{components/TextField/Adornment/types.js → context/oxyContextTypes.js} +1 -1
- package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +91 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/commonjs/ui/hooks/queryClient.js +9 -18
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +7 -5
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +2 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/index.js +10 -17
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +5 -44
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +9 -8
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -3
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +8 -19
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +8 -8
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -1105
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -8
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +0 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +5 -4
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +9 -49
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +6 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +247 -224
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +21 -20
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +4 -4
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +12 -11
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -2
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +7 -8
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +114 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +512 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +59 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +475 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js +67 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +4 -7
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +3 -3
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +4 -5
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +2 -2
- package/lib/commonjs/ui/utils/crossOriginRestore.js +109 -0
- package/lib/commonjs/ui/utils/crossOriginRestore.js.map +1 -0
- package/lib/commonjs/ui/utils/deviceCredential.js +23 -0
- package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -0
- package/lib/commonjs/ui/utils/oauthReturn.js +82 -0
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
- package/lib/commonjs/ui/utils/storageHelpers.js +1 -2
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/assets/assets/icons/OxyServices.tsx +5 -12
- package/lib/module/assets/icons/OxyServices.js +7 -7
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/index.js +10 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +116 -0
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/module/ui/client.js +3 -4
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +28 -92
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/Header.js +127 -241
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialog.js +22 -18
- package/lib/module/ui/components/OxyAccountDialog.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +4 -5
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyOAuthCallback.js +41 -0
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/module/ui/components/OxyPayButton.js +21 -71
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +3 -3
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +34 -139
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +5 -3
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +95 -0
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/module/ui/components/RequireOxyAuth.js +7 -9
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +9 -9
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +20 -23
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +6 -6
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +14 -8
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +54 -54
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +13 -13
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +128 -259
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/oxyContextHelpers.js +57 -0
- package/lib/module/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/module/ui/context/oxyContextTypes.js +4 -0
- package/lib/module/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/module/ui/context/useOxyAccountGraph.js +87 -0
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/module/ui/hooks/queryClient.js +8 -17
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +7 -5
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +2 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/index.js +2 -3
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +4 -41
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +8 -7
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +2 -3
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +7 -18
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +8 -8
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +53 -1098
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +9 -8
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +5 -4
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +11 -51
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -7
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +247 -224
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +19 -18
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +3 -3
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +12 -11
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +3 -2
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +2 -2
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +6 -6
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +110 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +509 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js +55 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +471 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/shared.js +58 -0
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +4 -7
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +3 -2
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js +2 -3
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +2 -2
- package/lib/module/ui/utils/crossOriginRestore.js +101 -0
- package/lib/module/ui/utils/crossOriginRestore.js.map +1 -0
- package/lib/module/ui/utils/deviceCredential.js +18 -0
- package/lib/module/ui/utils/deviceCredential.js.map +1 -0
- package/lib/module/ui/utils/oauthReturn.js +78 -0
- package/lib/module/ui/utils/oauthReturn.js.map +1 -0
- package/lib/module/ui/utils/storageHelpers.js +1 -2
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +0 -5
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +11 -6
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +29 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/client.d.ts +3 -4
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Header.d.ts +16 -21
- package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +3 -7
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -10
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -185
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +123 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +26 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +2 -3
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +7 -5
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +2 -3
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +4 -34
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +34 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +2 -3
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -2
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -18
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts +24 -0
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +8 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +25 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +0 -11
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -1
- package/lib/typescript/module/assets/icons/OxyServices.d.ts +0 -5
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +11 -6
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +29 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/module/ui/client.d.ts +3 -4
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Header.d.ts +16 -21
- package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +3 -7
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -13
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts +6 -10
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -185
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +123 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +26 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +2 -3
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +7 -5
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +2 -3
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +4 -34
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +34 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +2 -3
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -2
- package/lib/typescript/module/ui/types/navigation.d.ts +2 -18
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts +24 -0
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts +8 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts +25 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts +0 -11
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -1
- package/package.json +29 -17
- package/src/assets/icons/OxyServices.tsx +5 -12
- package/src/index.ts +16 -10
- package/src/ui/boot/runProviderColdBoot.ts +150 -0
- package/src/ui/client.ts +3 -4
- package/src/ui/components/FollowButton.tsx +30 -95
- package/src/ui/components/Header.tsx +135 -405
- package/src/ui/components/OxyAccountDialog.tsx +18 -16
- package/src/ui/components/OxyConsentScreen.tsx +2 -2
- package/src/ui/components/OxyOAuthCallback.tsx +38 -0
- package/src/ui/components/OxyPayButton.tsx +11 -60
- package/src/ui/components/OxyProvider.tsx +3 -3
- package/src/ui/components/OxySignInButton.tsx +35 -134
- package/src/ui/components/ProfileButton.tsx +8 -3
- package/src/ui/components/ProfileSummaryCard.tsx +123 -0
- package/src/ui/components/RequireOxyAuth.tsx +3 -3
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +1 -3
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +9 -9
- package/src/ui/components/fileManagement/FileViewer.tsx +20 -22
- package/src/ui/components/fileManagement/UploadPreview.tsx +6 -6
- package/src/ui/components/modals/DeleteAccountModal.tsx +7 -7
- package/src/ui/components/payment/PaymentDetailsStep.tsx +49 -39
- package/src/ui/components/payment/paymentStyles.ts +14 -14
- package/src/ui/components/payment/types.ts +6 -10
- package/src/ui/context/OxyContext.tsx +136 -470
- package/src/ui/context/oxyContextHelpers.ts +58 -0
- package/src/ui/context/oxyContextTypes.ts +124 -0
- package/src/ui/context/useOxyAccountGraph.ts +114 -0
- package/src/ui/hooks/queryClient.ts +9 -20
- package/src/ui/hooks/useAuth.ts +7 -5
- package/src/ui/hooks/useSessionManagement.ts +2 -0
- package/src/ui/index.ts +2 -3
- package/src/ui/navigation/accountDialogManager.ts +4 -40
- package/src/ui/screens/ConnectedAppsScreen.tsx +8 -11
- package/src/ui/screens/EditProfileFieldScreen.tsx +2 -3
- package/src/ui/screens/EditProfileScreen.tsx +8 -14
- package/src/ui/screens/FAQScreen.tsx +7 -8
- package/src/ui/screens/FeedbackScreen.tsx +0 -1
- package/src/ui/screens/FileManagementScreen.tsx +54 -1158
- package/src/ui/screens/HistoryViewScreen.tsx +4 -4
- package/src/ui/screens/LanguageSelectorScreen.tsx +0 -1
- package/src/ui/screens/LegalDocumentsScreen.tsx +4 -3
- package/src/ui/screens/ManageAccountScreen.tsx +14 -47
- package/src/ui/screens/PaymentGatewayScreen.tsx +3 -7
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +33 -31
- package/src/ui/screens/PrivacySettingsScreen.tsx +14 -16
- package/src/ui/screens/ProfileScreen.tsx +3 -3
- package/src/ui/screens/SavesCollectionsScreen.tsx +11 -12
- package/src/ui/screens/SearchSettingsScreen.tsx +2 -2
- package/src/ui/screens/UserListScreen.tsx +2 -2
- package/src/ui/screens/WelcomeNewUserScreen.tsx +6 -7
- package/src/ui/screens/fileManagement/FileListSection.tsx +126 -0
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +611 -0
- package/src/ui/screens/fileManagement/UploadBar.tsx +48 -0
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +497 -0
- package/src/ui/screens/fileManagement/shared.ts +65 -0
- package/src/ui/screens/trust/TrustCenterScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustFAQScreen.tsx +4 -10
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustRulesScreen.tsx +2 -2
- package/src/ui/server.ts +2 -3
- package/src/ui/session/createSessionClient.ts +2 -2
- package/src/ui/types/navigation.ts +2 -18
- package/src/ui/utils/crossOriginRestore.ts +129 -0
- package/src/ui/utils/deviceCredential.ts +17 -0
- package/src/ui/utils/oauthReturn.ts +101 -0
- package/src/ui/utils/storageHelpers.ts +0 -12
- package/lib/commonjs/ui/components/ActivityIndicator.js +0 -203
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/AutoHeightScrollView.js +0 -46
- package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -181
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -106
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/commonjs/ui/components/EmptyState.js +0 -41
- package/lib/commonjs/ui/components/EmptyState.js.map +0 -1
- package/lib/commonjs/ui/components/HelperText.js +0 -95
- package/lib/commonjs/ui/components/HelperText.js.map +0 -1
- package/lib/commonjs/ui/components/Icon.js +0 -112
- package/lib/commonjs/ui/components/Icon.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -153
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/utils.js +0 -155
- package/lib/commonjs/ui/components/IconButton/utils.js.map +0 -1
- package/lib/commonjs/ui/components/LoadingState.js +0 -47
- package/lib/commonjs/ui/components/LoadingState.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -110
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -134
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -84
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +0 -423
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/commonjs/ui/components/Surface.js +0 -258
- package/lib/commonjs/ui/components/Surface.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js +0 -46
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +0 -53
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -153
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +0 -144
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +0 -137
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js +0 -22
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +0 -62
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +0 -176
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +0 -84
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +0 -381
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -365
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/constants.js +0 -50
- package/lib/commonjs/ui/components/TextField/constants.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +0 -489
- package/lib/commonjs/ui/components/TextField/helpers.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/types.js +0 -6
- package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField.js +0 -335
- package/lib/commonjs/ui/components/TextField.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +0 -12
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +0 -258
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +0 -107
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +0 -56
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js +0 -59
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/types.js +0 -26
- package/lib/commonjs/ui/components/Typography/types.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +0 -33
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -26
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/theming.js +0 -128
- package/lib/commonjs/ui/components/theming.js.map +0 -1
- package/lib/commonjs/ui/components/types.js +0 -6
- package/lib/commonjs/ui/components/types.js.map +0 -1
- package/lib/commonjs/ui/components/utils/forwardRef.js +0 -18
- package/lib/commonjs/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/commonjs/ui/constants/iconColors.js +0 -84
- package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
- package/lib/commonjs/ui/constants/theme.js +0 -124
- package/lib/commonjs/ui/constants/theme.js.map +0 -1
- package/lib/commonjs/ui/context/ThemeContext.js +0 -36
- package/lib/commonjs/ui/context/ThemeContext.js.map +0 -1
- package/lib/commonjs/ui/hooks/useColorScheme.js +0 -29
- package/lib/commonjs/ui/hooks/useColorScheme.js.map +0 -1
- package/lib/commonjs/ui/styles/authStyles.js +0 -334
- package/lib/commonjs/ui/styles/authStyles.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -153
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/module/ui/components/ActivityIndicator.js +0 -198
- package/lib/module/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/module/ui/components/AutoHeightScrollView.js +0 -41
- package/lib/module/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/module/ui/components/Avatar.js +0 -177
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/CrossFadeIcon.js +0 -101
- package/lib/module/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/module/ui/components/EmptyState.js +0 -36
- package/lib/module/ui/components/EmptyState.js.map +0 -1
- package/lib/module/ui/components/HelperText.js +0 -90
- package/lib/module/ui/components/HelperText.js.map +0 -1
- package/lib/module/ui/components/Icon.js +0 -106
- package/lib/module/ui/components/Icon.js.map +0 -1
- package/lib/module/ui/components/IconButton/IconButton.js +0 -148
- package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/module/ui/components/IconButton/utils.js +0 -149
- package/lib/module/ui/components/IconButton/utils.js.map +0 -1
- package/lib/module/ui/components/LoadingState.js +0 -42
- package/lib/module/ui/components/LoadingState.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -104
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -129
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -80
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/StepBasedScreen.js +0 -418
- package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/module/ui/components/Surface.js +0 -252
- package/lib/module/ui/components/Surface.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Outline.js +0 -40
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Underline.js +0 -47
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -146
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -141
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +0 -135
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/enums.js +0 -18
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/types.js +0 -4
- package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js +0 -57
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/InputLabel.js +0 -171
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/LabelBackground.js +0 -78
- package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldFlat.js +0 -376
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +0 -359
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/module/ui/components/TextField/constants.js +0 -46
- package/lib/module/ui/components/TextField/constants.js.map +0 -1
- package/lib/module/ui/components/TextField/helpers.js +0 -471
- package/lib/module/ui/components/TextField/helpers.js.map +0 -1
- package/lib/module/ui/components/TextField/types.js +0 -4
- package/lib/module/ui/components/TextField/types.js.map +0 -1
- package/lib/module/ui/components/TextField.js +0 -329
- package/lib/module/ui/components/TextField.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/Pressable.js +0 -9
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +0 -253
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -101
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/utils.js +0 -50
- package/lib/module/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/module/ui/components/Typography/AnimatedText.js +0 -54
- package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/module/ui/components/Typography/types.js +0 -22
- package/lib/module/ui/components/Typography/types.js.map +0 -1
- package/lib/module/ui/components/feedback/ProgressIndicator.js +0 -28
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -22
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/theming.js +0 -123
- package/lib/module/ui/components/theming.js.map +0 -1
- package/lib/module/ui/components/types.js +0 -4
- package/lib/module/ui/components/types.js.map +0 -1
- package/lib/module/ui/components/utils/forwardRef.js +0 -13
- package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/module/ui/constants/iconColors.js +0 -78
- package/lib/module/ui/constants/iconColors.js.map +0 -1
- package/lib/module/ui/constants/theme.js +0 -120
- package/lib/module/ui/constants/theme.js.map +0 -1
- package/lib/module/ui/context/ThemeContext.js +0 -29
- package/lib/module/ui/context/ThemeContext.js.map +0 -1
- package/lib/module/ui/hooks/useColorScheme.js +0 -26
- package/lib/module/ui/hooks/useColorScheme.js.map +0 -1
- package/lib/module/ui/styles/authStyles.js +0 -329
- package/lib/module/ui/styles/authStyles.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -147
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Icon.d.ts +0 -61
- package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/commonjs/ui/components/LoadingState.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts +0 -16
- package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts +0 -21
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +0 -17
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/theming.d.ts +0 -8
- package/lib/typescript/commonjs/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/types.d.ts +0 -81
- package/lib/typescript/commonjs/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/commonjs/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/constants/theme.d.ts +0 -98
- package/lib/typescript/commonjs/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts +0 -8
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts +0 -328
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/theme.d.ts +0 -75
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/module/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +0 -28
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/module/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/module/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Icon.d.ts +0 -61
- package/lib/typescript/module/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/module/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/module/ui/components/LoadingState.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/OxyLogo.d.ts +0 -16
- package/lib/typescript/module/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ProfileCard.d.ts +0 -21
- package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/module/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts +0 -28
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/module/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +0 -17
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +0 -20
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/module/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/module/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/module/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/module/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts +0 -11
- package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/theming.d.ts +0 -8
- package/lib/typescript/module/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/types.d.ts +0 -81
- package/lib/typescript/module/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/module/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/module/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/module/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/module/ui/constants/theme.d.ts +0 -98
- package/lib/typescript/module/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts +0 -8
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/authStyles.d.ts +0 -328
- package/lib/typescript/module/ui/styles/authStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/theme.d.ts +0 -75
- package/lib/typescript/module/ui/styles/theme.d.ts.map +0 -1
- package/src/ui/components/ActivityIndicator.tsx +0 -254
- package/src/ui/components/AutoHeightScrollView.tsx +0 -50
- package/src/ui/components/Avatar.tsx +0 -284
- package/src/ui/components/CrossFadeIcon.tsx +0 -140
- package/src/ui/components/EmptyState.tsx +0 -39
- package/src/ui/components/HelperText.tsx +0 -149
- package/src/ui/components/Icon.tsx +0 -189
- package/src/ui/components/IconButton/IconButton.tsx +0 -232
- package/src/ui/components/IconButton/utils.ts +0 -190
- package/src/ui/components/LoadingState.tsx +0 -46
- package/src/ui/components/OxyLogo.tsx +0 -82
- package/src/ui/components/ProfileCard.tsx +0 -137
- package/src/ui/components/QuickActions.tsx +0 -91
- package/src/ui/components/StepBasedScreen.tsx +0 -499
- package/src/ui/components/Surface.tsx +0 -384
- package/src/ui/components/TextField/Addons/Outline.tsx +0 -64
- package/src/ui/components/TextField/Addons/Underline.tsx +0 -78
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +0 -205
- package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +0 -212
- package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +0 -195
- package/src/ui/components/TextField/Adornment/enums.tsx +0 -12
- package/src/ui/components/TextField/Adornment/types.tsx +0 -11
- package/src/ui/components/TextField/Adornment/utils.ts +0 -66
- package/src/ui/components/TextField/Label/InputLabel.tsx +0 -219
- package/src/ui/components/TextField/Label/LabelBackground.tsx +0 -100
- package/src/ui/components/TextField/TextFieldFlat.tsx +0 -488
- package/src/ui/components/TextField/TextFieldOutlined.tsx +0 -464
- package/src/ui/components/TextField/constants.tsx +0 -48
- package/src/ui/components/TextField/helpers.tsx +0 -611
- package/src/ui/components/TextField/types.tsx +0 -160
- package/src/ui/components/TextField.tsx +0 -574
- package/src/ui/components/TouchableRipple/Pressable.tsx +0 -42
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +0 -146
- package/src/ui/components/TouchableRipple/TouchableRipple.tsx +0 -347
- package/src/ui/components/TouchableRipple/utils.ts +0 -66
- package/src/ui/components/Typography/AnimatedText.tsx +0 -106
- package/src/ui/components/Typography/types.tsx +0 -22
- package/src/ui/components/feedback/ProgressIndicator.tsx +0 -35
- package/src/ui/components/icon/OxyIcon.tsx +0 -31
- package/src/ui/components/theming.tsx +0 -126
- package/src/ui/components/types.tsx +0 -93
- package/src/ui/components/utils/forwardRef.tsx +0 -23
- package/src/ui/constants/iconColors.ts +0 -88
- package/src/ui/constants/theme.ts +0 -121
- package/src/ui/context/ThemeContext.tsx +0 -41
- package/src/ui/context/__tests__/OxyContext.coldBoot.test.tsx +0 -166
- package/src/ui/hooks/useColorScheme.ts +0 -24
- package/src/ui/styles/authStyles.ts +0 -348
- package/src/ui/styles/theme.ts +0 -169
|
@@ -7,17 +7,12 @@ import {
|
|
|
7
7
|
useMemo,
|
|
8
8
|
useRef,
|
|
9
9
|
useState,
|
|
10
|
-
type ReactNode,
|
|
11
10
|
} from 'react';
|
|
12
11
|
import { Linking } from 'react-native';
|
|
13
12
|
import { OxyServices, oxyClient } from '@oxyhq/core';
|
|
14
13
|
import type {
|
|
15
14
|
User,
|
|
16
|
-
ApiError,
|
|
17
15
|
SessionLoginResponse,
|
|
18
|
-
AccountNode,
|
|
19
|
-
CreateAccountInput,
|
|
20
|
-
ClientSession,
|
|
21
16
|
AuthStateStore,
|
|
22
17
|
PersistedAuthState,
|
|
23
18
|
AccountDialogController,
|
|
@@ -25,20 +20,24 @@ import type {
|
|
|
25
20
|
} from '@oxyhq/core';
|
|
26
21
|
import {
|
|
27
22
|
KeyManager,
|
|
28
|
-
runSessionColdBoot,
|
|
29
23
|
installAuthRefreshHandler,
|
|
30
24
|
startTokenRefreshScheduler,
|
|
31
25
|
createAccountDialogController,
|
|
26
|
+
refreshPersistedSession,
|
|
32
27
|
logger as loggerUtil,
|
|
28
|
+
syncHubAfterSignIn,
|
|
33
29
|
} from '@oxyhq/core';
|
|
34
30
|
import type { SecurityAlert } from '@oxyhq/contracts';
|
|
35
31
|
import {
|
|
36
32
|
registerAccountDialogControls,
|
|
37
33
|
notifyAccountDialogVisibility,
|
|
38
34
|
} from '../navigation/accountDialogManager';
|
|
35
|
+
import { redirectToAuthorize } from '../components/oauthNavigation';
|
|
36
|
+
import { isWebBrowser } from '../utils/isWebBrowser';
|
|
37
|
+
import { runProviderColdBoot } from '../boot/runProviderColdBoot';
|
|
38
|
+
import { loadPersistedDeviceCredential } from '../utils/deviceCredential';
|
|
39
39
|
import { useAuthStore, type AuthState } from '../stores/authStore';
|
|
40
40
|
import { useShallow } from 'zustand/react/shallow';
|
|
41
|
-
import type { UseFollowHook } from '../hooks/useFollow.types';
|
|
42
41
|
import { useLanguageManagement } from '../hooks/useLanguageManagement';
|
|
43
42
|
import { useSessionManagement } from '../hooks/useSessionManagement';
|
|
44
43
|
import { useAuthOperations, clearPersistedAuthSafe } from './hooks/useAuthOperations';
|
|
@@ -50,7 +49,6 @@ import { useQueryClient } from '@tanstack/react-query';
|
|
|
50
49
|
import { clearQueryCache } from '../hooks/queryClient';
|
|
51
50
|
import { useAvatarPicker } from '../hooks/useAvatarPicker';
|
|
52
51
|
import { useAccountStore } from '../stores/accountStore';
|
|
53
|
-
import { isWebBrowser } from '../utils/isWebBrowser';
|
|
54
52
|
import {
|
|
55
53
|
createSessionClient,
|
|
56
54
|
createPlatformAuthStateStore,
|
|
@@ -59,297 +57,19 @@ import {
|
|
|
59
57
|
activeUserOf,
|
|
60
58
|
accountIdsOf,
|
|
61
59
|
} from '../session';
|
|
60
|
+
import {
|
|
61
|
+
type OxyContextState,
|
|
62
|
+
type PasswordSignInResult,
|
|
63
|
+
type OxyContextProviderProps,
|
|
64
|
+
type CommitInput,
|
|
65
|
+
} from './oxyContextTypes';
|
|
66
|
+
import { DEFAULT_SESSION_VALIDITY_MS, loadUseFollowHook } from './oxyContextHelpers';
|
|
67
|
+
import { useOxyAccountGraph } from './useOxyAccountGraph';
|
|
62
68
|
|
|
63
|
-
export
|
|
64
|
-
user: User | null;
|
|
65
|
-
sessions: ClientSession[];
|
|
66
|
-
activeSessionId: string | null;
|
|
67
|
-
isAuthenticated: boolean;
|
|
68
|
-
isLoading: boolean;
|
|
69
|
-
isTokenReady: boolean;
|
|
70
|
-
hasAccessToken: boolean;
|
|
71
|
-
canUsePrivateApi: boolean;
|
|
72
|
-
isPrivateApiPending: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Whether the initial auth determination has concluded.
|
|
75
|
-
*
|
|
76
|
-
* `false` from mount until the FIRST device-first cold boot resolves —
|
|
77
|
-
* during that window `isAuthenticated: false` is UNDETERMINED, not a
|
|
78
|
-
* definitive "logged out". Flips to `true` exactly once the boot concludes
|
|
79
|
-
* (a session was committed OR none exists) and never reverts. Consumers should
|
|
80
|
-
* defer their first auth-dependent fetch until this is `true` so a cold-boot
|
|
81
|
-
* web reload with an existing session does not fetch anonymous data.
|
|
82
|
-
*/
|
|
83
|
-
isAuthResolved: boolean;
|
|
84
|
-
isStorageReady: boolean;
|
|
85
|
-
error: string | null;
|
|
86
|
-
currentLanguage: string;
|
|
87
|
-
currentLanguageMetadata: ReturnType<typeof useLanguageManagement>['metadata'];
|
|
88
|
-
currentLanguageName: string;
|
|
89
|
-
currentNativeLanguageName: string;
|
|
90
|
-
|
|
91
|
-
// Identity (cryptographic key pair)
|
|
92
|
-
hasIdentity: () => Promise<boolean>;
|
|
93
|
-
getPublicKey: () => Promise<string | null>;
|
|
94
|
-
|
|
95
|
-
// Authentication
|
|
96
|
-
signIn: (publicKey: string, deviceName?: string) => Promise<User>;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Sign in with a username/email + password.
|
|
100
|
-
*
|
|
101
|
-
* Commits a successful session into context state through the SAME path the
|
|
102
|
-
* QR device-flow and cold boot use (so `isAuthenticated` / `user` update and
|
|
103
|
-
* the zero-cookie device credential is persisted). Returns a discriminated result
|
|
104
|
-
* so the caller can branch on the two-factor-required case — which creates NO
|
|
105
|
-
* session; the caller completes the 2FA challenge with the returned
|
|
106
|
-
* `loginToken` via {@link OxyContextState.completeTwoFactorSignIn}.
|
|
107
|
-
*/
|
|
108
|
-
signInWithPassword: (
|
|
109
|
-
identifier: string,
|
|
110
|
-
password: string,
|
|
111
|
-
opts?: { deviceName?: string; deviceFingerprint?: string },
|
|
112
|
-
) => Promise<PasswordSignInResult>;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Complete a 2FA-gated password sign-in started by {@link signInWithPassword}.
|
|
116
|
-
* Presents the short-lived `loginToken` with a TOTP `token` or a `backupCode`;
|
|
117
|
-
* on success the session is committed exactly like a one-step sign-in. Returns
|
|
118
|
-
* any `securityAlert` the server attached so the caller can show the same
|
|
119
|
-
* "New sign-in detected" acknowledgement as the one-step path.
|
|
120
|
-
*/
|
|
121
|
-
completeTwoFactorSignIn: (params: {
|
|
122
|
-
loginToken: string;
|
|
123
|
-
token?: string;
|
|
124
|
-
backupCode?: string;
|
|
125
|
-
deviceName?: string;
|
|
126
|
-
}) => Promise<{ securityAlert?: SecurityAlert }>;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Commit a session obtained out-of-band (the "Sign in with Oxy" QR device
|
|
130
|
-
* flow). Plants tokens, persists the zero-cookie device credential, registers
|
|
131
|
-
* the account into the device set, and hydrates the full user profile.
|
|
132
|
-
*/
|
|
133
|
-
handleWebSession: (session: SessionLoginResponse) => Promise<void>;
|
|
134
|
-
|
|
135
|
-
// Session management
|
|
136
|
-
logout: (targetSessionId?: string) => Promise<void>;
|
|
137
|
-
logoutAll: () => Promise<void>;
|
|
138
|
-
switchSession: (sessionId: string) => Promise<User>;
|
|
139
|
-
removeSession: (sessionId: string) => Promise<void>;
|
|
140
|
-
refreshSessions: () => Promise<void>;
|
|
141
|
-
setLanguage: (languageId: string) => Promise<void>;
|
|
142
|
-
getDeviceSessions: () => Promise<
|
|
143
|
-
Array<{
|
|
144
|
-
sessionId: string;
|
|
145
|
-
deviceId: string;
|
|
146
|
-
deviceName?: string;
|
|
147
|
-
lastActive?: string;
|
|
148
|
-
expiresAt?: string;
|
|
149
|
-
}>
|
|
150
|
-
>;
|
|
151
|
-
logoutAllDeviceSessions: () => Promise<void>;
|
|
152
|
-
updateDeviceName: (deviceName: string) => Promise<void>;
|
|
153
|
-
clearSessionState: () => Promise<void>;
|
|
154
|
-
clearAllAccountData: () => Promise<void>;
|
|
155
|
-
storageKeyPrefix: string;
|
|
156
|
-
/**
|
|
157
|
-
* The app's Oxy OAuth client id / ApplicationCredential publicKey, as
|
|
158
|
-
* supplied via the `clientId` prop. Required for the cross-app device
|
|
159
|
-
* sign-in flow: the sign-in components send it to
|
|
160
|
-
* `POST /auth/session/create` so the API can identify the requesting app by
|
|
161
|
-
* its real registered client id. `null` when the consuming app did not
|
|
162
|
-
* configure a client id — the device sign-in flow surfaces a configuration
|
|
163
|
-
* error in that case.
|
|
164
|
-
*/
|
|
165
|
-
clientId: string | null;
|
|
166
|
-
oxyServices: OxyServices;
|
|
167
|
-
useFollow?: UseFollowHook;
|
|
168
|
-
showBottomSheet?: (screenOrConfig: RouteName | { screen: RouteName; props?: Record<string, unknown> }) => void;
|
|
169
|
-
openAvatarPicker: () => void;
|
|
170
|
-
|
|
171
|
-
// Unified account dialog (the single switcher + sign-in surface). The headless
|
|
172
|
-
// state machine lives in `@oxyhq/core`; `OxyAccountDialog` (mounted by
|
|
173
|
-
// `OxyProvider`) binds to it. `null` in the no-provider loading state.
|
|
174
|
-
/** The headless controller driving {@link openAccountDialog}. `null` before mount. */
|
|
175
|
-
accountDialogController: AccountDialogController | null;
|
|
176
|
-
/** Whether the unified account dialog is currently presented. */
|
|
177
|
-
isAccountDialogOpen: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Open the unified account dialog. `accounts` (default) shows the switcher;
|
|
180
|
-
* `signin` / `add` open the sign-in entry. Replaces every prior device/account
|
|
181
|
-
* surface and the standalone sign-in modal.
|
|
182
|
-
*/
|
|
183
|
-
openAccountDialog: (view?: AccountDialogView) => void;
|
|
184
|
-
/** Dismiss the unified account dialog and cancel any in-flight sign-in flow. */
|
|
185
|
-
closeAccountDialog: () => void;
|
|
186
|
-
|
|
187
|
-
// Unified account graph (self, owned orgs/projects/bots, accounts shared with
|
|
188
|
-
// the caller). The cryptographic Commons/DID "identity" is a SEPARATE concept.
|
|
189
|
-
//
|
|
190
|
-
// UX concept: the user picks an account and the WHOLE app becomes that account
|
|
191
|
-
// — a genuine, REAL-SESSION switch (`switchToAccount`), identical to switching
|
|
192
|
-
// between device sign-ins. There is NO separate "active account" concept:
|
|
193
|
-
// `user` IS the active account after a switch.
|
|
194
|
-
/** Every account the caller can access — own personal root, owned, and shared — from `listAccounts()`. */
|
|
195
|
-
accounts: AccountNode[];
|
|
196
|
-
/**
|
|
197
|
-
* Switch the active session INTO an account from the {@link accounts} graph.
|
|
198
|
-
*
|
|
199
|
-
* Uniform with every other account switch: if the account is already on this
|
|
200
|
-
* device's multi-account set, switches straight through the same
|
|
201
|
-
* server-authoritative `SessionClient.switchAccount()` path {@link switchSession}
|
|
202
|
-
* uses. Only the FIRST switch into an account mints+plants a real session via
|
|
203
|
-
* `oxyServices.switchToAccount` and registers it into the device set, so it
|
|
204
|
-
* survives reload and appears in the device account list exactly like a device
|
|
205
|
-
* sign-in from then on. Either way, afterwards `user` IS the target account.
|
|
206
|
-
*/
|
|
207
|
-
switchToAccount: (accountId: string) => Promise<void>;
|
|
208
|
-
refreshAccounts: () => Promise<void>;
|
|
209
|
-
createAccount: (data: CreateAccountInput) => Promise<AccountNode>;
|
|
210
|
-
}
|
|
69
|
+
export type { OxyContextState, PasswordSignInResult, OxyContextProviderProps } from './oxyContextTypes';
|
|
211
70
|
|
|
212
71
|
const OxyContext = createContext<OxyContextState | null>(null);
|
|
213
72
|
|
|
214
|
-
/**
|
|
215
|
-
* Result of {@link OxyContextState.signInWithPassword}.
|
|
216
|
-
*
|
|
217
|
-
* `'ok'` — the password was accepted and the session committed (so
|
|
218
|
-
* `isAuthenticated` / `user` are updated and the device credential persisted).
|
|
219
|
-
* `securityAlert` is present when the server flagged this sign-in as anomalous
|
|
220
|
-
* (new device / location) — the caller shows a "New sign-in detected"
|
|
221
|
-
* acknowledgement before proceeding; the session is already committed.
|
|
222
|
-
*
|
|
223
|
-
* `'2fa_required'` — the account has two-factor auth enabled, so NO session was
|
|
224
|
-
* created. Complete the challenge with the returned short-lived `loginToken`
|
|
225
|
-
* via {@link OxyContextState.completeTwoFactorSignIn}.
|
|
226
|
-
*/
|
|
227
|
-
export type PasswordSignInResult =
|
|
228
|
-
| { status: 'ok'; securityAlert?: SecurityAlert }
|
|
229
|
-
| { status: '2fa_required'; loginToken: string };
|
|
230
|
-
|
|
231
|
-
export interface OxyContextProviderProps {
|
|
232
|
-
children: ReactNode;
|
|
233
|
-
oxyServices?: OxyServices;
|
|
234
|
-
baseURL?: string;
|
|
235
|
-
authWebUrl?: string;
|
|
236
|
-
authRedirectUri?: string;
|
|
237
|
-
storageKeyPrefix?: string;
|
|
238
|
-
/**
|
|
239
|
-
* The app's Oxy OAuth client id / ApplicationCredential publicKey; required
|
|
240
|
-
* for the cross-app device sign-in flow. See {@link OxyContextState.clientId}.
|
|
241
|
-
*/
|
|
242
|
-
clientId?: string;
|
|
243
|
-
/**
|
|
244
|
-
* Whether this provider is the device-first **session authority**. `true`
|
|
245
|
-
* (default) runs `runSessionColdBoot` on mount and opens the signed-out
|
|
246
|
-
* device-state socket — the correct behavior for every Relying Party app.
|
|
247
|
-
*
|
|
248
|
-
* `false` is the IdP host (`auth.oxy.so`) opt-out: the IdP is NOT a session
|
|
249
|
-
* authority (handoff "IdP vs RP"), so it must NOT restore or reproject an
|
|
250
|
-
* ambient device session. With `coldBoot={false}` the cold boot never runs
|
|
251
|
-
* and the signed-out device socket never opens; auth resolves immediately as
|
|
252
|
-
* signed out. Interactive sign-in still commits a normal session on this
|
|
253
|
-
* origin — only the automatic restore/reproject is suppressed.
|
|
254
|
-
* @default true
|
|
255
|
-
*/
|
|
256
|
-
coldBoot?: boolean;
|
|
257
|
-
onAuthStateChange?: (user: User | null) => void;
|
|
258
|
-
onError?: (error: ApiError) => void;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Fallback client-session validity window (ms) — 7 days — applied when a
|
|
263
|
-
* committed session does not carry an explicit `expiresAt`. This is only a
|
|
264
|
-
* local display hint for the multi-session store; the server remains the source
|
|
265
|
-
* of truth for actual session expiry.
|
|
266
|
-
*/
|
|
267
|
-
const DEFAULT_SESSION_VALIDITY_MS = 7 * 24 * 60 * 60 * 1000;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* How long the cold boot WAITS for the post-boot SessionClient handoff
|
|
271
|
-
* (`addCurrentAccount` + `start` + `syncFromClient`) before it resolves auth and
|
|
272
|
-
* stops blocking. Once a boot step planted a token the user is already
|
|
273
|
-
* authenticated — the handoff only populates the multi-account set and the
|
|
274
|
-
* server-authoritative active account, and those also arrive via the socket
|
|
275
|
-
* subscription. So on a slow backend we stop AWAITING the handoff here (it keeps
|
|
276
|
-
* running in the background and projects when it lands) rather than delaying
|
|
277
|
-
* auth resolution.
|
|
278
|
-
*/
|
|
279
|
-
const SESSION_HANDOFF_DEADLINE = 6000;
|
|
280
|
-
|
|
281
|
-
/** The internal commit input — a session plus the zero-cookie device credential
|
|
282
|
-
* (`deviceId` + `deviceSecret`) that is not on the public `SessionLoginResponse`.
|
|
283
|
-
* All extras optional so `SessionLoginResponse` is assignable. */
|
|
284
|
-
interface CommitInput {
|
|
285
|
-
sessionId: string;
|
|
286
|
-
accessToken?: string;
|
|
287
|
-
deviceId?: string;
|
|
288
|
-
/** Rotating device secret (zero-cookie transport); persisted with `deviceId`
|
|
289
|
-
* so the cold boot can mint via `POST /session/device/token`. */
|
|
290
|
-
deviceSecret?: string;
|
|
291
|
-
expiresAt?: string;
|
|
292
|
-
userId?: string;
|
|
293
|
-
/** Minimal user carried by the sign-in response; a best-effort fallback used
|
|
294
|
-
* only when the full-profile fetch fails. Both `SessionLoginResponse.user`
|
|
295
|
-
* (structured `name`) and the login-result user (`{id, username?, avatar?}`)
|
|
296
|
-
* are assignable. */
|
|
297
|
-
user?: { id: string; username?: string; avatar?: string };
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
function getHttpStatus(error: unknown): number | undefined {
|
|
301
|
-
if (!error || typeof error !== 'object') {
|
|
302
|
-
return undefined;
|
|
303
|
-
}
|
|
304
|
-
if ('status' in error) {
|
|
305
|
-
const status = (error as { status?: unknown }).status;
|
|
306
|
-
if (typeof status === 'number') {
|
|
307
|
-
return status;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
if ('response' in error) {
|
|
311
|
-
const response = (error as { response?: unknown }).response;
|
|
312
|
-
if (response && typeof response === 'object' && 'status' in response) {
|
|
313
|
-
const status = (response as { status?: unknown }).status;
|
|
314
|
-
if (typeof status === 'number') {
|
|
315
|
-
return status;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return undefined;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
function isUnauthorizedStatus(error: unknown): boolean {
|
|
323
|
-
return getHttpStatus(error) === 401;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
let cachedUseFollowHook: UseFollowHook | null = null;
|
|
327
|
-
|
|
328
|
-
const loadUseFollowHook = (): UseFollowHook => {
|
|
329
|
-
if (cachedUseFollowHook) {
|
|
330
|
-
return cachedUseFollowHook;
|
|
331
|
-
}
|
|
332
|
-
try {
|
|
333
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
334
|
-
const { useFollow } = require('../hooks/useFollow');
|
|
335
|
-
cachedUseFollowHook = useFollow as UseFollowHook;
|
|
336
|
-
return cachedUseFollowHook;
|
|
337
|
-
} catch (error) {
|
|
338
|
-
if (__DEV__) {
|
|
339
|
-
loggerUtil.warn(
|
|
340
|
-
'useFollow hook is not available. Please import useFollow from @oxyhq/services directly.',
|
|
341
|
-
{ component: 'OxyContext', method: 'loadUseFollowHook' },
|
|
342
|
-
error,
|
|
343
|
-
);
|
|
344
|
-
}
|
|
345
|
-
const fallback: UseFollowHook = () => {
|
|
346
|
-
throw new Error('useFollow hook is only available in the UI bundle. Import it from @oxyhq/services.');
|
|
347
|
-
};
|
|
348
|
-
cachedUseFollowHook = fallback;
|
|
349
|
-
return cachedUseFollowHook;
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
|
|
353
73
|
export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
354
74
|
children,
|
|
355
75
|
oxyServices: providedOxyServices,
|
|
@@ -358,7 +78,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
358
78
|
authRedirectUri,
|
|
359
79
|
storageKeyPrefix = 'oxy_session',
|
|
360
80
|
clientId: clientIdProp,
|
|
361
|
-
|
|
81
|
+
hubSync = true,
|
|
362
82
|
onAuthStateChange,
|
|
363
83
|
onError,
|
|
364
84
|
}) => {
|
|
@@ -554,12 +274,9 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
554
274
|
markAuthResolvedRef.current = markAuthResolved;
|
|
555
275
|
|
|
556
276
|
// Server-authoritative device session client. Built ONCE per `oxyServices`
|
|
557
|
-
// instance.
|
|
558
|
-
// bearer
|
|
559
|
-
//
|
|
560
|
-
// the device no longer has. The realtime socket is bearer-only now: a
|
|
561
|
-
// signed-out tab cannot join any device room, so there is no signed-out sync
|
|
562
|
-
// wiring here.
|
|
277
|
+
// instance. Device-scoped sockets connect with deviceId+deviceSecret when no
|
|
278
|
+
// bearer is planted yet, so cross-origin apps sync via `session_state` after
|
|
279
|
+
// the one-shot join redirect.
|
|
563
280
|
const sessionClientPairRef = useRef<ReturnType<typeof createSessionClient> | null>(null);
|
|
564
281
|
if (!sessionClientPairRef.current) {
|
|
565
282
|
sessionClientPairRef.current = createSessionClient(
|
|
@@ -626,6 +343,11 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
626
343
|
const syncFromClientRef = useRef(syncFromClient);
|
|
627
344
|
syncFromClientRef.current = syncFromClient;
|
|
628
345
|
|
|
346
|
+
const syncDeviceCredentialToHost = useCallback(async (): Promise<void> => {
|
|
347
|
+
const cred = await loadPersistedDeviceCredential(authStore);
|
|
348
|
+
sessionClientHost.setDeviceCredential(cred);
|
|
349
|
+
}, [authStore, sessionClientHost]);
|
|
350
|
+
|
|
629
351
|
useEffect(() => {
|
|
630
352
|
return sessionClient.subscribe(() => {
|
|
631
353
|
void syncFromClient();
|
|
@@ -654,6 +376,15 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
654
376
|
logger,
|
|
655
377
|
});
|
|
656
378
|
|
|
379
|
+
// "That wasn't me": repudiating a flagged sign-in IS revoking the device
|
|
380
|
+
// session that just committed — the same server-authoritative
|
|
381
|
+
// `sessionClient.signOut(...)` path `logout` uses, which also clears the
|
|
382
|
+
// persisted device credential + local state when no sibling account remains.
|
|
383
|
+
// No dedicated "report suspicious" API endpoint exists (or is needed).
|
|
384
|
+
const revokeSuspiciousSignIn = useCallback(async (): Promise<void> => {
|
|
385
|
+
await logout();
|
|
386
|
+
}, [logout]);
|
|
387
|
+
|
|
657
388
|
const clearAllAccountData = useCallback(async (): Promise<void> => {
|
|
658
389
|
queryClient.clear();
|
|
659
390
|
if (storage) {
|
|
@@ -693,6 +424,9 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
693
424
|
setHasAccessToken(Boolean(accessToken));
|
|
694
425
|
if (accessToken) {
|
|
695
426
|
setTokenReady(true);
|
|
427
|
+
if (sessionClient.getState()?.accounts.length) {
|
|
428
|
+
void syncFromClientRef.current();
|
|
429
|
+
}
|
|
696
430
|
return;
|
|
697
431
|
}
|
|
698
432
|
if (userRef.current || isAuthenticatedRef.current) {
|
|
@@ -742,26 +476,31 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
742
476
|
// Used by the QR device flow (`handleWebSession`), password sign-in, 2FA
|
|
743
477
|
// completion, and the cold boot.
|
|
744
478
|
const commitSession = useCallback(
|
|
745
|
-
async (
|
|
479
|
+
async (
|
|
480
|
+
input: CommitInput,
|
|
481
|
+
options: { activate: boolean; hubSync?: boolean },
|
|
482
|
+
): Promise<void> => {
|
|
746
483
|
if (input.accessToken) {
|
|
747
484
|
oxyServices.setTokens(input.accessToken);
|
|
748
485
|
}
|
|
749
486
|
|
|
750
|
-
// Persist the durable blob when the zero-cookie device credential
|
|
751
|
-
|
|
752
|
-
// persisted already; this is idempotent. Without the credential there is
|
|
753
|
-
// nothing durable to persist and the session lives only for this runtime.
|
|
754
|
-
if (input.deviceId && input.deviceSecret && input.userId) {
|
|
487
|
+
// Persist the durable blob when the zero-cookie device credential is present.
|
|
488
|
+
if (input.deviceId && input.deviceSecret) {
|
|
755
489
|
try {
|
|
490
|
+
const prior = await authStore.load();
|
|
756
491
|
const next: PersistedAuthState = {
|
|
757
|
-
sessionId: input.sessionId,
|
|
758
|
-
userId: input.userId,
|
|
492
|
+
sessionId: input.sessionId || prior?.sessionId || '',
|
|
493
|
+
userId: input.userId || prior?.userId || '',
|
|
759
494
|
deviceId: input.deviceId,
|
|
760
495
|
deviceSecret: input.deviceSecret,
|
|
761
496
|
...(input.accessToken ? { accessToken: input.accessToken } : {}),
|
|
762
497
|
...(input.expiresAt ? { expiresAt: input.expiresAt } : {}),
|
|
763
498
|
};
|
|
764
499
|
await authStore.save(next);
|
|
500
|
+
sessionClientHost.setDeviceCredential({
|
|
501
|
+
deviceId: input.deviceId,
|
|
502
|
+
deviceSecret: input.deviceSecret,
|
|
503
|
+
});
|
|
765
504
|
} catch (persistError) {
|
|
766
505
|
logger('Failed to persist auth state on commit', persistError);
|
|
767
506
|
}
|
|
@@ -828,8 +567,22 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
828
567
|
onAuthStateChangeRef.current?.(fullUser);
|
|
829
568
|
}
|
|
830
569
|
markAuthResolvedRef.current();
|
|
570
|
+
|
|
571
|
+
if (options.activate && options.hubSync && hubSync && isWebBrowser()) {
|
|
572
|
+
try {
|
|
573
|
+
await syncHubAfterSignIn(oxyServices, { enabled: hubSync });
|
|
574
|
+
} catch (hubError) {
|
|
575
|
+
if (__DEV__) {
|
|
576
|
+
loggerUtil.debug(
|
|
577
|
+
'Hub sync after sign-in failed (non-fatal)',
|
|
578
|
+
{ component: 'OxyContext', method: 'commitSession' },
|
|
579
|
+
hubError as unknown,
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
831
584
|
},
|
|
832
|
-
[oxyServices, authStore, updateSessions, setActiveSessionId, sessionClient, syncFromClient, loginSuccess, logger],
|
|
585
|
+
[oxyServices, authStore, updateSessions, setActiveSessionId, sessionClient, sessionClientHost, syncFromClient, loginSuccess, logger, hubSync],
|
|
833
586
|
);
|
|
834
587
|
const commitSessionRef = useRef(commitSession);
|
|
835
588
|
commitSessionRef.current = commitSession;
|
|
@@ -853,7 +606,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
853
606
|
userId: session.user.id,
|
|
854
607
|
user: session.user,
|
|
855
608
|
},
|
|
856
|
-
{ activate: true },
|
|
609
|
+
{ activate: true, hubSync: true },
|
|
857
610
|
);
|
|
858
611
|
},
|
|
859
612
|
[commitSession],
|
|
@@ -874,10 +627,15 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
874
627
|
oxyServices,
|
|
875
628
|
sessionClient,
|
|
876
629
|
clientId,
|
|
630
|
+
authRedirectUri,
|
|
877
631
|
locale: currentLanguage,
|
|
878
632
|
commitSession: (session) => handleWebSessionRef.current(session),
|
|
879
633
|
onSignedIn: () => setAccountDialogOpen(false),
|
|
880
634
|
openUrl: (url) => {
|
|
635
|
+
if (isWebBrowser()) {
|
|
636
|
+
redirectToAuthorize(url);
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
881
639
|
void Linking.openURL(url);
|
|
882
640
|
},
|
|
883
641
|
});
|
|
@@ -902,7 +660,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
902
660
|
}, []);
|
|
903
661
|
|
|
904
662
|
// Expose the live open/close controls to the imperative manager so
|
|
905
|
-
// `
|
|
663
|
+
// Imperative `openAccountDialog('signin')` (and app-level sign-in handlers) works.
|
|
906
664
|
useEffect(
|
|
907
665
|
() => registerAccountDialogControls({ open: openAccountDialog, close: closeAccountDialog }),
|
|
908
666
|
[openAccountDialog, closeAccountDialog],
|
|
@@ -921,9 +679,11 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
921
679
|
password: string,
|
|
922
680
|
opts?: { deviceName?: string; deviceFingerprint?: string },
|
|
923
681
|
): Promise<PasswordSignInResult> => {
|
|
682
|
+
const persisted = await authStore.load();
|
|
924
683
|
const result = await oxyServices.passwordSignIn(identifier, password, {
|
|
925
684
|
deviceName: opts?.deviceName,
|
|
926
685
|
deviceFingerprint: opts?.deviceFingerprint,
|
|
686
|
+
deviceId: persisted?.deviceId,
|
|
927
687
|
});
|
|
928
688
|
if ('twoFactorRequired' in result) {
|
|
929
689
|
return { status: '2fa_required', loginToken: result.loginToken };
|
|
@@ -939,7 +699,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
939
699
|
userId: result.user.id,
|
|
940
700
|
user: result.user,
|
|
941
701
|
},
|
|
942
|
-
{ activate: true },
|
|
702
|
+
{ activate: true, hubSync: true },
|
|
943
703
|
);
|
|
944
704
|
return { status: 'ok', ...(result.securityAlert ? { securityAlert: result.securityAlert } : {}) };
|
|
945
705
|
},
|
|
@@ -953,11 +713,13 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
953
713
|
backupCode?: string;
|
|
954
714
|
deviceName?: string;
|
|
955
715
|
}): Promise<{ securityAlert?: SecurityAlert }> => {
|
|
716
|
+
const persisted = await authStore.load();
|
|
956
717
|
const result = await oxyServices.completeTwoFactorSignIn({
|
|
957
718
|
loginToken: params.loginToken,
|
|
958
719
|
token: params.token,
|
|
959
720
|
backupCode: params.backupCode,
|
|
960
721
|
deviceName: params.deviceName,
|
|
722
|
+
deviceId: persisted?.deviceId,
|
|
961
723
|
});
|
|
962
724
|
await commitSession(
|
|
963
725
|
{
|
|
@@ -969,7 +731,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
969
731
|
userId: result.user.id,
|
|
970
732
|
user: result.user,
|
|
971
733
|
},
|
|
972
|
-
{ activate: true },
|
|
734
|
+
{ activate: true, hubSync: true },
|
|
973
735
|
);
|
|
974
736
|
return { securityAlert: result.securityAlert };
|
|
975
737
|
},
|
|
@@ -977,84 +739,32 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
977
739
|
);
|
|
978
740
|
|
|
979
741
|
// ── Cold boot ────────────────────────────────────────────────────────────
|
|
980
|
-
//
|
|
981
|
-
// `runSessionColdBoot` resolves the device's session (bootstrap-return →
|
|
982
|
-
// stored-tokens → shared-key (native) → bootstrap-hop (web)) WITHOUT ever
|
|
983
|
-
// redirecting to a login page; an unresolved boot ends signed-out and the app
|
|
984
|
-
// renders its "Sign in with Oxy" affordance. On a winning boot the token is
|
|
985
|
-
// already planted + persisted, so `onSession` only hands off to the
|
|
986
|
-
// SessionClient (membership + active account + realtime socket) and marks
|
|
987
|
-
// auth resolved. `onSignedOut` marks auth resolved with no session.
|
|
742
|
+
// Device-first session restore via `runProviderColdBoot` (see boot/runProviderColdBoot.ts).
|
|
988
743
|
const runColdBoot = useCallback(async (): Promise<void> => {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}),
|
|
1009
|
-
]).finally(() => {
|
|
1010
|
-
if (handoffDeadlineId !== undefined) {
|
|
1011
|
-
clearTimeout(handoffDeadlineId);
|
|
1012
|
-
}
|
|
1013
|
-
});
|
|
1014
|
-
markAuthResolvedRef.current();
|
|
1015
|
-
},
|
|
1016
|
-
onSignedOut: () => {
|
|
1017
|
-
// The realtime socket is bearer-only: a signed-out tab cannot join any
|
|
1018
|
-
// device room, so there is no signed-out socket to start here.
|
|
1019
|
-
markAuthResolvedRef.current();
|
|
1020
|
-
},
|
|
1021
|
-
onStepError: (id, error) => {
|
|
1022
|
-
if (__DEV__) {
|
|
1023
|
-
loggerUtil.debug(
|
|
1024
|
-
`Cold-boot step "${id}" errored (non-fatal, falling through)`,
|
|
1025
|
-
{ component: 'OxyContext', method: 'runColdBoot' },
|
|
1026
|
-
error,
|
|
1027
|
-
);
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
});
|
|
1031
|
-
} catch (error) {
|
|
1032
|
-
if (__DEV__) {
|
|
1033
|
-
loggerUtil.error(
|
|
1034
|
-
'Cold boot error',
|
|
1035
|
-
error instanceof Error ? error : new Error(String(error)),
|
|
1036
|
-
{ component: 'OxyContext', method: 'runColdBoot' },
|
|
1037
|
-
);
|
|
1038
|
-
}
|
|
1039
|
-
} finally {
|
|
1040
|
-
// Backstop: resolve on every exit path so the gate can never hang.
|
|
1041
|
-
markAuthResolvedRef.current();
|
|
1042
|
-
}
|
|
1043
|
-
}, [oxyServices, authStore]);
|
|
744
|
+
await runProviderColdBoot({
|
|
745
|
+
oxyServices,
|
|
746
|
+
authStore,
|
|
747
|
+
clientId: clientIdProp,
|
|
748
|
+
authRedirectUri,
|
|
749
|
+
sessionClient,
|
|
750
|
+
syncDeviceCredentialToHost,
|
|
751
|
+
commitSession: (input, options) => commitSessionRef.current(input, options),
|
|
752
|
+
markAuthResolved: () => markAuthResolvedRef.current(),
|
|
753
|
+
setTokenReady,
|
|
754
|
+
});
|
|
755
|
+
}, [
|
|
756
|
+
oxyServices,
|
|
757
|
+
authStore,
|
|
758
|
+
clientIdProp,
|
|
759
|
+
authRedirectUri,
|
|
760
|
+
syncDeviceCredentialToHost,
|
|
761
|
+
sessionClient,
|
|
762
|
+
]);
|
|
1044
763
|
|
|
1045
764
|
useEffect(() => {
|
|
1046
765
|
if (initialized) {
|
|
1047
766
|
return;
|
|
1048
767
|
}
|
|
1049
|
-
// IdP mode (`coldBoot={false}`): this provider is NOT the ecosystem session
|
|
1050
|
-
// authority, so it never runs the device-first restore. Resolve auth
|
|
1051
|
-
// immediately as signed out so there is no boot spinner; a deliberate sign-in
|
|
1052
|
-
// still commits a normal session.
|
|
1053
|
-
if (!coldBoot) {
|
|
1054
|
-
setInitialized(true);
|
|
1055
|
-
markAuthResolved();
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
768
|
if (!storage) {
|
|
1059
769
|
return;
|
|
1060
770
|
}
|
|
@@ -1064,7 +774,29 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
1064
774
|
logger('Cold boot failed', error);
|
|
1065
775
|
}
|
|
1066
776
|
});
|
|
1067
|
-
}, [
|
|
777
|
+
}, [runColdBoot, storage, initialized, logger]);
|
|
778
|
+
|
|
779
|
+
// Reconcile device state when the tab returns to foreground (background tabs may
|
|
780
|
+
// miss socket pushes or have stale bearer tokens).
|
|
781
|
+
useEffect(() => {
|
|
782
|
+
if (!isWebBrowser()) return;
|
|
783
|
+
const onVisibility = (): void => {
|
|
784
|
+
if (document.visibilityState !== 'visible') return;
|
|
785
|
+
const reconcile = async (): Promise<void> => {
|
|
786
|
+
if (!oxyServices.getAccessToken() && sessionClientHost.getDeviceCredential()) {
|
|
787
|
+
await refreshPersistedSession({ oxy: oxyServices, store: authStore });
|
|
788
|
+
}
|
|
789
|
+
if (!oxyServices.getAccessToken() && !sessionClientHost.getDeviceCredential()) {
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
await sessionClient.bootstrap();
|
|
793
|
+
await syncFromClient();
|
|
794
|
+
};
|
|
795
|
+
void reconcile().catch(() => undefined);
|
|
796
|
+
};
|
|
797
|
+
document.addEventListener('visibilitychange', onVisibility);
|
|
798
|
+
return () => document.removeEventListener('visibilitychange', onVisibility);
|
|
799
|
+
}, [oxyServices, sessionClient, sessionClientHost, authStore, syncFromClient]);
|
|
1068
800
|
|
|
1069
801
|
// Exposed `refreshSessions`: re-bootstrap the server-authoritative device
|
|
1070
802
|
// state and reproject — the manual counterpart to the realtime socket.
|
|
@@ -1113,87 +845,18 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
1113
845
|
showBottomSheet: showBottomSheetForContext,
|
|
1114
846
|
});
|
|
1115
847
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
if (isUnauthorizedStatus(err)) {
|
|
1129
|
-
setAccounts([]);
|
|
1130
|
-
await clearSessionStateRef.current();
|
|
1131
|
-
return;
|
|
1132
|
-
}
|
|
1133
|
-
if (__DEV__) {
|
|
1134
|
-
loggerUtil.debug('Failed to load accounts', { component: 'OxyContext' }, err as unknown);
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
}, [isAuthenticated, oxyServices, tokenReady]);
|
|
1138
|
-
|
|
1139
|
-
useEffect(() => {
|
|
1140
|
-
if (isAuthenticated && initialized && tokenReady) {
|
|
1141
|
-
refreshAccounts();
|
|
1142
|
-
// Reload the dialog's own account graph too, so a session restored OUTSIDE
|
|
1143
|
-
// the dialog (cold boot / password sign-in) surfaces its graph accounts.
|
|
1144
|
-
void accountDialogControllerRef.current?.refresh();
|
|
1145
|
-
}
|
|
1146
|
-
}, [isAuthenticated, initialized, tokenReady, refreshAccounts]);
|
|
1147
|
-
|
|
1148
|
-
const runPostAccountSwitchSideEffects = useCallback(async (): Promise<void> => {
|
|
1149
|
-
await refreshAccounts();
|
|
1150
|
-
queryClient.invalidateQueries();
|
|
1151
|
-
}, [refreshAccounts, queryClient]);
|
|
1152
|
-
|
|
1153
|
-
// Switch the active session INTO an account from the unified graph. In the
|
|
1154
|
-
// real-session model this is identical to switching device sign-ins.
|
|
1155
|
-
const switchToAccount = useCallback(
|
|
1156
|
-
async (accountId: string): Promise<void> => {
|
|
1157
|
-
const deviceState = sessionClient.getState();
|
|
1158
|
-
if (deviceState?.accounts.some((account) => account.accountId === accountId)) {
|
|
1159
|
-
await sessionClient.switchAccount(accountId);
|
|
1160
|
-
await syncFromClient();
|
|
1161
|
-
await runPostAccountSwitchSideEffects();
|
|
1162
|
-
return;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
const result = await oxyServices.switchToAccount(accountId);
|
|
1166
|
-
if (!result?.user || !result?.sessionId) {
|
|
1167
|
-
throw new Error('Account switch did not return a valid session');
|
|
1168
|
-
}
|
|
1169
|
-
// `oxyServices.switchToAccount` already planted the access token; commit
|
|
1170
|
-
// the minted session through the shared funnel (persist + register +
|
|
1171
|
-
// hydrate) as a deliberate activation.
|
|
1172
|
-
await commitSession(
|
|
1173
|
-
{
|
|
1174
|
-
sessionId: result.sessionId,
|
|
1175
|
-
accessToken: result.accessToken,
|
|
1176
|
-
deviceSecret: (result as { deviceSecret?: string }).deviceSecret,
|
|
1177
|
-
deviceId: result.deviceId,
|
|
1178
|
-
expiresAt: result.expiresAt,
|
|
1179
|
-
userId: result.user.id,
|
|
1180
|
-
user: result.user,
|
|
1181
|
-
},
|
|
1182
|
-
{ activate: true },
|
|
1183
|
-
);
|
|
1184
|
-
await runPostAccountSwitchSideEffects();
|
|
1185
|
-
},
|
|
1186
|
-
[oxyServices, sessionClient, syncFromClient, commitSession, runPostAccountSwitchSideEffects],
|
|
1187
|
-
);
|
|
1188
|
-
|
|
1189
|
-
const createAccountFn = useCallback(
|
|
1190
|
-
async (data: CreateAccountInput): Promise<AccountNode> => {
|
|
1191
|
-
const account = await oxyServices.createAccount(data);
|
|
1192
|
-
await refreshAccounts();
|
|
1193
|
-
return account;
|
|
1194
|
-
},
|
|
1195
|
-
[oxyServices, refreshAccounts],
|
|
1196
|
-
);
|
|
848
|
+
const { accounts, refreshAccounts, switchToAccount, createAccount: createAccountFn } = useOxyAccountGraph({
|
|
849
|
+
isAuthenticated,
|
|
850
|
+
tokenReady,
|
|
851
|
+
initialized,
|
|
852
|
+
oxyServices,
|
|
853
|
+
sessionClient,
|
|
854
|
+
syncFromClient,
|
|
855
|
+
commitSession,
|
|
856
|
+
queryClient,
|
|
857
|
+
accountDialogControllerRef,
|
|
858
|
+
clearSessionStateRef,
|
|
859
|
+
});
|
|
1197
860
|
|
|
1198
861
|
const canUsePrivateApi = authResolved && isAuthenticated && tokenReady && hasAccessToken;
|
|
1199
862
|
const isPrivateApiPending = !authResolved || (isAuthenticated && (!tokenReady || !hasAccessToken));
|
|
@@ -1221,6 +884,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
1221
884
|
signIn,
|
|
1222
885
|
signInWithPassword,
|
|
1223
886
|
completeTwoFactorSignIn,
|
|
887
|
+
revokeSuspiciousSignIn,
|
|
1224
888
|
handleWebSession,
|
|
1225
889
|
logout,
|
|
1226
890
|
logoutAll,
|
|
@@ -1270,6 +934,7 @@ export const OxyProvider: React.FC<OxyContextProviderProps> = ({
|
|
|
1270
934
|
signIn,
|
|
1271
935
|
signInWithPassword,
|
|
1272
936
|
completeTwoFactorSignIn,
|
|
937
|
+
revokeSuspiciousSignIn,
|
|
1273
938
|
handleWebSession,
|
|
1274
939
|
logout,
|
|
1275
940
|
logoutAll,
|
|
@@ -1337,6 +1002,7 @@ const LOADING_STATE: OxyContextState = {
|
|
|
1337
1002
|
signIn: () => rejectMissingProvider<User>(),
|
|
1338
1003
|
signInWithPassword: () => rejectMissingProvider<PasswordSignInResult>(),
|
|
1339
1004
|
completeTwoFactorSignIn: () => rejectMissingProvider<{ securityAlert?: SecurityAlert }>(),
|
|
1005
|
+
revokeSuspiciousSignIn: () => rejectMissingProvider<void>(),
|
|
1340
1006
|
handleWebSession: () => rejectMissingProvider<void>(),
|
|
1341
1007
|
logout: () => rejectMissingProvider<void>(),
|
|
1342
1008
|
logoutAll: () => rejectMissingProvider<void>(),
|
|
@@ -1360,7 +1026,7 @@ const LOADING_STATE: OxyContextState = {
|
|
|
1360
1026
|
accounts: [],
|
|
1361
1027
|
switchToAccount: () => rejectMissingProvider<void>(),
|
|
1362
1028
|
refreshAccounts: () => rejectMissingProvider<void>(),
|
|
1363
|
-
createAccount: () => rejectMissingProvider<AccountNode>(),
|
|
1029
|
+
createAccount: () => rejectMissingProvider<import('@oxyhq/core').AccountNode>(),
|
|
1364
1030
|
};
|
|
1365
1031
|
|
|
1366
1032
|
export const useOxy = (): OxyContextState => {
|