@oxyhq/services 6.9.44 → 6.9.46
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/ui/components/OxyPayButton.js +4 -2
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +6 -5
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +83 -82
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +271 -102
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +76 -121
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +24 -15
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +32 -18
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +5 -4
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +0 -35
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +3 -2
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +83 -219
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +26 -13
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +50 -28
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +83 -48
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +11 -10
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +38 -23
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/constants/theme.js +2 -2
- package/lib/commonjs/ui/constants/theme.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +4 -3
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +13 -13
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +117 -142
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +112 -78
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +213 -144
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +26 -14
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +57 -51
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +108 -86
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +109 -130
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +15 -8
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +60 -54
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +12 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +66 -93
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +159 -190
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +20 -22
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +16 -17
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +127 -70
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +13 -29
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +110 -52
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +3 -5
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -21
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +4 -2
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +6 -5
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +84 -83
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +271 -100
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +76 -122
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +24 -15
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +32 -19
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/icon/OxyIcon.js +5 -4
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/module/ui/components/index.js +0 -5
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +3 -2
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +83 -220
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +26 -13
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +49 -26
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +84 -48
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +11 -9
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +38 -22
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/constants/theme.js +2 -2
- package/lib/module/ui/constants/theme.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +4 -3
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +12 -13
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +117 -142
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +112 -78
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +213 -145
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +28 -16
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +48 -42
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +110 -88
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +110 -131
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +16 -9
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +61 -55
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +12 -9
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +66 -94
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +161 -192
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +21 -23
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +17 -18
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +128 -72
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +15 -31
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +110 -52
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +4 -6
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -20
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +3 -4
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +2 -3
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/index.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +2 -2
- 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/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.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/HistoryViewScreen.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/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/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +0 -4
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +3 -4
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +2 -3
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/index.d.ts +0 -5
- package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +2 -2
- 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/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.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/HistoryViewScreen.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/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/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +0 -4
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/ui/components/OxyPayButton.tsx +5 -3
- package/src/ui/components/OxyProvider.tsx +6 -5
- package/src/ui/components/OxySignInButton.tsx +82 -81
- package/src/ui/components/SignInModal.tsx +186 -42
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +69 -99
- package/src/ui/components/fileManagement/FileViewer.tsx +25 -15
- package/src/ui/components/fileManagement/UploadPreview.tsx +58 -46
- package/src/ui/components/icon/OxyIcon.tsx +5 -4
- package/src/ui/components/index.ts +0 -5
- package/src/ui/components/internal/PinInput.tsx +4 -3
- package/src/ui/components/modals/DeleteAccountModal.tsx +79 -221
- package/src/ui/components/payment/PaymentDetailsStep.tsx +16 -19
- package/src/ui/components/payment/PaymentMethodStep.tsx +33 -35
- package/src/ui/components/payment/PaymentReviewStep.tsx +63 -67
- package/src/ui/components/payment/PaymentSuccessStep.tsx +4 -12
- package/src/ui/components/payment/PaymentSummaryStep.tsx +26 -33
- package/src/ui/constants/theme.ts +2 -2
- package/src/ui/context/hooks/useAuthOperations.ts +4 -3
- package/src/ui/screens/AccountCenterScreen.tsx +36 -139
- package/src/ui/screens/AccountOverviewScreen.tsx +107 -163
- package/src/ui/screens/AccountSettingsScreen.tsx +142 -156
- package/src/ui/screens/AccountSwitcherScreen.tsx +226 -199
- package/src/ui/screens/AccountVerificationScreen.tsx +34 -25
- package/src/ui/screens/FeedbackScreen.tsx +50 -38
- package/src/ui/screens/FileManagementScreen.tsx +88 -88
- package/src/ui/screens/HistoryViewScreen.tsx +79 -207
- package/src/ui/screens/LanguageSelectorScreen.tsx +19 -7
- package/src/ui/screens/LegalDocumentsScreen.tsx +46 -63
- package/src/ui/screens/PaymentGatewayScreen.tsx +11 -12
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +73 -93
- package/src/ui/screens/PrivacySettingsScreen.tsx +81 -193
- package/src/ui/screens/SavesCollectionsScreen.tsx +23 -23
- package/src/ui/screens/SearchSettingsScreen.tsx +11 -19
- package/src/ui/screens/SessionManagementScreen.tsx +130 -76
- package/src/ui/screens/UserLinksScreen.tsx +15 -32
- package/src/ui/screens/WelcomeNewUserScreen.tsx +46 -20
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +4 -6
- package/src/ui/utils/fileManagement.ts +0 -30
- package/lib/commonjs/ui/components/GroupedItem.js +0 -138
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -41
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -39
- package/lib/commonjs/ui/components/Section.js.map +0 -1
- package/lib/commonjs/ui/components/SectionTitle.js +0 -29
- package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
- package/lib/commonjs/ui/components/SettingRow.js +0 -90
- package/lib/commonjs/ui/components/SettingRow.js.map +0 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +0 -206
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/commonjs/ui/utils/confirmAction.js +0 -28
- package/lib/commonjs/ui/utils/confirmAction.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -135
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -37
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -34
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -25
- package/lib/module/ui/components/SectionTitle.js.map +0 -1
- package/lib/module/ui/components/SettingRow.js +0 -85
- package/lib/module/ui/components/SettingRow.js.map +0 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +0 -202
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/module/ui/utils/confirmAction.js +0 -25
- package/lib/module/ui/utils/confirmAction.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts +0 -30
- package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Section.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts +0 -10
- package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/SettingRow.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/SettingRow.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/utils/confirmAction.d.ts +0 -7
- package/lib/typescript/commonjs/ui/utils/confirmAction.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/GroupedItem.d.ts +0 -24
- package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/GroupedSection.d.ts +0 -30
- package/lib/typescript/module/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Section.d.ts +0 -12
- package/lib/typescript/module/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/SectionTitle.d.ts +0 -10
- package/lib/typescript/module/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/SettingRow.d.ts +0 -20
- package/lib/typescript/module/ui/components/SettingRow.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts +0 -24
- package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
- package/lib/typescript/module/ui/utils/confirmAction.d.ts +0 -7
- package/lib/typescript/module/ui/utils/confirmAction.d.ts.map +0 -1
- package/src/ui/components/GroupedItem.tsx +0 -161
- package/src/ui/components/GroupedSection.tsx +0 -60
- package/src/ui/components/Section.tsx +0 -42
- package/src/ui/components/SectionTitle.tsx +0 -27
- package/src/ui/components/SettingRow.tsx +0 -98
- package/src/ui/components/internal/GroupedPillButtons.tsx +0 -250
- package/src/ui/utils/confirmAction.ts +0 -23
|
@@ -8,14 +8,18 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _fonts = require("../styles/fonts.js");
|
|
10
10
|
var _sonner = require("../../lib/sonner");
|
|
11
|
-
var
|
|
11
|
+
var _prompt = _interopRequireWildcard(require("@oxyhq/bloom/prompt"));
|
|
12
|
+
var Prompt = _prompt;
|
|
12
13
|
var _OxyIcon = _interopRequireDefault(require("../components/icon/OxyIcon.js"));
|
|
13
14
|
var _index = require("../components/index.js");
|
|
15
|
+
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
16
|
+
var _SettingsIcon = require("../components/SettingsIcon.js");
|
|
14
17
|
var _useI18n = require("../hooks/useI18n.js");
|
|
15
18
|
var _theme = require("@oxyhq/bloom/theme");
|
|
16
19
|
var _OxyContext = require("../context/OxyContext.js");
|
|
17
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
23
|
const ModernAccountSwitcherScreen = ({
|
|
20
24
|
onClose,
|
|
21
25
|
theme,
|
|
@@ -50,6 +54,16 @@ const ModernAccountSwitcherScreen = ({
|
|
|
50
54
|
const [loadingDeviceSessions, setLoadingDeviceSessions] = (0, _react.useState)(false);
|
|
51
55
|
const [remotingLogoutSessionId, setRemoteLogoutSessionId] = (0, _react.useState)(null);
|
|
52
56
|
const [loggingOutAllDevices, setLoggingOutAllDevices] = (0, _react.useState)(false);
|
|
57
|
+
|
|
58
|
+
// Pending state for prompts
|
|
59
|
+
const [pendingRemoveSession, setPendingRemoveSession] = (0, _react.useState)(null);
|
|
60
|
+
const [pendingRemoteLogout, setPendingRemoteLogout] = (0, _react.useState)(null);
|
|
61
|
+
|
|
62
|
+
// Prompt controls
|
|
63
|
+
const removeSessionPrompt = (0, _prompt.usePromptControl)();
|
|
64
|
+
const logoutAllPrompt = (0, _prompt.usePromptControl)();
|
|
65
|
+
const remoteLogoutPrompt = (0, _prompt.usePromptControl)();
|
|
66
|
+
const logoutAllDevicesPrompt = (0, _prompt.usePromptControl)();
|
|
53
67
|
const screenWidth = _reactNative.Dimensions.get('window').width;
|
|
54
68
|
const {
|
|
55
69
|
t
|
|
@@ -144,44 +158,52 @@ const ModernAccountSwitcherScreen = ({
|
|
|
144
158
|
setSwitchingToUserId(null);
|
|
145
159
|
}
|
|
146
160
|
}, [activeSessionId, switchSession, onClose, t, switchingToUserId]);
|
|
147
|
-
const
|
|
148
|
-
if (removingUserId) return;
|
|
149
|
-
|
|
150
|
-
|
|
161
|
+
const confirmRemoveSession = (0, _react.useCallback)((sessionId, displayName) => {
|
|
162
|
+
if (removingUserId) return;
|
|
163
|
+
setPendingRemoveSession({
|
|
164
|
+
sessionId,
|
|
151
165
|
displayName
|
|
152
|
-
}) || `Are you sure you want to remove ${displayName} from this device? You'll need to sign in again to access this account.`, async () => {
|
|
153
|
-
setRemovingUserId(sessionId);
|
|
154
|
-
try {
|
|
155
|
-
await removeSession(sessionId);
|
|
156
|
-
_sonner.toast.success(t('accountSwitcher.toasts.removeSuccess') || 'Account removed successfully!');
|
|
157
|
-
} catch (error) {
|
|
158
|
-
if (__DEV__) {
|
|
159
|
-
console.error('Remove session failed:', error);
|
|
160
|
-
}
|
|
161
|
-
_sonner.toast.error(t('accountSwitcher.toasts.removeFailed') || 'There was a problem removing the account. Please try again.');
|
|
162
|
-
} finally {
|
|
163
|
-
setRemovingUserId(null);
|
|
164
|
-
}
|
|
165
166
|
});
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
_sonner.toast.error(t('accountSwitcher.toasts.signOutAllFailed', {
|
|
181
|
-
error: errorMessage
|
|
182
|
-
}) || `There was a problem signing out: ${errorMessage}`);
|
|
167
|
+
removeSessionPrompt.open();
|
|
168
|
+
}, [removingUserId, removeSessionPrompt]);
|
|
169
|
+
const handleRemoveSession = (0, _react.useCallback)(async () => {
|
|
170
|
+
if (!pendingRemoveSession) return;
|
|
171
|
+
const {
|
|
172
|
+
sessionId
|
|
173
|
+
} = pendingRemoveSession;
|
|
174
|
+
setRemovingUserId(sessionId);
|
|
175
|
+
try {
|
|
176
|
+
await removeSession(sessionId);
|
|
177
|
+
_sonner.toast.success(t('accountSwitcher.toasts.removeSuccess') || 'Account removed successfully!');
|
|
178
|
+
} catch (error) {
|
|
179
|
+
if (__DEV__) {
|
|
180
|
+
console.error('Remove session failed:', error);
|
|
183
181
|
}
|
|
184
|
-
|
|
182
|
+
_sonner.toast.error(t('accountSwitcher.toasts.removeFailed') || 'There was a problem removing the account. Please try again.');
|
|
183
|
+
} finally {
|
|
184
|
+
setRemovingUserId(null);
|
|
185
|
+
setPendingRemoveSession(null);
|
|
186
|
+
}
|
|
187
|
+
}, [pendingRemoveSession, removeSession, t]);
|
|
188
|
+
const confirmLogoutAll = (0, _react.useCallback)(() => {
|
|
189
|
+
logoutAllPrompt.open();
|
|
190
|
+
}, [logoutAllPrompt]);
|
|
191
|
+
const handleLogoutAll = (0, _react.useCallback)(async () => {
|
|
192
|
+
try {
|
|
193
|
+
await logoutAll();
|
|
194
|
+
_sonner.toast.success(t('accountSwitcher.toasts.signOutAllSuccess') || 'All accounts signed out successfully!');
|
|
195
|
+
if (onClose) {
|
|
196
|
+
onClose();
|
|
197
|
+
}
|
|
198
|
+
} catch (error) {
|
|
199
|
+
if (__DEV__) {
|
|
200
|
+
console.error('Logout all failed:', error);
|
|
201
|
+
}
|
|
202
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
203
|
+
_sonner.toast.error(t('accountSwitcher.toasts.signOutAllFailed', {
|
|
204
|
+
error: errorMessage
|
|
205
|
+
}) || `There was a problem signing out: ${errorMessage}`);
|
|
206
|
+
}
|
|
185
207
|
}, [logoutAll, onClose, t]);
|
|
186
208
|
const handleSwitchToManagedAccount = (0, _react.useCallback)(async accountId => {
|
|
187
209
|
if (actingAs === accountId) return; // Already acting as this account
|
|
@@ -223,58 +245,64 @@ const ModernAccountSwitcherScreen = ({
|
|
|
223
245
|
setLoadingDeviceSessions(false);
|
|
224
246
|
}
|
|
225
247
|
}, [oxyServices, activeSessionId, t]);
|
|
226
|
-
const
|
|
227
|
-
if (remotingLogoutSessionId) return;
|
|
228
|
-
|
|
229
|
-
|
|
248
|
+
const confirmRemoteSessionLogout = (0, _react.useCallback)((sessionId, deviceName) => {
|
|
249
|
+
if (remotingLogoutSessionId) return;
|
|
250
|
+
setPendingRemoteLogout({
|
|
251
|
+
sessionId,
|
|
230
252
|
deviceName
|
|
231
|
-
}) || `Are you sure you want to sign out from "${deviceName}"? This will end the session on that device.`, async () => {
|
|
232
|
-
setRemoteLogoutSessionId(sessionId);
|
|
233
|
-
try {
|
|
234
|
-
await oxyServices?.logoutSession((activeSessionId ?? null) || '', sessionId);
|
|
235
|
-
await loadAllDeviceSessions();
|
|
236
|
-
_sonner.toast.success(t('accountSwitcher.toasts.remoteSignOutSuccess', {
|
|
237
|
-
deviceName
|
|
238
|
-
}) || `Signed out from ${deviceName} successfully!`);
|
|
239
|
-
} catch (error) {
|
|
240
|
-
if (__DEV__) {
|
|
241
|
-
console.error('Remote logout failed:', error);
|
|
242
|
-
}
|
|
243
|
-
_sonner.toast.error(t('accountSwitcher.toasts.remoteSignOutFailed') || 'There was a problem signing out from the device. Please try again.');
|
|
244
|
-
} finally {
|
|
245
|
-
setRemoteLogoutSessionId(null);
|
|
246
|
-
}
|
|
247
253
|
});
|
|
248
|
-
|
|
249
|
-
|
|
254
|
+
remoteLogoutPrompt.open();
|
|
255
|
+
}, [remotingLogoutSessionId, remoteLogoutPrompt]);
|
|
256
|
+
const handleRemoteSessionLogout = (0, _react.useCallback)(async () => {
|
|
257
|
+
if (!pendingRemoteLogout) return;
|
|
258
|
+
const {
|
|
259
|
+
sessionId
|
|
260
|
+
} = pendingRemoteLogout;
|
|
261
|
+
setRemoteLogoutSessionId(sessionId);
|
|
262
|
+
try {
|
|
263
|
+
await oxyServices?.logoutSession((activeSessionId ?? null) || '', sessionId);
|
|
264
|
+
await loadAllDeviceSessions();
|
|
265
|
+
_sonner.toast.success(t('accountSwitcher.toasts.remoteSignOutSuccess', {
|
|
266
|
+
deviceName: pendingRemoteLogout.deviceName
|
|
267
|
+
}) || `Signed out from ${pendingRemoteLogout.deviceName} successfully!`);
|
|
268
|
+
} catch (error) {
|
|
269
|
+
if (__DEV__) {
|
|
270
|
+
console.error('Remote logout failed:', error);
|
|
271
|
+
}
|
|
272
|
+
_sonner.toast.error(t('accountSwitcher.toasts.remoteSignOutFailed') || 'There was a problem signing out from the device. Please try again.');
|
|
273
|
+
} finally {
|
|
274
|
+
setRemoteLogoutSessionId(null);
|
|
275
|
+
setPendingRemoteLogout(null);
|
|
276
|
+
}
|
|
277
|
+
}, [pendingRemoteLogout, activeSessionId, oxyServices, loadAllDeviceSessions, t]);
|
|
278
|
+
const confirmLogoutAllDevices = (0, _react.useCallback)(() => {
|
|
250
279
|
const otherDevicesCount = deviceSessions.filter(session => !session.isCurrent).length;
|
|
251
280
|
if (otherDevicesCount === 0) {
|
|
252
281
|
_sonner.toast.info(t('accountSwitcher.toasts.noOtherDeviceSessions') || 'No other device sessions found to sign out from.');
|
|
253
282
|
return;
|
|
254
283
|
}
|
|
255
|
-
if (loggingOutAllDevices) return;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
console.error('Logout all devices failed:', error);
|
|
268
|
-
}
|
|
269
|
-
_sonner.toast.error(t('accountSwitcher.toasts.signOutOthersFailed') || 'There was a problem signing out from other devices. Please try again.');
|
|
270
|
-
} finally {
|
|
271
|
-
setLoggingOutAllDevices(false);
|
|
284
|
+
if (loggingOutAllDevices) return;
|
|
285
|
+
logoutAllDevicesPrompt.open();
|
|
286
|
+
}, [deviceSessions, loggingOutAllDevices, logoutAllDevicesPrompt, t]);
|
|
287
|
+
const handleLogoutAllDevices = (0, _react.useCallback)(async () => {
|
|
288
|
+
setLoggingOutAllDevices(true);
|
|
289
|
+
try {
|
|
290
|
+
await oxyServices?.logoutAllDeviceSessions((activeSessionId ?? null) || '');
|
|
291
|
+
await loadAllDeviceSessions();
|
|
292
|
+
_sonner.toast.success(t('accountSwitcher.toasts.signOutOthersSuccess') || 'Signed out from all other devices successfully!');
|
|
293
|
+
} catch (error) {
|
|
294
|
+
if (__DEV__) {
|
|
295
|
+
console.error('Logout all devices failed:', error);
|
|
272
296
|
}
|
|
273
|
-
|
|
274
|
-
|
|
297
|
+
_sonner.toast.error(t('accountSwitcher.toasts.signOutOthersFailed') || 'There was a problem signing out from other devices. Please try again.');
|
|
298
|
+
} finally {
|
|
299
|
+
setLoggingOutAllDevices(false);
|
|
300
|
+
}
|
|
301
|
+
}, [activeSessionId, oxyServices, loadAllDeviceSessions, t]);
|
|
275
302
|
|
|
276
303
|
// Memoize filtered sessions for performance
|
|
277
304
|
const otherSessions = (0, _react.useMemo)(() => sessionsWithUsers.filter(s => s.sessionId !== (activeSessionId ?? null)), [sessionsWithUsers, activeSessionId]);
|
|
305
|
+
const otherDevicesCount = (0, _react.useMemo)(() => deviceSessions.filter(session => !session.isCurrent).length, [deviceSessions]);
|
|
278
306
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
279
307
|
style: [styles.container, {
|
|
280
308
|
backgroundColor: bloomTheme.colors.background
|
|
@@ -408,7 +436,7 @@ const ModernAccountSwitcherScreen = ({
|
|
|
408
436
|
})
|
|
409
437
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
410
438
|
style: styles.removeButton,
|
|
411
|
-
onPress: () =>
|
|
439
|
+
onPress: () => confirmRemoveSession(sessionWithUser.sessionId, displayName),
|
|
412
440
|
disabled: isSwitching || isRemoving,
|
|
413
441
|
children: isRemoving ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
414
442
|
size: "small",
|
|
@@ -594,80 +622,85 @@ const ModernAccountSwitcherScreen = ({
|
|
|
594
622
|
})]
|
|
595
623
|
})]
|
|
596
624
|
})]
|
|
597
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
625
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
598
626
|
style: styles.section,
|
|
599
|
-
children:
|
|
600
|
-
|
|
601
|
-
children:
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
subtitle: 'Sign in with a different account',
|
|
627
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
628
|
+
title: "Quick Actions",
|
|
629
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
630
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
631
|
+
name: "account-plus",
|
|
632
|
+
color: "#007AFF"
|
|
633
|
+
}),
|
|
634
|
+
title: "Add Another Account",
|
|
635
|
+
description: "Sign in with a different account",
|
|
609
636
|
onPress: () => navigate?.('OxyAuth')
|
|
610
|
-
}, {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
637
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
638
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
639
|
+
name: "cellphone",
|
|
640
|
+
color: "#5856D6"
|
|
641
|
+
}),
|
|
614
642
|
title: `${showDeviceManagement ? 'Hide' : 'Manage'} Device Sessions`,
|
|
615
|
-
|
|
643
|
+
description: "View and manage sessions on other devices",
|
|
616
644
|
onPress: () => setShowDeviceManagement(!showDeviceManagement)
|
|
617
|
-
}, {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
645
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
646
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
647
|
+
name: "logout",
|
|
648
|
+
color: "#FF3B30"
|
|
649
|
+
}),
|
|
650
|
+
title: "Sign Out All Accounts",
|
|
651
|
+
description: "Remove all accounts from this device",
|
|
652
|
+
onPress: confirmLogoutAll,
|
|
653
|
+
disabled: sessionsWithUsers.length === 0,
|
|
654
|
+
destructive: true
|
|
655
|
+
})]
|
|
656
|
+
})
|
|
627
657
|
}), showDeviceManagement && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
628
658
|
style: styles.section,
|
|
629
659
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
630
660
|
style: styles.sectionTitle,
|
|
631
661
|
children: t('accountSwitcher.sections.deviceSessions') || 'Device Sessions'
|
|
632
|
-
}), loadingDeviceSessions ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
662
|
+
}), loadingDeviceSessions ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
663
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
664
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
665
|
+
name: "sync",
|
|
666
|
+
color: "#007AFF"
|
|
667
|
+
}),
|
|
637
668
|
title: t('accountSwitcher.device.loadingTitle') || 'Loading device sessions...',
|
|
638
|
-
|
|
669
|
+
description: t('accountSwitcher.device.loadingSubtitle') || 'Please wait while we fetch your device sessions',
|
|
639
670
|
disabled: true,
|
|
640
|
-
|
|
671
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
641
672
|
size: "small",
|
|
642
|
-
color: "#007AFF"
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
iconColor: '#ccc',
|
|
673
|
+
color: "#007AFF"
|
|
674
|
+
}),
|
|
675
|
+
showChevron: false
|
|
676
|
+
})
|
|
677
|
+
}) : deviceSessions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
678
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
679
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
680
|
+
name: "cellphone",
|
|
681
|
+
color: "#ccc"
|
|
682
|
+
}),
|
|
653
683
|
title: t('accountSwitcher.device.noneTitle') || 'No device sessions found',
|
|
654
|
-
|
|
655
|
-
disabled: true
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
icon:
|
|
661
|
-
|
|
684
|
+
description: t('accountSwitcher.device.noneSubtitle') || 'Device session management not available',
|
|
685
|
+
disabled: true,
|
|
686
|
+
showChevron: false
|
|
687
|
+
})
|
|
688
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
689
|
+
children: deviceSessions.map(session => /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
690
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
691
|
+
name: session.isCurrent ? 'cellphone' : 'cellphone-basic',
|
|
692
|
+
color: session.isCurrent ? '#34C759' : '#8E8E93'
|
|
693
|
+
}),
|
|
662
694
|
title: `${session.deviceName} ${session.isCurrent ? `(${t('accountSwitcher.device.thisDevice') || 'This device'})` : ''}`,
|
|
663
|
-
|
|
695
|
+
description: t('accountSwitcher.device.lastActive', {
|
|
664
696
|
date: new Date(session.lastActive).toLocaleDateString()
|
|
665
697
|
}) || `Last active: ${new Date(session.lastActive).toLocaleDateString()}`,
|
|
666
|
-
onPress: session.isCurrent ? undefined : () =>
|
|
698
|
+
onPress: session.isCurrent ? undefined : () => confirmRemoteSessionLogout(session.sessionId, session.deviceName),
|
|
667
699
|
disabled: session.isCurrent || remotingLogoutSessionId === session.sessionId,
|
|
668
|
-
|
|
700
|
+
showChevron: false,
|
|
701
|
+
rightElement: !session.isCurrent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
669
702
|
style: styles.removeButton,
|
|
670
|
-
onPress: () =>
|
|
703
|
+
onPress: () => confirmRemoteSessionLogout(session.sessionId, session.deviceName),
|
|
671
704
|
disabled: remotingLogoutSessionId === session.sessionId,
|
|
672
705
|
children: remotingLogoutSessionId === session.sessionId ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
673
706
|
size: "small",
|
|
@@ -678,19 +711,20 @@ const ModernAccountSwitcherScreen = ({
|
|
|
678
711
|
color: "#FF3B30"
|
|
679
712
|
})
|
|
680
713
|
}) : undefined
|
|
681
|
-
}))
|
|
714
|
+
}, `device-session-${session.sessionId}`))
|
|
682
715
|
})]
|
|
683
716
|
}), sessionsWithUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
684
717
|
style: styles.section,
|
|
685
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
718
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
719
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
720
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
721
|
+
name: "account-outline",
|
|
722
|
+
color: "#ccc"
|
|
723
|
+
}),
|
|
690
724
|
title: t('accountSwitcher.empty.title') || 'No saved accounts',
|
|
691
|
-
|
|
725
|
+
description: t('accountSwitcher.empty.subtitle') || 'Add another account to switch between them quickly',
|
|
692
726
|
onPress: () => navigate?.('OxyAuth'),
|
|
693
|
-
|
|
727
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
694
728
|
style: styles.emptyStateContainer,
|
|
695
729
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
696
730
|
name: "person-outline",
|
|
@@ -710,11 +744,46 @@ const ModernAccountSwitcherScreen = ({
|
|
|
710
744
|
children: t('accountCenter.sections.addAccount') || 'Add Account'
|
|
711
745
|
})
|
|
712
746
|
})]
|
|
713
|
-
})
|
|
714
|
-
|
|
747
|
+
}),
|
|
748
|
+
showChevron: false
|
|
749
|
+
})
|
|
715
750
|
})
|
|
716
751
|
})]
|
|
717
752
|
})
|
|
753
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
|
|
754
|
+
control: removeSessionPrompt,
|
|
755
|
+
title: t('accountSwitcher.confirms.removeTitle') || 'Remove Account',
|
|
756
|
+
description: pendingRemoveSession ? t('accountSwitcher.confirms.remove', {
|
|
757
|
+
displayName: pendingRemoveSession.displayName
|
|
758
|
+
}) || `Are you sure you want to remove ${pendingRemoveSession.displayName} from this device? You'll need to sign in again to access this account.` : '',
|
|
759
|
+
onConfirm: handleRemoveSession,
|
|
760
|
+
confirmButtonCta: t('common.remove') || 'Remove',
|
|
761
|
+
confirmButtonColor: "negative"
|
|
762
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
|
|
763
|
+
control: logoutAllPrompt,
|
|
764
|
+
title: t('accountSwitcher.confirms.logoutAllTitle') || 'Sign Out All',
|
|
765
|
+
description: t('accountSwitcher.confirms.logoutAll') || 'Are you sure you want to sign out of all accounts? This will remove all saved accounts from this device.',
|
|
766
|
+
onConfirm: handleLogoutAll,
|
|
767
|
+
confirmButtonCta: t('common.signOutAll') || 'Sign Out All',
|
|
768
|
+
confirmButtonColor: "negative"
|
|
769
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
|
|
770
|
+
control: remoteLogoutPrompt,
|
|
771
|
+
title: t('accountSwitcher.confirms.remoteLogoutTitle') || 'Remote Sign Out',
|
|
772
|
+
description: pendingRemoteLogout ? t('accountSwitcher.confirms.remoteLogout', {
|
|
773
|
+
deviceName: pendingRemoteLogout.deviceName
|
|
774
|
+
}) || `Are you sure you want to sign out from "${pendingRemoteLogout.deviceName}"? This will end the session on that device.` : '',
|
|
775
|
+
onConfirm: handleRemoteSessionLogout,
|
|
776
|
+
confirmButtonCta: t('common.signOut') || 'Sign Out',
|
|
777
|
+
confirmButtonColor: "negative"
|
|
778
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
|
|
779
|
+
control: logoutAllDevicesPrompt,
|
|
780
|
+
title: t('accountSwitcher.confirms.logoutOthersTitle') || 'Sign Out Other Devices',
|
|
781
|
+
description: t('accountSwitcher.confirms.logoutOthers', {
|
|
782
|
+
count: otherDevicesCount
|
|
783
|
+
}) || `Are you sure you want to sign out from all ${otherDevicesCount} other device(s)? This will end sessions on all other devices except this one.`,
|
|
784
|
+
onConfirm: handleLogoutAllDevices,
|
|
785
|
+
confirmButtonCta: t('common.signOutAll') || 'Sign Out All',
|
|
786
|
+
confirmButtonColor: "negative"
|
|
718
787
|
})]
|
|
719
788
|
});
|
|
720
789
|
};
|