@oxyhq/services 6.10.7 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +211 -49
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +25 -4
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/AccountMenu.js +485 -0
- package/lib/commonjs/ui/components/AccountMenu.js.map +1 -0
- package/lib/commonjs/ui/components/AccountMenuButton.js +120 -0
- package/lib/commonjs/ui/components/AccountMenuButton.js.map +1 -0
- package/lib/commonjs/ui/components/ActingAsBanner.js +2 -2
- package/lib/commonjs/ui/components/ActingAsBanner.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +2 -2
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +2 -2
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/accountMenuRows.js +45 -0
- package/lib/commonjs/ui/components/accountMenuRows.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +5 -5
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +3 -2
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/theming.js +2 -2
- package/lib/commonjs/ui/components/theming.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +211 -21
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +36 -2
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +6 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +138 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +67 -2
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +27 -2
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +13 -2
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +30 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/index.js +132 -85
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +6 -7
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -2
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +202 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +3 -2
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +3 -2
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +7 -4
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +21 -16
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +3 -2
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +7 -4
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +3 -2
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +6 -4
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +780 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/NotificationsScreen.js +175 -0
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +18 -12
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +220 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +14 -10
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +3 -3
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +8 -5
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +6 -4
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -2
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +2 -2
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +3 -2
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +3 -2
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +2 -2
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +4 -3
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +3 -2
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/activeAuthuser.js +85 -0
- package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -0
- package/lib/module/index.js +58 -16
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +5 -3
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/AccountMenu.js +480 -0
- package/lib/module/ui/components/AccountMenu.js.map +1 -0
- package/lib/module/ui/components/AccountMenuButton.js +115 -0
- package/lib/module/ui/components/AccountMenuButton.js.map +1 -0
- package/lib/module/ui/components/ActingAsBanner.js +2 -2
- package/lib/module/ui/components/ActingAsBanner.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +1 -1
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +1 -1
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/accountMenuRows.js +41 -0
- package/lib/module/ui/components/accountMenuRows.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/theming.js +1 -1
- package/lib/module/ui/components/theming.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +211 -21
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +36 -2
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationKeys.js +6 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +135 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +60 -1
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +24 -0
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +13 -2
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +30 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/index.js +34 -78
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +6 -7
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +198 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -0
- package/lib/module/ui/screens/CreateManagedAccountScreen.js +1 -1
- package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +3 -1
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +6 -2
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +3 -1
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +2 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +775 -0
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/NotificationsScreen.js +169 -0
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js +9 -3
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +214 -0
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js +4 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +2 -2
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +3 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +2 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/utils/activeAuthuser.js +79 -0
- package/lib/module/ui/utils/activeAuthuser.js.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +23 -6
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +7 -2
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts +19 -0
- package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/accountMenuRows.d.ts +27 -0
- package/lib/typescript/commonjs/ui/components/accountMenuRows.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +5 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +26 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +32 -3
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +10 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +8 -2
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +32 -18
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/{module/ui/screens/AccountOverviewScreen.d.ts → commonjs/ui/screens/ConnectedAppsScreen.d.ts} +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/{AccountOverviewScreen.d.ts → NotificationsScreen.d.ts} +1 -1
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/{AccountSettingsScreen.d.ts → PreferencesScreen.d.ts} +2 -5
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts +42 -0
- package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +23 -6
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +7 -2
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AccountMenu.d.ts +23 -0
- package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/AccountMenuButton.d.ts +19 -0
- package/lib/typescript/module/ui/components/AccountMenuButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/accountMenuRows.d.ts +27 -0
- package/lib/typescript/module/ui/components/accountMenuRows.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +5 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +26 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +32 -3
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +10 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +8 -2
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +32 -18
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/{AccountSettingsScreen.d.ts → ConnectedAppsScreen.d.ts} +2 -5
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/activeAuthuser.d.ts +42 -0
- package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -0
- package/package.json +20 -9
- package/src/index.ts +141 -47
- package/src/ui/client.ts +7 -2
- package/src/ui/components/AccountMenu.tsx +534 -0
- package/src/ui/components/AccountMenuButton.tsx +113 -0
- package/src/ui/components/ActingAsBanner.tsx +2 -2
- package/src/ui/components/ProfileCard.tsx +1 -1
- package/src/ui/components/StepBasedScreen.tsx +1 -1
- package/src/ui/components/accountMenuRows.ts +60 -0
- package/src/ui/components/payment/PaymentDetailsStep.tsx +1 -1
- package/src/ui/components/payment/PaymentMethodStep.tsx +1 -1
- package/src/ui/components/theming.tsx +1 -1
- package/src/ui/context/OxyContext.tsx +204 -18
- package/src/ui/context/hooks/useAuthOperations.ts +36 -2
- package/src/ui/hooks/mutations/mutationKeys.ts +11 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +154 -2
- package/src/ui/hooks/queries/queryKeys.ts +54 -4
- package/src/ui/hooks/queries/useAccountQueries.ts +25 -1
- package/src/ui/hooks/useAuth.ts +23 -4
- package/src/ui/hooks/useSessionManagement.ts +29 -0
- package/src/ui/index.ts +37 -98
- package/src/ui/navigation/routes.ts +9 -11
- package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
- package/src/ui/screens/ConnectedAppsScreen.tsx +225 -0
- package/src/ui/screens/CreateManagedAccountScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FAQScreen.tsx +3 -1
- package/src/ui/screens/FeedbackScreen.tsx +6 -10
- package/src/ui/screens/HelpSupportScreen.tsx +1 -1
- package/src/ui/screens/HistoryViewScreen.tsx +3 -1
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
- package/src/ui/screens/LegalDocumentsScreen.tsx +2 -1
- package/src/ui/screens/ManageAccountScreen.tsx +1102 -0
- package/src/ui/screens/NotificationsScreen.tsx +189 -0
- package/src/ui/screens/PaymentGatewayScreen.tsx +10 -12
- package/src/ui/screens/PreferencesScreen.tsx +263 -0
- package/src/ui/screens/PrivacySettingsScreen.tsx +4 -1
- package/src/ui/screens/ProfileScreen.tsx +2 -2
- package/src/ui/screens/SavesCollectionsScreen.tsx +3 -1
- package/src/ui/screens/SearchSettingsScreen.tsx +2 -1
- package/src/ui/screens/UserLinksScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +1 -1
- package/src/ui/utils/activeAuthuser.ts +78 -0
- package/lib/commonjs/ui/components/feedback/index.js +0 -54
- package/lib/commonjs/ui/components/feedback/index.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +0 -21
- package/lib/commonjs/ui/components/icon/index.js.map +0 -1
- package/lib/commonjs/ui/components/index.js +0 -104
- package/lib/commonjs/ui/components/index.js.map +0 -1
- package/lib/commonjs/ui/components/modals/index.js +0 -14
- package/lib/commonjs/ui/components/modals/index.js.map +0 -1
- package/lib/commonjs/ui/components/payment/index.js +0 -80
- package/lib/commonjs/ui/components/payment/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/index.js +0 -92
- package/lib/commonjs/ui/hooks/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/mutations/index.js +0 -68
- package/lib/commonjs/ui/hooks/mutations/index.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/index.js +0 -155
- package/lib/commonjs/ui/hooks/queries/index.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -344
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -724
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -643
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -1029
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -512
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/styles/index.js +0 -39
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/module/ui/components/feedback/index.js +0 -8
- package/lib/module/ui/components/feedback/index.js.map +0 -1
- package/lib/module/ui/components/icon/index.js +0 -5
- package/lib/module/ui/components/icon/index.js.map +0 -1
- package/lib/module/ui/components/index.js +0 -18
- package/lib/module/ui/components/index.js.map +0 -1
- package/lib/module/ui/components/modals/index.js +0 -4
- package/lib/module/ui/components/modals/index.js.map +0 -1
- package/lib/module/ui/components/payment/index.js +0 -10
- package/lib/module/ui/components/payment/index.js.map +0 -1
- package/lib/module/ui/hooks/index.js +0 -11
- package/lib/module/ui/hooks/index.js.map +0 -1
- package/lib/module/ui/hooks/mutations/index.js +0 -15
- package/lib/module/ui/hooks/mutations/index.js.map +0 -1
- package/lib/module/ui/hooks/queries/index.js +0 -26
- package/lib/module/ui/hooks/queries/index.js.map +0 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +0 -339
- package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +0 -719
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -638
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -1024
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +0 -508
- package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/module/ui/styles/index.js +0 -6
- package/lib/module/ui/styles/index.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/index.d.ts +0 -7
- package/lib/typescript/commonjs/ui/components/feedback/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/icon/index.d.ts +0 -4
- package/lib/typescript/commonjs/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/index.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/modals/index.d.ts +0 -2
- package/lib/typescript/commonjs/ui/components/modals/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/payment/index.d.ts +0 -9
- package/lib/typescript/commonjs/ui/components/payment/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/index.d.ts +0 -9
- package/lib/typescript/commonjs/ui/hooks/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/index.d.ts +0 -9
- package/lib/typescript/commonjs/ui/hooks/mutations/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/queries/index.d.ts +0 -13
- package/lib/typescript/commonjs/ui/hooks/queries/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/index.d.ts +0 -4
- package/lib/typescript/commonjs/ui/styles/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/index.d.ts +0 -7
- package/lib/typescript/module/ui/components/feedback/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/icon/index.d.ts +0 -4
- package/lib/typescript/module/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/index.d.ts +0 -13
- package/lib/typescript/module/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/modals/index.d.ts +0 -2
- package/lib/typescript/module/ui/components/modals/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/payment/index.d.ts +0 -9
- package/lib/typescript/module/ui/components/payment/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/index.d.ts +0 -9
- package/lib/typescript/module/ui/hooks/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/mutations/index.d.ts +0 -9
- package/lib/typescript/module/ui/hooks/mutations/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/queries/index.d.ts +0 -13
- package/lib/typescript/module/ui/hooks/queries/index.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/index.d.ts +0 -4
- package/lib/typescript/module/ui/styles/index.d.ts.map +0 -1
- package/src/ui/components/feedback/index.ts +0 -6
- package/src/ui/components/icon/index.ts +0 -3
- package/src/ui/components/index.ts +0 -15
- package/src/ui/components/modals/index.ts +0 -1
- package/src/ui/components/payment/index.ts +0 -9
- package/src/ui/hooks/index.ts +0 -13
- package/src/ui/hooks/mutations/index.ts +0 -25
- package/src/ui/hooks/queries/index.ts +0 -61
- package/src/ui/screens/AccountCenterScreen.tsx +0 -182
- package/src/ui/screens/AccountOverviewScreen.tsx +0 -696
- package/src/ui/screens/AccountSettingsScreen.tsx +0 -620
- package/src/ui/screens/AccountSwitcherScreen.tsx +0 -1003
- package/src/ui/screens/SessionManagementScreen.tsx +0 -477
- package/src/ui/styles/index.ts +0 -3
package/lib/commonjs/ui/index.js
CHANGED
|
@@ -3,7 +3,78 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
6
|
+
Object.defineProperty(exports, "AccountMenu", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AccountMenu.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AccountMenuButton", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _AccountMenuButton.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "Avatar", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Avatar.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "FollowButton", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _FollowButton.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "FontLoader", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _FontLoader.FontLoader;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "ManageAccountScreen", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _ManageAccountScreen.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "OxyIcon", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _OxyIcon.default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "OxyLogo", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _OxyLogo.default;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "OxyPayButton", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _OxyPayButton.default;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "OxyProvider", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _OxyProvider.default;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "OxySignInButton", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _OxySignInButton.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "ProfileScreen", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _ProfileScreen.default;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
7
78
|
Object.defineProperty(exports, "extractErrorMessage", {
|
|
8
79
|
enumerable: true,
|
|
9
80
|
get: function () {
|
|
@@ -28,90 +99,66 @@ Object.defineProperty(exports, "isTimeoutOrNetworkError", {
|
|
|
28
99
|
return _errorHandlers.isTimeoutOrNetworkError;
|
|
29
100
|
}
|
|
30
101
|
});
|
|
31
|
-
|
|
32
|
-
|
|
102
|
+
Object.defineProperty(exports, "setupFonts", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _FontLoader.setupFonts;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "useAccountStore", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _accountStore.useAccountStore;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "useAuth", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _useAuth.useAuth;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "useAuthStore", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _authStore.useAuthStore;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "useFollow", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _useFollow.useFollow;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "useOxy", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _OxyContext.useOxy;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "useStorage", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _useStorage.useStorage;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
var _OxyProvider = _interopRequireDefault(require("./components/OxyProvider.js"));
|
|
145
|
+
var _OxySignInButton = _interopRequireDefault(require("./components/OxySignInButton.js"));
|
|
146
|
+
var _OxyLogo = _interopRequireDefault(require("./components/OxyLogo.js"));
|
|
147
|
+
var _Avatar = _interopRequireDefault(require("./components/Avatar.js"));
|
|
148
|
+
var _FollowButton = _interopRequireDefault(require("./components/FollowButton.js"));
|
|
149
|
+
var _OxyPayButton = _interopRequireDefault(require("./components/OxyPayButton.js"));
|
|
150
|
+
var _FontLoader = require("./components/FontLoader.js");
|
|
151
|
+
var _OxyIcon = _interopRequireDefault(require("./components/icon/OxyIcon.js"));
|
|
152
|
+
var _AccountMenu = _interopRequireDefault(require("./components/AccountMenu.js"));
|
|
153
|
+
var _AccountMenuButton = _interopRequireDefault(require("./components/AccountMenuButton.js"));
|
|
154
|
+
var _OxyContext = require("./context/OxyContext.js");
|
|
155
|
+
var _useAuth = require("./hooks/useAuth.js");
|
|
156
|
+
var _useFollow = require("./hooks/useFollow.js");
|
|
157
|
+
var _useStorage = require("./hooks/useStorage.js");
|
|
158
|
+
var _ProfileScreen = _interopRequireDefault(require("./screens/ProfileScreen.js"));
|
|
159
|
+
var _ManageAccountScreen = _interopRequireDefault(require("./screens/ManageAccountScreen.js"));
|
|
160
|
+
var _authStore = require("./stores/authStore.js");
|
|
161
|
+
var _accountStore = require("./stores/accountStore.js");
|
|
33
162
|
var _errorHandlers = require("./utils/errorHandlers.js");
|
|
34
163
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
35
|
-
/**
|
|
36
|
-
* UI Component exports - Frontend Only (with backend-safe fallbacks)
|
|
37
|
-
*
|
|
38
|
-
* This module exports all React/React Native UI components and hooks.
|
|
39
|
-
* In backend, all exports are no-ops or empty objects.
|
|
40
|
-
*
|
|
41
|
-
* NOTE: This entry point uses runtime detection which prevents tree-shaking.
|
|
42
|
-
* For better bundle optimization, use:
|
|
43
|
-
* - '@oxyhq/services/ui/client' for client bundles (tree-shakeable)
|
|
44
|
-
* - '@oxyhq/services/ui/server' for SSR environments (all noops)
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* // Client bundle (tree-shakeable)
|
|
48
|
-
* import { OxyProvider, useOxy } from '@oxyhq/services/ui/client';
|
|
49
|
-
*
|
|
50
|
-
* // SSR (noops)
|
|
51
|
-
* import { OxyProvider, useOxy } from '@oxyhq/services/ui/server';
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
// UI exports
|
|
55
|
-
let OxyProvider = exports.OxyProvider = void 0;
|
|
56
|
-
let OxySignInButton = exports.OxySignInButton = void 0;
|
|
57
|
-
let OxyLogo = exports.OxyLogo = void 0;
|
|
58
|
-
let Avatar = exports.Avatar = void 0;
|
|
59
|
-
let FollowButton = exports.FollowButton = void 0;
|
|
60
|
-
let OxyPayButton = exports.OxyPayButton = void 0;
|
|
61
|
-
let FontLoader = exports.FontLoader = void 0;
|
|
62
|
-
let setupFonts = exports.setupFonts = void 0;
|
|
63
|
-
let OxyIcon = exports.OxyIcon = void 0;
|
|
64
|
-
let useOxy = exports.useOxy = void 0;
|
|
65
|
-
let useAuth = exports.useAuth = void 0;
|
|
66
|
-
let useFollow = exports.useFollow = void 0;
|
|
67
|
-
let ProfileScreen = exports.ProfileScreen = void 0;
|
|
68
|
-
let useAuthStore = exports.useAuthStore = void 0;
|
|
69
|
-
let useAccountStore = exports.useAccountStore = void 0;
|
|
70
|
-
let useStorage = exports.useStorage = void 0;
|
|
71
|
-
if (_isFrontend.default) {
|
|
72
|
-
exports.OxyProvider = OxyProvider = require('./components/OxyProvider').default;
|
|
73
|
-
exports.OxySignInButton = OxySignInButton = require('./components/OxySignInButton').default;
|
|
74
|
-
exports.OxyLogo = OxyLogo = require('./components/OxyLogo').default;
|
|
75
|
-
exports.Avatar = Avatar = require('./components/Avatar').default;
|
|
76
|
-
exports.FollowButton = FollowButton = require('./components/FollowButton').default;
|
|
77
|
-
exports.OxyPayButton = OxyPayButton = require('./components/OxyPayButton').default;
|
|
78
|
-
exports.FontLoader = FontLoader = require('./components/FontLoader').FontLoader;
|
|
79
|
-
exports.setupFonts = setupFonts = require('./components/FontLoader').setupFonts;
|
|
80
|
-
exports.OxyIcon = OxyIcon = require('./components/icon').OxyIcon;
|
|
81
|
-
exports.useOxy = useOxy = require('./context/OxyContext').useOxy;
|
|
82
|
-
exports.useAuth = useAuth = require('./hooks/useAuth').useAuth;
|
|
83
|
-
exports.useFollow = useFollow = require('./hooks').useFollow;
|
|
84
|
-
exports.ProfileScreen = ProfileScreen = require('./screens/ProfileScreen').default;
|
|
85
|
-
exports.useAuthStore = useAuthStore = require('./stores/authStore').useAuthStore;
|
|
86
|
-
exports.useAccountStore = useAccountStore = require('./stores/accountStore').useAccountStore;
|
|
87
|
-
exports.useStorage = useStorage = require('./hooks/useStorage').useStorage;
|
|
88
|
-
} else {
|
|
89
|
-
// Backend: no-op fallbacks
|
|
90
|
-
const noopComponent = () => null;
|
|
91
|
-
const noopHook = () => ({});
|
|
92
|
-
const noopStorageResult = {
|
|
93
|
-
storage: null,
|
|
94
|
-
isReady: false
|
|
95
|
-
};
|
|
96
|
-
exports.OxyProvider = OxyProvider = noopComponent;
|
|
97
|
-
exports.OxySignInButton = OxySignInButton = noopComponent;
|
|
98
|
-
exports.OxyLogo = OxyLogo = noopComponent;
|
|
99
|
-
exports.Avatar = Avatar = noopComponent;
|
|
100
|
-
exports.FollowButton = FollowButton = noopComponent;
|
|
101
|
-
exports.OxyPayButton = OxyPayButton = noopComponent;
|
|
102
|
-
exports.FontLoader = FontLoader = noopComponent;
|
|
103
|
-
exports.setupFonts = setupFonts = () => {};
|
|
104
|
-
exports.OxyIcon = OxyIcon = noopComponent;
|
|
105
|
-
exports.useOxy = useOxy = noopHook;
|
|
106
|
-
exports.useAuth = useAuth = noopHook;
|
|
107
|
-
exports.useFollow = useFollow = noopHook;
|
|
108
|
-
exports.ProfileScreen = ProfileScreen = noopComponent;
|
|
109
|
-
exports.useAuthStore = useAuthStore = noopHook;
|
|
110
|
-
exports.useAccountStore = useAccountStore = noopHook;
|
|
111
|
-
exports.useStorage = useStorage = () => noopStorageResult;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Export error handler utilities (pure functions, no conditional needed)
|
|
115
|
-
|
|
116
|
-
// Export useStorage hook and types (kept for external consumers)
|
|
117
164
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_OxyProvider","_interopRequireDefault","require","_OxySignInButton","_OxyLogo","_Avatar","_FollowButton","_OxyPayButton","_FontLoader","_OxyIcon","_AccountMenu","_AccountMenuButton","_OxyContext","_useAuth","_useFollow","_useStorage","_ProfileScreen","_ManageAccountScreen","_authStore","_accountStore","_errorHandlers","e","__esModule","default"],"sourceRoot":"../../../src","sources":["ui/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,YAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,kBAAA,GAAAV,sBAAA,CAAAC,OAAA;AAGA,IAAAU,WAAA,GAAAV,OAAA;AACA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AAIA,IAAAc,cAAA,GAAAf,sBAAA,CAAAC,OAAA;AACA,IAAAe,oBAAA,GAAAhB,sBAAA,CAAAC,OAAA;AAGA,IAAAgB,UAAA,GAAAhB,OAAA;AACA,IAAAiB,aAAA,GAAAjB,OAAA;AAGA,IAAAkB,cAAA,GAAAlB,OAAA;AAK+B,SAAAD,uBAAAoB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -10,18 +10,14 @@ exports.isValidRoute = exports.getSheetConfig = exports.getScreenComponent = voi
|
|
|
10
10
|
|
|
11
11
|
// Define all available route names
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// General user preferences (theme, reduce-motion, etc.)
|
|
14
14
|
|
|
15
15
|
// Lazy screen loaders - functions that return screen components on-demand
|
|
16
16
|
// This breaks the require cycle by deferring imports until screens are actually needed
|
|
17
17
|
const screenLoaders = {
|
|
18
18
|
OxyAuth: () => require('../screens/OxyAuthScreen').default,
|
|
19
|
-
|
|
20
|
-
AccountSettings: () => require('../screens/AccountSettingsScreen').default,
|
|
21
|
-
AccountCenter: () => require('../screens/AccountCenterScreen').default,
|
|
22
|
-
AccountSwitcher: () => require('../screens/AccountSwitcherScreen').default,
|
|
19
|
+
ManageAccount: () => require('../screens/ManageAccountScreen').default,
|
|
23
20
|
AccountVerification: () => require('../screens/AccountVerificationScreen').default,
|
|
24
|
-
SessionManagement: () => require('../screens/SessionManagementScreen').default,
|
|
25
21
|
PaymentGateway: () => require('../screens/PaymentGatewayScreen').default,
|
|
26
22
|
Profile: () => require('../screens/ProfileScreen').default,
|
|
27
23
|
LanguageSelector: () => require('../screens/LanguageSelectorScreen').default,
|
|
@@ -52,7 +48,10 @@ const screenLoaders = {
|
|
|
52
48
|
FollowersList: () => require('../screens/FollowersListScreen').default,
|
|
53
49
|
FollowingList: () => require('../screens/FollowingListScreen').default,
|
|
54
50
|
CreateManagedAccount: () => require('../screens/CreateManagedAccountScreen').default,
|
|
55
|
-
AvatarCrop: () => require('../screens/AvatarCropScreen').default
|
|
51
|
+
AvatarCrop: () => require('../screens/AvatarCropScreen').default,
|
|
52
|
+
Notifications: () => require('../screens/NotificationsScreen').default,
|
|
53
|
+
ConnectedApps: () => require('../screens/ConnectedAppsScreen').default,
|
|
54
|
+
Preferences: () => require('../screens/PreferencesScreen').default
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
// Cache loaded components to avoid re-requiring
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["screenLoaders","OxyAuth","require","default","
|
|
1
|
+
{"version":3,"names":["screenLoaders","OxyAuth","require","default","ManageAccount","AccountVerification","PaymentGateway","Profile","LanguageSelector","PrivacySettings","SearchSettings","FileManagement","HelpSupport","FAQ","Feedback","LegalDocuments","AppInfo","PremiumSubscription","WelcomeNewUser","UserLinks","HistoryView","SavesCollections","EditProfileField","LearnMoreUsernames","KarmaCenter","KarmaLeaderboard","KarmaRewards","KarmaRules","AboutKarma","KarmaFAQ","FollowersList","FollowingList","CreateManagedAccount","AvatarCrop","Notifications","ConnectedApps","Preferences","screenCache","Map","getScreenComponent","routeName","has","get","loader","component","set","error","__DEV__","console","undefined","exports","isValidRoute","isFileManagementImageOnlyPicker","props","selectMode","disabled","disabledMimeTypes","Array","isArray","length","predicate","some","mt","blocksVideos","startsWith","blocksAudio","blocksDocs","DEFAULT_SHEET_CONFIG","scrollable","manualActivation","dynamicBackdrop","getSheetConfig","screenProps"],"sourceRoot":"../../../../src","sources":["ui/navigation/routes.ts"],"mappings":";;;;;;AAGA;AACA;AACA;;AAEA;;AAmCqB;;AAErB;AACA;AACA,MAAMA,aAAsE,GAAG;EAC3EC,OAAO,EAAEA,CAAA,KAAMC,OAAO,CAAC,0BAA0B,CAAC,CAACC,OAAO;EAC1DC,aAAa,EAAEA,CAAA,KAAMF,OAAO,CAAC,gCAAgC,CAAC,CAACC,OAAO;EACtEE,mBAAmB,EAAEA,CAAA,KAAMH,OAAO,CAAC,sCAAsC,CAAC,CAACC,OAAO;EAClFG,cAAc,EAAEA,CAAA,KAAMJ,OAAO,CAAC,iCAAiC,CAAC,CAACC,OAAO;EACxEI,OAAO,EAAEA,CAAA,KAAML,OAAO,CAAC,0BAA0B,CAAC,CAACC,OAAO;EAC1DK,gBAAgB,EAAEA,CAAA,KAAMN,OAAO,CAAC,mCAAmC,CAAC,CAACC,OAAO;EAC5EM,eAAe,EAAEA,CAAA,KAAMP,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;EAC1EO,cAAc,EAAEA,CAAA,KAAMR,OAAO,CAAC,iCAAiC,CAAC,CAACC,OAAO;EACxEQ,cAAc,EAAEA,CAAA,KAAMT,OAAO,CAAC,iCAAiC,CAAC,CAACC,OAAO;EACxES,WAAW,EAAEA,CAAA,KAAMV,OAAO,CAAC,8BAA8B,CAAC,CAACC,OAAO;EAClEU,GAAG,EAAEA,CAAA,KAAMX,OAAO,CAAC,sBAAsB,CAAC,CAACC,OAAO;E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AoC,KACjB;EACnB,IAAI,CAAChC,SAAS,EAAE,OAAO2B,oBAAoB;EAC3C,IAAI3B,SAAS,KAAK,gBAAgB,IAAIY,+BAA+B,CAACoB,WAAW,CAAC,EAAE;IAChF;IACA;IACA;IACA,OAAO;MAAE,GAAGL,oBAAoB;MAAEC,UAAU,EAAE;IAAM,CAAC;EACzD;EACA,OAAOD,oBAAoB;AAC/B,CAAC;AAACjB,OAAA,CAAAqB,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -7,12 +7,13 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _bloom = require("@oxyhq/bloom");
|
|
10
|
-
var
|
|
10
|
+
var _Header = _interopRequireDefault(require("../components/Header.js"));
|
|
11
11
|
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
12
12
|
var _useI18n = require("../hooks/useI18n.js");
|
|
13
13
|
var _theme = require("@oxyhq/bloom/theme");
|
|
14
14
|
var _OxyContext = require("../context/OxyContext.js");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
17
|
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
18
|
const AccountVerificationScreen = ({
|
|
18
19
|
onClose,
|
|
@@ -67,7 +68,7 @@ const AccountVerificationScreen = ({
|
|
|
67
68
|
style: [styles.container, {
|
|
68
69
|
backgroundColor: bloomTheme.colors.background
|
|
69
70
|
}],
|
|
70
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
71
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
71
72
|
title: t('accountVerification.title') || 'Account Verification',
|
|
72
73
|
onBack: goBack || onClose,
|
|
73
74
|
variant: "minimal",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bloom","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bloom","_Header","_interopRequireDefault","_settingsList","_useI18n","_theme","_OxyContext","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AccountVerificationScreen","onClose","theme","goBack","oxyServices","user","useOxy","useI18n","reason","setReason","useState","evidence","setEvidence","isSubmitting","setIsSubmitting","successMessage","setSuccessMessage","bloomTheme","useTheme","successDialog","useDialogControl","handleSuccessAcknowledged","useCallback","handleSubmit","trim","toast","error","result","requestAccountVerification","undefined","requestId","open","__DEV__","console","Error","message","jsxs","View","style","styles","container","backgroundColor","colors","background","children","jsx","title","onBack","variant","elevation","ScrollView","content","SettingsListGroup","Text","description","className","inputGroup","label","TextInput","textInput","textArea","value","onChangeText","placeholder","placeholderTextColor","textSecondary","multiline","numberOfLines","textAlignVertical","editable","TouchableOpacity","submitButton","onPress","disabled","ActivityIndicator","color","negativeForeground","submitButtonText","note","Dialog","control","actions","StyleSheet","create","flex","padding","fontSize","lineHeight","marginBottom","fontWeight","borderWidth","borderRadius","minHeight","paddingTop","alignItems","justifyContent","fontStyle","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/AccountVerificationScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAA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ACLiC,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACb,CAAC;EACD/B,WAAW,EAAE;IACTgC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,YAAY,EAAE;EAClB,CAAC;EACDhC,UAAU,EAAE;IACRgC,YAAY,EAAE;EAClB,CAAC;EACD/B,KAAK,EAAE;IACH6B,QAAQ,EAAE,EAAE;IACZG,UAAU,EAAE,KAAK;IACjBD,YAAY,EAAE;EAClB,CAAC;EACD7B,SAAS,EAAE;IACP+B,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfN,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE,EAAE;IACZM,SAAS,EAAE;EACf,CAAC;EACDhC,QAAQ,EAAE;IACNgC,SAAS,EAAE,GAAG;IACdC,UAAU,EAAE;EAChB,CAAC;EACDtB,YAAY,EAAE;IACVoB,YAAY,EAAE,CAAC;IACfN,OAAO,EAAE,EAAE;IACXS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBH,SAAS,EAAE;EACf,CAAC;EACDf,gBAAgB,EAAE;IACdS,QAAQ,EAAE,EAAE;IACZG,UAAU,EAAE;EAChB,CAAC;EACDX,IAAI,EAAE;IACFQ,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdS,SAAS,EAAE;EACf;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnH,OAAA,gBAEYoH,cAAK,CAACC,IAAI,CAACpG,yBAAyB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _bloom = require("@oxyhq/bloom");
|
|
10
|
+
var _theme = require("@oxyhq/bloom/theme");
|
|
11
|
+
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
12
|
+
var _core = require("@oxyhq/core");
|
|
13
|
+
var _Header = _interopRequireDefault(require("../components/Header.js"));
|
|
14
|
+
var _EmptyState = _interopRequireDefault(require("../components/EmptyState.js"));
|
|
15
|
+
var _SettingsIcon = require("../components/SettingsIcon.js");
|
|
16
|
+
var _useI18n = require("../hooks/useI18n.js");
|
|
17
|
+
var _OxyContext = require("../context/OxyContext.js");
|
|
18
|
+
var _useAccountQueries = require("../hooks/queries/useAccountQueries.js");
|
|
19
|
+
var _useAccountMutations = require("../hooks/mutations/useAccountMutations.js");
|
|
20
|
+
var _useColorScheme = require("../hooks/useColorScheme.js");
|
|
21
|
+
var _theme2 = require("../constants/theme.js");
|
|
22
|
+
var _themeUtils = require("../utils/themeUtils.js");
|
|
23
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
+
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); }
|
|
26
|
+
/**
|
|
27
|
+
* Format an ISO-8601 timestamp as a human-readable relative time. Mirrors the
|
|
28
|
+
* formatter used in ManageAccountScreen — kept local to avoid pulling a new
|
|
29
|
+
* shared module into the package public surface for one consumer.
|
|
30
|
+
*/const formatRelative = iso => {
|
|
31
|
+
const date = new Date(iso);
|
|
32
|
+
if (Number.isNaN(date.getTime())) {
|
|
33
|
+
return '—';
|
|
34
|
+
}
|
|
35
|
+
const diffMs = Date.now() - date.getTime();
|
|
36
|
+
const absMin = Math.abs(diffMs) / 60000;
|
|
37
|
+
if (absMin < 1) return 'just now';
|
|
38
|
+
if (absMin < 60) return `${Math.floor(absMin)}m ago`;
|
|
39
|
+
const hrs = absMin / 60;
|
|
40
|
+
if (hrs < 24) return `${Math.floor(hrs)}h ago`;
|
|
41
|
+
const days = hrs / 24;
|
|
42
|
+
if (days < 7) return `${Math.floor(days)}d ago`;
|
|
43
|
+
return date.toLocaleDateString();
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* ConnectedAppsScreen — list and revoke FedCM-authorized RP applications.
|
|
48
|
+
*
|
|
49
|
+
* Fetches via `useAuthorizedApps` (drives `GET /fedcm/me/authorized-apps`)
|
|
50
|
+
* and exposes a "Revoke" action that hits `DELETE /fedcm/me/authorized-apps/
|
|
51
|
+
* :origin`. Each revoke invalidates the connected-apps query so the list
|
|
52
|
+
* refreshes immediately.
|
|
53
|
+
*/
|
|
54
|
+
const ConnectedAppsScreen = ({
|
|
55
|
+
onClose,
|
|
56
|
+
theme,
|
|
57
|
+
goBack
|
|
58
|
+
}) => {
|
|
59
|
+
const bloomTheme = (0, _theme.useTheme)();
|
|
60
|
+
const {
|
|
61
|
+
t
|
|
62
|
+
} = (0, _useI18n.useI18n)();
|
|
63
|
+
const colorScheme = (0, _useColorScheme.useColorScheme)();
|
|
64
|
+
const palette = (0, _react.useMemo)(() => _theme2.Colors[(0, _themeUtils.normalizeColorScheme)(colorScheme, (0, _themeUtils.normalizeTheme)(theme))], [colorScheme, theme]);
|
|
65
|
+
const {
|
|
66
|
+
isAuthenticated
|
|
67
|
+
} = (0, _OxyContext.useOxy)();
|
|
68
|
+
const {
|
|
69
|
+
data: apps,
|
|
70
|
+
isLoading,
|
|
71
|
+
refetch,
|
|
72
|
+
isRefetching
|
|
73
|
+
} = (0, _useAccountQueries.useAuthorizedApps)({
|
|
74
|
+
enabled: isAuthenticated
|
|
75
|
+
});
|
|
76
|
+
const revokeMutation = (0, _useAccountMutations.useRevokeAuthorizedApp)();
|
|
77
|
+
const revokeDialog = (0, _bloom.useDialogControl)();
|
|
78
|
+
const [pendingRevoke, setPendingRevoke] = (0, _react.useState)(null);
|
|
79
|
+
const [revokingOrigin, setRevokingOrigin] = (0, _react.useState)(null);
|
|
80
|
+
const confirmRevoke = (0, _react.useCallback)(app => {
|
|
81
|
+
setPendingRevoke(app);
|
|
82
|
+
revokeDialog.open();
|
|
83
|
+
}, [revokeDialog]);
|
|
84
|
+
const handleRevoke = (0, _react.useCallback)(async () => {
|
|
85
|
+
if (!pendingRevoke) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const target = pendingRevoke;
|
|
89
|
+
setRevokingOrigin(target.origin);
|
|
90
|
+
try {
|
|
91
|
+
await revokeMutation.mutateAsync(target.origin);
|
|
92
|
+
_bloom.toast.success(t('connectedApps.toasts.revoked', {
|
|
93
|
+
name: target.name
|
|
94
|
+
}) || `Revoked access for ${target.name}`);
|
|
95
|
+
} catch (error) {
|
|
96
|
+
_core.logger.warn('Revoke authorized app failed', {
|
|
97
|
+
component: 'ConnectedAppsScreen'
|
|
98
|
+
}, error);
|
|
99
|
+
_bloom.toast.error(t('connectedApps.toasts.revokeFailed') || 'Failed to revoke access');
|
|
100
|
+
} finally {
|
|
101
|
+
setRevokingOrigin(null);
|
|
102
|
+
setPendingRevoke(null);
|
|
103
|
+
}
|
|
104
|
+
}, [pendingRevoke, revokeMutation, t]);
|
|
105
|
+
const renderEmpty = (0, _react.useCallback)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
106
|
+
style: styles.emptyContainer,
|
|
107
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyState.default, {
|
|
108
|
+
message: t('connectedApps.empty.subtitle') || 'Apps you authorize to sign in with your Oxy account will appear here',
|
|
109
|
+
textColor: bloomTheme.colors.textSecondary
|
|
110
|
+
})
|
|
111
|
+
}), [t, bloomTheme.colors.textSecondary]);
|
|
112
|
+
const renderItem = (0, _react.useCallback)(({
|
|
113
|
+
item
|
|
114
|
+
}) => {
|
|
115
|
+
const isRevoking = revokingOrigin === item.origin;
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
117
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
118
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
119
|
+
name: "apps",
|
|
120
|
+
color: palette.iconData
|
|
121
|
+
}),
|
|
122
|
+
title: item.name,
|
|
123
|
+
description: t('connectedApps.item.lastUsed', {
|
|
124
|
+
relative: formatRelative(item.lastUsedAt)
|
|
125
|
+
}) || `Last used ${formatRelative(item.lastUsedAt)}`,
|
|
126
|
+
onPress: isRevoking ? undefined : () => confirmRevoke(item),
|
|
127
|
+
disabled: isRevoking,
|
|
128
|
+
destructive: true,
|
|
129
|
+
showChevron: false,
|
|
130
|
+
rightElement: isRevoking ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
131
|
+
color: bloomTheme.colors.error,
|
|
132
|
+
size: "small"
|
|
133
|
+
}) : undefined
|
|
134
|
+
})
|
|
135
|
+
});
|
|
136
|
+
}, [bloomTheme.colors.error, confirmRevoke, palette.iconData, revokingOrigin, t]);
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
138
|
+
style: [styles.container, {
|
|
139
|
+
backgroundColor: bloomTheme.colors.background
|
|
140
|
+
}],
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
142
|
+
title: t('connectedApps.title') || 'Connected apps',
|
|
143
|
+
onBack: goBack || onClose,
|
|
144
|
+
variant: "minimal",
|
|
145
|
+
elevation: "subtle"
|
|
146
|
+
}), isLoading && !apps ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
147
|
+
style: styles.center,
|
|
148
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
149
|
+
color: bloomTheme.colors.primary,
|
|
150
|
+
size: "large"
|
|
151
|
+
})
|
|
152
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.FlatList, {
|
|
153
|
+
data: apps ?? [],
|
|
154
|
+
keyExtractor: item => item.origin,
|
|
155
|
+
renderItem: renderItem,
|
|
156
|
+
contentContainerStyle: styles.listContent,
|
|
157
|
+
ListEmptyComponent: renderEmpty,
|
|
158
|
+
refreshControl: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.RefreshControl, {
|
|
159
|
+
refreshing: isRefetching,
|
|
160
|
+
onRefresh: refetch,
|
|
161
|
+
tintColor: bloomTheme.colors.primary
|
|
162
|
+
})
|
|
163
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
|
|
164
|
+
control: revokeDialog,
|
|
165
|
+
title: t('connectedApps.confirm.title') || 'Revoke access',
|
|
166
|
+
description: pendingRevoke ? t('connectedApps.confirm.message', {
|
|
167
|
+
name: pendingRevoke.name
|
|
168
|
+
}) || `Revoke ${pendingRevoke.name}'s access to your Oxy account?` : '',
|
|
169
|
+
actions: [{
|
|
170
|
+
label: t('common.revoke') || 'Revoke',
|
|
171
|
+
color: 'destructive',
|
|
172
|
+
onPress: handleRevoke
|
|
173
|
+
}, {
|
|
174
|
+
label: t('common.cancel') || 'Cancel',
|
|
175
|
+
color: 'cancel'
|
|
176
|
+
}]
|
|
177
|
+
})]
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
const styles = _reactNative.StyleSheet.create({
|
|
181
|
+
container: {
|
|
182
|
+
flex: 1
|
|
183
|
+
},
|
|
184
|
+
center: {
|
|
185
|
+
flex: 1,
|
|
186
|
+
alignItems: 'center',
|
|
187
|
+
justifyContent: 'center'
|
|
188
|
+
},
|
|
189
|
+
listContent: {
|
|
190
|
+
paddingHorizontal: 16,
|
|
191
|
+
paddingVertical: 16,
|
|
192
|
+
flexGrow: 1
|
|
193
|
+
},
|
|
194
|
+
emptyContainer: {
|
|
195
|
+
flex: 1,
|
|
196
|
+
justifyContent: 'center',
|
|
197
|
+
alignItems: 'center',
|
|
198
|
+
paddingVertical: 48
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
var _default = exports.default = /*#__PURE__*/_react.default.memo(ConnectedAppsScreen);
|
|
202
|
+
//# sourceMappingURL=ConnectedAppsScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bloom","_theme","_settingsList","_core","_Header","_interopRequireDefault","_EmptyState","_SettingsIcon","_useI18n","_OxyContext","_useAccountQueries","_useAccountMutations","_useColorScheme","_theme2","_themeUtils","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","formatRelative","iso","date","Date","Number","isNaN","getTime","diffMs","now","absMin","Math","abs","floor","hrs","days","toLocaleDateString","ConnectedAppsScreen","onClose","theme","goBack","bloomTheme","useTheme","useI18n","colorScheme","useColorScheme","palette","useMemo","Colors","normalizeColorScheme","normalizeTheme","isAuthenticated","useOxy","data","apps","isLoading","refetch","isRefetching","useAuthorizedApps","enabled","revokeMutation","useRevokeAuthorizedApp","revokeDialog","useDialogControl","pendingRevoke","setPendingRevoke","useState","revokingOrigin","setRevokingOrigin","confirmRevoke","useCallback","app","open","handleRevoke","target","origin","mutateAsync","toast","success","name","error","loggerUtil","warn","component","renderEmpty","jsx","View","style","styles","emptyContainer","children","message","textColor","colors","textSecondary","renderItem","item","isRevoking","SettingsListGroup","SettingsListItem","icon","SettingsIcon","color","iconData","title","description","relative","lastUsedAt","onPress","undefined","disabled","destructive","showChevron","rightElement","ActivityIndicator","size","jsxs","container","backgroundColor","background","onBack","variant","elevation","center","primary","FlatList","keyExtractor","contentContainerStyle","listContent","ListEmptyComponent","refreshControl","RefreshControl","refreshing","onRefresh","tintColor","Dialog","control","actions","label","StyleSheet","create","flex","alignItems","justifyContent","paddingHorizontal","paddingVertical","flexGrow","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/ConnectedAppsScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAL,OAAA;AAEA,IAAAM,OAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAD,sBAAA,CAAAP,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AACA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,oBAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AACA,IAAAe,OAAA,GAAAf,OAAA;AACA,IAAAgB,WAAA,GAAAhB,OAAA;AAA2E,IAAAiB,WAAA,GAAAjB,OAAA;AAAA,SAAAO,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAnB,wBAAAmB,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAvB,uBAAA,YAAAA,CAAAmB,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,C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