@oxy.so/services 6.1.0 → 8.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 +80 -136
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -20
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +5 -20
- package/lib/commonjs/index.js +21 -15
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +2 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +2 -3
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +16 -32
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +21 -12
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +2 -2
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +6 -17
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js +0 -8
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js +11 -5
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +325 -0
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +52 -56
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +141 -0
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +502 -194
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +211 -42
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js +186 -0
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js +103 -26
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/signInFlowStore.js +50 -0
- package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/signInMethods.js +12 -25
- package/lib/commonjs/ui/components/signIn/signInMethods.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +125 -119
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +11 -10
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +4 -4
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +19 -9
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +4 -4
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +23 -3
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +8 -8
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +27 -15
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +5 -2
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +8 -8
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -3
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +6 -6
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js +36 -20
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +6 -4
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +5 -5
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +2 -2
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +1 -4
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +2 -2
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollowTarget.js +5 -5
- package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js +4 -1
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +2 -2
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceFrameWidth.js +28 -0
- package/lib/commonjs/ui/hooks/useSurfaceFrameWidth.js.map +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -15
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +6 -4
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserBridge.js +247 -0
- package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -0
- package/lib/commonjs/ui/oauth/completeOAuthCode.js +1 -1
- package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +1 -1
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +9 -8
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -7
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js +35 -0
- package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +5 -5
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +3 -3
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeleteAccountScreen.js +19 -0
- package/lib/commonjs/ui/screens/DeleteAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DomainsScreen.js +217 -0
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileScreen.js +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +25 -11
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +1 -17
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LinkCommonsScreen.js +14 -0
- package/lib/commonjs/ui/screens/LinkCommonsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +57 -61
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +52 -62
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +5 -13
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +15 -24
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js +14 -0
- package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignInPasswordScreen.js +20 -0
- package/lib/commonjs/ui/screens/SignInPasswordScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +25 -17
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +8 -14
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +11 -9
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js +4 -4
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/session/backgroundSession.js +5 -40
- package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +3 -3
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
- package/lib/commonjs/ui/session/deviceCredentialTracker.js +42 -0
- package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -0
- package/lib/commonjs/ui/session/identityBinding.js +3 -3
- package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
- package/lib/commonjs/ui/session/index.js +6 -6
- package/lib/commonjs/ui/session/index.js.map +1 -1
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +2 -2
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/commonjs/ui/session/tokenTransport.js +3 -3
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
- package/lib/commonjs/ui/stores/assetStore.js +12 -0
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +6 -6
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js +1 -4
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/deviceCredential.js +11 -4
- package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -10
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js +2 -2
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +5 -20
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +5 -20
- package/lib/module/index.js +6 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +2 -1
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +2 -3
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +16 -32
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +1 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +21 -12
- package/lib/module/ui/components/SurfaceScreen.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/SignInRequestView.js +6 -17
- package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -1
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js +0 -8
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js +11 -5
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +321 -0
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +54 -58
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js +136 -0
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxySignInPanel.js +504 -194
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +212 -43
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js +181 -0
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -0
- package/lib/module/ui/components/signIn/accountFlowParts.js +97 -26
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/module/ui/components/signIn/signInFlowStore.js +44 -0
- package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -0
- package/lib/module/ui/components/signIn/signInMethods.js +12 -25
- package/lib/module/ui/components/signIn/signInMethods.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +121 -115
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +7 -7
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js +4 -4
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +19 -9
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +4 -4
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +23 -3
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +8 -8
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js +25 -14
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +5 -2
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +8 -8
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +4 -3
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +6 -6
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js +36 -20
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +6 -4
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +4 -4
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js +2 -2
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +1 -4
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +2 -2
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js +5 -5
- package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +6 -3
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useResolvedFileUrls.js +2 -2
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +3 -3
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceFrameWidth.js +24 -0
- package/lib/module/ui/hooks/useSurfaceFrameWidth.js.map +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js +0 -15
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +6 -4
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/module/ui/oauth/browserBridge.js +239 -0
- package/lib/module/ui/oauth/browserBridge.js.map +1 -0
- package/lib/module/ui/oauth/completeOAuthCode.js +1 -1
- package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/module/ui/oauth/explicitOAuthConsent.js +1 -1
- package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -1
- package/lib/module/ui/runtime/createOxyRuntime.js +4 -3
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/runtime/runtimeContext.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +7 -7
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSecurityPanelScreen.js +32 -0
- package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +3 -3
- package/lib/module/ui/screens/AccountSettingsScreen.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/AppInfoScreen.js +5 -5
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +3 -3
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.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/DeleteAccountScreen.js +17 -0
- package/lib/module/ui/screens/DeleteAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/DomainsScreen.js +212 -0
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -0
- package/lib/module/ui/screens/EditProfileScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +25 -11
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +1 -17
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/LinkCommonsScreen.js +12 -0
- package/lib/module/ui/screens/LinkCommonsScreen.js.map +1 -0
- package/lib/module/ui/screens/ManageAccountScreen.js +58 -62
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +53 -63
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +5 -13
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +16 -25
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInAuthenticatorScreen.js +12 -0
- package/lib/module/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
- package/lib/module/ui/screens/SignInPasswordScreen.js +18 -0
- package/lib/module/ui/screens/SignInPasswordScreen.js.map +1 -0
- 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 +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +26 -18
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +9 -15
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +12 -10
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/session/authStore.js +1 -1
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/session/backgroundSession.js +5 -40
- package/lib/module/ui/session/backgroundSession.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +1 -1
- package/lib/module/ui/session/createSessionClient.js.map +1 -1
- package/lib/module/ui/session/deviceCredentialTracker.js +38 -0
- package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -0
- package/lib/module/ui/session/identityBinding.js +1 -1
- package/lib/module/ui/session/identityBinding.js.map +1 -1
- package/lib/module/ui/session/index.js +1 -1
- package/lib/module/ui/session/index.js.map +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/module/ui/session/tokenTransport.js +3 -3
- package/lib/module/ui/session/tokenTransport.js.map +1 -1
- package/lib/module/ui/stores/assetStore.js +12 -0
- package/lib/module/ui/stores/assetStore.js.map +1 -1
- package/lib/module/ui/stores/followStore.js +6 -6
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/utils/accountDeletionHandoff.js +2 -5
- package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/deviceCredential.js +10 -3
- package/lib/module/ui/utils/deviceCredential.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -9
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js +2 -2
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +5 -5
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +3 -2
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +2 -3
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +8 -7
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +3 -4
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +1 -12
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts +7 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts +21 -19
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts +38 -12
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts +10 -20
- package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +2 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +4 -39
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +2 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +19 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +13 -20
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +5 -5
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +9 -7
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceFrameWidth.d.ts +12 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -15
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.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/commonjs/ui/navigation/surfaceRegistry.d.ts +7 -5
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts +97 -0
- package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +6 -2
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +2 -1
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/types.d.ts +2 -1
- package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
- package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
- package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.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/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts +3 -4
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +23 -0
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/index.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +3 -2
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +7 -0
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +10 -3
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -5
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +5 -5
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +3 -2
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +2 -3
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +8 -7
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +2 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +3 -4
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +2 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +2 -1
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +1 -12
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts +7 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts +21 -19
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +34 -0
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts +38 -12
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts +20 -0
- package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts +10 -20
- package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +2 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +4 -39
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +2 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +19 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +13 -20
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +5 -5
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollow.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +9 -7
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceFrameWidth.d.ts +12 -0
- package/lib/typescript/module/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -15
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.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/navigation/surfaceRegistry.d.ts +7 -5
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserBridge.d.ts +97 -0
- package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +6 -2
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +2 -1
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/types.d.ts +2 -1
- package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
- package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
- package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.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/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/backgroundSession.d.ts +3 -4
- package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +23 -0
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/identityBinding.d.ts +1 -1
- package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/index.d.ts +1 -1
- package/lib/typescript/module/ui/session/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +1 -1
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/tokenTransport.d.ts +3 -2
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts +7 -0
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts +10 -3
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -5
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/manifest.json +5 -20
- package/src/index.ts +8 -8
- package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +4 -4
- package/src/ui/boot/runProviderColdBoot.ts +3 -9
- package/src/ui/components/OxyAccountDialogScreen.tsx +2 -3
- package/src/ui/components/OxyAuthChooser.tsx +14 -36
- package/src/ui/components/OxySignInButton.tsx +1 -1
- package/src/ui/components/OxySignInRequestSurface.tsx +2 -1
- package/src/ui/components/ProfileButton.tsx +1 -1
- package/src/ui/components/SurfaceScreen.tsx +19 -11
- package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -6
- package/src/ui/components/authChooser/SignInRequestView.tsx +5 -23
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +1 -1
- package/src/ui/components/authChooser/primitives.tsx +1 -1
- package/src/ui/components/authChooser/requestSurfaces.tsx +2 -1
- package/src/ui/components/authChooser/signInFailureMessage.ts +1 -1
- package/src/ui/components/authChooser/signInProgress.ts +2 -1
- package/src/ui/components/authChooser/types.ts +1 -13
- package/src/ui/components/signIn/InlineCommonsQr.tsx +2 -2
- package/src/ui/components/signIn/OxyAccountPicker.tsx +1 -1
- package/src/ui/components/signIn/OxyAuthScreen.tsx +14 -5
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +294 -0
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +48 -61
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +43 -35
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +117 -0
- package/src/ui/components/signIn/OxySignInPanel.tsx +542 -203
- package/src/ui/components/signIn/OxySignUpPanel.tsx +186 -56
- package/src/ui/components/signIn/ReauthStep.tsx +201 -0
- package/src/ui/components/signIn/accountFlowParts.tsx +139 -33
- package/src/ui/components/signIn/signInFlowStore.ts +41 -0
- package/src/ui/components/signIn/signInMethods.ts +12 -27
- package/src/ui/context/OxyContext.tsx +124 -145
- package/src/ui/context/hooks/useAuthOperations.ts +9 -8
- package/src/ui/context/oxyContextTypes.ts +4 -41
- package/src/ui/context/useOxyAccountGraph.ts +6 -5
- package/src/ui/hooks/accountDialogSnapshot.ts +1 -1
- package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
- package/src/ui/hooks/mutations/useAccountMutations.ts +11 -10
- package/src/ui/hooks/mutations/useServicesMutations.ts +4 -4
- package/src/ui/hooks/queries/queryKeys.ts +26 -2
- package/src/ui/hooks/queries/useAccountQueries.ts +8 -8
- package/src/ui/hooks/queries/useAuthMethods.ts +22 -19
- package/src/ui/hooks/queries/useFileQueries.ts +2 -2
- package/src/ui/hooks/queries/usePaymentQueries.ts +8 -8
- package/src/ui/hooks/queries/useSecurityQueries.ts +4 -3
- package/src/ui/hooks/queries/useServicesQueries.ts +6 -6
- package/src/ui/hooks/useAssets.ts +26 -31
- package/src/ui/hooks/useAvatarPicker.ts +4 -4
- package/src/ui/hooks/useDeviceManagement.ts +4 -4
- package/src/ui/hooks/useDeviceSwitcher.ts +2 -7
- package/src/ui/hooks/useFileDownloadUrl.ts +1 -5
- package/src/ui/hooks/useFollow.ts +2 -2
- package/src/ui/hooks/useFollowTarget.ts +5 -5
- package/src/ui/hooks/useI18n.ts +6 -3
- package/src/ui/hooks/useResolvedFileUrls.ts +8 -6
- package/src/ui/hooks/useSessionManagement.ts +3 -3
- package/src/ui/hooks/useSurfaceFrameWidth.ts +21 -0
- package/src/ui/icons/subsetGlyphMaps.ts +0 -15
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +1 -1
- package/src/ui/navigation/accountDialogManager.ts +1 -1
- package/src/ui/navigation/routes.ts +11 -8
- package/src/ui/navigation/surfaceRegistry.ts +8 -6
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +8 -8
- package/src/ui/oauth/__tests__/browserBridge.test.ts +198 -0
- package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +1 -1
- package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +11 -11
- package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +7 -7
- package/src/ui/oauth/browserBridge.ts +234 -0
- package/src/ui/oauth/completeOAuthCode.ts +1 -1
- package/src/ui/oauth/explicitOAuthConsent.ts +1 -1
- package/src/ui/runtime/createOxyRuntime.ts +8 -16
- package/src/ui/runtime/runtimeContext.tsx +2 -1
- package/src/ui/runtime/types.ts +2 -1
- package/src/ui/screens/AccountMembersScreen.tsx +7 -7
- package/src/ui/screens/AccountSecurityPanelScreen.tsx +26 -0
- package/src/ui/screens/AccountSettingsScreen.tsx +3 -3
- package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
- package/src/ui/screens/AppInfoScreen.tsx +5 -5
- package/src/ui/screens/AvatarCropScreen.tsx +3 -3
- package/src/ui/screens/ChangeAvatarScreen.tsx +1 -1
- package/src/ui/screens/CreateAccountScreen.tsx +1 -1
- package/src/ui/screens/DeleteAccountScreen.tsx +13 -0
- package/src/ui/screens/DomainsScreen.tsx +187 -0
- package/src/ui/screens/EditProfileScreen.tsx +1 -1
- package/src/ui/screens/FileManagementScreen.tsx +15 -21
- package/src/ui/screens/HelpSupportScreen.tsx +0 -15
- package/src/ui/screens/LinkCommonsScreen.tsx +13 -0
- package/src/ui/screens/ManageAccountScreen.tsx +47 -82
- package/src/ui/screens/PrivacySettingsScreen.tsx +48 -67
- package/src/ui/screens/ProfileScreen.tsx +5 -10
- package/src/ui/screens/SearchSettingsScreen.tsx +15 -27
- package/src/ui/screens/SignInAuthenticatorScreen.tsx +13 -0
- package/src/ui/screens/SignInPasswordScreen.tsx +13 -0
- package/src/ui/screens/UserListScreen.tsx +3 -3
- package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
- package/src/ui/screens/trust/TrustCenterScreen.tsx +25 -29
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +9 -19
- package/src/ui/screens/trust/TrustRulesScreen.tsx +14 -14
- package/src/ui/session/__tests__/authStore.test.ts +1 -1
- package/src/ui/session/__tests__/backgroundSession.test.ts +2 -61
- package/src/ui/session/__tests__/createSessionClient.test.ts +7 -9
- package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +1 -1
- package/src/ui/session/__tests__/tokenTransport.test.ts +9 -7
- package/src/ui/session/authStore.ts +1 -7
- package/src/ui/session/backgroundSession.ts +5 -41
- package/src/ui/session/createSessionClient.ts +2 -6
- package/src/ui/session/deviceCredentialTracker.ts +49 -0
- package/src/ui/session/identityBinding.ts +1 -6
- package/src/ui/session/index.ts +1 -1
- package/src/ui/session/nativeSecureStorage.ts +1 -1
- package/src/ui/session/sharedDeviceCredentialStore.ts +1 -6
- package/src/ui/session/tokenTransport.ts +5 -4
- package/src/ui/stores/__tests__/followStore.test.ts +13 -15
- package/src/ui/stores/assetStore.ts +15 -0
- package/src/ui/stores/followStore.ts +7 -7
- package/src/ui/types/navigation.ts +2 -1
- package/src/ui/utils/accountDeletionHandoff.ts +2 -4
- package/src/ui/utils/avatarUtils.ts +1 -1
- package/src/ui/utils/deviceCredential.ts +11 -4
- package/src/ui/utils/fileManagement.ts +0 -12
- package/src/ui/utils/sessionHelpers.ts +2 -2
- package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js +0 -236
- package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
- package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js +0 -170
- package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
- package/lib/commonjs/ui/components/signIn/passkeyError.js +0 -46
- package/lib/commonjs/ui/components/signIn/passkeyError.js.map +0 -1
- package/lib/commonjs/ui/context/passkeyFlow.js +0 -114
- package/lib/commonjs/ui/context/passkeyFlow.js.map +0 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +0 -162
- package/lib/commonjs/ui/screens/FAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -601
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -968
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -132
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/commonjs/webauthn/passkeyClient.js +0 -39
- package/lib/commonjs/webauthn/passkeyClient.js.map +0 -1
- package/lib/commonjs/webauthn/passkeyClient.native.js +0 -34
- package/lib/commonjs/webauthn/passkeyClient.native.js.map +0 -1
- package/lib/commonjs/webauthn/passkeyClient.web.js +0 -57
- package/lib/commonjs/webauthn/passkeyClient.web.js.map +0 -1
- package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js +0 -231
- package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
- package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js +0 -165
- package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
- package/lib/module/ui/components/signIn/passkeyError.js +0 -40
- package/lib/module/ui/components/signIn/passkeyError.js.map +0 -1
- package/lib/module/ui/context/passkeyFlow.js +0 -107
- package/lib/module/ui/context/passkeyFlow.js.map +0 -1
- package/lib/module/ui/screens/FAQScreen.js +0 -157
- package/lib/module/ui/screens/FAQScreen.js.map +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -599
- package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -963
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -127
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/module/webauthn/passkeyClient.js +0 -33
- package/lib/module/webauthn/passkeyClient.js.map +0 -1
- package/lib/module/webauthn/passkeyClient.native.js +0 -28
- package/lib/module/webauthn/passkeyClient.native.js.map +0 -1
- package/lib/module/webauthn/passkeyClient.web.js +0 -52
- package/lib/module/webauthn/passkeyClient.web.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts +0 -16
- package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +0 -92
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +0 -20
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +0 -1
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +0 -15
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +0 -36
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
- package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
- package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts +0 -16
- package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts +0 -92
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
- package/lib/typescript/module/webauthn/passkeyClient.d.ts +0 -20
- package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +0 -1
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +0 -15
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +0 -1
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +0 -36
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +0 -1
- package/src/ui/components/signIn/OxyCreateAccountPanel.tsx +0 -207
- package/src/ui/components/signIn/OxyRecoverAccountPanel.tsx +0 -154
- package/src/ui/components/signIn/passkeyError.ts +0 -44
- package/src/ui/context/__tests__/passkeyFlow.test.ts +0 -239
- package/src/ui/context/passkeyFlow.ts +0 -145
- package/src/ui/screens/FAQScreen.tsx +0 -200
- package/src/ui/screens/FeedbackScreen.tsx +0 -766
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +0 -1103
- package/src/ui/screens/SavesCollectionsScreen.tsx +0 -167
- package/src/webauthn/passkeyClient.native.ts +0 -26
- package/src/webauthn/passkeyClient.ts +0 -31
- package/src/webauthn/passkeyClient.web.ts +0 -56
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
2
|
import { authenticatedApiCall } from '@oxy.so/core';
|
|
3
3
|
import type {
|
|
4
|
+
AssetMetadata,
|
|
4
5
|
AssetUploadInput,
|
|
5
6
|
NotificationPreferences,
|
|
6
7
|
PrivacySettings,
|
|
@@ -37,7 +38,7 @@ export const useUpdateProfile = () => {
|
|
|
37
38
|
return authenticatedApiCall<User>(
|
|
38
39
|
oxyServices,
|
|
39
40
|
activeSessionId,
|
|
40
|
-
() => oxyServices.
|
|
41
|
+
() => oxyServices.users.updateMe(updates)
|
|
41
42
|
);
|
|
42
43
|
},
|
|
43
44
|
// Optimistic update
|
|
@@ -134,7 +135,7 @@ export const useUploadAvatar = () => {
|
|
|
134
135
|
mutationKey: [...mutationKeys.account.uploadAvatar],
|
|
135
136
|
mutationFn: async (file: { uri: string; type?: string; name?: string; size?: number }) => {
|
|
136
137
|
return authenticatedApiCall<User>(oxyServices, activeSessionId, async () => {
|
|
137
|
-
const uploadResult = await oxyServices.
|
|
138
|
+
const uploadResult = await oxyServices.assets.upload(file, { visibility: 'public' });
|
|
138
139
|
const fileId = uploadResult?.file?.id;
|
|
139
140
|
|
|
140
141
|
if (!fileId || typeof fileId !== 'string') {
|
|
@@ -142,7 +143,7 @@ export const useUploadAvatar = () => {
|
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
// Update profile with file ID
|
|
145
|
-
return await oxyServices.
|
|
146
|
+
return await oxyServices.users.updateMe({ avatar: fileId });
|
|
146
147
|
});
|
|
147
148
|
},
|
|
148
149
|
onMutate: async (file) => {
|
|
@@ -255,7 +256,7 @@ export const useUpdateAccountSettings = () => {
|
|
|
255
256
|
const updatedPrivacy = await authenticatedApiCall<PrivacySettings>(
|
|
256
257
|
oxyServices,
|
|
257
258
|
activeSessionId,
|
|
258
|
-
() => oxyServices.
|
|
259
|
+
() => oxyServices.privacy.updateSettings(updates, userId)
|
|
259
260
|
);
|
|
260
261
|
// Rebuild against the dispatch-time snapshot, NOT the live cache.
|
|
261
262
|
// The cache may have been mutated by a sibling write between
|
|
@@ -361,7 +362,7 @@ export const useUpdatePrivacySettings = () => {
|
|
|
361
362
|
return authenticatedApiCall<PrivacySettings>(
|
|
362
363
|
oxyServices,
|
|
363
364
|
activeSessionId,
|
|
364
|
-
() => oxyServices.
|
|
365
|
+
() => oxyServices.privacy.updateSettings(settings, targetUserId)
|
|
365
366
|
);
|
|
366
367
|
},
|
|
367
368
|
// Optimistic update
|
|
@@ -532,7 +533,7 @@ export const useUpdateNotificationPreferences = () => {
|
|
|
532
533
|
return authenticatedApiCall<User>(
|
|
533
534
|
oxyServices,
|
|
534
535
|
activeSessionId,
|
|
535
|
-
() => oxyServices.
|
|
536
|
+
() => oxyServices.users.updateMe({ notificationPreferences: preferences })
|
|
536
537
|
);
|
|
537
538
|
},
|
|
538
539
|
onMutate: async (preferences) => {
|
|
@@ -590,7 +591,7 @@ export const useUpdateUserPreferences = () => {
|
|
|
590
591
|
return authenticatedApiCall<User>(
|
|
591
592
|
oxyServices,
|
|
592
593
|
activeSessionId,
|
|
593
|
-
() => oxyServices.
|
|
594
|
+
() => oxyServices.users.updateMe({ userPreferences: preferences })
|
|
594
595
|
);
|
|
595
596
|
},
|
|
596
597
|
onMutate: async (preferences) => {
|
|
@@ -643,7 +644,7 @@ export const useRevokeConnectedApp = () => {
|
|
|
643
644
|
mutationKey: [...mutationKeys.connectedApps.revoke],
|
|
644
645
|
mutationFn: async (applicationId: string) => {
|
|
645
646
|
return authenticatedApiCall<void>(oxyServices, activeSessionId, () =>
|
|
646
|
-
oxyServices.
|
|
647
|
+
oxyServices.apps.connected.revoke(applicationId)
|
|
647
648
|
);
|
|
648
649
|
},
|
|
649
650
|
onSuccess: () => {
|
|
@@ -673,13 +674,13 @@ export const useUploadFile = () => {
|
|
|
673
674
|
}: {
|
|
674
675
|
file: AssetUploadInput;
|
|
675
676
|
visibility?: 'private' | 'public' | 'unlisted';
|
|
676
|
-
metadata?:
|
|
677
|
+
metadata?: AssetMetadata;
|
|
677
678
|
onProgress?: (progress: number) => void;
|
|
678
679
|
}) => {
|
|
679
680
|
return authenticatedApiCall<UploadResult>(
|
|
680
681
|
oxyServices,
|
|
681
682
|
activeSessionId,
|
|
682
|
-
() => oxyServices.
|
|
683
|
+
() => oxyServices.assets.upload(file, { visibility, metadata, onProgress })
|
|
683
684
|
);
|
|
684
685
|
},
|
|
685
686
|
});
|
|
@@ -48,7 +48,7 @@ export const useLogoutSession = () => {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
const sessionToLogout = targetSessionId || activeSessionId;
|
|
51
|
-
await oxyServices.
|
|
51
|
+
await oxyServices.session.logout(activeSessionId, sessionToLogout);
|
|
52
52
|
|
|
53
53
|
return sessionToLogout;
|
|
54
54
|
},
|
|
@@ -101,7 +101,7 @@ export const useLogoutAll = () => {
|
|
|
101
101
|
throw new Error('No active session');
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
await oxyServices.
|
|
104
|
+
await oxyServices.session.logoutAll(activeSessionId);
|
|
105
105
|
await clearSessionState();
|
|
106
106
|
},
|
|
107
107
|
onSuccess: () => {
|
|
@@ -129,7 +129,7 @@ export const useUpdateDeviceName = () => {
|
|
|
129
129
|
throw new Error('No active session');
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
return await oxyServices.
|
|
132
|
+
return await oxyServices.devices.rename(activeSessionId, deviceName);
|
|
133
133
|
},
|
|
134
134
|
onSuccess: () => {
|
|
135
135
|
// Invalidate device and session queries
|
|
@@ -153,7 +153,7 @@ export const useRemoveDevice = () => {
|
|
|
153
153
|
return useMutation({
|
|
154
154
|
mutationKey: [...mutationKeys.session.removeDevice],
|
|
155
155
|
mutationFn: async (deviceId: string) => {
|
|
156
|
-
await oxyServices.
|
|
156
|
+
await oxyServices.devices.remove(deviceId);
|
|
157
157
|
return deviceId;
|
|
158
158
|
},
|
|
159
159
|
onSuccess: () => {
|
|
@@ -75,6 +75,8 @@ export const queryKeys = {
|
|
|
75
75
|
privacy: {
|
|
76
76
|
all: ['privacy'] as const,
|
|
77
77
|
settings: (userId?: string) => [...queryKeys.privacy.all, 'settings', userId || 'current'] as const,
|
|
78
|
+
/** The active account's blocked + restricted lists. */
|
|
79
|
+
lists: (userId?: string) => [...queryKeys.privacy.all, 'lists', userId || 'current'] as const,
|
|
78
80
|
},
|
|
79
81
|
|
|
80
82
|
// Security activity queries
|
|
@@ -88,7 +90,13 @@ export const queryKeys = {
|
|
|
88
90
|
[...queryKeys.security.all, 'infinite', limit, eventType] as const,
|
|
89
91
|
},
|
|
90
92
|
|
|
91
|
-
// Linked authentication methods (
|
|
93
|
+
// Linked authentication methods (the identity key)
|
|
94
|
+
/** How the signed-in account signs in: email, password, authenticator (`GET /users/me/sign-in-methods`). */
|
|
95
|
+
signInMethods: {
|
|
96
|
+
all: ['signInMethods'] as const,
|
|
97
|
+
current: (userId?: string) => [...queryKeys.signInMethods.all, userId || 'current'] as const,
|
|
98
|
+
},
|
|
99
|
+
|
|
92
100
|
authMethods: {
|
|
93
101
|
all: ['authMethods'] as const,
|
|
94
102
|
list: (userId?: string) => [...queryKeys.authMethods.all, 'list', userId || 'current'] as const,
|
|
@@ -119,6 +127,22 @@ export const queryKeys = {
|
|
|
119
127
|
counts: (userId: string) => [...queryKeys.follow.all, 'counts', userId] as const,
|
|
120
128
|
},
|
|
121
129
|
|
|
130
|
+
// Oxy Trust reputation (the active account's standing)
|
|
131
|
+
reputation: {
|
|
132
|
+
all: ['reputation'] as const,
|
|
133
|
+
balance: (userId?: string) => [...queryKeys.reputation.all, 'balance', userId || 'current'] as const,
|
|
134
|
+
transactions: (userId: string | undefined, limit: number, offset = 0) =>
|
|
135
|
+
[...queryKeys.reputation.all, 'transactions', userId || 'current', limit, offset] as const,
|
|
136
|
+
rules: () => [...queryKeys.reputation.all, 'rules'] as const,
|
|
137
|
+
leaderboard: () => [...queryKeys.reputation.all, 'leaderboard'] as const,
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
// Verified domains on the signed-in identity
|
|
141
|
+
domains: {
|
|
142
|
+
all: ['domains'] as const,
|
|
143
|
+
list: (userId?: string) => [...queryKeys.domains.all, 'list', userId || 'current'] as const,
|
|
144
|
+
},
|
|
145
|
+
|
|
122
146
|
// Payment / wallet / subscription queries
|
|
123
147
|
payments: {
|
|
124
148
|
all: ['payments'] as const,
|
|
@@ -191,7 +215,7 @@ export const invalidateStorageQueries = (queryClient: QueryClient): void => {
|
|
|
191
215
|
|
|
192
216
|
/**
|
|
193
217
|
* Helper to invalidate the user's linked auth-methods list (call after linking
|
|
194
|
-
* or
|
|
218
|
+
* or rotating the identity key).
|
|
195
219
|
*/
|
|
196
220
|
export const invalidateAuthMethodsQueries = (queryClient: QueryClient): void => {
|
|
197
221
|
queryClient.invalidateQueries({ queryKey: queryKeys.authMethods.all });
|
|
@@ -19,7 +19,7 @@ export const useUserProfile = (sessionId: string | null, options?: { enabled?: b
|
|
|
19
19
|
if (!sessionId) {
|
|
20
20
|
throw new Error('Session ID is required');
|
|
21
21
|
}
|
|
22
|
-
return await oxyServices.
|
|
22
|
+
return await oxyServices.users.bySession(sessionId);
|
|
23
23
|
},
|
|
24
24
|
enabled: (options?.enabled !== false) && !!sessionId,
|
|
25
25
|
staleTime: 5 * 60 * 1000, // 5 minutes
|
|
@@ -37,7 +37,7 @@ export const useUserProfiles = (sessionIds: string[], options?: { enabled?: bool
|
|
|
37
37
|
queries: sessionIds.map((sessionId) => ({
|
|
38
38
|
queryKey: queryKeys.users.profile(sessionId),
|
|
39
39
|
queryFn: async () => {
|
|
40
|
-
const results = await oxyServices.
|
|
40
|
+
const results = await oxyServices.users.bySessions([sessionId]);
|
|
41
41
|
return results[0]?.user || null;
|
|
42
42
|
},
|
|
43
43
|
enabled: (options?.enabled !== false) && !!sessionId,
|
|
@@ -76,7 +76,7 @@ export const useCurrentUser = (options?: { enabled?: boolean }) => {
|
|
|
76
76
|
const query = useQuery({
|
|
77
77
|
queryKey: queryKeys.accounts.current(activeSessionId),
|
|
78
78
|
queryFn: async () => {
|
|
79
|
-
return await oxyServices.
|
|
79
|
+
return await oxyServices.users.me();
|
|
80
80
|
},
|
|
81
81
|
enabled: (options?.enabled !== false) && isAuthenticated && !!activeSessionId,
|
|
82
82
|
staleTime: 1 * 60 * 1000, // 1 minute for current user
|
|
@@ -175,7 +175,7 @@ export const useUserById = (userId: string | null, options?: { enabled?: boolean
|
|
|
175
175
|
if (!userId) {
|
|
176
176
|
throw new Error('User ID is required');
|
|
177
177
|
}
|
|
178
|
-
return await oxyServices.
|
|
178
|
+
return await oxyServices.users.get(userId);
|
|
179
179
|
},
|
|
180
180
|
enabled: (options?.enabled !== false) && !!userId,
|
|
181
181
|
staleTime: 5 * 60 * 1000,
|
|
@@ -209,7 +209,7 @@ export const useUserByUsername = (username: string | null, options?: { enabled?:
|
|
|
209
209
|
// Match queryKeys.users.byUsername normalization so the cache key and
|
|
210
210
|
// the API request agree (case-insensitive local handles).
|
|
211
211
|
const normalizedUsername = username.trim().toLowerCase();
|
|
212
|
-
return await oxyServices.
|
|
212
|
+
return await oxyServices.users.byUsername(normalizedUsername);
|
|
213
213
|
},
|
|
214
214
|
enabled: (options?.enabled !== false) && !!username,
|
|
215
215
|
staleTime: 5 * 60 * 1000,
|
|
@@ -245,7 +245,7 @@ export const useUsersBySessions = (sessionIds: string[], options?: { enabled?: b
|
|
|
245
245
|
if (sessionIds.length === 0) {
|
|
246
246
|
return [];
|
|
247
247
|
}
|
|
248
|
-
return await oxyServices.
|
|
248
|
+
return await oxyServices.users.bySessions(sessionIds);
|
|
249
249
|
},
|
|
250
250
|
enabled: (options?.enabled !== false) && sessionIds.length > 0,
|
|
251
251
|
staleTime: 5 * 60 * 1000,
|
|
@@ -267,7 +267,7 @@ export const useConnectedApps = (options?: { enabled?: boolean }) => {
|
|
|
267
267
|
return authenticatedApiCall<ConnectedApp[]>(
|
|
268
268
|
oxyServices,
|
|
269
269
|
activeSessionId,
|
|
270
|
-
() => oxyServices.
|
|
270
|
+
() => oxyServices.apps.connected.list()
|
|
271
271
|
);
|
|
272
272
|
},
|
|
273
273
|
enabled: (options?.enabled !== false) && isAuthenticated,
|
|
@@ -296,7 +296,7 @@ export const usePrivacySettings = (userId?: string, options?: { enabled?: boolea
|
|
|
296
296
|
return authenticatedApiCall(
|
|
297
297
|
oxyServices,
|
|
298
298
|
activeSessionId,
|
|
299
|
-
() => oxyServices.
|
|
299
|
+
() => oxyServices.privacy.settings(targetUserId)
|
|
300
300
|
);
|
|
301
301
|
},
|
|
302
302
|
enabled: (options?.enabled !== false) && !!targetUserId,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
1
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import type { AuthMethodEntry, AuthMethodsResponse } from '@oxy.so/contracts';
|
|
2
|
+
import type { AuthMethodEntry, AuthMethodsResponse, SignInMethods } from '@oxy.so/contracts';
|
|
4
3
|
import { queryKeys } from './queryKeys';
|
|
5
4
|
import { useOxy } from '../../context/OxyContext';
|
|
6
5
|
|
|
@@ -8,38 +7,42 @@ import { useOxy } from '../../context/OxyContext';
|
|
|
8
7
|
const EMPTY_METHODS: readonly AuthMethodEntry[] = Object.freeze([]);
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
|
-
* The current account's linked authentication methods (`GET /auth/methods`)
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `passkeys` is the `type === 'webauthn'` subset — one entry per registered
|
|
16
|
-
* credential. Invalidate via `queryKeys.authMethods.all` after linking a passkey
|
|
17
|
-
* (`useOxy().addPasskey()` does this) or removing one.
|
|
10
|
+
* The current account's linked authentication methods (`GET /auth/methods`).
|
|
11
|
+
* Backs the security / account surfaces that let a user see their identity key
|
|
12
|
+
* and social logins.
|
|
18
13
|
*/
|
|
19
14
|
export const useAuthMethods = (options?: { enabled?: boolean }) => {
|
|
20
15
|
const { oxyServices, activeSessionId } = useOxy();
|
|
21
16
|
|
|
22
17
|
const query = useQuery<AuthMethodsResponse>({
|
|
23
18
|
queryKey: queryKeys.authMethods.list(),
|
|
24
|
-
queryFn: () => oxyServices.
|
|
19
|
+
queryFn: () => oxyServices.identity.authMethods(),
|
|
25
20
|
enabled: options?.enabled !== false && !!activeSessionId,
|
|
26
21
|
staleTime: 5 * 60 * 1000, // 5 minutes
|
|
27
22
|
gcTime: 10 * 60 * 1000, // 10 minutes
|
|
28
23
|
});
|
|
29
24
|
|
|
30
|
-
const methods = query.data?.methods ?? EMPTY_METHODS;
|
|
31
|
-
const passkeys = useMemo(
|
|
32
|
-
() => methods.filter((method) => method.type === 'webauthn'),
|
|
33
|
-
[methods],
|
|
34
|
-
);
|
|
35
|
-
|
|
36
25
|
return {
|
|
37
26
|
...query,
|
|
38
27
|
/** Every linked auth method. Empty while loading. */
|
|
39
|
-
methods,
|
|
40
|
-
/** The registered passkeys (a `type === 'webauthn'` subset of `methods`). */
|
|
41
|
-
passkeys,
|
|
28
|
+
methods: query.data?.methods ?? EMPTY_METHODS,
|
|
42
29
|
/** The account's DID, or `null` while loading. */
|
|
43
30
|
did: query.data?.did ?? null,
|
|
44
31
|
};
|
|
45
32
|
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* How the signed-in account signs in (`GET /users/me/sign-in-methods`): whether
|
|
36
|
+
* it has an email, a password, an authenticator app, and how many backup codes
|
|
37
|
+
* are left. Invalidate `queryKeys.signInMethods.all` after changing any of them
|
|
38
|
+
* (the security panels do).
|
|
39
|
+
*/
|
|
40
|
+
export const useSignInMethods = (options?: { enabled?: boolean }) => {
|
|
41
|
+
const { oxyServices, activeSessionId, user } = useOxy();
|
|
42
|
+
return useQuery<SignInMethods>({
|
|
43
|
+
queryKey: queryKeys.signInMethods.current(user?.id),
|
|
44
|
+
queryFn: () => oxyServices.auth.methods(),
|
|
45
|
+
enabled: options?.enabled !== false && !!activeSessionId,
|
|
46
|
+
staleTime: 60 * 1000,
|
|
47
|
+
});
|
|
48
|
+
};
|
|
@@ -21,7 +21,7 @@ import { queryKeys } from './queryKeys';
|
|
|
21
21
|
/** Files fetched per page. */
|
|
22
22
|
export const FILES_PAGE_SIZE = 40;
|
|
23
23
|
|
|
24
|
-
/** Raw file record as returned by `oxyServices.
|
|
24
|
+
/** Raw file record as returned by `oxyServices.assets.list` / `assetUpload`. */
|
|
25
25
|
export interface RawUserFile {
|
|
26
26
|
id: string;
|
|
27
27
|
originalName?: string;
|
|
@@ -68,7 +68,7 @@ export const useUserFilesInfinite = (ownerId?: string) => {
|
|
|
68
68
|
queryKey: queryKeys.files.list(ownerId),
|
|
69
69
|
queryFn: async ({ pageParam }) => {
|
|
70
70
|
const offset = typeof pageParam === 'number' ? pageParam : 0;
|
|
71
|
-
const response = await oxyServices.
|
|
71
|
+
const response = await oxyServices.assets.list({ limit: FILES_PAGE_SIZE, offset });
|
|
72
72
|
const raw = (response.files ?? []) as RawUserFile[];
|
|
73
73
|
const files = raw.map(mapRawFileToMetadata);
|
|
74
74
|
return {
|
|
@@ -29,7 +29,7 @@ import type {
|
|
|
29
29
|
/**
|
|
30
30
|
* Get the current user's subscription.
|
|
31
31
|
*
|
|
32
|
-
* Wraps `oxyServices.
|
|
32
|
+
* Wraps `oxyServices.billing.subscription()`
|
|
33
33
|
* (`GET /subscription/:userId`, billing-first). Returns the persisted
|
|
34
34
|
* subscription or the API's `{ plan: 'basic' }` fallback when the user has
|
|
35
35
|
* never subscribed.
|
|
@@ -43,7 +43,7 @@ export const useUserSubscription = (options?: { enabled?: boolean }) => {
|
|
|
43
43
|
return authenticatedApiCall<Subscription>(
|
|
44
44
|
oxyServices,
|
|
45
45
|
activeSessionId,
|
|
46
|
-
() => oxyServices.
|
|
46
|
+
() => oxyServices.billing.subscription(),
|
|
47
47
|
);
|
|
48
48
|
},
|
|
49
49
|
enabled: (options?.enabled !== false) && isAuthenticated && !!user?.id,
|
|
@@ -56,7 +56,7 @@ export const useUserSubscription = (options?: { enabled?: boolean }) => {
|
|
|
56
56
|
/**
|
|
57
57
|
* Get the current user's payment / billing history.
|
|
58
58
|
*
|
|
59
|
-
* Wraps `oxyServices.
|
|
59
|
+
* Wraps `oxyServices.billing.payments()` (`GET /payments/user`), which
|
|
60
60
|
* returns the user's `deposit` and `purchase` transactions newest-first.
|
|
61
61
|
*/
|
|
62
62
|
export const useUserPayments = (options?: { enabled?: boolean }) => {
|
|
@@ -68,7 +68,7 @@ export const useUserPayments = (options?: { enabled?: boolean }) => {
|
|
|
68
68
|
return authenticatedApiCall<Payment[]>(
|
|
69
69
|
oxyServices,
|
|
70
70
|
activeSessionId,
|
|
71
|
-
() => oxyServices.
|
|
71
|
+
() => oxyServices.billing.payments(),
|
|
72
72
|
);
|
|
73
73
|
},
|
|
74
74
|
enabled: (options?.enabled !== false) && isAuthenticated && !!user?.id,
|
|
@@ -81,7 +81,7 @@ export const useUserPayments = (options?: { enabled?: boolean }) => {
|
|
|
81
81
|
/**
|
|
82
82
|
* Get the current user's FairCoin wallet balance.
|
|
83
83
|
*
|
|
84
|
-
* Wraps `oxyServices.
|
|
84
|
+
* Wraps `oxyServices.billing.wallet()` (`GET /wallet/:userId`).
|
|
85
85
|
* Balance changes frequently, so the fresh window is intentionally short.
|
|
86
86
|
*/
|
|
87
87
|
export const useUserWallet = (options?: { enabled?: boolean }) => {
|
|
@@ -93,7 +93,7 @@ export const useUserWallet = (options?: { enabled?: boolean }) => {
|
|
|
93
93
|
return authenticatedApiCall<Wallet>(
|
|
94
94
|
oxyServices,
|
|
95
95
|
activeSessionId,
|
|
96
|
-
() => oxyServices.
|
|
96
|
+
() => oxyServices.billing.wallet(),
|
|
97
97
|
);
|
|
98
98
|
},
|
|
99
99
|
enabled: (options?.enabled !== false) && isAuthenticated && !!user?.id,
|
|
@@ -105,7 +105,7 @@ export const useUserWallet = (options?: { enabled?: boolean }) => {
|
|
|
105
105
|
/**
|
|
106
106
|
* Get the current user's wallet transaction history (paginated).
|
|
107
107
|
*
|
|
108
|
-
* Wraps `oxyServices.
|
|
108
|
+
* Wraps `oxyServices.billing.walletTransactions(options)`
|
|
109
109
|
* (`GET /wallet/transactions/:userId`). The API responds with a
|
|
110
110
|
* `{ data, pagination }` envelope, preserved here as
|
|
111
111
|
* `WalletTransactionsResponse`.
|
|
@@ -127,7 +127,7 @@ export const useUserWalletTransactions = (
|
|
|
127
127
|
return authenticatedApiCall<WalletTransactionsResponse>(
|
|
128
128
|
oxyServices,
|
|
129
129
|
activeSessionId,
|
|
130
|
-
() => oxyServices.
|
|
130
|
+
() => oxyServices.billing.walletTransactions({ limit, offset }),
|
|
131
131
|
);
|
|
132
132
|
},
|
|
133
133
|
enabled: (options?.enabled !== false) && isAuthenticated && !!user?.id,
|
|
@@ -27,7 +27,7 @@ export const useSecurityActivity = (
|
|
|
27
27
|
throw new Error('No active session');
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const response = await oxyServices.
|
|
30
|
+
const response = await oxyServices.devices.securityActivity(
|
|
31
31
|
options?.limit,
|
|
32
32
|
options?.offset,
|
|
33
33
|
options?.eventType
|
|
@@ -54,7 +54,8 @@ export const useRecentSecurityActivity = (limit = 10) => {
|
|
|
54
54
|
throw new Error('No active session');
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
const page = await oxyServices.devices.securityActivity(limit, 0);
|
|
58
|
+
return page.data;
|
|
58
59
|
},
|
|
59
60
|
enabled: !!activeSessionId,
|
|
60
61
|
staleTime: 5 * 60 * 1000, // 5 minutes
|
|
@@ -85,7 +86,7 @@ export const useInfiniteSecurityActivity = (
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
const offset = typeof pageParam === 'number' ? pageParam : 0;
|
|
88
|
-
return await oxyServices.
|
|
89
|
+
return await oxyServices.devices.securityActivity(
|
|
89
90
|
limit,
|
|
90
91
|
offset,
|
|
91
92
|
options?.eventType
|
|
@@ -50,7 +50,7 @@ export const useSession = (sessionId: string | null, options?: { enabled?: boole
|
|
|
50
50
|
throw new Error('Session ID is required');
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const validation = await oxyServices.
|
|
53
|
+
const validation = await oxyServices.session.validate(sessionId, { useHeaderValidation: true });
|
|
54
54
|
if (!validation?.valid || !validation.user) {
|
|
55
55
|
throw new Error('Session not found or invalid');
|
|
56
56
|
}
|
|
@@ -84,7 +84,7 @@ export const useDeviceSessions = (options?: { enabled?: boolean }) => {
|
|
|
84
84
|
throw new Error('No active session');
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
return await oxyServices.
|
|
87
|
+
return await oxyServices.devices.sessions(activeSessionId);
|
|
88
88
|
},
|
|
89
89
|
enabled: (options?.enabled !== false) && !!activeSessionId,
|
|
90
90
|
staleTime: 2 * 60 * 1000,
|
|
@@ -104,7 +104,7 @@ export const useUserDevices = (options?: { enabled?: boolean }) => {
|
|
|
104
104
|
return authenticatedApiCall(
|
|
105
105
|
oxyServices,
|
|
106
106
|
activeSessionId,
|
|
107
|
-
() => oxyServices.
|
|
107
|
+
() => oxyServices.devices.list()
|
|
108
108
|
);
|
|
109
109
|
},
|
|
110
110
|
enabled: (options?.enabled !== false) && isAuthenticated && !!activeSessionId,
|
|
@@ -122,7 +122,7 @@ export const useSecurityInfo = (options?: { enabled?: boolean }) => {
|
|
|
122
122
|
return useQuery({
|
|
123
123
|
queryKey: [...queryKeys.devices.all, 'security'],
|
|
124
124
|
queryFn: async () => {
|
|
125
|
-
return await oxyServices.
|
|
125
|
+
return await oxyServices.devices.securityInfo();
|
|
126
126
|
},
|
|
127
127
|
enabled: (options?.enabled !== false) && isAuthenticated,
|
|
128
128
|
staleTime: 5 * 60 * 1000,
|
|
@@ -132,7 +132,7 @@ export const useSecurityInfo = (options?: { enabled?: boolean }) => {
|
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Get account storage usage (server-aggregated usage across assets, mail,
|
|
135
|
-
* recordings, etc.). Wraps `oxyServices.
|
|
135
|
+
* recordings, etc.). Wraps `oxyServices.assets.usage()` in a
|
|
136
136
|
* TanStack query so consumers get caching, background refetch, and a
|
|
137
137
|
* consistent `isLoading` / `refetch` surface instead of hand-rolled
|
|
138
138
|
* `useEffect` fetches.
|
|
@@ -146,7 +146,7 @@ export const useAccountStorageUsage = (options?: { enabled?: boolean }) => {
|
|
|
146
146
|
return authenticatedApiCall(
|
|
147
147
|
oxyServices,
|
|
148
148
|
activeSessionId,
|
|
149
|
-
() => oxyServices.
|
|
149
|
+
() => oxyServices.assets.usage()
|
|
150
150
|
);
|
|
151
151
|
},
|
|
152
152
|
enabled: (options?.enabled !== false) && isAuthenticated && !!activeSessionId,
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { useAssetStore } from '../stores/assetStore';
|
|
3
3
|
import type { OxyServices } from '@oxy.so/core';
|
|
4
|
-
import {
|
|
5
|
-
type Asset,
|
|
6
|
-
AssetLinkRequest,
|
|
7
|
-
AssetUnlinkRequest,
|
|
8
|
-
AssetUploadProgress
|
|
9
|
-
} from '@oxy.so/core';
|
|
4
|
+
import type { Asset, AssetMetadata, AssetRecord, AssetVariant, UploadedAsset } from '@oxy.so/core';
|
|
10
5
|
|
|
11
6
|
// Create a singleton instance for the hook
|
|
12
7
|
let oxyInstance: OxyServices | null = null;
|
|
@@ -24,7 +19,7 @@ export const useAssets = () => {
|
|
|
24
19
|
uploadProgress,
|
|
25
20
|
loading,
|
|
26
21
|
errors,
|
|
27
|
-
|
|
22
|
+
mergeAsset,
|
|
28
23
|
setAssets,
|
|
29
24
|
removeAsset,
|
|
30
25
|
setUploadProgress,
|
|
@@ -47,9 +42,9 @@ export const useAssets = () => {
|
|
|
47
42
|
|
|
48
43
|
// Upload asset with progress tracking
|
|
49
44
|
const upload = useCallback(async (
|
|
50
|
-
file: File,
|
|
51
|
-
metadata?:
|
|
52
|
-
): Promise<
|
|
45
|
+
file: File,
|
|
46
|
+
metadata?: AssetMetadata
|
|
47
|
+
): Promise<UploadedAsset | null> => {
|
|
53
48
|
if (!oxyInstance) {
|
|
54
49
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
55
50
|
}
|
|
@@ -58,7 +53,7 @@ export const useAssets = () => {
|
|
|
58
53
|
clearErrors();
|
|
59
54
|
setUploading(true);
|
|
60
55
|
|
|
61
|
-
const result = await oxyInstance.
|
|
56
|
+
const result = await oxyInstance.assets.upload(file, { metadata });
|
|
62
57
|
|
|
63
58
|
// Update progress with final status
|
|
64
59
|
if (result?.file) {
|
|
@@ -79,7 +74,7 @@ export const useAssets = () => {
|
|
|
79
74
|
|
|
80
75
|
// Add asset to store
|
|
81
76
|
if (result.file) {
|
|
82
|
-
|
|
77
|
+
mergeAsset(result.file);
|
|
83
78
|
return result.file;
|
|
84
79
|
}
|
|
85
80
|
|
|
@@ -95,7 +90,7 @@ export const useAssets = () => {
|
|
|
95
90
|
setUploading,
|
|
96
91
|
setUploadProgress,
|
|
97
92
|
removeUploadProgress,
|
|
98
|
-
|
|
93
|
+
mergeAsset,
|
|
99
94
|
setUploadError
|
|
100
95
|
]);
|
|
101
96
|
|
|
@@ -119,10 +114,10 @@ export const useAssets = () => {
|
|
|
119
114
|
? 'public' as const
|
|
120
115
|
: undefined;
|
|
121
116
|
|
|
122
|
-
const result = await oxyInstance.
|
|
117
|
+
const result = await oxyInstance.assets.link(assetId, { app, entityType, entityId }, { visibility });
|
|
123
118
|
|
|
124
119
|
if (result.file) {
|
|
125
|
-
|
|
120
|
+
mergeAsset(result.file);
|
|
126
121
|
} else {
|
|
127
122
|
// If API doesn't return full file, update store optimistically
|
|
128
123
|
addLink(assetId, {
|
|
@@ -139,7 +134,7 @@ export const useAssets = () => {
|
|
|
139
134
|
} finally {
|
|
140
135
|
setLinking(false);
|
|
141
136
|
}
|
|
142
|
-
}, [clearErrors, setLinking,
|
|
137
|
+
}, [clearErrors, setLinking, mergeAsset, addLink, setLinkError]);
|
|
143
138
|
|
|
144
139
|
// Unlink asset from entity
|
|
145
140
|
const unlink = useCallback(async (
|
|
@@ -156,10 +151,10 @@ export const useAssets = () => {
|
|
|
156
151
|
clearErrors();
|
|
157
152
|
setLinking(true);
|
|
158
153
|
|
|
159
|
-
const result = await oxyInstance.
|
|
154
|
+
const result = await oxyInstance.assets.unlink(assetId, { app, entityType, entityId });
|
|
160
155
|
|
|
161
156
|
if (result.file) {
|
|
162
|
-
|
|
157
|
+
mergeAsset(result.file);
|
|
163
158
|
} else {
|
|
164
159
|
// Update store optimistically
|
|
165
160
|
removeLink(assetId, app, entityType, entityId);
|
|
@@ -170,7 +165,7 @@ export const useAssets = () => {
|
|
|
170
165
|
} finally {
|
|
171
166
|
setLinking(false);
|
|
172
167
|
}
|
|
173
|
-
}, [clearErrors, setLinking,
|
|
168
|
+
}, [clearErrors, setLinking, mergeAsset, removeLink, setLinkError]);
|
|
174
169
|
|
|
175
170
|
// Get asset URL
|
|
176
171
|
const getUrl = useCallback(async (
|
|
@@ -181,22 +176,21 @@ export const useAssets = () => {
|
|
|
181
176
|
if (!oxyInstance) {
|
|
182
177
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
183
178
|
}
|
|
184
|
-
|
|
185
|
-
return result.url;
|
|
179
|
+
return oxyInstance.assets.url(assetId, variant, expiresIn);
|
|
186
180
|
}, []);
|
|
187
181
|
|
|
188
182
|
// Get asset metadata
|
|
189
|
-
const getAsset = useCallback(async (assetId: string): Promise<
|
|
183
|
+
const getAsset = useCallback(async (assetId: string): Promise<AssetRecord> => {
|
|
190
184
|
if (!oxyInstance) {
|
|
191
185
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
192
186
|
}
|
|
193
|
-
const result = await oxyInstance.
|
|
187
|
+
const result = await oxyInstance.assets.get(assetId);
|
|
194
188
|
if (result.file) {
|
|
195
|
-
|
|
189
|
+
mergeAsset(result.file);
|
|
196
190
|
return result.file;
|
|
197
191
|
}
|
|
198
192
|
throw new Error('Asset not found');
|
|
199
|
-
}, [
|
|
193
|
+
}, [mergeAsset]);
|
|
200
194
|
|
|
201
195
|
// Delete asset
|
|
202
196
|
const deleteAsset = useCallback(async (
|
|
@@ -211,7 +205,7 @@ export const useAssets = () => {
|
|
|
211
205
|
clearErrors();
|
|
212
206
|
setDeleting(true);
|
|
213
207
|
|
|
214
|
-
await oxyInstance.
|
|
208
|
+
await oxyInstance.assets.delete(assetId, { force });
|
|
215
209
|
removeAsset(assetId);
|
|
216
210
|
} catch (error: unknown) {
|
|
217
211
|
setDeleteError((error instanceof Error ? error.message : null) || 'Delete failed');
|
|
@@ -226,18 +220,19 @@ export const useAssets = () => {
|
|
|
226
220
|
if (!oxyInstance) {
|
|
227
221
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
228
222
|
}
|
|
229
|
-
const result = await oxyInstance.
|
|
223
|
+
const result = await oxyInstance.assets.restore(assetId);
|
|
230
224
|
if (result.file) {
|
|
231
|
-
|
|
225
|
+
mergeAsset(result.file);
|
|
232
226
|
}
|
|
233
|
-
}, [
|
|
227
|
+
}, [mergeAsset]);
|
|
234
228
|
|
|
235
229
|
// Get variants
|
|
236
|
-
const getVariants = useCallback(async (assetId: string) => {
|
|
230
|
+
const getVariants = useCallback(async (assetId: string): Promise<AssetVariant[]> => {
|
|
237
231
|
if (!oxyInstance) {
|
|
238
232
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
239
233
|
}
|
|
240
|
-
|
|
234
|
+
const { file } = await oxyInstance.assets.get(assetId);
|
|
235
|
+
return file?.variants ?? [];
|
|
241
236
|
}, []);
|
|
242
237
|
|
|
243
238
|
return {
|