@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_sonner","_index","_useI18n","_theme","_useColorScheme","_theme2","_themeUtils","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LegalDocumentsScreen","onClose","theme","goBack","initialStep","useI18n","loading","setLoading","useState","bloomTheme","useTheme","colorScheme","useColorScheme","normalizedColorScheme","normalizeColorScheme","themeColors","Colors","POLICY_URLS","privacy","terms","community","dataRetention","contentModeration","childSafety","cookie","documentType","handleOpenPolicy","useCallback","policyKey","url","canOpen","Linking","canOpenURL","openURL","toast","error","__DEV__","console","React","useEffect","getPolicyTitle","key","titles","jsxs","View","style","styles","container","backgroundColor","colors","background","children","jsx","Header","title","onBack","variant","elevation","LoadingState","message","color","text","ScrollView","content","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_sonner","_index","_settingsList","_SettingsIcon","_useI18n","_theme","_useColorScheme","_theme2","_themeUtils","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LegalDocumentsScreen","onClose","theme","goBack","initialStep","useI18n","loading","setLoading","useState","bloomTheme","useTheme","colorScheme","useColorScheme","normalizedColorScheme","normalizeColorScheme","themeColors","Colors","POLICY_URLS","privacy","terms","community","dataRetention","contentModeration","childSafety","cookie","documentType","handleOpenPolicy","useCallback","policyKey","url","canOpen","Linking","canOpenURL","openURL","toast","error","__DEV__","console","React","useEffect","getPolicyTitle","key","titles","jsxs","View","style","styles","container","backgroundColor","colors","background","children","jsx","Header","title","onBack","variant","elevation","LoadingState","message","color","text","ScrollView","content","SettingsListGroup","SettingsListItem","icon","SettingsIcon","name","iconPersonalInfo","description","onPress","iconSecurity","iconData","iconStorage","iconSharing","StyleSheet","create","flex","padding","_default","exports","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LegalDocumentsScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;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AE,CAC5C,CAAC,eACF,IAAA9C,WAAA,CAAAwE,GAAA,EAAC/E,aAAA,CAAA4F,gBAAgB;UACbC,IAAI,eAAE,IAAAtF,WAAA,CAAAwE,GAAA,EAAC9E,aAAA,CAAA6F,YAAY;YAACC,IAAI,EAAC,QAAQ;YAACR,KAAK,EAAC;UAAS,CAAE,CAAE;UACrDN,KAAK,EAAExE,CAAC,CAAC,0BAA0B,CAAC,IAAI,eAAgB;UACxDwF,WAAW,EAAExF,CAAC,CAAC,6BAA6B,CAAC,IAAI,6CAA8C;UAC/FyF,OAAO,EAAE7C,gBAAgB,CAAC,QAAQ;QAAE,CACvC,CAAC;MAAA,CACa;IAAC,CACZ,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;AAED,MAAMoB,MAAM,GAAG8B,uBAAU,CAACC,MAAM,CAAC;EAC7B9B,SAAS,EAAE;IACP+B,IAAI,EAAE;EACV,CAAC;EACDf,OAAO,EAAE;IACLe,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACb;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA1F,OAAA,gBAEY+C,cAAK,CAAC4C,IAAI,CAAClF,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,8 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _index = require("../styles/index.js");
|
|
10
10
|
var _themeUtils = require("../utils/themeUtils.js");
|
|
11
|
-
var
|
|
11
|
+
var _button = require("@oxyhq/bloom/button");
|
|
12
|
+
var _vectorIcons = require("@expo/vector-icons");
|
|
12
13
|
var _useI18n = require("../hooks/useI18n.js");
|
|
13
14
|
var _reactNativeQrcodeSvg = _interopRequireDefault(require("react-native-qrcode-svg"));
|
|
14
15
|
var _index2 = require("../components/payment/index.js");
|
|
@@ -162,14 +163,16 @@ const PaymentGatewayScreen = props => {
|
|
|
162
163
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
163
164
|
style: styles.errorText,
|
|
164
165
|
children: t('payment.errors.invalidAmount')
|
|
165
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
166
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
167
|
+
variant: "primary",
|
|
168
|
+
onPress: handleClose,
|
|
169
|
+
size: "small",
|
|
170
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
171
|
+
name: "close",
|
|
172
|
+
size: 16
|
|
173
|
+
}),
|
|
174
|
+
iconPosition: "right",
|
|
175
|
+
children: t('payment.actions.close')
|
|
173
176
|
})]
|
|
174
177
|
});
|
|
175
178
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_index","_themeUtils","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_index","_themeUtils","_button","_vectorIcons","_useI18n","_reactNativeQrcodeSvg","_interopRequireDefault","_index2","_jsxRuntime","e","__esModule","default","getUniqueItemTypes","items","types","map","item","type","Array","from","Set","PaymentGatewayScreen","props","navigate","goBack","theme","onPaymentResult","amount","currency","onClose","paymentItems","description","process","env","NODE_ENV","length","uniqueTypes","Error","join","currentStep","setCurrentStep","useState","paymentMethod","setPaymentMethod","cardDetails","setCardDetails","number","expiry","cvv","isPaying","setIsPaying","fadeAnim","useRef","Animated","Value","current","slideAnim","scaleAnim","progressAnim","normalizedTheme","normalizeTheme","colors","useThemeColors","t","useI18n","styles","useMemo","createPaymentStyles","isRecurring","availablePaymentMethods","PAYMENT_METHODS","filter","m","key","animateTransition","useCallback","nextStep","timing","toValue","duration","useNativeDriver","Platform","OS","start","setValue","parallel","spring","tension","friction","prevStep","handlePay","setTimeout","handleDone","success","handleClose","error","Number","isNaN","jsxs","View","style","errorContainer","children","jsx","Text","errorText","Button","variant","onPress","size","icon","Ionicons","name","iconPosition","faircoinAddress","width","windowWidth","useWindowDimensions","isMobile","qrSize","Math","min","animations","renderCurrentStep","PaymentSummaryStep","onNext","PaymentMethodStep","selectedMethod","onSelectMethod","onBack","PaymentDetailsStep","onCardDetailsChange","QRCodeComponent","QRCode","PaymentReviewStep","onPay","PaymentSuccessStep","onDone","container","backgroundColor","background","ScrollView","content","showsVerticalScrollIndicator","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/screens/PaymentGatewayScreen.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,qBAAA,GAAAC,sBAAA,CAAAR,OAAA;AAEA,IAAAS,OAAA,GAAAT,OAAA;AAQ+B,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAQ,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAc/B,MAAMG,kBAAkB,GAAIC,KAAoB,IAAK;EACjD,MAAMC,KAAK,GAAGD,KAAK,CAACE,GAAG,CAACC,IAAI,IAAIA,IAAI,CAACC,IAAI,CAAC;EAC1C,OAAOC,KAAK,CAACC,IAAI,CAAC,IAAIC,GAAG,CAACN,KAAK,CAAC,CAAC;AACrC,CAAC;AAED,MAAMO,oBAAyD,GAAIC,KAAK,IAAK;EACzE,MAAM;IACFC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC,eAAe;IACfC,MAAM;IACNC,QAAQ,GAAG,MAAM;IACjBC,OAAO;IACPC,YAAY,GAAG,EAAE;IACjBC,WAAW,GAAG;EAClB,CAAC,GAAGT,KAAK;;EAET;E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,KAAK,EAAE7C;QAAU,CACpB,CAAC;MAEV,KAAK,CAAC;QACF,oBACI,IAAAlF,WAAA,CAAA+F,GAAA,EAAChG,OAAA,CAAAiI,kBAAkB;UACf3E,MAAM,EAAEA,MAAO;UACf6D,UAAU,EAAEA,UAAW;UACvBe,MAAM,EAAE7C;QAAW,CACtB,CAAC;MAEV;QACI,OAAO,IAAI;IACnB;EACJ,CAAC;EAED,oBACI,IAAApF,WAAA,CAAA+F,GAAA,EAACxG,YAAA,CAAAoG,IAAI;IAACC,KAAK,EAAE,CAACnC,MAAM,CAACyE,SAAS,EAAE;MAAEC,eAAe,EAAE9E,MAAM,CAAC+E;IAAW,CAAC,CAAE;IAAAtC,QAAA,eACpE,IAAA9F,WAAA,CAAA+F,GAAA,EAACxG,YAAA,CAAA8I,UAAU;MAACzC,KAAK,EAAEnC,MAAM,CAAC6E,OAAQ;MAACC,4BAA4B,EAAE,KAAM;MAAAzC,QAAA,EAClEqB,iBAAiB,CAAC;IAAC,CACZ;EAAC,CACX,CAAC;AAEf,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAAtI,OAAA,GAEaU,oBAAoB","ignoreList":[]}
|
|
@@ -8,12 +8,14 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _fonts = require("../styles/fonts.js");
|
|
10
10
|
var _sonner = require("../../lib/sonner");
|
|
11
|
-
var
|
|
11
|
+
var _prompt = _interopRequireWildcard(require("@oxyhq/bloom/prompt"));
|
|
12
|
+
var Prompt = _prompt;
|
|
12
13
|
var _vectorIcons = require("@expo/vector-icons");
|
|
13
14
|
var _useI18n = require("../hooks/useI18n.js");
|
|
14
15
|
var _theme = require("@oxyhq/bloom/theme");
|
|
15
16
|
var _OxyContext = require("../context/OxyContext.js");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
19
|
const PremiumSubscriptionScreen = ({
|
|
18
20
|
onClose,
|
|
19
21
|
theme,
|
|
@@ -34,11 +36,16 @@ const PremiumSubscriptionScreen = ({
|
|
|
34
36
|
const [billingInterval, setBillingInterval] = (0, _react.useState)('month');
|
|
35
37
|
const [activeTab, setActiveTab] = (0, _react.useState)('plans');
|
|
36
38
|
const [currentAppPackage, setCurrentAppPackage] = (0, _react.useState)('mention'); // Default to mention for demo
|
|
37
|
-
|
|
39
|
+
const [pendingUnsubscribeFeatureId, setPendingUnsubscribeFeatureId] = (0, _react.useState)(null);
|
|
38
40
|
const {
|
|
39
41
|
t
|
|
40
42
|
} = (0, _useI18n.useI18n)();
|
|
41
43
|
const bloomTheme = (0, _theme.useTheme)();
|
|
44
|
+
|
|
45
|
+
// Prompt controls
|
|
46
|
+
const cancelSubscriptionPrompt = (0, _prompt.usePromptControl)();
|
|
47
|
+
const unsubscribeFeaturePrompt = (0, _prompt.usePromptControl)();
|
|
48
|
+
|
|
42
49
|
// Extract commonly used colors for readability
|
|
43
50
|
const textColor = bloomTheme.colors.text;
|
|
44
51
|
const backgroundColor = bloomTheme.colors.background;
|
|
@@ -221,46 +228,14 @@ const PremiumSubscriptionScreen = ({
|
|
|
221
228
|
}
|
|
222
229
|
}, [currentAppPackage, user?.isPremium]);
|
|
223
230
|
const detectCurrentApp = () => {
|
|
224
|
-
|
|
225
|
-
// For now, we'll use a mock detection based on available methods
|
|
226
|
-
|
|
227
|
-
// Real app detection methods you could use:
|
|
228
|
-
// 1. Check bundle identifier in React Native:
|
|
229
|
-
// import DeviceInfo from 'react-native-device-info';
|
|
230
|
-
// const bundleId = DeviceInfo.getBundleId();
|
|
231
|
-
// Example: com.oxy.mention -> 'mention'
|
|
232
|
-
|
|
233
|
-
// 2. Environment variables or build configuration
|
|
234
|
-
// const appPackage = __DEV__ ? process.env.APP_PACKAGE : 'mention';
|
|
235
|
-
|
|
236
|
-
// 3. Check specific app capabilities or modules
|
|
237
|
-
// if (typeof MentionModule !== 'undefined') return 'mention';
|
|
238
|
-
// if (typeof OxyWorkspaceModule !== 'undefined') return 'oxy-workspace';
|
|
239
|
-
|
|
240
|
-
// 4. Use build-time configuration with Metro or similar
|
|
241
|
-
// const appPackage = require('../config/app.json').packageName;
|
|
242
|
-
|
|
243
|
-
// For demo purposes, we'll simulate different apps
|
|
244
|
-
// You would replace this with actual app detection logic
|
|
245
|
-
|
|
246
|
-
// IMPORTANT: This ensures subscription restrictions work properly:
|
|
247
|
-
// - Mention+ plan can only be subscribed to when app package == 'mention'
|
|
248
|
-
// - Other app-specific plans follow the same pattern
|
|
249
|
-
// - Ecosystem plans work across all apps
|
|
250
|
-
|
|
251
|
-
const detectedApp = 'mention'; // This would be dynamic in real implementation
|
|
252
|
-
|
|
231
|
+
const detectedApp = 'mention';
|
|
253
232
|
setCurrentAppPackage(detectedApp);
|
|
254
233
|
};
|
|
255
234
|
const loadSubscriptionData = async () => {
|
|
256
235
|
try {
|
|
257
236
|
setLoading(true);
|
|
258
|
-
|
|
259
|
-
// Filter plans available for current app
|
|
260
237
|
const availablePlans = mockPlans.filter(plan => plan.applicableApps.includes(currentAppPackage));
|
|
261
238
|
setPlans(availablePlans);
|
|
262
|
-
|
|
263
|
-
// Mock current subscription
|
|
264
239
|
let currentSubscription = null;
|
|
265
240
|
if (user?.isPremium) {
|
|
266
241
|
currentSubscription = {
|
|
@@ -273,15 +248,13 @@ const PremiumSubscriptionScreen = ({
|
|
|
273
248
|
};
|
|
274
249
|
setSubscription(currentSubscription);
|
|
275
250
|
}
|
|
276
|
-
|
|
277
|
-
// Filter features available for current app and update based on current subscription
|
|
278
251
|
const availableFeatures = mockIndividualFeatures.filter(feature => feature.applicableApps.includes(currentAppPackage));
|
|
279
252
|
const updatedFeatures = availableFeatures.map(feature => {
|
|
280
253
|
const isIncludedInCurrentPlan = !!(currentSubscription && feature.includedInPlans.includes(currentSubscription.planId));
|
|
281
254
|
return {
|
|
282
255
|
...feature,
|
|
283
256
|
isIncludedInCurrentPlan,
|
|
284
|
-
isSubscribed: !!isIncludedInCurrentPlan
|
|
257
|
+
isSubscribed: !!isIncludedInCurrentPlan
|
|
285
258
|
};
|
|
286
259
|
});
|
|
287
260
|
setIndividualFeatures(updatedFeatures);
|
|
@@ -299,7 +272,6 @@ const PremiumSubscriptionScreen = ({
|
|
|
299
272
|
};
|
|
300
273
|
const handleSubscribe = async planId => {
|
|
301
274
|
try {
|
|
302
|
-
// Check if plan is available for current app
|
|
303
275
|
const selectedPlan = mockPlans.find(plan => plan.id === planId);
|
|
304
276
|
if (!selectedPlan?.applicableApps.includes(currentAppPackage)) {
|
|
305
277
|
_sonner.toast.error(t('premium.toasts.planUnavailable', {
|
|
@@ -307,19 +279,13 @@ const PremiumSubscriptionScreen = ({
|
|
|
307
279
|
}) || `This plan is not available for the current app (${currentAppPackage})`);
|
|
308
280
|
return;
|
|
309
281
|
}
|
|
310
|
-
|
|
311
|
-
// Special restriction for Mention+ plan - only available in mention app
|
|
312
282
|
if (planId === 'mention-plus' && currentAppPackage !== 'mention') {
|
|
313
283
|
_sonner.toast.error(t('premium.toasts.mentionOnly') || 'Mention+ is only available in the Mention app');
|
|
314
284
|
return;
|
|
315
285
|
}
|
|
316
286
|
setProcessingPayment(true);
|
|
317
|
-
|
|
318
|
-
// Mock payment processing
|
|
319
287
|
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
320
288
|
_sonner.toast.success(t('premium.toasts.activated') || 'Subscription activated successfully!');
|
|
321
|
-
|
|
322
|
-
// Mock subscription update
|
|
323
289
|
setSubscription({
|
|
324
290
|
id: `sub_${Date.now()}`,
|
|
325
291
|
planId,
|
|
@@ -328,8 +294,6 @@ const PremiumSubscriptionScreen = ({
|
|
|
328
294
|
currentPeriodEnd: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
|
|
329
295
|
cancelAtPeriodEnd: false
|
|
330
296
|
});
|
|
331
|
-
|
|
332
|
-
// Reload data to update feature states
|
|
333
297
|
loadSubscriptionData();
|
|
334
298
|
} catch (error) {
|
|
335
299
|
if (__DEV__) {
|
|
@@ -340,20 +304,20 @@ const PremiumSubscriptionScreen = ({
|
|
|
340
304
|
setProcessingPayment(false);
|
|
341
305
|
}
|
|
342
306
|
};
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
};
|
|
307
|
+
const confirmCancelSubscription = (0, _react.useCallback)(() => {
|
|
308
|
+
cancelSubscriptionPrompt.open();
|
|
309
|
+
}, [cancelSubscriptionPrompt]);
|
|
310
|
+
const handleCancelSubscription = (0, _react.useCallback)(async () => {
|
|
311
|
+
try {
|
|
312
|
+
setSubscription(prev => prev ? {
|
|
313
|
+
...prev,
|
|
314
|
+
cancelAtPeriodEnd: true
|
|
315
|
+
} : null);
|
|
316
|
+
_sonner.toast.success(t('premium.toasts.willCancel') || 'Subscription will be canceled at the end of the billing period');
|
|
317
|
+
} catch (error) {
|
|
318
|
+
_sonner.toast.error(t('premium.toasts.cancelFailed') || 'Failed to cancel subscription');
|
|
319
|
+
}
|
|
320
|
+
}, [t]);
|
|
357
321
|
const handleReactivateSubscription = async () => {
|
|
358
322
|
try {
|
|
359
323
|
setSubscription(prev => prev ? {
|
|
@@ -366,7 +330,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
366
330
|
}
|
|
367
331
|
};
|
|
368
332
|
const formatPrice = (price, currency, interval) => {
|
|
369
|
-
const yearlyPrice = interval === 'year' ? price : price * 12 * 0.8;
|
|
333
|
+
const yearlyPrice = interval === 'year' ? price : price * 12 * 0.8;
|
|
370
334
|
const displayPrice = billingInterval === 'year' ? yearlyPrice : price;
|
|
371
335
|
return {
|
|
372
336
|
price: displayPrice,
|
|
@@ -380,16 +344,12 @@ const PremiumSubscriptionScreen = ({
|
|
|
380
344
|
};
|
|
381
345
|
const handleFeatureSubscribe = async featureId => {
|
|
382
346
|
try {
|
|
383
|
-
// Check if feature is available for current app
|
|
384
347
|
const selectedFeature = mockIndividualFeatures.find(feature => feature.id === featureId);
|
|
385
348
|
if (!selectedFeature?.applicableApps.includes(currentAppPackage)) {
|
|
386
349
|
_sonner.toast.error(`This feature is not available for the current app (${currentAppPackage})`);
|
|
387
350
|
return;
|
|
388
351
|
}
|
|
389
|
-
|
|
390
|
-
// Special restrictions for app-specific features
|
|
391
352
|
if (selectedFeature.appScope === 'specific') {
|
|
392
|
-
// For features that are only available in specific apps, enforce strict matching
|
|
393
353
|
const hasExactMatch = selectedFeature.applicableApps.length === 1 && selectedFeature.applicableApps[0] === currentAppPackage;
|
|
394
354
|
if (!hasExactMatch && selectedFeature.applicableApps.length === 1) {
|
|
395
355
|
const requiredApp = selectedFeature.applicableApps[0];
|
|
@@ -398,8 +358,6 @@ const PremiumSubscriptionScreen = ({
|
|
|
398
358
|
}
|
|
399
359
|
}
|
|
400
360
|
setProcessingPayment(true);
|
|
401
|
-
|
|
402
|
-
// Mock feature subscription
|
|
403
361
|
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
404
362
|
setIndividualFeatures(prev => prev.map(feature => feature.id === featureId ? {
|
|
405
363
|
...feature,
|
|
@@ -418,24 +376,28 @@ const PremiumSubscriptionScreen = ({
|
|
|
418
376
|
setProcessingPayment(false);
|
|
419
377
|
}
|
|
420
378
|
};
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
(
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
379
|
+
const confirmFeatureUnsubscribe = (0, _react.useCallback)(featureId => {
|
|
380
|
+
setPendingUnsubscribeFeatureId(featureId);
|
|
381
|
+
unsubscribeFeaturePrompt.open();
|
|
382
|
+
}, [unsubscribeFeaturePrompt]);
|
|
383
|
+
const handleFeatureUnsubscribe = (0, _react.useCallback)(async () => {
|
|
384
|
+
if (!pendingUnsubscribeFeatureId) return;
|
|
385
|
+
const feature = individualFeatures.find(f => f.id === pendingUnsubscribeFeatureId);
|
|
386
|
+
try {
|
|
387
|
+
setIndividualFeatures(prev => prev.map(f => f.id === pendingUnsubscribeFeatureId ? {
|
|
388
|
+
...f,
|
|
389
|
+
isSubscribed: false
|
|
390
|
+
} : f));
|
|
391
|
+
_sonner.toast.success(t('premium.toasts.featureUnsubscribed', {
|
|
392
|
+
name: feature?.name ?? ''
|
|
393
|
+
}) ?? `Unsubscribed from ${feature?.name}`);
|
|
394
|
+
} catch (error) {
|
|
395
|
+
_sonner.toast.error(t('premium.toasts.featureUnsubscribeFailed') || 'Failed to unsubscribe from feature');
|
|
396
|
+
} finally {
|
|
397
|
+
setPendingUnsubscribeFeatureId(null);
|
|
398
|
+
}
|
|
399
|
+
}, [pendingUnsubscribeFeatureId, individualFeatures, t]);
|
|
400
|
+
const pendingUnsubscribeFeature = (0, _react.useMemo)(() => individualFeatures.find(f => f.id === pendingUnsubscribeFeatureId), [individualFeatures, pendingUnsubscribeFeatureId]);
|
|
439
401
|
const renderHeader = () => {
|
|
440
402
|
const getAppDisplayName = packageName => {
|
|
441
403
|
const appNames = {
|
|
@@ -562,7 +524,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
562
524
|
style: [styles.actionButton, {
|
|
563
525
|
backgroundColor: dangerColor
|
|
564
526
|
}],
|
|
565
|
-
onPress:
|
|
527
|
+
onPress: confirmCancelSubscription,
|
|
566
528
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
567
529
|
style: styles.actionButtonText,
|
|
568
530
|
children: t('premium.actions.cancelSubBtn') || 'Cancel Subscription'
|
|
@@ -942,7 +904,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
942
904
|
style: [styles.unsubscribeButton, {
|
|
943
905
|
borderColor: dangerColor
|
|
944
906
|
}],
|
|
945
|
-
onPress: () =>
|
|
907
|
+
onPress: () => confirmFeatureUnsubscribe(feature.id),
|
|
946
908
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
947
909
|
style: [styles.unsubscribeText, {
|
|
948
910
|
color: dangerColor
|
|
@@ -1168,6 +1130,22 @@ const PremiumSubscriptionScreen = ({
|
|
|
1168
1130
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
1169
1131
|
style: styles.bottomSpacing
|
|
1170
1132
|
})]
|
|
1133
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
|
|
1134
|
+
control: cancelSubscriptionPrompt,
|
|
1135
|
+
title: t('premium.confirms.cancelSubTitle') || 'Cancel Subscription',
|
|
1136
|
+
description: t('premium.confirms.cancelSub') || 'Are you sure you want to cancel your subscription? You will lose access to premium features at the end of your current billing period.',
|
|
1137
|
+
onConfirm: handleCancelSubscription,
|
|
1138
|
+
confirmButtonCta: t('premium.actions.cancelSubBtn') || 'Cancel Subscription',
|
|
1139
|
+
confirmButtonColor: "negative"
|
|
1140
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
|
|
1141
|
+
control: unsubscribeFeaturePrompt,
|
|
1142
|
+
title: t('premium.confirms.unsubscribeFeatureTitle') || 'Unsubscribe from Feature',
|
|
1143
|
+
description: pendingUnsubscribeFeature ? t('premium.confirms.unsubscribeFeature', {
|
|
1144
|
+
name: pendingUnsubscribeFeature.name
|
|
1145
|
+
}) ?? `Are you sure you want to unsubscribe from ${pendingUnsubscribeFeature.name}?` : '',
|
|
1146
|
+
onConfirm: handleFeatureUnsubscribe,
|
|
1147
|
+
confirmButtonCta: t('premium.actions.unsubscribe') || 'Unsubscribe',
|
|
1148
|
+
confirmButtonColor: "negative"
|
|
1171
1149
|
})]
|
|
1172
1150
|
});
|
|
1173
1151
|
};
|
|
@@ -1419,7 +1397,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1419
1397
|
bottomSpacing: {
|
|
1420
1398
|
height: 40
|
|
1421
1399
|
},
|
|
1422
|
-
// Tab Navigation Styles
|
|
1423
1400
|
tabContainer: {
|
|
1424
1401
|
flexDirection: 'row',
|
|
1425
1402
|
borderBottomWidth: 1,
|
|
@@ -1435,7 +1412,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1435
1412
|
fontSize: 16,
|
|
1436
1413
|
fontWeight: '600'
|
|
1437
1414
|
},
|
|
1438
|
-
// Individual Feature Styles
|
|
1439
1415
|
featureCard: {
|
|
1440
1416
|
borderRadius: 12,
|
|
1441
1417
|
borderWidth: 1,
|
|
@@ -1529,7 +1505,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1529
1505
|
fontWeight: '600',
|
|
1530
1506
|
marginBottom: 12
|
|
1531
1507
|
},
|
|
1532
|
-
// New styles for enhanced feature cards
|
|
1533
1508
|
featureNameRow: {
|
|
1534
1509
|
flexDirection: 'row',
|
|
1535
1510
|
alignItems: 'center',
|
|
@@ -1577,7 +1552,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1577
1552
|
fontWeight: '500',
|
|
1578
1553
|
textAlign: 'center'
|
|
1579
1554
|
},
|
|
1580
|
-
// App-specific plan styles
|
|
1581
1555
|
appSpecificBadge: {
|
|
1582
1556
|
position: 'absolute',
|
|
1583
1557
|
top: 16,
|
|
@@ -1607,7 +1581,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1607
1581
|
fontSize: 16,
|
|
1608
1582
|
fontWeight: '600'
|
|
1609
1583
|
},
|
|
1610
|
-
// App switcher styles (for development/testing)
|
|
1611
1584
|
appSwitcher: {
|
|
1612
1585
|
padding: 16,
|
|
1613
1586
|
borderBottomWidth: 1,
|