@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
|
@@ -2,7 +2,7 @@ import type React from 'react';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { View, Text, Animated } from 'react-native';
|
|
4
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
5
|
-
import
|
|
5
|
+
import { Button } from '@oxyhq/bloom/button';
|
|
6
6
|
import { createPaymentStyles } from './paymentStyles';
|
|
7
7
|
import type { PaymentColors, PaymentStepAnimations } from './types';
|
|
8
8
|
import { useI18n } from '../../hooks/useI18n';
|
|
@@ -56,17 +56,9 @@ const PaymentSuccessStep: React.FC<PaymentSuccessStepProps> = ({
|
|
|
56
56
|
</View>
|
|
57
57
|
</View>
|
|
58
58
|
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
text: t('payment.actions.done'),
|
|
63
|
-
onPress: onDone,
|
|
64
|
-
icon: 'checkmark',
|
|
65
|
-
variant: 'primary',
|
|
66
|
-
},
|
|
67
|
-
]}
|
|
68
|
-
colors={colors}
|
|
69
|
-
/>
|
|
59
|
+
<Button variant="primary" onPress={onDone} size="small" icon={<Ionicons name="checkmark" size={16} />} iconPosition="right">
|
|
60
|
+
{t('payment.actions.done')}
|
|
61
|
+
</Button>
|
|
70
62
|
</Animated.View>
|
|
71
63
|
);
|
|
72
64
|
};
|
|
@@ -2,8 +2,8 @@ import type React from 'react';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { View, Text, Animated } from 'react-native';
|
|
4
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
6
|
+
import { Button } from '@oxyhq/bloom/button';
|
|
7
7
|
import { createPaymentStyles } from './paymentStyles';
|
|
8
8
|
import { getCurrencySymbol, CURRENCY_SYMBOLS } from './constants';
|
|
9
9
|
import type { PaymentItem, PaymentColors, PaymentStepAnimations } from './types';
|
|
@@ -81,20 +81,22 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
81
81
|
{paymentItems.length > 0 ? (
|
|
82
82
|
<>
|
|
83
83
|
<View style={styles.summaryCardItems}>
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
84
|
+
<SettingsListGroup>
|
|
85
|
+
{paymentItems.map((item, idx) => (
|
|
86
|
+
<SettingsListItem
|
|
87
|
+
key={`item-${idx}`}
|
|
88
|
+
icon={<Ionicons name={getItemTypeIcon(item.type)} size={20} color={colors.primary} />}
|
|
89
|
+
title={`${item.type === 'product' && item.quantity ? `${item.quantity} \u00d7 ` : ''}${item.name}${item.type === 'subscription' && item.period ? ` (${item.period})` : ''}`}
|
|
90
|
+
description={item.description || `${item.currency ? (CURRENCY_SYMBOLS[item.currency.toUpperCase()] || item.currency) : currencySymbol} ${item.price * (item.quantity ?? 1)}`}
|
|
91
|
+
showChevron={false}
|
|
92
|
+
rightElement={
|
|
93
|
+
<Text style={styles.summaryItemPrice}>
|
|
94
|
+
{item.currency ? (CURRENCY_SYMBOLS[item.currency.toUpperCase()] || item.currency) : currencySymbol} {item.price * (item.quantity ?? 1)}
|
|
95
|
+
</Text>
|
|
96
|
+
}
|
|
97
|
+
/>
|
|
98
|
+
))}
|
|
99
|
+
</SettingsListGroup>
|
|
98
100
|
</View>
|
|
99
101
|
|
|
100
102
|
<View style={styles.summaryCardDivider} />
|
|
@@ -138,23 +140,14 @@ const PaymentSummaryStep: React.FC<PaymentSummaryStepProps> = ({
|
|
|
138
140
|
</View>
|
|
139
141
|
</View>
|
|
140
142
|
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
{
|
|
150
|
-
text: t('payment.actions.continue'),
|
|
151
|
-
onPress: onNext,
|
|
152
|
-
icon: 'arrow-forward',
|
|
153
|
-
variant: 'primary',
|
|
154
|
-
},
|
|
155
|
-
]}
|
|
156
|
-
colors={colors}
|
|
157
|
-
/>
|
|
143
|
+
<View style={{ flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }}>
|
|
144
|
+
<Button variant="secondary" onPress={onClose} size="small" icon={<Ionicons name="close" size={16} />}>
|
|
145
|
+
{t('payment.actions.close')}
|
|
146
|
+
</Button>
|
|
147
|
+
<Button variant="primary" onPress={onNext} size="small" icon={<Ionicons name="arrow-forward" size={16} />} iconPosition="right">
|
|
148
|
+
{t('payment.actions.continue')}
|
|
149
|
+
</Button>
|
|
150
|
+
</View>
|
|
158
151
|
</Animated.View>
|
|
159
152
|
);
|
|
160
153
|
};
|
|
@@ -131,9 +131,10 @@ export const useAuthOperations = ({
|
|
|
131
131
|
logger('Creating offline session');
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
// Generate a local session ID using cryptographically secure randomness
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
// Generate a local session ID using cryptographically secure randomness.
|
|
135
|
+
// Literal-string import: Hermes/Metro require static strings, not variable
|
|
136
|
+
// expressions or webpackIgnore comments.
|
|
137
|
+
const Crypto = await import('expo-crypto');
|
|
137
138
|
const localSessionId = `offline_${Crypto.getRandomUUID()}`;
|
|
138
139
|
const localDeviceId = `device_${Crypto.getRandomUUID()}`;
|
|
139
140
|
const expiresAt = new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(); // 7 days
|
|
@@ -11,10 +11,10 @@ import { useCallback, useMemo } from 'react';
|
|
|
11
11
|
import type { BaseScreenProps } from '../types/navigation';
|
|
12
12
|
import { packageInfo } from '@oxyhq/core';
|
|
13
13
|
import { toast } from '../../lib/sonner';
|
|
14
|
-
import { confirmAction } from '../utils/confirmAction';
|
|
15
14
|
import { fontFamilies } from '../styles/fonts';
|
|
15
|
+
import * as Prompt from '@oxyhq/bloom/prompt';
|
|
16
|
+
import { usePromptControl } from '@oxyhq/bloom/prompt';
|
|
16
17
|
import ProfileCard from '../components/ProfileCard';
|
|
17
|
-
import Section from '../components/Section';
|
|
18
18
|
import QuickActions from '../components/QuickActions';
|
|
19
19
|
import { SettingsIcon } from '../components/SettingsIcon';
|
|
20
20
|
import { useI18n } from '../hooks/useI18n';
|
|
@@ -31,7 +31,6 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
31
31
|
theme,
|
|
32
32
|
navigate,
|
|
33
33
|
}) => {
|
|
34
|
-
// Use useOxy() hook for OxyContext values
|
|
35
34
|
const { user, logout, isLoading, sessions, isAuthenticated, managedAccounts } = useOxy();
|
|
36
35
|
const { t } = useI18n();
|
|
37
36
|
const bloomTheme = useTheme();
|
|
@@ -39,8 +38,8 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
39
38
|
const normalizedTheme = normalizeTheme(theme);
|
|
40
39
|
const dangerColor = bloomTheme.colors.error;
|
|
41
40
|
const colors = Colors[normalizeColorScheme(colorScheme, normalizedTheme)];
|
|
41
|
+
const logoutPrompt = usePromptControl();
|
|
42
42
|
|
|
43
|
-
// Memoized logout handler - prevents unnecessary re-renders
|
|
44
43
|
const handleLogout = useCallback(async () => {
|
|
45
44
|
try {
|
|
46
45
|
await logout();
|
|
@@ -55,14 +54,6 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
55
54
|
}
|
|
56
55
|
}, [logout, onClose, t]);
|
|
57
56
|
|
|
58
|
-
// Memoized confirm logout handler - prevents unnecessary re-renders
|
|
59
|
-
const confirmLogout = useCallback(() => {
|
|
60
|
-
confirmAction(
|
|
61
|
-
t('common.confirms.signOut') || 'Are you sure you want to sign out?',
|
|
62
|
-
handleLogout
|
|
63
|
-
);
|
|
64
|
-
}, [handleLogout, t]);
|
|
65
|
-
|
|
66
57
|
if (!isAuthenticated) {
|
|
67
58
|
return (
|
|
68
59
|
<View style={[styles.container, { backgroundColor: bloomTheme.colors.background }]}>
|
|
@@ -81,7 +72,6 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
81
72
|
|
|
82
73
|
return (
|
|
83
74
|
<View style={[styles.container, { backgroundColor: bloomTheme.colors.background }]}>
|
|
84
|
-
{/* Header with user profile */}
|
|
85
75
|
{user && (
|
|
86
76
|
<ProfileCard
|
|
87
77
|
user={user}
|
|
@@ -93,8 +83,7 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
93
83
|
)}
|
|
94
84
|
|
|
95
85
|
<ScrollView style={styles.scrollView} contentContainerStyle={styles.scrollContainer} showsVerticalScrollIndicator={false}>
|
|
96
|
-
{
|
|
97
|
-
<Section title={t('accountCenter.sections.quickActions') || 'Quick Actions'} isFirst={true}>
|
|
86
|
+
<SettingsListGroup title={t('accountCenter.sections.quickActions') || 'Quick Actions'}>
|
|
98
87
|
<QuickActions
|
|
99
88
|
theme={normalizedTheme}
|
|
100
89
|
actions={useMemo(() => [
|
|
@@ -105,144 +94,58 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
105
94
|
...(user?.isPremium ? [{ id: 'billing', icon: 'card', iconColor: colors.iconPersonalInfo, title: t('accountCenter.quickActions.billing') || 'Billing', onPress: () => navigate?.('PaymentGateway') }] : []),
|
|
106
95
|
...(sessions && sessions.length > 1 ? [{ id: 'switch', icon: 'swap-horizontal', iconColor: colors.iconStorage, title: t('accountCenter.quickActions.switch') || 'Switch', onPress: () => navigate?.('AccountSwitcher') }] : []),
|
|
107
96
|
], [user?.isPremium, sessions, navigate, t, colors])}
|
|
108
|
-
|
|
109
97
|
/>
|
|
110
|
-
</
|
|
98
|
+
</SettingsListGroup>
|
|
111
99
|
|
|
112
|
-
{/* Account Management */}
|
|
113
100
|
<SettingsListGroup title={t('accountCenter.sections.accountManagement') || 'Account Management'}>
|
|
114
|
-
<SettingsListItem
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/>
|
|
120
|
-
<SettingsListItem
|
|
121
|
-
icon={<SettingsIcon name="cog" color={colors.iconData} />}
|
|
122
|
-
title={t('accountCenter.items.editProfile.title') || 'Edit Profile'}
|
|
123
|
-
description={t('accountCenter.items.editProfile.subtitle') || 'Manage your profile and preferences'}
|
|
124
|
-
onPress={() => navigate?.('AccountSettings')}
|
|
125
|
-
/>
|
|
126
|
-
<SettingsListItem
|
|
127
|
-
icon={<SettingsIcon name="shield-check" color={colors.iconSecurity} />}
|
|
128
|
-
title={t('accountCenter.items.manageSessions.title') || 'Manage Sessions'}
|
|
129
|
-
description={t('accountCenter.items.manageSessions.subtitle') || 'Security and active devices'}
|
|
130
|
-
onPress={() => navigate?.('SessionManagement')}
|
|
131
|
-
/>
|
|
132
|
-
<SettingsListItem
|
|
133
|
-
icon={<SettingsIcon name="folder" color={colors.iconStorage} />}
|
|
134
|
-
title={t('accountCenter.items.fileManagement.title') || 'File Management'}
|
|
135
|
-
description={t('accountCenter.items.fileManagement.subtitle') || 'Upload, download, and manage your files'}
|
|
136
|
-
onPress={() => navigate?.('FileManagement')}
|
|
137
|
-
/>
|
|
138
|
-
<SettingsListItem
|
|
139
|
-
icon={<SettingsIcon name="star" color={colors.iconPayments} />}
|
|
140
|
-
title={t('accountCenter.items.premium.title') || 'Oxy+ Subscriptions'}
|
|
141
|
-
description={user?.isPremium ? (t('accountCenter.items.premium.manage') || 'Manage your premium plan') : (t('accountCenter.items.premium.upgrade') || 'Upgrade to premium features')}
|
|
142
|
-
onPress={() => navigate?.('PremiumSubscription')}
|
|
143
|
-
/>
|
|
101
|
+
<SettingsListItem icon={<SettingsIcon name="account-circle" color={colors.iconSecurity} />} title={t('accountCenter.items.accountOverview.title') || 'Account Overview'} description={t('accountCenter.items.accountOverview.subtitle') || 'Complete account information'} onPress={() => navigate?.('AccountOverview')} />
|
|
102
|
+
<SettingsListItem icon={<SettingsIcon name="cog" color={colors.iconData} />} title={t('accountCenter.items.editProfile.title') || 'Edit Profile'} description={t('accountCenter.items.editProfile.subtitle') || 'Manage your profile and preferences'} onPress={() => navigate?.('AccountSettings')} />
|
|
103
|
+
<SettingsListItem icon={<SettingsIcon name="shield-check" color={colors.iconSecurity} />} title={t('accountCenter.items.manageSessions.title') || 'Manage Sessions'} description={t('accountCenter.items.manageSessions.subtitle') || 'Security and active devices'} onPress={() => navigate?.('SessionManagement')} />
|
|
104
|
+
<SettingsListItem icon={<SettingsIcon name="folder" color={colors.iconStorage} />} title={t('accountCenter.items.fileManagement.title') || 'File Management'} description={t('accountCenter.items.fileManagement.subtitle') || 'Upload, download, and manage your files'} onPress={() => navigate?.('FileManagement')} />
|
|
105
|
+
<SettingsListItem icon={<SettingsIcon name="star" color={colors.iconPayments} />} title={t('accountCenter.items.premium.title') || 'Oxy+ Subscriptions'} description={user?.isPremium ? (t('accountCenter.items.premium.manage') || 'Manage your premium plan') : (t('accountCenter.items.premium.upgrade') || 'Upgrade to premium features')} onPress={() => navigate?.('PremiumSubscription')} />
|
|
144
106
|
{user?.isPremium ? (
|
|
145
|
-
<SettingsListItem
|
|
146
|
-
icon={<SettingsIcon name="credit-card" color={colors.iconPersonalInfo} />}
|
|
147
|
-
title={t('accountCenter.items.billing.title') || 'Billing Management'}
|
|
148
|
-
description={t('accountCenter.items.billing.subtitle') || 'Payment methods and invoices'}
|
|
149
|
-
onPress={() => navigate?.('PaymentGateway')}
|
|
150
|
-
/>
|
|
107
|
+
<SettingsListItem icon={<SettingsIcon name="credit-card" color={colors.iconPersonalInfo} />} title={t('accountCenter.items.billing.title') || 'Billing Management'} description={t('accountCenter.items.billing.subtitle') || 'Payment methods and invoices'} onPress={() => navigate?.('PaymentGateway')} />
|
|
151
108
|
) : null}
|
|
152
109
|
</SettingsListGroup>
|
|
153
110
|
|
|
154
|
-
{/* Multi-Account Management */}
|
|
155
111
|
{sessions && sessions.length > 1 && (
|
|
156
112
|
<SettingsListGroup title={t('accountCenter.sections.multiAccount') || 'Multi-Account'}>
|
|
157
|
-
<SettingsListItem
|
|
158
|
-
|
|
159
|
-
title={t('accountCenter.items.switchAccount.title') || 'Switch Account'}
|
|
160
|
-
description={t('accountCenter.items.switchAccount.subtitle', { count: sessions.length }) || `${sessions.length} accounts available`}
|
|
161
|
-
onPress={() => navigate?.('AccountSwitcher')}
|
|
162
|
-
/>
|
|
163
|
-
<SettingsListItem
|
|
164
|
-
icon={<SettingsIcon name="account-plus" color={colors.iconPersonalInfo} />}
|
|
165
|
-
title={t('accountCenter.items.addAccount.title') || 'Add Another Account'}
|
|
166
|
-
description={t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account'}
|
|
167
|
-
onPress={() => navigate?.('OxyAuth')}
|
|
168
|
-
/>
|
|
113
|
+
<SettingsListItem icon={<SettingsIcon name="account-group" color={colors.iconStorage} />} title={t('accountCenter.items.switchAccount.title') || 'Switch Account'} description={t('accountCenter.items.switchAccount.subtitle', { count: sessions.length }) || `${sessions.length} accounts available`} onPress={() => navigate?.('AccountSwitcher')} />
|
|
114
|
+
<SettingsListItem icon={<SettingsIcon name="account-plus" color={colors.iconPersonalInfo} />} title={t('accountCenter.items.addAccount.title') || 'Add Another Account'} description={t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account'} onPress={() => navigate?.('OxyAuth')} />
|
|
169
115
|
</SettingsListGroup>
|
|
170
116
|
)}
|
|
171
117
|
|
|
172
|
-
{/* Single Account Setup */}
|
|
173
118
|
{(!sessions || sessions.length <= 1) && (
|
|
174
119
|
<SettingsListGroup title={t('accountCenter.sections.addAccount') || 'Add Account'}>
|
|
175
|
-
<SettingsListItem
|
|
176
|
-
icon={<SettingsIcon name="account-plus" color={colors.iconPersonalInfo} />}
|
|
177
|
-
title={t('accountCenter.items.addAccount.title') || 'Add Another Account'}
|
|
178
|
-
description={t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account'}
|
|
179
|
-
onPress={() => navigate?.('OxyAuth')}
|
|
180
|
-
/>
|
|
120
|
+
<SettingsListItem icon={<SettingsIcon name="account-plus" color={colors.iconPersonalInfo} />} title={t('accountCenter.items.addAccount.title') || 'Add Another Account'} description={t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account'} onPress={() => navigate?.('OxyAuth')} />
|
|
181
121
|
</SettingsListGroup>
|
|
182
122
|
)}
|
|
183
123
|
|
|
184
|
-
{/* Managed Accounts */}
|
|
185
124
|
{isAuthenticated && (
|
|
186
125
|
<SettingsListGroup title="Managed Accounts">
|
|
187
|
-
<SettingsListItem
|
|
188
|
-
|
|
189
|
-
title="Manage Identities"
|
|
190
|
-
description={managedAccounts.length > 0
|
|
191
|
-
? `${managedAccounts.length} managed ${managedAccounts.length === 1 ? 'identity' : 'identities'}`
|
|
192
|
-
: 'Sub-accounts you control'}
|
|
193
|
-
onPress={() => navigate?.('AccountSwitcher')}
|
|
194
|
-
/>
|
|
195
|
-
<SettingsListItem
|
|
196
|
-
icon={<SettingsIcon name="account-plus" color={colors.iconPersonalInfo} />}
|
|
197
|
-
title="Create New Identity"
|
|
198
|
-
description="Add a managed sub-account"
|
|
199
|
-
onPress={() => navigate?.('CreateManagedAccount')}
|
|
200
|
-
/>
|
|
126
|
+
<SettingsListItem icon={<SettingsIcon name="account-switch" color={colors.iconStorage} />} title="Manage Identities" description={managedAccounts.length > 0 ? `${managedAccounts.length} managed ${managedAccounts.length === 1 ? 'identity' : 'identities'}` : 'Sub-accounts you control'} onPress={() => navigate?.('AccountSwitcher')} />
|
|
127
|
+
<SettingsListItem icon={<SettingsIcon name="account-plus" color={colors.iconPersonalInfo} />} title="Create New Identity" description="Add a managed sub-account" onPress={() => navigate?.('CreateManagedAccount')} />
|
|
201
128
|
</SettingsListGroup>
|
|
202
129
|
)}
|
|
203
130
|
|
|
204
|
-
{/* Additional Options */}
|
|
205
131
|
<SettingsListGroup title={t('accountCenter.sections.moreOptions') || 'More Options'}>
|
|
206
132
|
{Platform.OS !== 'web' ? (
|
|
207
|
-
<SettingsListItem
|
|
208
|
-
icon={<SettingsIcon name="bell" color={colors.iconStorage} />}
|
|
209
|
-
title={t('accountCenter.items.notifications.title') || 'Notifications'}
|
|
210
|
-
description={t('accountCenter.items.notifications.subtitle') || 'Manage notification settings'}
|
|
211
|
-
onPress={() => navigate?.('AccountSettings', { activeTab: 'notifications' })}
|
|
212
|
-
/>
|
|
133
|
+
<SettingsListItem icon={<SettingsIcon name="bell" color={colors.iconStorage} />} title={t('accountCenter.items.notifications.title') || 'Notifications'} description={t('accountCenter.items.notifications.subtitle') || 'Manage notification settings'} onPress={() => navigate?.('AccountSettings', { activeTab: 'notifications' })} />
|
|
213
134
|
) : null}
|
|
214
|
-
<SettingsListItem
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
description={t('language.subtitle') || 'Choose your preferred language'}
|
|
218
|
-
onPress={() => navigate?.('LanguageSelector')}
|
|
219
|
-
/>
|
|
220
|
-
<SettingsListItem
|
|
221
|
-
icon={<SettingsIcon name="help-circle" color={colors.iconSecurity} />}
|
|
222
|
-
title={t('accountOverview.items.help.title') || 'Help & Support'}
|
|
223
|
-
description={t('accountOverview.items.help.subtitle') || 'Get help and contact support'}
|
|
224
|
-
onPress={() => navigate?.('HelpSupport')}
|
|
225
|
-
/>
|
|
226
|
-
<SettingsListItem
|
|
227
|
-
icon={<SettingsIcon name="information" color="#8E8E93" />}
|
|
228
|
-
title={t('accountCenter.items.appInfo.title') || 'App Information'}
|
|
229
|
-
description={t('accountCenter.items.appInfo.subtitle') || 'Version and system details'}
|
|
230
|
-
onPress={() => navigate?.('AppInfo')}
|
|
231
|
-
/>
|
|
135
|
+
<SettingsListItem icon={<SettingsIcon name="translate" color={colors.iconPersonalInfo} />} title={t('language.title') || 'Language'} description={t('language.subtitle') || 'Choose your preferred language'} onPress={() => navigate?.('LanguageSelector')} />
|
|
136
|
+
<SettingsListItem icon={<SettingsIcon name="help-circle" color={colors.iconSecurity} />} title={t('accountOverview.items.help.title') || 'Help & Support'} description={t('accountOverview.items.help.subtitle') || 'Get help and contact support'} onPress={() => navigate?.('HelpSupport')} />
|
|
137
|
+
<SettingsListItem icon={<SettingsIcon name="information" color="#8E8E93" />} title={t('accountCenter.items.appInfo.title') || 'App Information'} description={t('accountCenter.items.appInfo.subtitle') || 'Version and system details'} onPress={() => navigate?.('AppInfo')} />
|
|
232
138
|
</SettingsListGroup>
|
|
233
139
|
|
|
234
|
-
{/* Sign Out Section */}
|
|
235
140
|
<SettingsListGroup>
|
|
236
141
|
<SettingsListItem
|
|
237
142
|
icon={<SettingsIcon name="logout" color={dangerColor} />}
|
|
238
143
|
title={isLoading ? (t('accountCenter.signingOut') || 'Signing out...') : (t('common.actions.signOut') || 'Sign Out')}
|
|
239
|
-
onPress={
|
|
144
|
+
onPress={() => logoutPrompt.open()}
|
|
240
145
|
destructive={true}
|
|
241
146
|
showChevron={false}
|
|
242
147
|
disabled={isLoading}
|
|
243
|
-
rightElement={isLoading ? (
|
|
244
|
-
<ActivityIndicator color={dangerColor} size="small" />
|
|
245
|
-
) : undefined}
|
|
148
|
+
rightElement={isLoading ? (<ActivityIndicator color={dangerColor} size="small" />) : undefined}
|
|
246
149
|
/>
|
|
247
150
|
</SettingsListGroup>
|
|
248
151
|
|
|
@@ -252,32 +155,26 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
252
155
|
</Text>
|
|
253
156
|
</View>
|
|
254
157
|
</ScrollView>
|
|
158
|
+
|
|
159
|
+
<Prompt.Basic
|
|
160
|
+
control={logoutPrompt}
|
|
161
|
+
title={t('common.actions.signOut') || 'Sign Out'}
|
|
162
|
+
description={t('common.confirms.signOut') || 'Are you sure you want to sign out?'}
|
|
163
|
+
onConfirm={handleLogout}
|
|
164
|
+
confirmButtonCta={t('common.actions.signOut') || 'Sign Out'}
|
|
165
|
+
confirmButtonColor="negative"
|
|
166
|
+
/>
|
|
255
167
|
</View>
|
|
256
168
|
);
|
|
257
169
|
};
|
|
258
170
|
|
|
259
171
|
const styles = StyleSheet.create({
|
|
260
|
-
container: {
|
|
261
|
-
|
|
262
|
-
},
|
|
263
|
-
scrollView: {
|
|
264
|
-
flex: 1,
|
|
265
|
-
},
|
|
172
|
+
container: { flex: 1 },
|
|
173
|
+
scrollView: { flex: 1 },
|
|
266
174
|
scrollContainer: screenContentStyle,
|
|
267
|
-
versionContainer: {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
marginBottom: 20,
|
|
271
|
-
},
|
|
272
|
-
versionText: {
|
|
273
|
-
fontSize: 12,
|
|
274
|
-
fontFamily: fontFamilies.inter,
|
|
275
|
-
},
|
|
276
|
-
message: {
|
|
277
|
-
fontSize: 16,
|
|
278
|
-
textAlign: 'center',
|
|
279
|
-
marginTop: 24,
|
|
280
|
-
},
|
|
175
|
+
versionContainer: { alignItems: 'center', marginTop: 20, marginBottom: 20 },
|
|
176
|
+
versionText: { fontSize: 12, fontFamily: fontFamilies.inter },
|
|
177
|
+
message: { fontSize: 16, textAlign: 'center', marginTop: 24 },
|
|
281
178
|
});
|
|
282
179
|
|
|
283
180
|
export default AccountCenterScreen;
|