@oxyhq/services 22.13.0 → 23.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/README.md +1 -1
- package/lib/commonjs/index.js +74 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/notifications/deviceNotifications.js +424 -0
- package/lib/commonjs/notifications/deviceNotifications.js.map +1 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +20 -64
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/AvatarCameraBadge.js +3 -2
- package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +5 -4
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +5 -6
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js +147 -0
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileButton.js +4 -3
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/SettingsIcon.js +3 -2
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +7 -7
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +65 -103
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +0 -2
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js +5 -4
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js +14 -10
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js +11 -0
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +3 -2
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +3 -2
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +15 -14
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +6 -5
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +3 -2
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +6 -6
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +5 -5
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +10 -9
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +4 -3
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +6 -5
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +14 -45
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/commitSessionFlow.js +0 -43
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +3 -4
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js +17 -17
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +4 -2
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOnlineStatus.js +3 -2
- package/lib/commonjs/ui/hooks/useOnlineStatus.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +0 -2
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +4 -3
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +7 -6
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +4 -3
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +3 -2
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +96 -96
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +19 -18
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +4 -29
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -3
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +2 -2
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +3 -3
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +10 -9
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +1 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +12 -13
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +4 -4
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +6 -6
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +4 -3
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +4 -3
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +5 -7
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +3 -2
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +5 -4
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +4 -3
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +24 -24
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/netConnectivity.js +28 -0
- package/lib/commonjs/ui/utils/netConnectivity.js.map +1 -0
- package/lib/commonjs/ui/utils/oauthReturn.js +15 -28
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -1
- package/lib/module/index.js +18 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/notifications/deviceNotifications.js +414 -0
- package/lib/module/notifications/deviceNotifications.js.map +1 -0
- package/lib/module/ui/boot/runProviderColdBoot.js +21 -65
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/components/AvatarCameraBadge.js +1 -1
- package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +5 -4
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +5 -6
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInRequestSurface.js +141 -0
- package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -0
- package/lib/module/ui/components/ProfileButton.js +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js +1 -1
- package/lib/module/ui/components/SettingsIcon.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/SignInEntryView.js.map +1 -1
- package/lib/module/ui/components/authChooser/SignInRequestView.js +66 -104
- package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -1
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js +0 -2
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js.map +1 -1
- package/lib/module/ui/components/authChooser/primitives.js +1 -1
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.js +13 -9
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js +11 -0
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- 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/payment/PaymentReviewStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/styles/shadow.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +16 -47
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/commitSessionFlow.js +0 -42
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js +3 -4
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/queries/userCache.js +17 -17
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +4 -2
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useOnlineStatus.js +3 -2
- package/lib/module/ui/hooks/useOnlineStatus.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +0 -2
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.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 +1 -1
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +91 -90
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +2 -1
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +4 -29
- 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/ManageAccountScreen.js +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +2 -2
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +1 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +4 -5
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +3 -3
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +5 -6
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +3 -5
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +3 -3
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +25 -25
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/netConnectivity.js +23 -0
- package/lib/module/ui/utils/netConnectivity.js.map +1 -0
- package/lib/module/ui/utils/oauthReturn.js +15 -27
- package/lib/module/ui/utils/oauthReturn.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +5 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts +173 -0
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +11 -30
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +5 -3
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +108 -0
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +18 -18
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +3 -10
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +8 -4
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +18 -0
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts +0 -40
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +4 -7
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +0 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +4 -2
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts +3 -2
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +2 -2
- 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/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +20 -19
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +5 -5
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts +17 -0
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +15 -12
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +5 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/notifications/deviceNotifications.d.ts +173 -0
- package/lib/typescript/module/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +11 -30
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +5 -3
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +108 -0
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +1 -1
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +18 -18
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +3 -10
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +8 -4
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +18 -0
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts +6 -6
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts +0 -40
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +4 -7
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +0 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +4 -2
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts +3 -2
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +2 -2
- 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/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +20 -19
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +5 -5
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts +17 -0
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts +15 -12
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -1
- package/package.json +18 -8
- package/src/index.ts +32 -0
- package/src/notifications/deviceNotifications.ts +458 -0
- package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +215 -0
- package/src/ui/boot/runProviderColdBoot.ts +24 -101
- package/src/ui/components/AvatarCameraBadge.tsx +1 -1
- package/src/ui/components/OxyAuthChooser.tsx +5 -4
- package/src/ui/components/OxyProvider.tsx +5 -6
- package/src/ui/components/OxySignInRequestSurface.tsx +202 -0
- package/src/ui/components/ProfileButton.tsx +1 -1
- package/src/ui/components/SettingsIcon.tsx +1 -1
- package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -1
- package/src/ui/components/authChooser/SignInEntryView.tsx +9 -3
- package/src/ui/components/authChooser/SignInRequestView.tsx +78 -111
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +3 -11
- package/src/ui/components/authChooser/primitives.tsx +1 -1
- package/src/ui/components/authChooser/requestSurfaces.tsx +15 -11
- package/src/ui/components/authChooser/types.ts +19 -0
- package/src/ui/components/fileManagement/AnimatedButton.tsx +1 -1
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +1 -1
- package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
- package/src/ui/components/modals/DeleteAccountModal.tsx +1 -1
- package/src/ui/components/payment/PaymentDetailsStep.tsx +1 -1
- package/src/ui/components/payment/PaymentMethodStep.tsx +1 -1
- package/src/ui/components/payment/PaymentReviewStep.tsx +1 -1
- package/src/ui/components/payment/PaymentSuccessStep.tsx +1 -1
- package/src/ui/components/payment/PaymentSummaryStep.tsx +1 -1
- package/src/ui/components/payment/types.ts +24 -24
- package/src/ui/components/styles/shadow.tsx +2 -2
- package/src/ui/context/OxyContext.tsx +15 -46
- package/src/ui/context/__tests__/commitSessionFlow.test.ts +0 -89
- package/src/ui/context/commitSessionFlow.ts +0 -61
- package/src/ui/context/oxyContextTypes.ts +4 -7
- package/src/ui/context/useOxyAccountGraph.ts +4 -4
- package/src/ui/hooks/queries/userCache.ts +169 -148
- package/src/ui/hooks/useAssets.ts +1 -1
- package/src/ui/hooks/useAsyncAction.ts +2 -2
- package/src/ui/hooks/useAuth.ts +4 -2
- package/src/ui/hooks/useOnlineStatus.ts +3 -2
- package/src/ui/hooks/useSessionManagement.ts +0 -2
- package/src/ui/screens/AccountMembersScreen.tsx +1 -1
- package/src/ui/screens/ConnectedAppsScreen.tsx +1 -1
- package/src/ui/screens/CreateAccountScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FAQScreen.tsx +1 -1
- package/src/ui/screens/FeedbackScreen.tsx +740 -574
- package/src/ui/screens/FileManagementScreen.tsx +2 -1
- package/src/ui/screens/HistoryViewScreen.tsx +4 -19
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
- package/src/ui/screens/ManageAccountScreen.tsx +1 -1
- package/src/ui/screens/PaymentGatewayScreen.tsx +1 -1
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +2 -2
- package/src/ui/screens/PrivacySettingsScreen.tsx +1 -0
- package/src/ui/screens/ProfileScreen.tsx +6 -4
- package/src/ui/screens/UserListScreen.tsx +3 -3
- package/src/ui/screens/WelcomeNewUserScreen.tsx +6 -6
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +1 -1
- package/src/ui/screens/fileManagement/FileListSection.tsx +1 -1
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +3 -2
- package/src/ui/screens/fileManagement/UploadBar.tsx +1 -1
- package/src/ui/screens/trust/TrustCenterScreen.tsx +1 -1
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +4 -3
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +1 -1
- package/src/ui/types/navigation.ts +20 -19
- package/src/ui/utils/fileManagement.ts +108 -92
- package/src/ui/utils/netConnectivity.ts +27 -0
- package/src/ui/utils/oauthReturn.ts +15 -30
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js +0 -48
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js.map +0 -1
- package/lib/commonjs/ui/utils/crossOriginRestore.js +0 -140
- package/lib/commonjs/ui/utils/crossOriginRestore.js.map +0 -1
- package/lib/module/ui/oauth/legacyRedirectLanes.js +0 -44
- package/lib/module/ui/oauth/legacyRedirectLanes.js.map +0 -1
- package/lib/module/ui/utils/crossOriginRestore.js +0 -131
- package/lib/module/ui/utils/crossOriginRestore.js.map +0 -1
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts +0 -40
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts +0 -43
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts.map +0 -1
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts +0 -40
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts.map +0 -1
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts +0 -43
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts.map +0 -1
- package/src/ui/boot/__tests__/coldBootWebAuthMode.test.ts +0 -281
- package/src/ui/oauth/legacyRedirectLanes.ts +0 -43
- package/src/ui/utils/__tests__/crossOriginRestore.test.ts +0 -160
- package/src/ui/utils/crossOriginRestore.ts +0 -168
package/README.md
CHANGED
|
@@ -455,7 +455,7 @@ function LoginScreen() {
|
|
|
455
455
|
```
|
|
456
456
|
|
|
457
457
|
- **Official Oxy apps** (`isOfficial` / first-party types): opens the in-app account dialog.
|
|
458
|
-
- **Third-party apps** (`type: 'third_party'`): starts the standard OAuth 2.0 Authorization Code + PKCE flow against `auth.oxy.so` (the SDK generates `state` + PKCE via `@oxyhq/core`). On web the transport is `OxyProvider` prop `webAuthMode: 'popup' | 'redirect'` (default `'
|
|
458
|
+
- **Third-party apps** (`type: 'third_party'`): starts the standard OAuth 2.0 Authorization Code + PKCE flow against `auth.oxy.so` (the SDK generates `state` + PKCE via `@oxyhq/core`). On web the transport is `OxyProvider` prop `webAuthMode: 'popup' | 'redirect'` (default `'popup'`; issue #691 Phases 2/7b) — `'popup'` opens a small window and relays the result via `postMessage` without navigating your app's tab, falling back to a redirect if the browser blocks it. Pass `oauthRedirectUri`; on native handle `onOAuthResult` to complete the token exchange.
|
|
459
459
|
|
|
460
460
|
See the [integration guide](../../docs/auth/integration-guide.md) for Console registration, OAuth endpoints, and backend verification, and [AUTHENTICATION.md](../../docs/AUTHENTICATION.md) for the full model.
|
|
461
461
|
|
package/lib/commonjs/index.js
CHANGED
|
@@ -117,6 +117,12 @@ Object.defineProperty(exports, "OxySignInButton", {
|
|
|
117
117
|
return _OxySignInButton.default;
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
Object.defineProperty(exports, "OxySignInRequestSurface", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _OxySignInRequestSurface.OxySignInRequestSurface;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
120
126
|
Object.defineProperty(exports, "PreferencesScreen", {
|
|
121
127
|
enumerable: true,
|
|
122
128
|
get: function () {
|
|
@@ -171,18 +177,42 @@ Object.defineProperty(exports, "createProfileMutation", {
|
|
|
171
177
|
return _mutationFactory.createProfileMutation;
|
|
172
178
|
}
|
|
173
179
|
});
|
|
180
|
+
Object.defineProperty(exports, "ensureNotificationChannel", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return _deviceNotifications.ensureNotificationChannel;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
174
186
|
Object.defineProperty(exports, "extractErrorMessage", {
|
|
175
187
|
enumerable: true,
|
|
176
188
|
get: function () {
|
|
177
189
|
return _errorHandlers.extractErrorMessage;
|
|
178
190
|
}
|
|
179
191
|
});
|
|
192
|
+
Object.defineProperty(exports, "getExpoPushToken", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _deviceNotifications.getExpoPushToken;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
180
198
|
Object.defineProperty(exports, "handleAuthError", {
|
|
181
199
|
enumerable: true,
|
|
182
200
|
get: function () {
|
|
183
201
|
return _errorHandlers.handleAuthError;
|
|
184
202
|
}
|
|
185
203
|
});
|
|
204
|
+
Object.defineProperty(exports, "hasNotificationPermission", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _deviceNotifications.hasNotificationPermission;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "installForegroundNotificationHandler", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () {
|
|
213
|
+
return _deviceNotifications.installForegroundNotificationHandler;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
186
216
|
Object.defineProperty(exports, "invalidateAccountQueries", {
|
|
187
217
|
enumerable: true,
|
|
188
218
|
get: function () {
|
|
@@ -273,12 +303,24 @@ Object.defineProperty(exports, "openOAuthPopup", {
|
|
|
273
303
|
return _oauthPopup.openOAuthPopup;
|
|
274
304
|
}
|
|
275
305
|
});
|
|
306
|
+
Object.defineProperty(exports, "pushTokenPlatform", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () {
|
|
309
|
+
return _deviceNotifications.pushTokenPlatform;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
276
312
|
Object.defineProperty(exports, "queryKeys", {
|
|
277
313
|
enumerable: true,
|
|
278
314
|
get: function () {
|
|
279
315
|
return _queryKeys.queryKeys;
|
|
280
316
|
}
|
|
281
317
|
});
|
|
318
|
+
Object.defineProperty(exports, "requestNotificationPermission", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () {
|
|
321
|
+
return _deviceNotifications.requestNotificationPermission;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
282
324
|
Object.defineProperty(exports, "setOxyAssetInstance", {
|
|
283
325
|
enumerable: true,
|
|
284
326
|
get: function () {
|
|
@@ -297,6 +339,18 @@ Object.defineProperty(exports, "subscribeToAccountDialog", {
|
|
|
297
339
|
return _accountDialogManager.subscribeToAccountDialog;
|
|
298
340
|
}
|
|
299
341
|
});
|
|
342
|
+
Object.defineProperty(exports, "subscribeToNotificationResponses", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function () {
|
|
345
|
+
return _deviceNotifications.subscribeToNotificationResponses;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "takeLaunchNotificationData", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () {
|
|
351
|
+
return _deviceNotifications.takeLaunchNotificationData;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
300
354
|
Object.defineProperty(exports, "upsertCachedUser", {
|
|
301
355
|
enumerable: true,
|
|
302
356
|
get: function () {
|
|
@@ -704,6 +758,7 @@ var _useOnlineStatus = require("./ui/hooks/useOnlineStatus.js");
|
|
|
704
758
|
var _useOxyEvent = require("./ui/hooks/useOxyEvent.js");
|
|
705
759
|
var _errorHandlers = require("./ui/utils/errorHandlers.js");
|
|
706
760
|
var _useFileFiltering = require("./ui/hooks/useFileFiltering.js");
|
|
761
|
+
var _deviceNotifications = require("./notifications/deviceNotifications.js");
|
|
707
762
|
var _OxySignInButton = _interopRequireDefault(require("./ui/components/OxySignInButton.js"));
|
|
708
763
|
var _oauthPopup = require("./ui/oauth/oauthPopup.js");
|
|
709
764
|
var _OxyAuthPrompt = require("./ui/components/OxyAuthPrompt.js");
|
|
@@ -716,6 +771,7 @@ var _LogoIcon = require("./ui/components/logo/LogoIcon.js");
|
|
|
716
771
|
var _LogoText = require("./ui/components/logo/LogoText.js");
|
|
717
772
|
var _ProfileButton = _interopRequireDefault(require("./ui/components/ProfileButton.js"));
|
|
718
773
|
var _OxyAuthChooser = _interopRequireDefault(require("./ui/components/OxyAuthChooser.js"));
|
|
774
|
+
var _OxySignInRequestSurface = require("./ui/components/OxySignInRequestSurface.js");
|
|
719
775
|
var _useSwitchableAccounts = require("./ui/hooks/useSwitchableAccounts.js");
|
|
720
776
|
var _ProfileScreen = _interopRequireDefault(require("./ui/screens/ProfileScreen.js"));
|
|
721
777
|
var _ManageAccountScreen = _interopRequireDefault(require("./ui/screens/ManageAccountScreen.js"));
|
|
@@ -809,6 +865,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
809
865
|
// File filtering
|
|
810
866
|
// ---------------------------------------------------------------------------
|
|
811
867
|
|
|
868
|
+
// ---------------------------------------------------------------------------
|
|
869
|
+
// Device notifications (the ONE `expo-notifications` adapter)
|
|
870
|
+
// ---------------------------------------------------------------------------
|
|
871
|
+
// The Expo-side half of push: permission, platform tag, and the EXPO push token
|
|
872
|
+
// `@oxyhq/core`'s `registerPushToken` accepts (never a raw APNs/FCM token).
|
|
873
|
+
// Native-only by construction — every entry point resolves its null/no-op result
|
|
874
|
+
// from `Platform.OS` before `expo-notifications` is ever imported, and both
|
|
875
|
+
// `expo-notifications` and `expo-constants` are OPTIONAL peers.
|
|
876
|
+
|
|
812
877
|
// ---------------------------------------------------------------------------
|
|
813
878
|
// UI components
|
|
814
879
|
// ---------------------------------------------------------------------------
|
|
@@ -834,6 +899,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
834
899
|
// host (e.g. a future auth.oxy.so hub page) can mount the exact same chooser
|
|
835
900
|
// with its own completion strategy.
|
|
836
901
|
|
|
902
|
+
// The in-flight "Sign in with Oxy" REQUEST surface — the route's primary visual,
|
|
903
|
+
// the progress line, and the "Having trouble?" alternatives — as a purely
|
|
904
|
+
// presentational component driven by plain facts. `OxyAuthChooser` renders it
|
|
905
|
+
// from `AccountDialogController`'s device flow; a host with a request of its own
|
|
906
|
+
// (the auth.oxy.so IdP's OAuth-bound lane) renders the SAME component from its
|
|
907
|
+
// own facts, so there is one implementation of this surface, not two. It needs
|
|
908
|
+
// no controller: `route` + `progress` + `qrPayload` + the failure flags are the
|
|
909
|
+
// whole contract, and none of them is a secret credential.
|
|
910
|
+
|
|
837
911
|
// Unified switchable-accounts hook — the single source of everything the user
|
|
838
912
|
// can switch into: device sign-ins AND linked graph accounts (owned orgs +
|
|
839
913
|
// shared-with-you), deduped by account id and hydrated with real
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_reactNative","_OxyProvider","_interopRequireDefault","_OxyContext","_useAuth","_identityBinding","_authStore","_accountStore","_assetStore","_useAssets","_useFileDownloadUrl","_useFollow","_useStorage","_useAccountQueries","_useServicesQueries","_useSecurityQueries","_useAuthMethods","_usePaymentQueries","_useAccountMutations","_useServicesMutations","_mutationFactory","_mutationKeys","_queryKeys","_userCache","_useMutationStatus","_useOnlineStatus","_useOxyEvent","_errorHandlers","_useFileFiltering","_OxySignInButton","_oauthPopup","_OxyAuthPrompt","_OxyOAuthCallback","_OxyConsentScreen","_RequireOxyAuth","_FollowButton","_OxyPayButton","_LogoIcon","_LogoText","_ProfileButton","_OxyAuthChooser","_useSwitchableAccounts","_ProfileScreen","_ManageAccountScreen","_NotificationsScreen","_PreferencesScreen","_ConnectedAppsScreen","_CreateAccountScreen","_AccountMembersScreen","_AccountSettingsScreen","_bottomSheetManager","_useSurfaceHeader","_SurfaceHeaderAction","_accountDialogManager","e","__esModule","default","setPlatformOS","Platform","OS"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_core","require","_reactNative","_OxyProvider","_interopRequireDefault","_OxyContext","_useAuth","_identityBinding","_authStore","_accountStore","_assetStore","_useAssets","_useFileDownloadUrl","_useFollow","_useStorage","_useAccountQueries","_useServicesQueries","_useSecurityQueries","_useAuthMethods","_usePaymentQueries","_useAccountMutations","_useServicesMutations","_mutationFactory","_mutationKeys","_queryKeys","_userCache","_useMutationStatus","_useOnlineStatus","_useOxyEvent","_errorHandlers","_useFileFiltering","_deviceNotifications","_OxySignInButton","_oauthPopup","_OxyAuthPrompt","_OxyOAuthCallback","_OxyConsentScreen","_RequireOxyAuth","_FollowButton","_OxyPayButton","_LogoIcon","_LogoText","_ProfileButton","_OxyAuthChooser","_OxySignInRequestSurface","_useSwitchableAccounts","_ProfileScreen","_ManageAccountScreen","_NotificationsScreen","_PreferencesScreen","_ConnectedAppsScreen","_CreateAccountScreen","_AccountMembersScreen","_AccountSettingsScreen","_bottomSheetManager","_useSurfaceHeader","_SurfaceHeaderAction","_accountDialogManager","e","__esModule","default","setPlatformOS","Platform","OS"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ArD,OAAA;AAMA,IAAAsD,iBAAA,GAAAtD,OAAA;AACA,IAAAuD,oBAAA,GAAAvD,OAAA;AAMA,IAAAwD,qBAAA,GAAAxD,OAAA;AAI8C,SAAAG,uBAAAsD,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAlV9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAIA,IAAAG,mBAAa,EAACC,qBAAQ,CAACC,EAAgB,CAAC;;AAExC;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;;AAgBA;AACA;AACA;;AAOA;AACA;AACA;;AAgCA;;AAeA;AACA;AACA;;AA2BA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;;AAIA;;AAMA;AACA;AACA;;AASA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;;AAQA;AACA;AACA;AACA;;AAsBA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAIA;;AAOA;;AAKA;AACA;AACA;;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ensureNotificationChannel = ensureNotificationChannel;
|
|
7
|
+
exports.getExpoPushToken = getExpoPushToken;
|
|
8
|
+
exports.hasNotificationPermission = hasNotificationPermission;
|
|
9
|
+
exports.installForegroundNotificationHandler = installForegroundNotificationHandler;
|
|
10
|
+
exports.pushTokenPlatform = pushTokenPlatform;
|
|
11
|
+
exports.requestNotificationPermission = requestNotificationPermission;
|
|
12
|
+
exports.subscribeToNotificationResponses = subscribeToNotificationResponses;
|
|
13
|
+
exports.takeLaunchNotificationData = takeLaunchNotificationData;
|
|
14
|
+
var _core = require("@oxyhq/core");
|
|
15
|
+
var _reactNative = require("react-native");
|
|
16
|
+
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
|
+
* The ONE place `@oxyhq/services` touches `expo-notifications`.
|
|
18
|
+
*
|
|
19
|
+
* Every Oxy app that receives push needs the identical adapter — native-only,
|
|
20
|
+
* dynamically imported, reading the OS permission and minting an EXPO push
|
|
21
|
+
* token — so it lives here instead of being copied into each app. The
|
|
22
|
+
* bearer-authenticated transport (`registerPushToken` / `unregisterPushToken`)
|
|
23
|
+
* already lives in `@oxyhq/core`; core may never import an `expo-*` module, and
|
|
24
|
+
* this adapter is the Expo-side half that closes that gap.
|
|
25
|
+
*
|
|
26
|
+
* ## Native-only by construction
|
|
27
|
+
*
|
|
28
|
+
* Every entry point resolves its null/no-op result from `Platform.OS` BEFORE the
|
|
29
|
+
* dynamic `import()`, so a web bundle never requests `expo-notifications` at all.
|
|
30
|
+
* `expo-notifications` and `expo-constants` are OPTIONAL peer dependencies: an
|
|
31
|
+
* app that does not use push never installs them, and a build without them
|
|
32
|
+
* degrades to "notifications unavailable" rather than throwing at
|
|
33
|
+
* module-evaluation time.
|
|
34
|
+
*
|
|
35
|
+
* ## The token is an EXPO push token — never a raw device token
|
|
36
|
+
*
|
|
37
|
+
* {@link getExpoPushToken} calls `getExpoPushTokenAsync()`, which returns the
|
|
38
|
+
* `ExponentPushToken[…]` handle Expo's push service delivers through — the only
|
|
39
|
+
* form it accepts. `getDevicePushTokenAsync()` — the raw APNs/FCM token — is
|
|
40
|
+
* deliberately NOT used anywhere: registering one of those looks entirely
|
|
41
|
+
* successful (the row is stored, the endpoint returns 200) and then every push
|
|
42
|
+
* silently fails at delivery time. `@oxyhq/core`'s `registerPushToken` rejects a
|
|
43
|
+
* raw device token before sending, and this module is the reason it never has to.
|
|
44
|
+
*
|
|
45
|
+
* ## The payload is untrusted
|
|
46
|
+
*
|
|
47
|
+
* Nothing here surfaces a notification's `title` / `body` / `subtitle`. The only
|
|
48
|
+
* payload that leaves this module is the raw `content.data` — the routing keys —
|
|
49
|
+
* typed `unknown`, so a caller has to validate it before acting on it and there
|
|
50
|
+
* is no exported shape that invites rendering push-delivered text. The
|
|
51
|
+
* foreground handler likewise answers with a visibility verdict and nothing else.
|
|
52
|
+
*/
|
|
53
|
+
const log = (0, _core.createLogger)('deviceNotifications');
|
|
54
|
+
function isRecord(value) {
|
|
55
|
+
return typeof value === 'object' && value !== null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Load `expo-notifications`, or `null` when it cannot serve this platform/build.
|
|
60
|
+
*
|
|
61
|
+
* The web guard runs before the `import()`, so a web bundle never reaches for the
|
|
62
|
+
* native module. The dynamic import is intentional: the module registry caches
|
|
63
|
+
* it, so repeated calls are cheap and no module-level mutable cache is
|
|
64
|
+
* introduced here.
|
|
65
|
+
*/
|
|
66
|
+
async function loadNotifications() {
|
|
67
|
+
if (_reactNative.Platform.OS === 'web') {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
return await Promise.resolve().then(() => _interopRequireWildcard(require('expo-notifications')));
|
|
72
|
+
} catch (error) {
|
|
73
|
+
log.warn('expo-notifications is unavailable in this build — push is disabled', {
|
|
74
|
+
method: 'loadNotifications'
|
|
75
|
+
}, error);
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The EAS project id an Expo push token is minted against, or `null` when the
|
|
82
|
+
* app config carries none.
|
|
83
|
+
*
|
|
84
|
+
* Resolved exactly the way `expo-notifications` resolves it internally
|
|
85
|
+
* (`easConfig.projectId`, then `expoConfig.extra.eas.projectId`) and then handed
|
|
86
|
+
* BACK to `getExpoPushTokenAsync` explicitly, so the two can never disagree.
|
|
87
|
+
* Reading it here is what turns "no project id" from an opaque
|
|
88
|
+
* `ERR_NOTIFICATIONS_NO_EXPERIENCE_ID` rejection into a named, actionable state
|
|
89
|
+
* instead of one more entry in the indistinguishable "permission denied /
|
|
90
|
+
* offline" bucket.
|
|
91
|
+
*
|
|
92
|
+
* A missing `expo-constants` lands on the same `null` outcome — the single
|
|
93
|
+
* actionable warning is emitted once by the caller, so this path only records
|
|
94
|
+
* the extra detail at debug level rather than warning twice for one condition.
|
|
95
|
+
*/
|
|
96
|
+
async function easProjectId() {
|
|
97
|
+
let constants;
|
|
98
|
+
try {
|
|
99
|
+
constants = (await Promise.resolve().then(() => _interopRequireWildcard(require('expo-constants')))).default;
|
|
100
|
+
} catch (error) {
|
|
101
|
+
log.debug('expo-constants is unavailable in this build — no EAS project id can be resolved', {
|
|
102
|
+
method: 'easProjectId'
|
|
103
|
+
}, error);
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
const fromEasConfig = constants.easConfig?.projectId;
|
|
107
|
+
if (typeof fromEasConfig === 'string' && fromEasConfig.length > 0) {
|
|
108
|
+
return fromEasConfig;
|
|
109
|
+
}
|
|
110
|
+
const extra = constants.expoConfig?.extra;
|
|
111
|
+
const eas = isRecord(extra) ? extra.eas : undefined;
|
|
112
|
+
const projectId = isRecord(eas) ? eas.projectId : undefined;
|
|
113
|
+
return typeof projectId === 'string' && projectId.length > 0 ? projectId : null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The platform tag the push-token registry stores this installation under, or
|
|
118
|
+
* `null` on a platform Oxy does not deliver push to.
|
|
119
|
+
*
|
|
120
|
+
* Synchronous and import-free — the answer is a property of the bundle, not of
|
|
121
|
+
* any native module.
|
|
122
|
+
*
|
|
123
|
+
* Web is `null` on purpose: the registry accepts a `web` platform, but browser
|
|
124
|
+
* push needs a VAPID key + service-worker subscription no Oxy app has wired, so
|
|
125
|
+
* there is no token to register and claiming otherwise would store a row nothing
|
|
126
|
+
* can ever deliver to.
|
|
127
|
+
*/
|
|
128
|
+
function pushTokenPlatform() {
|
|
129
|
+
return _reactNative.Platform.OS === 'ios' || _reactNative.Platform.OS === 'android' ? _reactNative.Platform.OS : null;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Whether the OS notification permission is ALREADY granted.
|
|
134
|
+
*
|
|
135
|
+
* Never prompts, so an app can re-check on every cold boot without ever asking
|
|
136
|
+
* the user twice. Use {@link requestNotificationPermission} for the one place
|
|
137
|
+
* that is allowed to show the system dialog.
|
|
138
|
+
*/
|
|
139
|
+
async function hasNotificationPermission() {
|
|
140
|
+
const notifications = await loadNotifications();
|
|
141
|
+
if (!notifications) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
try {
|
|
145
|
+
const permissions = await notifications.getPermissionsAsync();
|
|
146
|
+
return permissions.granted === true;
|
|
147
|
+
} catch (error) {
|
|
148
|
+
log.warn('could not read the notification permission', {
|
|
149
|
+
method: 'hasNotificationPermission'
|
|
150
|
+
}, error);
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Ensure the OS notification permission, prompting at most once.
|
|
157
|
+
*
|
|
158
|
+
* An installation that already answered the system dialog is never asked again:
|
|
159
|
+
* an already-granted permission resolves `true` without a second dialog, and a
|
|
160
|
+
* denial with `canAskAgain: false` resolves `false` without issuing a request
|
|
161
|
+
* the OS would silently ignore.
|
|
162
|
+
*
|
|
163
|
+
* @returns Whether notifications are granted once this call is done.
|
|
164
|
+
*/
|
|
165
|
+
async function requestNotificationPermission() {
|
|
166
|
+
const notifications = await loadNotifications();
|
|
167
|
+
if (!notifications) {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
try {
|
|
171
|
+
const existing = await notifications.getPermissionsAsync();
|
|
172
|
+
if (existing.granted === true) {
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
if (existing.canAskAgain === false) {
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
const requested = await notifications.requestPermissionsAsync();
|
|
179
|
+
return requested.granted === true;
|
|
180
|
+
} catch (error) {
|
|
181
|
+
log.warn('the notification permission could not be resolved', {
|
|
182
|
+
method: 'requestNotificationPermission'
|
|
183
|
+
}, error);
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* This installation's Expo push token (`ExponentPushToken[…]`), or `null` when
|
|
190
|
+
* one cannot be minted.
|
|
191
|
+
*
|
|
192
|
+
* Deliberately `getExpoPushTokenAsync` — see the module header for why the raw
|
|
193
|
+
* device-token variant is never used.
|
|
194
|
+
*
|
|
195
|
+
* Every `null` is logged with the reason it happened. A missing EAS project id
|
|
196
|
+
* in particular is a BUILD MISCONFIGURATION, not a user state: no token can ever
|
|
197
|
+
* be minted, so push is off for every install of that build until the config is
|
|
198
|
+
* fixed. It is reported as such rather than blending into the
|
|
199
|
+
* indistinguishable "permission denied / offline" bucket.
|
|
200
|
+
*/
|
|
201
|
+
async function getExpoPushToken() {
|
|
202
|
+
const notifications = await loadNotifications();
|
|
203
|
+
if (!notifications) {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
const projectId = await easProjectId();
|
|
207
|
+
if (!projectId) {
|
|
208
|
+
log.warn('no EAS project id in the app config (expo.extra.eas.projectId) — an Expo push token cannot be minted, so push is disabled for this build', {
|
|
209
|
+
method: 'getExpoPushToken'
|
|
210
|
+
});
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
const token = await notifications.getExpoPushTokenAsync({
|
|
215
|
+
projectId
|
|
216
|
+
});
|
|
217
|
+
if (token.data.length === 0) {
|
|
218
|
+
log.warn('the Expo push service returned an empty token', {
|
|
219
|
+
method: 'getExpoPushToken'
|
|
220
|
+
});
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
return token.data;
|
|
224
|
+
} catch (error) {
|
|
225
|
+
log.warn('could not mint an Expo push token', {
|
|
226
|
+
method: 'getExpoPushToken'
|
|
227
|
+
}, error);
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Take the payload of the notification that COLD-LAUNCHED the app, if any.
|
|
234
|
+
*
|
|
235
|
+
* "Take" is literal: the response is cleared from `expo-notifications` once
|
|
236
|
+
* read, so a listener attached later in the same launch is not handed the same
|
|
237
|
+
* tap again. Clearing is best-effort across OS/module versions, so a caller that
|
|
238
|
+
* must not act twice still needs its own idempotency ledger.
|
|
239
|
+
*
|
|
240
|
+
* @returns The raw, untrusted `content.data` of the launching notification, or
|
|
241
|
+
* `null`. Parsing/validation is the caller's job.
|
|
242
|
+
*/
|
|
243
|
+
async function takeLaunchNotificationData() {
|
|
244
|
+
const notifications = await loadNotifications();
|
|
245
|
+
if (!notifications) {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
try {
|
|
249
|
+
const response = notifications.getLastNotificationResponse();
|
|
250
|
+
if (!response) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
const data = response.notification.request.content.data;
|
|
254
|
+
try {
|
|
255
|
+
notifications.clearLastNotificationResponse();
|
|
256
|
+
} catch (clearError) {
|
|
257
|
+
log.warn('could not clear the launching notification response', {
|
|
258
|
+
method: 'takeLaunchNotificationData'
|
|
259
|
+
}, clearError);
|
|
260
|
+
}
|
|
261
|
+
return data;
|
|
262
|
+
} catch (error) {
|
|
263
|
+
log.warn('could not read the launching notification', {
|
|
264
|
+
method: 'takeLaunchNotificationData'
|
|
265
|
+
}, error);
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* What the OS should do with a notification that arrives while the app is
|
|
272
|
+
* FOREGROUNDED.
|
|
273
|
+
*
|
|
274
|
+
* `'suppress'` is `expo-notifications`' own default for a foregrounded app, so a
|
|
275
|
+
* decision function that only ever returns `'show'` for the payloads it
|
|
276
|
+
* recognises leaves every other notification exactly as it behaves today.
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Whether the process-wide foreground handler has already been ATTEMPTED.
|
|
281
|
+
*
|
|
282
|
+
* `setNotificationHandler` is global, last-writer-wins process state, so this is
|
|
283
|
+
* a one-shot install rather than something a mount/unmount cycle owns. A failed
|
|
284
|
+
* attempt is deliberately not retried: the only failure modes are permanent for
|
|
285
|
+
* the life of the process (web, a build without the native module, a native
|
|
286
|
+
* module that threw on registration).
|
|
287
|
+
*
|
|
288
|
+
* Module-scoped and only ever touched from an async install call — never read
|
|
289
|
+
* during render, so the React Compiler has no memoizable position to freeze it
|
|
290
|
+
* into.
|
|
291
|
+
*/
|
|
292
|
+
let foregroundHandlerAttempted = false;
|
|
293
|
+
|
|
294
|
+
/** How prominently Android surfaces a channel's notifications. */
|
|
295
|
+
|
|
296
|
+
/** An Android notification channel this app delivers on. */
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Create (or update) an Android notification channel.
|
|
300
|
+
*
|
|
301
|
+
* A no-op everywhere but Android: iOS has no channels, and web never loads the
|
|
302
|
+
* native module. Call it BEFORE registering a push token, so the very first
|
|
303
|
+
* notification the server sends already has a channel to land on.
|
|
304
|
+
*
|
|
305
|
+
* Failure is non-fatal and logged: a missing channel costs visibility, and
|
|
306
|
+
* refusing to register a token over it would cost the feature entirely.
|
|
307
|
+
*
|
|
308
|
+
* @returns Whether the channel was actually created (`false` off Android, or
|
|
309
|
+
* when the native module is unavailable, or when creation failed).
|
|
310
|
+
*/
|
|
311
|
+
async function ensureNotificationChannel(spec) {
|
|
312
|
+
if (_reactNative.Platform.OS !== 'android') {
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
const notifications = await loadNotifications();
|
|
316
|
+
if (!notifications) {
|
|
317
|
+
return false;
|
|
318
|
+
}
|
|
319
|
+
try {
|
|
320
|
+
await notifications.setNotificationChannelAsync(spec.id, {
|
|
321
|
+
name: spec.name,
|
|
322
|
+
importance: spec.importance === 'high' ? notifications.AndroidImportance.HIGH : notifications.AndroidImportance.DEFAULT,
|
|
323
|
+
...(spec.description ? {
|
|
324
|
+
description: spec.description
|
|
325
|
+
} : {})
|
|
326
|
+
});
|
|
327
|
+
return true;
|
|
328
|
+
} catch (error) {
|
|
329
|
+
log.warn('could not create the notification channel', {
|
|
330
|
+
method: 'ensureNotificationChannel',
|
|
331
|
+
channelId: spec.id
|
|
332
|
+
}, error);
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Install the ONE process-wide handler that decides whether an incoming
|
|
339
|
+
* notification is shown while the app is in the FOREGROUND.
|
|
340
|
+
*
|
|
341
|
+
* Without a handler, `expo-notifications` shows nothing at all while the app is
|
|
342
|
+
* open — which is exactly when a time-critical notification (a "Sign in with
|
|
343
|
+
* Oxy" approval request, say) matters most, because the user is already holding
|
|
344
|
+
* the phone.
|
|
345
|
+
*
|
|
346
|
+
* The handler ONLY decides visibility. It never navigates, never acts on the
|
|
347
|
+
* notification, and never reads the payload for display — `decide` is handed the
|
|
348
|
+
* raw, untrusted `content.data` and may answer nothing but `'show'` /
|
|
349
|
+
* `'suppress'`. Acting on a notification stays with a TAP, routed by
|
|
350
|
+
* {@link subscribeToNotificationResponses}. No notification actions/categories
|
|
351
|
+
* are registered here, so the banner cannot carry an action button.
|
|
352
|
+
*
|
|
353
|
+
* The one-shot latch is set BEFORE the first `await`, so concurrent callers
|
|
354
|
+
* cannot both reach `setNotificationHandler`.
|
|
355
|
+
*
|
|
356
|
+
* @param decide - Maps the raw, untrusted payload to a presentation verdict.
|
|
357
|
+
* Must not throw; a throw is reported by the OS as a handling error and the
|
|
358
|
+
* notification is dropped.
|
|
359
|
+
* @returns Whether a handler was installed by THIS call (`false` on a repeat
|
|
360
|
+
* call, on web, or when the native module is unavailable).
|
|
361
|
+
*/
|
|
362
|
+
async function installForegroundNotificationHandler(decide) {
|
|
363
|
+
if (foregroundHandlerAttempted) {
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
foregroundHandlerAttempted = true;
|
|
367
|
+
const notifications = await loadNotifications();
|
|
368
|
+
if (!notifications) {
|
|
369
|
+
return false;
|
|
370
|
+
}
|
|
371
|
+
try {
|
|
372
|
+
notifications.setNotificationHandler({
|
|
373
|
+
handleNotification: async notification => {
|
|
374
|
+
const data = notification.request.content.data;
|
|
375
|
+
const show = decide(data) === 'show';
|
|
376
|
+
return {
|
|
377
|
+
// Banner: the whole point — make the notification visible on screen.
|
|
378
|
+
shouldShowBanner: show,
|
|
379
|
+
// Notification centre: so the user can still review it after
|
|
380
|
+
// dismissing the banner.
|
|
381
|
+
shouldShowList: show,
|
|
382
|
+
// No sound: the app is foregrounded, so the user is already looking at
|
|
383
|
+
// the screen the banner appears on.
|
|
384
|
+
shouldPlaySound: false,
|
|
385
|
+
// Badging is an app-level unread concept this adapter has no view of.
|
|
386
|
+
shouldSetBadge: false
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
return true;
|
|
391
|
+
} catch (error) {
|
|
392
|
+
log.warn('could not install the foreground notification handler', {
|
|
393
|
+
method: 'installForegroundNotificationHandler'
|
|
394
|
+
}, error);
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Subscribe to notification TAPS (responses) while the app is running.
|
|
401
|
+
*
|
|
402
|
+
* @param listener - Receives the raw, untrusted `content.data` of the tapped
|
|
403
|
+
* notification. Parsing/validation is the caller's job.
|
|
404
|
+
* @returns An unsubscribe function. Safe to call even if the subscription could
|
|
405
|
+
* not be established.
|
|
406
|
+
*/
|
|
407
|
+
async function subscribeToNotificationResponses(listener) {
|
|
408
|
+
const notifications = await loadNotifications();
|
|
409
|
+
if (!notifications) {
|
|
410
|
+
return () => undefined;
|
|
411
|
+
}
|
|
412
|
+
try {
|
|
413
|
+
const subscription = notifications.addNotificationResponseReceivedListener(response => {
|
|
414
|
+
listener(response.notification.request.content.data);
|
|
415
|
+
});
|
|
416
|
+
return () => subscription.remove();
|
|
417
|
+
} catch (error) {
|
|
418
|
+
log.warn('could not subscribe to notification taps', {
|
|
419
|
+
method: 'subscribeToNotificationResponses'
|
|
420
|
+
}, error);
|
|
421
|
+
return () => undefined;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
//# sourceMappingURL=deviceNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_core","require","_reactNative","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","log","createLogger","isRecord","value","loadNotifications","Platform","OS","Promise","resolve","then","error","warn","method","easProjectId","constants","debug","fromEasConfig","easConfig","projectId","length","extra","expoConfig","eas","undefined","pushTokenPlatform","hasNotificationPermission","notifications","permissions","getPermissionsAsync","granted","requestNotificationPermission","existing","canAskAgain","requested","requestPermissionsAsync","getExpoPushToken","token","getExpoPushTokenAsync","data","takeLaunchNotificationData","response","getLastNotificationResponse","notification","request","content","clearLastNotificationResponse","clearError","foregroundHandlerAttempted","ensureNotificationChannel","spec","setNotificationChannelAsync","id","name","importance","AndroidImportance","HIGH","DEFAULT","description","channelId","installForegroundNotificationHandler","decide","setNotificationHandler","handleNotification","show","shouldShowBanner","shouldShowList","shouldPlaySound","shouldSetBadge","subscribeToNotificationResponses","listener","subscription","addNotificationResponseReceivedListener","remove"],"sourceRoot":"../../../src","sources":["notifications/deviceNotifications.ts"],"mappings":";;;;;;;;;;;;;AAsCA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAAwC,SAAAE,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WA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