@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
|
@@ -3,21 +3,23 @@
|
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
4
|
import { View, StyleSheet, ScrollView } from 'react-native';
|
|
5
5
|
import { toast } from '../../lib/sonner';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { Header, LoadingState, EmptyState } from "../components/index.js";
|
|
7
|
+
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
8
|
+
import { SettingsIcon } from "../components/SettingsIcon.js";
|
|
8
9
|
import { useI18n } from "../hooks/useI18n.js";
|
|
9
10
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
10
11
|
import { useColorScheme } from "../hooks/useColorScheme.js";
|
|
11
12
|
import { Colors } from "../constants/theme.js";
|
|
12
13
|
import { normalizeColorScheme } from "../utils/themeUtils.js";
|
|
13
14
|
import { useOxy } from "../context/OxyContext.js";
|
|
15
|
+
import * as Prompt from '@oxyhq/bloom/prompt';
|
|
16
|
+
import { usePromptControl } from '@oxyhq/bloom/prompt';
|
|
14
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
18
|
const HistoryViewScreen = ({
|
|
16
19
|
onClose,
|
|
17
20
|
theme,
|
|
18
21
|
goBack
|
|
19
22
|
}) => {
|
|
20
|
-
// Use useOxy() hook for OxyContext values
|
|
21
23
|
const {
|
|
22
24
|
user
|
|
23
25
|
} = useOxy();
|
|
@@ -31,128 +33,93 @@ const HistoryViewScreen = ({
|
|
|
31
33
|
const [history, setHistory] = useState([]);
|
|
32
34
|
const [isLoading, setIsLoading] = useState(true);
|
|
33
35
|
const [isDeleting, setIsDeleting] = useState(false);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
const deleteLast15Prompt = usePromptControl();
|
|
37
|
+
const clearAllPrompt = usePromptControl();
|
|
36
38
|
const getStorage = async () => {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
+
const isRN = typeof navigator !== 'undefined' && navigator.product === 'ReactNative';
|
|
40
|
+
if (isRN) {
|
|
39
41
|
try {
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
+
const mod = await import('@react-native-async-storage/async-storage');
|
|
43
|
+
const s = mod.default;
|
|
42
44
|
return {
|
|
43
|
-
getItem:
|
|
44
|
-
setItem:
|
|
45
|
-
removeItem:
|
|
45
|
+
getItem: s.getItem.bind(s),
|
|
46
|
+
setItem: s.setItem.bind(s),
|
|
47
|
+
removeItem: s.removeItem.bind(s)
|
|
46
48
|
};
|
|
47
|
-
} catch (
|
|
48
|
-
if (__DEV__)
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
throw new Error('AsyncStorage is required in React Native environment');
|
|
49
|
+
} catch (e) {
|
|
50
|
+
if (__DEV__) console.error('AsyncStorage not available:', e);
|
|
51
|
+
throw new Error('AsyncStorage required');
|
|
52
52
|
}
|
|
53
|
-
} else {
|
|
54
|
-
// Use localStorage for web
|
|
55
|
-
return {
|
|
56
|
-
getItem: async key => {
|
|
57
|
-
if (typeof window !== 'undefined' && window.localStorage) {
|
|
58
|
-
return window.localStorage.getItem(key);
|
|
59
|
-
}
|
|
60
|
-
return null;
|
|
61
|
-
},
|
|
62
|
-
setItem: async (key, value) => {
|
|
63
|
-
if (typeof window !== 'undefined' && window.localStorage) {
|
|
64
|
-
window.localStorage.setItem(key, value);
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
removeItem: async key => {
|
|
68
|
-
if (typeof window !== 'undefined' && window.localStorage) {
|
|
69
|
-
window.localStorage.removeItem(key);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
53
|
}
|
|
54
|
+
return {
|
|
55
|
+
getItem: async k => typeof window !== 'undefined' && window.localStorage ? window.localStorage.getItem(k) : null,
|
|
56
|
+
setItem: async (k, v) => {
|
|
57
|
+
if (typeof window !== 'undefined' && window.localStorage) window.localStorage.setItem(k, v);
|
|
58
|
+
},
|
|
59
|
+
removeItem: async k => {
|
|
60
|
+
if (typeof window !== 'undefined' && window.localStorage) window.localStorage.removeItem(k);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
74
63
|
};
|
|
75
|
-
|
|
76
|
-
// TODO: Integrate with backend API for history storage
|
|
77
|
-
// Currently uses local storage only. Should fetch from backend API and sync across devices.
|
|
78
|
-
// Load history from storage
|
|
79
64
|
React.useEffect(() => {
|
|
80
|
-
const
|
|
65
|
+
const load = async () => {
|
|
81
66
|
try {
|
|
82
67
|
setIsLoading(true);
|
|
83
68
|
const storage = await getStorage();
|
|
84
|
-
const
|
|
85
|
-
const stored = await storage.getItem(historyKey);
|
|
69
|
+
const stored = await storage.getItem(`history_${user?.id || 'guest'}`);
|
|
86
70
|
if (stored) {
|
|
87
71
|
const parsed = JSON.parse(stored);
|
|
88
|
-
setHistory(parsed.map(
|
|
89
|
-
...
|
|
90
|
-
timestamp: new Date(
|
|
72
|
+
setHistory(parsed.map(i => ({
|
|
73
|
+
...i,
|
|
74
|
+
timestamp: new Date(i.timestamp)
|
|
91
75
|
})));
|
|
92
|
-
} else
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
} catch (error) {
|
|
76
|
+
} else setHistory([]);
|
|
77
|
+
} catch {
|
|
96
78
|
setHistory([]);
|
|
97
79
|
} finally {
|
|
98
80
|
setIsLoading(false);
|
|
99
81
|
}
|
|
100
82
|
};
|
|
101
|
-
|
|
83
|
+
load();
|
|
102
84
|
}, [user?.id]);
|
|
103
85
|
const handleDeleteLast15Minutes = useCallback(async () => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
console.error('Failed to delete history:', error);
|
|
119
|
-
}
|
|
120
|
-
toast.error(t('history.deleteLast15Minutes.error') || 'Failed to delete history');
|
|
121
|
-
} finally {
|
|
122
|
-
setIsDeleting(false);
|
|
123
|
-
}
|
|
124
|
-
});
|
|
86
|
+
try {
|
|
87
|
+
setIsDeleting(true);
|
|
88
|
+
const cutoff = new Date(Date.now() - 15 * 60 * 1000);
|
|
89
|
+
const filtered = history.filter(item => item.timestamp < cutoff);
|
|
90
|
+
setHistory(filtered);
|
|
91
|
+
const storage = await getStorage();
|
|
92
|
+
await storage.setItem(`history_${user?.id || 'guest'}`, JSON.stringify(filtered));
|
|
93
|
+
toast.success(t('history.deleteLast15Minutes.success') || 'Last 15 minutes deleted');
|
|
94
|
+
} catch (e) {
|
|
95
|
+
if (__DEV__) console.error('Failed to delete history:', e);
|
|
96
|
+
toast.error(t('history.deleteLast15Minutes.error') || 'Failed to delete history');
|
|
97
|
+
} finally {
|
|
98
|
+
setIsDeleting(false);
|
|
99
|
+
}
|
|
125
100
|
}, [history, user?.id, t]);
|
|
126
101
|
const handleClearAll = useCallback(async () => {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
console.error('Failed to clear history:', error);
|
|
140
|
-
}
|
|
141
|
-
toast.error(t('history.clearAll.error') || 'Failed to clear history');
|
|
142
|
-
} finally {
|
|
143
|
-
setIsDeleting(false);
|
|
144
|
-
}
|
|
145
|
-
});
|
|
102
|
+
try {
|
|
103
|
+
setIsDeleting(true);
|
|
104
|
+
setHistory([]);
|
|
105
|
+
const storage = await getStorage();
|
|
106
|
+
await storage.removeItem(`history_${user?.id || 'guest'}`);
|
|
107
|
+
toast.success(t('history.clearAll.success') || 'History cleared');
|
|
108
|
+
} catch (e) {
|
|
109
|
+
if (__DEV__) console.error('Failed to clear history:', e);
|
|
110
|
+
toast.error(t('history.clearAll.error') || 'Failed to clear history');
|
|
111
|
+
} finally {
|
|
112
|
+
setIsDeleting(false);
|
|
113
|
+
}
|
|
146
114
|
}, [user?.id, t]);
|
|
147
115
|
const formatTime = date => {
|
|
148
|
-
const
|
|
149
|
-
const
|
|
150
|
-
const
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
if (
|
|
154
|
-
if (
|
|
155
|
-
if (hours < 24) return `${hours} ${t('history.hoursAgo') || 'hours ago'}`;
|
|
116
|
+
const diff = new Date().getTime() - date.getTime();
|
|
117
|
+
const min = Math.floor(diff / 60000);
|
|
118
|
+
const hrs = Math.floor(min / 60);
|
|
119
|
+
const days = Math.floor(hrs / 24);
|
|
120
|
+
if (min < 1) return t('history.justNow') || 'Just now';
|
|
121
|
+
if (min < 60) return `${min} ${t('history.minutesAgo') || 'minutes ago'}`;
|
|
122
|
+
if (hrs < 24) return `${hrs} ${t('history.hoursAgo') || 'hours ago'}`;
|
|
156
123
|
if (days < 7) return `${days} ${t('history.daysAgo') || 'days ago'}`;
|
|
157
124
|
return date.toLocaleDateString();
|
|
158
125
|
};
|
|
@@ -167,29 +134,28 @@ const HistoryViewScreen = ({
|
|
|
167
134
|
elevation: "subtle"
|
|
168
135
|
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
169
136
|
style: styles.content,
|
|
170
|
-
children: [/*#__PURE__*/
|
|
137
|
+
children: [/*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
171
138
|
title: t('history.actions') || 'Actions',
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}), /*#__PURE__*/_jsx(Section, {
|
|
139
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
140
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
141
|
+
name: "clock-outline",
|
|
142
|
+
color: themeColors.iconStorage
|
|
143
|
+
}),
|
|
144
|
+
title: t('history.deleteLast15Minutes.title') || 'Delete Last 15 Minutes',
|
|
145
|
+
description: t('history.deleteLast15Minutes.subtitle') || 'Remove recent history entries',
|
|
146
|
+
onPress: () => deleteLast15Prompt.open(),
|
|
147
|
+
disabled: isDeleting || history.length === 0
|
|
148
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
149
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
150
|
+
name: "delete-outline",
|
|
151
|
+
color: themeColors.iconSharing
|
|
152
|
+
}),
|
|
153
|
+
title: t('history.clearAll.title') || 'Clear All History',
|
|
154
|
+
description: t('history.clearAll.subtitle') || 'Remove all history entries',
|
|
155
|
+
onPress: () => clearAllPrompt.open(),
|
|
156
|
+
disabled: isDeleting || history.length === 0
|
|
157
|
+
})]
|
|
158
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
193
159
|
title: t('history.recent') || 'Recent History',
|
|
194
160
|
children: isLoading ? /*#__PURE__*/_jsx(LoadingState, {
|
|
195
161
|
message: t('history.loading') || 'Loading history...',
|
|
@@ -197,16 +163,29 @@ const HistoryViewScreen = ({
|
|
|
197
163
|
}) : history.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
|
|
198
164
|
message: t('history.empty') || 'No history yet',
|
|
199
165
|
textColor: bloomTheme.colors.text
|
|
200
|
-
}) : /*#__PURE__*/_jsx(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
})
|
|
166
|
+
}) : history.map(item => /*#__PURE__*/_jsx(SettingsListItem, {
|
|
167
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
168
|
+
name: item.type === 'search' ? 'magnify' : 'earth',
|
|
169
|
+
color: item.type === 'search' ? themeColors.iconSecurity : themeColors.iconPersonalInfo
|
|
170
|
+
}),
|
|
171
|
+
title: item.query,
|
|
172
|
+
description: formatTime(item.timestamp)
|
|
173
|
+
}, item.id))
|
|
209
174
|
})]
|
|
175
|
+
}), /*#__PURE__*/_jsx(Prompt.Basic, {
|
|
176
|
+
control: deleteLast15Prompt,
|
|
177
|
+
title: t('history.deleteLast15Minutes.title') || 'Delete Last 15 Minutes',
|
|
178
|
+
description: t('history.deleteLast15Minutes.confirm') || 'Delete last 15 minutes of history?',
|
|
179
|
+
onConfirm: handleDeleteLast15Minutes,
|
|
180
|
+
confirmButtonCta: t('common.actions.delete') || 'Delete',
|
|
181
|
+
confirmButtonColor: "negative"
|
|
182
|
+
}), /*#__PURE__*/_jsx(Prompt.Basic, {
|
|
183
|
+
control: clearAllPrompt,
|
|
184
|
+
title: t('history.clearAll.title') || 'Clear All History',
|
|
185
|
+
description: t('history.clearAll.confirm') || 'Clear all history? This cannot be undone.',
|
|
186
|
+
onConfirm: handleClearAll,
|
|
187
|
+
confirmButtonCta: t('history.clearAll.title') || 'Clear All',
|
|
188
|
+
confirmButtonColor: "negative"
|
|
210
189
|
})]
|
|
211
190
|
});
|
|
212
191
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useCallback","View","StyleSheet","ScrollView","toast","
|
|
1
|
+
{"version":3,"names":["React","useState","useCallback","View","StyleSheet","ScrollView","toast","Header","LoadingState","EmptyState","SettingsListGroup","SettingsListItem","SettingsIcon","useI18n","useTheme","useColorScheme","Colors","normalizeColorScheme","useOxy","Prompt","usePromptControl","jsx","_jsx","jsxs","_jsxs","HistoryViewScreen","onClose","theme","goBack","user","t","bloomTheme","colorScheme","normalizedColorScheme","themeColors","history","setHistory","isLoading","setIsLoading","isDeleting","setIsDeleting","deleteLast15Prompt","clearAllPrompt","getStorage","isRN","navigator","product","mod","s","default","getItem","bind","setItem","removeItem","e","__DEV__","console","error","Error","k","window","localStorage","v","useEffect","load","storage","stored","id","parsed","JSON","parse","map","i","timestamp","Date","handleDeleteLast15Minutes","cutoff","now","filtered","filter","item","stringify","success","handleClearAll","formatTime","date","diff","getTime","min","Math","floor","hrs","days","toLocaleDateString","style","styles","container","backgroundColor","colors","background","children","title","onBack","variant","elevation","content","icon","name","color","iconStorage","description","onPress","open","disabled","length","iconSharing","message","text","textColor","type","iconSecurity","iconPersonalInfo","query","Basic","control","onConfirm","confirmButtonCta","confirmButtonColor","create","flex","padding","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/HistoryViewScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,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,KAAK;MAACC,OAAO,EAAElF,cAAe;MAAC2D,KAAK,EAAEvE,CAAC,CAAC,wBAAwB,CAAC,IAAI,mBAAoB;MAACgF,WAAW,EAAEhF,CAAC,CAAC,0BAA0B,CAAC,IAAI,2CAA4C;MAAC+F,SAAS,EAAE1C,cAAe;MAAC2C,gBAAgB,EAAEhG,CAAC,CAAC,wBAAwB,CAAC,IAAI,WAAY;MAACiG,kBAAkB,EAAC;IAAU,CAAE,CAAC;EAAA,CACpT,CAAC;AAEf,CAAC;AAED,MAAMhC,MAAM,GAAG3F,UAAU,CAAC4H,MAAM,CAAC;EAAEhC,SAAS,EAAE;IAAEiC,IAAI,EAAE;EAAE,CAAC;EAAExB,OAAO,EAAE;IAAEwB,IAAI,EAAE,CAAC;IAAEC,OAAO,EAAE;EAAG;AAAE,CAAC,CAAC;AAE/F,4BAAelI,KAAK,CAACmI,IAAI,CAAC1G,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,8 @@ import { useTheme } from '@oxyhq/bloom/theme';
|
|
|
6
6
|
import { normalizeTheme } from "../utils/themeUtils.js";
|
|
7
7
|
import { Ionicons } from '@expo/vector-icons';
|
|
8
8
|
import { toast } from '../../lib/sonner';
|
|
9
|
-
import { Header
|
|
9
|
+
import { Header } from "../components/index.js";
|
|
10
|
+
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
10
11
|
import { useI18n } from "../hooks/useI18n.js";
|
|
11
12
|
import { SUPPORTED_LANGUAGES } from '@oxyhq/core';
|
|
12
13
|
import { useOxy } from "../context/OxyContext.js";
|
|
@@ -96,8 +97,8 @@ const LanguageSelectorScreen = ({
|
|
|
96
97
|
return {
|
|
97
98
|
id: language.id,
|
|
98
99
|
title: language.name,
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
description: language.nativeName,
|
|
101
|
+
icon: /*#__PURE__*/_jsx(View, {
|
|
101
102
|
style: [styles.languageFlag, {
|
|
102
103
|
backgroundColor: `${language.color}15`
|
|
103
104
|
}],
|
|
@@ -106,14 +107,13 @@ const LanguageSelectorScreen = ({
|
|
|
106
107
|
children: language.flag
|
|
107
108
|
})
|
|
108
109
|
}),
|
|
109
|
-
iconColor: language.color,
|
|
110
|
-
selected: isSelected,
|
|
111
110
|
onPress: () => handleLanguageSelect(language.id),
|
|
112
|
-
|
|
111
|
+
rightElement: isSelected ? /*#__PURE__*/_jsx(Ionicons, {
|
|
113
112
|
name: "checkmark-circle",
|
|
114
113
|
size: 24,
|
|
115
114
|
color: bloomTheme.colors.primary
|
|
116
|
-
}) : undefined
|
|
115
|
+
}) : undefined,
|
|
116
|
+
showChevron: false
|
|
117
117
|
};
|
|
118
118
|
}), [currentLanguage, handleLanguageSelect, bloomTheme]);
|
|
119
119
|
return /*#__PURE__*/_jsxs(View, {
|
|
@@ -151,8 +151,15 @@ const LanguageSelectorScreen = ({
|
|
|
151
151
|
style: [styles.materialCard, {
|
|
152
152
|
backgroundColor: bloomTheme.colors.card
|
|
153
153
|
}],
|
|
154
|
-
children: /*#__PURE__*/_jsx(
|
|
155
|
-
|
|
154
|
+
children: /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
155
|
+
children: languageItems.map(item => /*#__PURE__*/_jsx(SettingsListItem, {
|
|
156
|
+
icon: item.icon,
|
|
157
|
+
title: item.title,
|
|
158
|
+
description: item.description,
|
|
159
|
+
onPress: item.onPress,
|
|
160
|
+
rightElement: item.rightElement,
|
|
161
|
+
showChevron: false
|
|
162
|
+
}, item.id))
|
|
156
163
|
})
|
|
157
164
|
})
|
|
158
165
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useMemo","useCallback","View","Text","StyleSheet","ScrollView","Platform","useTheme","normalizeTheme","Ionicons","toast","Header","
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","useCallback","View","Text","StyleSheet","ScrollView","Platform","useTheme","normalizeTheme","Ionicons","toast","Header","SettingsListGroup","SettingsListItem","useI18n","SUPPORTED_LANGUAGES","useOxy","fontFamilies","jsx","_jsx","jsxs","_jsxs","LanguageSelectorScreen","goBack","onClose","theme","user","currentLanguage","setLanguage","oxyServices","isAuthenticated","t","bloomTheme","normalizedTheme","isLoading","setIsLoading","handleLanguageSelect","languageId","serverSyncFailed","id","updateProfile","language","e","__DEV__","console","warn","Error","message","selectedLang","find","lang","success","name","error","languageItems","map","isSelected","title","description","nativeName","icon","style","styles","languageFlag","backgroundColor","color","children","flagEmoji","flag","onPress","rightElement","size","colors","primary","undefined","showChevron","container","background","subtitle","onBack","variant","elevation","content","contentContainerStyle","contentContainer","showsVerticalScrollIndicator","removeClippedSubviews","titleContainer","bigTitle","text","bigSubtitle","textSecondary","sectionContainer","materialCard","card","item","create","flex","padding","paddingTop","marginBottom","fontSize","fontWeight","OS","fontFamily","interBold","lineHeight","letterSpacing","opacity","marginTop","borderRadius","overflow","width","height","alignItems","justifyContent","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LanguageSelectorScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC7D,SACIC,IAAI,EACJC,IAAI,EAEJC,UAAU,EACVC,UAAU,EACVC,QAAQ,QACL,cAAc;AAErB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,cAAc,QAAQ,wBAAqB;AACpD,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,MAAM,QAAQ,wBAAe;AACtC,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAChF,SAASC,OAAO,QAAQ,qBAAkB;AAC1C,SAASC,mBAAmB,QAAQ,aAAa;AACjD,SAASC,MAAM,QAAQ,0BAAuB;AAC9C,SAASC,YAAY,QAAQ,oBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAI/C;AACA;AACA;AACA;AACA;AACA;AACA;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EAAE,EAAE;IACXC,UAAU,EAAE;EAChB,CAAC;EACDZ,cAAc,EAAE;IACZa,YAAY,EAAE,EAAE;IAChBD,UAAU,EAAE;EAChB,CAAC;EACDX,QAAQ,EAAE;IACNa,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAEhG,QAAQ,CAACiG,EAAE,KAAK,KAAK,GAAG,MAAM,GAAG7B,SAAS;IACtD8B,UAAU,EAAEvF,YAAY,CAACwF,SAAS;IAClCC,UAAU,EAAE,EAAE;IACdN,YAAY,EAAE,CAAC;IACfO,aAAa,EAAE,CAAC;EACpB,CAAC;EACDjB,WAAW,EAAE;IACTW,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE,EAAE;IACdE,OAAO,EAAE,GAAG;IACZC,SAAS,EAAE;EACf,CAAC;EACDjB,gBAAgB,EAAE;IACdQ,YAAY,EAAE;EAClB,CAAC;EACDP,YAAY,EAAE;IACViB,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE;EACd,CAAC;EACDhD,YAAY,EAAE;IACViD,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVH,YAAY,EAAE,EAAE;IAChBI,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDhD,SAAS,EAAE;IACPkC,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;;AAEF;AACA,4BAAevG,KAAK,CAACsH,IAAI,CAAC9F,sBAAsB,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
4
|
import { View, StyleSheet, ScrollView, Linking } from 'react-native';
|
|
5
5
|
import { toast } from '../../lib/sonner';
|
|
6
|
-
import { Header,
|
|
6
|
+
import { Header, LoadingState } from "../components/index.js";
|
|
7
|
+
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
8
|
+
import { SettingsIcon } from "../components/SettingsIcon.js";
|
|
7
9
|
import { useI18n } from "../hooks/useI18n.js";
|
|
8
10
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
9
11
|
import { useColorScheme } from "../hooks/useColorScheme.js";
|
|
@@ -113,61 +115,65 @@ const LegalDocumentsScreen = ({
|
|
|
113
115
|
elevation: "subtle"
|
|
114
116
|
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
115
117
|
style: styles.content,
|
|
116
|
-
children: /*#__PURE__*/
|
|
118
|
+
children: /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
117
119
|
title: t('legal.policies') || 'Policies & Guidelines',
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
120
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
121
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
122
|
+
name: "shield-check",
|
|
123
|
+
color: themeColors.iconPersonalInfo
|
|
124
|
+
}),
|
|
125
|
+
title: t('legal.privacyPolicy.title') || 'Privacy Policy',
|
|
126
|
+
description: t('legal.privacyPolicy.subtitle') || 'How we handle your data',
|
|
127
|
+
onPress: handleOpenPolicy('privacy')
|
|
128
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
129
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
130
|
+
name: "file-document",
|
|
131
|
+
color: themeColors.iconSecurity
|
|
132
|
+
}),
|
|
133
|
+
title: t('legal.termsOfService.title') || 'Terms of Service',
|
|
134
|
+
description: t('legal.termsOfService.subtitle') || 'Terms and conditions of use',
|
|
135
|
+
onPress: handleOpenPolicy('terms')
|
|
136
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
137
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
138
|
+
name: "account-group",
|
|
139
|
+
color: themeColors.iconData
|
|
140
|
+
}),
|
|
141
|
+
title: t('legal.communityGuidelines.title') || 'Community Guidelines',
|
|
142
|
+
description: t('legal.communityGuidelines.subtitle') || 'Rules and expectations for our community',
|
|
143
|
+
onPress: handleOpenPolicy('community')
|
|
144
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
145
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
146
|
+
name: "clock",
|
|
147
|
+
color: themeColors.iconStorage
|
|
148
|
+
}),
|
|
149
|
+
title: t('legal.dataRetention.title') || 'Data Retention Policy',
|
|
150
|
+
description: t('legal.dataRetention.subtitle') || 'How long we keep your data',
|
|
151
|
+
onPress: handleOpenPolicy('dataRetention')
|
|
152
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
153
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
154
|
+
name: "eye",
|
|
155
|
+
color: themeColors.iconSharing
|
|
156
|
+
}),
|
|
157
|
+
title: t('legal.contentModeration.title') || 'Content Moderation Policy',
|
|
158
|
+
description: t('legal.contentModeration.subtitle') || 'How we moderate content',
|
|
159
|
+
onPress: handleOpenPolicy('contentModeration')
|
|
160
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
161
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
162
|
+
name: "heart",
|
|
163
|
+
color: "#FF2D55"
|
|
164
|
+
}),
|
|
165
|
+
title: t('legal.childSafety.title') || 'Child Safety Policy',
|
|
166
|
+
description: t('legal.childSafety.subtitle') || 'Protecting minors on our platform',
|
|
167
|
+
onPress: handleOpenPolicy('childSafety')
|
|
168
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
169
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
170
|
+
name: "cookie",
|
|
171
|
+
color: "#8E8E93"
|
|
172
|
+
}),
|
|
173
|
+
title: t('legal.cookiePolicy.title') || 'Cookie Policy',
|
|
174
|
+
description: t('legal.cookiePolicy.subtitle') || 'How we use cookies and similar technologies',
|
|
175
|
+
onPress: handleOpenPolicy('cookie')
|
|
176
|
+
})]
|
|
171
177
|
})
|
|
172
178
|
})]
|
|
173
179
|
});
|