@oxy.so/services 6.2.0 → 8.1.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 -21
- 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 -21
- 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 +15 -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/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/primitives.js +1 -102
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +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/styles.js +0 -33
- package/lib/commonjs/ui/components/authChooser/styles.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 +153 -58
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.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 +496 -201
- 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 +11 -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/icons/subsetGlyphMaps.js +0 -16
- 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 -21
- 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 -21
- 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 +15 -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/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/primitives.js +2 -103
- package/lib/module/ui/components/authChooser/primitives.js.map +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/styles.js +0 -33
- package/lib/module/ui/components/authChooser/styles.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 +155 -58
- package/lib/module/ui/components/signIn/OxyAccountPicker.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 +496 -201
- 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 +11 -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/icons/subsetGlyphMaps.js +0 -16
- 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 +7 -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/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 -34
- 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/styles.d.ts +0 -33
- package/lib/typescript/commonjs/ui/components/authChooser/styles.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 +10 -4
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.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 +8 -21
- 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 +4 -4
- 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/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 -16
- 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 +7 -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/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 -34
- 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/styles.d.ts +0 -33
- package/lib/typescript/module/ui/components/authChooser/styles.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 +10 -4
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.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 +8 -21
- 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 +4 -4
- 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/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 -16
- 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 -21
- 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 +13 -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/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 +2 -96
- 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/styles.ts +0 -33
- 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 +131 -66
- 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 +534 -214
- 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 +10 -29
- 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/icons/subsetGlyphMaps.ts +0 -16
- 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
|
@@ -24,7 +24,7 @@ const useUserProfile = (sessionId, options) => {
|
|
|
24
24
|
if (!sessionId) {
|
|
25
25
|
throw new Error('Session ID is required');
|
|
26
26
|
}
|
|
27
|
-
return await oxyServices.
|
|
27
|
+
return await oxyServices.users.bySession(sessionId);
|
|
28
28
|
},
|
|
29
29
|
enabled: options?.enabled !== false && !!sessionId,
|
|
30
30
|
staleTime: 5 * 60 * 1000,
|
|
@@ -45,7 +45,7 @@ const useUserProfiles = (sessionIds, options) => {
|
|
|
45
45
|
queries: sessionIds.map(sessionId => ({
|
|
46
46
|
queryKey: _queryKeys.queryKeys.users.profile(sessionId),
|
|
47
47
|
queryFn: async () => {
|
|
48
|
-
const results = await oxyServices.
|
|
48
|
+
const results = await oxyServices.users.bySessions([sessionId]);
|
|
49
49
|
return results[0]?.user || null;
|
|
50
50
|
},
|
|
51
51
|
enabled: options?.enabled !== false && !!sessionId,
|
|
@@ -88,7 +88,7 @@ const useCurrentUser = options => {
|
|
|
88
88
|
const query = (0, _reactQuery.useQuery)({
|
|
89
89
|
queryKey: _queryKeys.queryKeys.accounts.current(activeSessionId),
|
|
90
90
|
queryFn: async () => {
|
|
91
|
-
return await oxyServices.
|
|
91
|
+
return await oxyServices.users.me();
|
|
92
92
|
},
|
|
93
93
|
enabled: options?.enabled !== false && isAuthenticated && !!activeSessionId,
|
|
94
94
|
staleTime: 1 * 60 * 1000,
|
|
@@ -187,7 +187,7 @@ const useUserById = (userId, options) => {
|
|
|
187
187
|
if (!userId) {
|
|
188
188
|
throw new Error('User ID is required');
|
|
189
189
|
}
|
|
190
|
-
return await oxyServices.
|
|
190
|
+
return await oxyServices.users.get(userId);
|
|
191
191
|
},
|
|
192
192
|
enabled: options?.enabled !== false && !!userId,
|
|
193
193
|
staleTime: 5 * 60 * 1000,
|
|
@@ -224,7 +224,7 @@ const useUserByUsername = (username, options) => {
|
|
|
224
224
|
// Match queryKeys.users.byUsername normalization so the cache key and
|
|
225
225
|
// the API request agree (case-insensitive local handles).
|
|
226
226
|
const normalizedUsername = username.trim().toLowerCase();
|
|
227
|
-
return await oxyServices.
|
|
227
|
+
return await oxyServices.users.byUsername(normalizedUsername);
|
|
228
228
|
},
|
|
229
229
|
enabled: options?.enabled !== false && !!username,
|
|
230
230
|
staleTime: 5 * 60 * 1000,
|
|
@@ -262,7 +262,7 @@ const useUsersBySessions = (sessionIds, options) => {
|
|
|
262
262
|
if (sessionIds.length === 0) {
|
|
263
263
|
return [];
|
|
264
264
|
}
|
|
265
|
-
return await oxyServices.
|
|
265
|
+
return await oxyServices.users.bySessions(sessionIds);
|
|
266
266
|
},
|
|
267
267
|
enabled: options?.enabled !== false && sessionIds.length > 0,
|
|
268
268
|
staleTime: 5 * 60 * 1000,
|
|
@@ -285,7 +285,7 @@ const useConnectedApps = options => {
|
|
|
285
285
|
return (0, _reactQuery.useQuery)({
|
|
286
286
|
queryKey: _queryKeys.queryKeys.connectedApps.list(),
|
|
287
287
|
queryFn: async () => {
|
|
288
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
288
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.apps.connected.list());
|
|
289
289
|
},
|
|
290
290
|
enabled: options?.enabled !== false && isAuthenticated,
|
|
291
291
|
staleTime: 30 * 1000,
|
|
@@ -314,7 +314,7 @@ const usePrivacySettings = (userId, options) => {
|
|
|
314
314
|
if (!targetUserId) {
|
|
315
315
|
throw new Error('User ID is required');
|
|
316
316
|
}
|
|
317
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
317
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.privacy.settings(targetUserId));
|
|
318
318
|
},
|
|
319
319
|
enabled: options?.enabled !== false && !!targetUserId,
|
|
320
320
|
staleTime: 2 * 60 * 1000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactQuery","_core","_queryKeys","_mutationKeys","_OxyContext","_authStore","useUserProfile","sessionId","options","oxyServices","useOxy","useQuery","queryKey","queryKeys","users","profile","queryFn","Error","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactQuery","_core","_queryKeys","_mutationKeys","_OxyContext","_authStore","useUserProfile","sessionId","options","oxyServices","useOxy","useQuery","queryKey","queryKeys","users","profile","queryFn","Error","bySession","enabled","staleTime","gcTime","exports","useUserProfiles","sessionIds","useQueries","queries","map","results","bySessions","user","useCurrentUser","activeSessionId","isAuthenticated","queryClient","useQueryClient","query","accounts","current","me","data","useEffect","userWriteMutationsInFlight","isMutating","mutationKey","mutationKeys","account","updateProfile","uploadAvatar","updateSettings","updatePrivacySettings","storedUser","useAuthStore","getState","incomingUpdatedAt","parseUpdatedAt","updatedAt","storedUpdatedAt","setUser","value","Number","isFinite","Date","t","getTime","parse","useUserById","userId","detail","get","useUserByUsername","username","viewerId","id","byUsername","normalizedUsername","trim","toLowerCase","refetchOnMount","useUsersBySessions","list","length","useConnectedApps","connectedApps","authenticatedApiCall","apps","connected","usePrivacySettings","targetUserId","privacy","settings"],"sourceRoot":"../../../../../src","sources":["ui/hooks/queries/useAccountQueries.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA;AACA;AACA;AACO,MAAMO,cAAc,GAAG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rB,MAAM,IAAIrC,IAAI,EAAE2C,EAAE;EAEvC,OAAO,IAAA9D,oBAAQ,EAAC;IACdC,QAAQ,EAAEC,oBAAS,CAAC4E,OAAO,CAACC,QAAQ,CAACF,YAAY,CAAC;IAClDxE,OAAO,EAAE,MAAAA,CAAA,KAAY;MACnB,IAAI,CAACwE,YAAY,EAAE;QACjB,MAAM,IAAIvE,KAAK,CAAC,qBAAqB,CAAC;MACxC;MAEA,OAAO,IAAAmE,0BAAoB,EACzB3E,WAAW,EACXuB,eAAe,EACf,MAAMvB,WAAW,CAACgF,OAAO,CAACC,QAAQ,CAACF,YAAY,CACjD,CAAC;IACH,CAAC;IACDrE,OAAO,EAAGX,OAAO,EAAEW,OAAO,KAAK,KAAK,IAAK,CAAC,CAACqE,YAAY;IACvDpE,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;IAAE;IAC1BC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,CAAE;EAC1B,CAAC,CAAC;AACJ,CAAC;AAACC,OAAA,CAAAiE,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useAuthMethods = void 0;
|
|
7
|
-
var _react = require("react");
|
|
6
|
+
exports.useSignInMethods = exports.useAuthMethods = void 0;
|
|
8
7
|
var _reactQuery = require("@tanstack/react-query");
|
|
9
8
|
var _queryKeys = require("./queryKeys.js");
|
|
10
9
|
var _OxyContext = require("../../context/OxyContext.js");
|
|
@@ -12,13 +11,9 @@ var _OxyContext = require("../../context/OxyContext.js");
|
|
|
12
11
|
const EMPTY_METHODS = Object.freeze([]);
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
|
-
* The current account's linked authentication methods (`GET /auth/methods`)
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* `passkeys` is the `type === 'webauthn'` subset — one entry per registered
|
|
20
|
-
* credential. Invalidate via `queryKeys.authMethods.all` after linking a passkey
|
|
21
|
-
* (`useOxy().addPasskey()` does this) or removing one.
|
|
14
|
+
* The current account's linked authentication methods (`GET /auth/methods`).
|
|
15
|
+
* Backs the security / account surfaces that let a user see their identity key
|
|
16
|
+
* and social logins.
|
|
22
17
|
*/
|
|
23
18
|
const useAuthMethods = options => {
|
|
24
19
|
const {
|
|
@@ -27,23 +22,40 @@ const useAuthMethods = options => {
|
|
|
27
22
|
} = (0, _OxyContext.useOxy)();
|
|
28
23
|
const query = (0, _reactQuery.useQuery)({
|
|
29
24
|
queryKey: _queryKeys.queryKeys.authMethods.list(),
|
|
30
|
-
queryFn: () => oxyServices.
|
|
25
|
+
queryFn: () => oxyServices.identity.authMethods(),
|
|
31
26
|
enabled: options?.enabled !== false && !!activeSessionId,
|
|
32
27
|
staleTime: 5 * 60 * 1000,
|
|
33
28
|
// 5 minutes
|
|
34
29
|
gcTime: 10 * 60 * 1000 // 10 minutes
|
|
35
30
|
});
|
|
36
|
-
const methods = query.data?.methods ?? EMPTY_METHODS;
|
|
37
|
-
const passkeys = (0, _react.useMemo)(() => methods.filter(method => method.type === 'webauthn'), [methods]);
|
|
38
31
|
return {
|
|
39
32
|
...query,
|
|
40
33
|
/** Every linked auth method. Empty while loading. */
|
|
41
|
-
methods,
|
|
42
|
-
/** The registered passkeys (a `type === 'webauthn'` subset of `methods`). */
|
|
43
|
-
passkeys,
|
|
34
|
+
methods: query.data?.methods ?? EMPTY_METHODS,
|
|
44
35
|
/** The account's DID, or `null` while loading. */
|
|
45
36
|
did: query.data?.did ?? null
|
|
46
37
|
};
|
|
47
38
|
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* How the signed-in account signs in (`GET /users/me/sign-in-methods`): whether
|
|
42
|
+
* it has an email, a password, an authenticator app, and how many backup codes
|
|
43
|
+
* are left. Invalidate `queryKeys.signInMethods.all` after changing any of them
|
|
44
|
+
* (the security panels do).
|
|
45
|
+
*/
|
|
48
46
|
exports.useAuthMethods = useAuthMethods;
|
|
47
|
+
const useSignInMethods = options => {
|
|
48
|
+
const {
|
|
49
|
+
oxyServices,
|
|
50
|
+
activeSessionId,
|
|
51
|
+
user
|
|
52
|
+
} = (0, _OxyContext.useOxy)();
|
|
53
|
+
return (0, _reactQuery.useQuery)({
|
|
54
|
+
queryKey: _queryKeys.queryKeys.signInMethods.current(user?.id),
|
|
55
|
+
queryFn: () => oxyServices.auth.methods(),
|
|
56
|
+
enabled: options?.enabled !== false && !!activeSessionId,
|
|
57
|
+
staleTime: 60 * 1000
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
exports.useSignInMethods = useSignInMethods;
|
|
49
61
|
//# sourceMappingURL=useAuthMethods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactQuery","require","_queryKeys","_OxyContext","EMPTY_METHODS","Object","freeze","useAuthMethods","options","oxyServices","activeSessionId","useOxy","query","useQuery","queryKey","queryKeys","authMethods","list","queryFn","identity","enabled","staleTime","gcTime","methods","data","did","exports","useSignInMethods","user","signInMethods","current","id","auth"],"sourceRoot":"../../../../../src","sources":["ui/hooks/queries/useAuthMethods.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA;AACA,MAAMG,aAAyC,GAAGC,MAAM,CAACC,MAAM,CAAC,EAAE,CAAC;;AAEnE;AACA;AACA;AACA;AACA;AACO,MAAMC,cAAc,GAAIC,OAA+B,IAAK;EACjE,MAAM;IAAEC,WAAW;IAAEC;EAAgB,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAEjD,MAAMC,KAAK,GAAG,IAAAC,oBAAQ,EAAsB;IAC1CC,QAAQ,EAAEC,oBAAS,CAACC,WAAW,CAACC,IAAI,CAAC,CAAC;IACtCC,OAAO,EAAEA,CAAA,KAAMT,WAAW,CAACU,QAAQ,CAACH,WAAW,CAAC,CAAC;IACjDI,OAAO,EAAEZ,OAAO,EAAEY,OAAO,KAAK,KAAK,IAAI,CAAC,CAACV,eAAe;IACxDW,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;IAAE;IAC1BC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,CAAE;EAC1B,CAAC,CAAC;EAEF,OAAO;IACL,GAAGV,KAAK;IACR;IACAW,OAAO,EAAEX,KAAK,CAACY,IAAI,EAAED,OAAO,IAAInB,aAAa;IAC7C;IACAqB,GAAG,EAAEb,KAAK,CAACY,IAAI,EAAEC,GAAG,IAAI;EAC1B,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AALAC,OAAA,CAAAnB,cAAA,GAAAA,cAAA;AAMO,MAAMoB,gBAAgB,GAAInB,OAA+B,IAAK;EACnE,MAAM;IAAEC,WAAW;IAAEC,eAAe;IAAEkB;EAAK,CAAC,GAAG,IAAAjB,kBAAM,EAAC,CAAC;EACvD,OAAO,IAAAE,oBAAQ,EAAgB;IAC7BC,QAAQ,EAAEC,oBAAS,CAACc,aAAa,CAACC,OAAO,CAACF,IAAI,EAAEG,EAAE,CAAC;IACnDb,OAAO,EAAEA,CAAA,KAAMT,WAAW,CAACuB,IAAI,CAACT,OAAO,CAAC,CAAC;IACzCH,OAAO,EAAEZ,OAAO,EAAEY,OAAO,KAAK,KAAK,IAAI,CAAC,CAACV,eAAe;IACxDW,SAAS,EAAE,EAAE,GAAG;EAClB,CAAC,CAAC;AACJ,CAAC;AAACK,OAAA,CAAAC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -27,7 +27,7 @@ var _queryKeys = require("./queryKeys.js");
|
|
|
27
27
|
/** Files fetched per page. */
|
|
28
28
|
const FILES_PAGE_SIZE = exports.FILES_PAGE_SIZE = 40;
|
|
29
29
|
|
|
30
|
-
/** Raw file record as returned by `oxyServices.
|
|
30
|
+
/** Raw file record as returned by `oxyServices.assets.list` / `assetUpload`. */
|
|
31
31
|
|
|
32
32
|
/** One page of the infinite file list. */
|
|
33
33
|
|
|
@@ -60,7 +60,10 @@ const useUserFilesInfinite = ownerId => {
|
|
|
60
60
|
pageParam
|
|
61
61
|
}) => {
|
|
62
62
|
const offset = typeof pageParam === 'number' ? pageParam : 0;
|
|
63
|
-
const response = await oxyServices.
|
|
63
|
+
const response = await oxyServices.assets.list({
|
|
64
|
+
limit: FILES_PAGE_SIZE,
|
|
65
|
+
offset
|
|
66
|
+
});
|
|
64
67
|
const raw = response.files ?? [];
|
|
65
68
|
const files = raw.map(mapRawFileToMetadata);
|
|
66
69
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactQuery","require","_OxyContext","_queryKeys","FILES_PAGE_SIZE","exports","mapRawFileToMetadata","raw","id","filename","originalName","sha256","contentType","mime","length","size","chunkSize","uploadDate","createdAt","metadata","variants","useUserFilesInfinite","ownerId","oxyServices","useOxy","useInfiniteQuery","queryKey","queryKeys","files","list","queryFn","pageParam","offset","response","
|
|
1
|
+
{"version":3,"names":["_reactQuery","require","_OxyContext","_queryKeys","FILES_PAGE_SIZE","exports","mapRawFileToMetadata","raw","id","filename","originalName","sha256","contentType","mime","length","size","chunkSize","uploadDate","createdAt","metadata","variants","useUserFilesInfinite","ownerId","oxyServices","useOxy","useInfiniteQuery","queryKey","queryKeys","files","list","queryFn","pageParam","offset","response","assets","limit","map","total","hasMore","Boolean","nextOffset","initialPageParam","getNextPageParam","lastPage","undefined","enabled","staleTime","refetchOnWindowFocus","fileListKey","mapPages","data","fn","pages","page","prependFileToCache","queryClient","file","setQueryData","index","removeFileFromCache","fileId","filter","f","replaceFileInCache","oldId","newFile","patchFileMetadataInCache","metadataPatch"],"sourceRoot":"../../../../../src","sources":["ui/hooks/queries/useFileQueries.ts"],"mappings":";;;;;;;;;;;;AAWA,IAAAA,WAAA,GAAAC,OAAA;AAMA,I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A,CAAC,CAACtD,EAAE,KAAKoD,MAAM,GACT;IAAE,GAAGE,CAAC;IAAE3C,QAAQ,EAAE;MAAE,GAAG2C,CAAC,CAAC3C,QAAQ;MAAE,GAAGgD;IAAc;EAA8B,CAAC,GACnFL,CACV,CACJ,CAAC,GACCZ,IACV,CAAC;AACL","ignoreList":[]}
|
|
@@ -28,7 +28,7 @@ var _OxyContext = require("../../context/OxyContext.js");
|
|
|
28
28
|
/**
|
|
29
29
|
* Get the current user's subscription.
|
|
30
30
|
*
|
|
31
|
-
* Wraps `oxyServices.
|
|
31
|
+
* Wraps `oxyServices.billing.subscription()`
|
|
32
32
|
* (`GET /subscription/:userId`, billing-first). Returns the persisted
|
|
33
33
|
* subscription or the API's `{ plan: 'basic' }` fallback when the user has
|
|
34
34
|
* never subscribed.
|
|
@@ -43,7 +43,7 @@ const useUserSubscription = options => {
|
|
|
43
43
|
return (0, _reactQuery.useQuery)({
|
|
44
44
|
queryKey: _queryKeys.queryKeys.payments.subscription(user?.id),
|
|
45
45
|
queryFn: async () => {
|
|
46
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
46
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.billing.subscription());
|
|
47
47
|
},
|
|
48
48
|
enabled: options?.enabled !== false && isAuthenticated && !!user?.id,
|
|
49
49
|
// Subscription state changes rarely; tolerate a longer fresh window.
|
|
@@ -56,7 +56,7 @@ const useUserSubscription = options => {
|
|
|
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
|
exports.useUserSubscription = useUserSubscription;
|
|
@@ -70,7 +70,7 @@ const useUserPayments = options => {
|
|
|
70
70
|
return (0, _reactQuery.useQuery)({
|
|
71
71
|
queryKey: _queryKeys.queryKeys.payments.history(user?.id),
|
|
72
72
|
queryFn: async () => {
|
|
73
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
73
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.billing.payments());
|
|
74
74
|
},
|
|
75
75
|
enabled: options?.enabled !== false && isAuthenticated && !!user?.id,
|
|
76
76
|
// Billing history is append-mostly; a short fresh window is fine.
|
|
@@ -83,7 +83,7 @@ const useUserPayments = options => {
|
|
|
83
83
|
/**
|
|
84
84
|
* Get the current user's FairCoin wallet balance.
|
|
85
85
|
*
|
|
86
|
-
* Wraps `oxyServices.
|
|
86
|
+
* Wraps `oxyServices.billing.wallet()` (`GET /wallet/:userId`).
|
|
87
87
|
* Balance changes frequently, so the fresh window is intentionally short.
|
|
88
88
|
*/
|
|
89
89
|
exports.useUserPayments = useUserPayments;
|
|
@@ -97,7 +97,7 @@ const useUserWallet = options => {
|
|
|
97
97
|
return (0, _reactQuery.useQuery)({
|
|
98
98
|
queryKey: _queryKeys.queryKeys.payments.wallet(user?.id),
|
|
99
99
|
queryFn: async () => {
|
|
100
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
100
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.billing.wallet());
|
|
101
101
|
},
|
|
102
102
|
enabled: options?.enabled !== false && isAuthenticated && !!user?.id,
|
|
103
103
|
staleTime: 60 * 1000,
|
|
@@ -109,7 +109,7 @@ const useUserWallet = options => {
|
|
|
109
109
|
/**
|
|
110
110
|
* Get the current user's wallet transaction history (paginated).
|
|
111
111
|
*
|
|
112
|
-
* Wraps `oxyServices.
|
|
112
|
+
* Wraps `oxyServices.billing.walletTransactions(options)`
|
|
113
113
|
* (`GET /wallet/transactions/:userId`). The API responds with a
|
|
114
114
|
* `{ data, pagination }` envelope, preserved here as
|
|
115
115
|
* `WalletTransactionsResponse`.
|
|
@@ -130,7 +130,7 @@ const useUserWalletTransactions = (params, options) => {
|
|
|
130
130
|
return (0, _reactQuery.useQuery)({
|
|
131
131
|
queryKey: _queryKeys.queryKeys.payments.walletTransactions(limit, offset, user?.id),
|
|
132
132
|
queryFn: async () => {
|
|
133
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
133
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.billing.walletTransactions({
|
|
134
134
|
limit,
|
|
135
135
|
offset
|
|
136
136
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactQuery","require","_core","_queryKeys","_OxyContext","useUserSubscription","options","oxyServices","isAuthenticated","activeSessionId","user","useOxy","useQuery","queryKey","queryKeys","payments","subscription","id","queryFn","authenticatedApiCall","
|
|
1
|
+
{"version":3,"names":["_reactQuery","require","_core","_queryKeys","_OxyContext","useUserSubscription","options","oxyServices","isAuthenticated","activeSessionId","user","useOxy","useQuery","queryKey","queryKeys","payments","subscription","id","queryFn","authenticatedApiCall","billing","enabled","staleTime","gcTime","exports","useUserPayments","history","useUserWallet","wallet","useUserWalletTransactions","params","limit","offset","walletTransactions"],"sourceRoot":"../../../../../src","sources":["ui/hooks/queries/usePaymentQueries.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,mBAAmB,GAAIC,OAA+B,IAAK;EACtE,MAAM;IAAEC,WAAW;IAAEC,eAAe;IAAEC,eAAe;IAAEC;EAAK,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAExE,OAAO,IAAAC,o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AAEtB,IAAI,EAAEO,EAAE,CAAC;IACxEC,OAAO,EAAE,MAAAA,CAAA,KAAY;MACnB,OAAO,IAAAC,0BAAoB,EACzBZ,WAAW,EACXE,eAAe,EACf,MAAMF,WAAW,CAACa,OAAO,CAACa,kBAAkB,CAAC;QAAEF,KAAK;QAAEC;MAAO,CAAC,CAChE,CAAC;IACH,CAAC;IACDX,OAAO,EAAGf,OAAO,EAAEe,OAAO,KAAK,KAAK,IAAKb,eAAe,IAAI,CAAC,CAACE,IAAI,EAAEO,EAAE;IACtEK,SAAS,EAAE,EAAE,GAAG,IAAI;IAAE;IACtBC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,CAAE;EAC1B,CAAC,CAAC;AACJ,CAAC;AAACC,OAAA,CAAAK,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -21,7 +21,7 @@ const useSecurityActivity = options => {
|
|
|
21
21
|
if (!activeSessionId) {
|
|
22
22
|
throw new Error('No active session');
|
|
23
23
|
}
|
|
24
|
-
const response = await oxyServices.
|
|
24
|
+
const response = await oxyServices.devices.securityActivity(options?.limit, options?.offset, options?.eventType);
|
|
25
25
|
return response;
|
|
26
26
|
},
|
|
27
27
|
enabled: options?.enabled !== false && !!activeSessionId,
|
|
@@ -46,7 +46,8 @@ const useRecentSecurityActivity = (limit = 10) => {
|
|
|
46
46
|
if (!activeSessionId) {
|
|
47
47
|
throw new Error('No active session');
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
const page = await oxyServices.devices.securityActivity(limit, 0);
|
|
50
|
+
return page.data;
|
|
50
51
|
},
|
|
51
52
|
enabled: !!activeSessionId,
|
|
52
53
|
staleTime: 5 * 60 * 1000,
|
|
@@ -76,7 +77,7 @@ const useInfiniteSecurityActivity = options => {
|
|
|
76
77
|
throw new Error('No active session');
|
|
77
78
|
}
|
|
78
79
|
const offset = typeof pageParam === 'number' ? pageParam : 0;
|
|
79
|
-
return await oxyServices.
|
|
80
|
+
return await oxyServices.devices.securityActivity(limit, offset, options?.eventType);
|
|
80
81
|
},
|
|
81
82
|
initialPageParam: 0,
|
|
82
83
|
getNextPageParam: lastPage => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactQuery","require","_queryKeys","_OxyContext","useSecurityActivity","options","oxyServices","activeSessionId","useOxy","useQuery","queryKey","queryKeys","security","activity","limit","offset","eventType","queryFn","Error","response","
|
|
1
|
+
{"version":3,"names":["_reactQuery","require","_queryKeys","_OxyContext","useSecurityActivity","options","oxyServices","activeSessionId","useOxy","useQuery","queryKey","queryKeys","security","activity","limit","offset","eventType","queryFn","Error","response","devices","securityActivity","enabled","staleTime","gcTime","exports","useRecentSecurityActivity","recent","page","data","useInfiniteSecurityActivity","useInfiniteQuery","infinite","pageParam","initialPageParam","getNextPageParam","lastPage","hasMore","undefined"],"sourceRoot":"../../../../../src","sources":["ui/hooks/queries/useSecurityQueries.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAGA;AACA;AACA;AACO,MAAMG,mBAAmB,GAC9BC,OAKC,IACE;EACH,MAAM;IAAEC,WAAW;IAAEC;EAAgB,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAEjD,OAAO,IAAAC,oBAAQ,EAAC;IACdC,QAAQ,EAAEC,oBAAS,CAACC,QAAQ,CAACC,QAAQ,CACnCR,OAAO,EAAES,KAAK,EACdT,OAAO,EAAEU,MAAM,EACfV,OAAO,EAAEW,SACX,CAAC;IACDC,OAAO,EAAE,MAAAA,CAAA,KAAY;MACnB,IAAI,CAACV,eAAe,EAAE;QACpB,MAAM,IAAIW,KAAK,CAAC,mBAAmB,CAAC;MACtC;MAEA,MAAMC,QAAQ,GAAG,MAAMb,WAAW,CAACc,OAAO,CAACC,gBAAgB,CACzDhB,OAAO,EAAES,KAAK,EACdT,OAAO,EAAEU,MAAM,EACfV,OAAO,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AAO,EAAES,KAAK,IAAI,EAAE;EAElC,OAAO,IAAAiB,4BAAgB,EAAkC;IACvDrB,QAAQ,EAAEC,oBAAS,CAACC,QAAQ,CAACoB,QAAQ,CAAClB,KAAK,EAAET,OAAO,EAAEW,SAAS,CAAC;IAChEC,OAAO,EAAE,MAAAA,CAAO;MAAEgB;IAAU,CAAC,KAAK;MAChC,IAAI,CAAC1B,eAAe,EAAE;QACpB,MAAM,IAAIW,KAAK,CAAC,mBAAmB,CAAC;MACtC;MAEA,MAAMH,MAAM,GAAG,OAAOkB,SAAS,KAAK,QAAQ,GAAGA,SAAS,GAAG,CAAC;MAC5D,OAAO,MAAM3B,WAAW,CAACc,OAAO,CAACC,gBAAgB,CAC/CP,KAAK,EACLC,MAAM,EACNV,OAAO,EAAEW,SACX,CAAC;IACH,CAAC;IACDkB,gBAAgB,EAAE,CAAC;IACnBC,gBAAgB,EAAGC,QAAQ,IAAK;MAC9B,IAAI,CAACA,QAAQ,CAACC,OAAO,EAAE,OAAOC,SAAS;MACvC,OAAOF,QAAQ,CAACrB,MAAM,GAAGqB,QAAQ,CAACtB,KAAK;IACzC,CAAC;IACDQ,OAAO,EAAGjB,OAAO,EAAEiB,OAAO,KAAK,KAAK,IAAK,CAAC,CAACf,eAAe;IAC1DgB,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;IAAE;IAC1BC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,CAAE;EAC1B,CAAC,CAAC;AACJ,CAAC;AAACC,OAAA,CAAAK,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -55,7 +55,7 @@ const useSession = (sessionId, options) => {
|
|
|
55
55
|
if (!sessionId) {
|
|
56
56
|
throw new Error('Session ID is required');
|
|
57
57
|
}
|
|
58
|
-
const validation = await oxyServices.
|
|
58
|
+
const validation = await oxyServices.session.validate(sessionId, {
|
|
59
59
|
useHeaderValidation: true
|
|
60
60
|
});
|
|
61
61
|
if (!validation?.valid || !validation.user) {
|
|
@@ -93,7 +93,7 @@ const useDeviceSessions = options => {
|
|
|
93
93
|
if (!activeSessionId) {
|
|
94
94
|
throw new Error('No active session');
|
|
95
95
|
}
|
|
96
|
-
return await oxyServices.
|
|
96
|
+
return await oxyServices.devices.sessions(activeSessionId);
|
|
97
97
|
},
|
|
98
98
|
enabled: options?.enabled !== false && !!activeSessionId,
|
|
99
99
|
staleTime: 2 * 60 * 1000,
|
|
@@ -114,7 +114,7 @@ const useUserDevices = options => {
|
|
|
114
114
|
return (0, _reactQuery.useQuery)({
|
|
115
115
|
queryKey: _queryKeys.queryKeys.devices.list(accountQueryScope(activeSessionId)),
|
|
116
116
|
queryFn: async () => {
|
|
117
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
117
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.devices.list());
|
|
118
118
|
},
|
|
119
119
|
enabled: options?.enabled !== false && isAuthenticated && !!activeSessionId,
|
|
120
120
|
staleTime: 5 * 60 * 1000,
|
|
@@ -134,7 +134,7 @@ const useSecurityInfo = options => {
|
|
|
134
134
|
return (0, _reactQuery.useQuery)({
|
|
135
135
|
queryKey: [..._queryKeys.queryKeys.devices.all, 'security'],
|
|
136
136
|
queryFn: async () => {
|
|
137
|
-
return await oxyServices.
|
|
137
|
+
return await oxyServices.devices.securityInfo();
|
|
138
138
|
},
|
|
139
139
|
enabled: options?.enabled !== false && isAuthenticated,
|
|
140
140
|
staleTime: 5 * 60 * 1000,
|
|
@@ -144,7 +144,7 @@ const useSecurityInfo = options => {
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Get account storage usage (server-aggregated usage across assets, mail,
|
|
147
|
-
* recordings, etc.). Wraps `oxyServices.
|
|
147
|
+
* recordings, etc.). Wraps `oxyServices.assets.usage()` in a
|
|
148
148
|
* TanStack query so consumers get caching, background refetch, and a
|
|
149
149
|
* consistent `isLoading` / `refetch` surface instead of hand-rolled
|
|
150
150
|
* `useEffect` fetches.
|
|
@@ -159,7 +159,7 @@ const useAccountStorageUsage = options => {
|
|
|
159
159
|
return (0, _reactQuery.useQuery)({
|
|
160
160
|
queryKey: _queryKeys.queryKeys.storage.usage(accountQueryScope(activeSessionId)),
|
|
161
161
|
queryFn: async () => {
|
|
162
|
-
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.
|
|
162
|
+
return (0, _core.authenticatedApiCall)(oxyServices, activeSessionId, () => oxyServices.assets.usage());
|
|
163
163
|
},
|
|
164
164
|
enabled: options?.enabled !== false && isAuthenticated && !!activeSessionId,
|
|
165
165
|
staleTime: 5 * 60 * 1000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactQuery","require","_core","_queryKeys","_OxyContext","_sessionHelpers","accountQueryScope","activeSessionId","useSessions","userId","options","oxyServices","useOxy","useQuery","queryKey","queryKeys","sessions","list","queryFn","Error","fetchSessionsWithFallback","fallbackDeviceId","undefined","fallbackUserId","mapSessionsToClient","enabled","staleTime","gcTime","exports","useSession","sessionId","detail","validation","
|
|
1
|
+
{"version":3,"names":["_reactQuery","require","_core","_queryKeys","_OxyContext","_sessionHelpers","accountQueryScope","activeSessionId","useSessions","userId","options","oxyServices","useOxy","useQuery","queryKey","queryKeys","sessions","list","queryFn","Error","fetchSessionsWithFallback","fallbackDeviceId","undefined","fallbackUserId","mapSessionsToClient","enabled","staleTime","gcTime","exports","useSession","sessionId","detail","validation","session","validate","useHeaderValidation","valid","user","now","Date","deviceId","expiresAt","getTime","toISOString","lastActive","lastActivity","id","toString","isCurrent","useDeviceSessions","active","devices","useUserDevices","isAuthenticated","authenticatedApiCall","useSecurityInfo","all","securityInfo","useAccountStorageUsage","storage","usage","assets"],"sourceRoot":"../../../../../src","sources":["ui/hooks/queries/useServicesQueries.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GA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,eAAe,IAAI,CAAC,CAAC9C,eAAe;IAC7EmB,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;IACxBC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG;EACpB,CAAC,CAAC;AACJ,CAAC;AAACC,OAAA,CAAA8B,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -22,7 +22,7 @@ const useAssets = () => {
|
|
|
22
22
|
uploadProgress,
|
|
23
23
|
loading,
|
|
24
24
|
errors,
|
|
25
|
-
|
|
25
|
+
mergeAsset,
|
|
26
26
|
setAssets,
|
|
27
27
|
removeAsset,
|
|
28
28
|
setUploadProgress,
|
|
@@ -51,7 +51,9 @@ const useAssets = () => {
|
|
|
51
51
|
try {
|
|
52
52
|
clearErrors();
|
|
53
53
|
setUploading(true);
|
|
54
|
-
const result = await oxyInstance.
|
|
54
|
+
const result = await oxyInstance.assets.upload(file, {
|
|
55
|
+
metadata
|
|
56
|
+
});
|
|
55
57
|
|
|
56
58
|
// Update progress with final status
|
|
57
59
|
if (result?.file) {
|
|
@@ -72,7 +74,7 @@ const useAssets = () => {
|
|
|
72
74
|
|
|
73
75
|
// Add asset to store
|
|
74
76
|
if (result.file) {
|
|
75
|
-
|
|
77
|
+
mergeAsset(result.file);
|
|
76
78
|
return result.file;
|
|
77
79
|
}
|
|
78
80
|
return null;
|
|
@@ -82,7 +84,7 @@ const useAssets = () => {
|
|
|
82
84
|
} finally {
|
|
83
85
|
setUploading(false);
|
|
84
86
|
}
|
|
85
|
-
}, [clearErrors, setUploading, setUploadProgress, removeUploadProgress,
|
|
87
|
+
}, [clearErrors, setUploading, setUploadProgress, removeUploadProgress, mergeAsset, setUploadError]);
|
|
86
88
|
|
|
87
89
|
// Link asset to entity
|
|
88
90
|
const link = (0, _react.useCallback)(async (assetId, app, entityType, entityId) => {
|
|
@@ -95,9 +97,15 @@ const useAssets = () => {
|
|
|
95
97
|
|
|
96
98
|
// Auto-detect visibility for avatars and profile banners
|
|
97
99
|
const visibility = entityType === 'avatar' || entityType === 'profile-banner' ? 'public' : undefined;
|
|
98
|
-
const result = await oxyInstance.
|
|
100
|
+
const result = await oxyInstance.assets.link(assetId, {
|
|
101
|
+
app,
|
|
102
|
+
entityType,
|
|
103
|
+
entityId
|
|
104
|
+
}, {
|
|
105
|
+
visibility
|
|
106
|
+
});
|
|
99
107
|
if (result.file) {
|
|
100
|
-
|
|
108
|
+
mergeAsset(result.file);
|
|
101
109
|
} else {
|
|
102
110
|
// If API doesn't return full file, update store optimistically
|
|
103
111
|
addLink(assetId, {
|
|
@@ -115,7 +123,7 @@ const useAssets = () => {
|
|
|
115
123
|
} finally {
|
|
116
124
|
setLinking(false);
|
|
117
125
|
}
|
|
118
|
-
}, [clearErrors, setLinking,
|
|
126
|
+
}, [clearErrors, setLinking, mergeAsset, addLink, setLinkError]);
|
|
119
127
|
|
|
120
128
|
// Unlink asset from entity
|
|
121
129
|
const unlink = (0, _react.useCallback)(async (assetId, app, entityType, entityId) => {
|
|
@@ -125,9 +133,13 @@ const useAssets = () => {
|
|
|
125
133
|
try {
|
|
126
134
|
clearErrors();
|
|
127
135
|
setLinking(true);
|
|
128
|
-
const result = await oxyInstance.
|
|
136
|
+
const result = await oxyInstance.assets.unlink(assetId, {
|
|
137
|
+
app,
|
|
138
|
+
entityType,
|
|
139
|
+
entityId
|
|
140
|
+
});
|
|
129
141
|
if (result.file) {
|
|
130
|
-
|
|
142
|
+
mergeAsset(result.file);
|
|
131
143
|
} else {
|
|
132
144
|
// Update store optimistically
|
|
133
145
|
removeLink(assetId, app, entityType, entityId);
|
|
@@ -138,15 +150,14 @@ const useAssets = () => {
|
|
|
138
150
|
} finally {
|
|
139
151
|
setLinking(false);
|
|
140
152
|
}
|
|
141
|
-
}, [clearErrors, setLinking,
|
|
153
|
+
}, [clearErrors, setLinking, mergeAsset, removeLink, setLinkError]);
|
|
142
154
|
|
|
143
155
|
// Get asset URL
|
|
144
156
|
const getUrl = (0, _react.useCallback)(async (assetId, variant, expiresIn) => {
|
|
145
157
|
if (!oxyInstance) {
|
|
146
158
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
147
159
|
}
|
|
148
|
-
|
|
149
|
-
return result.url;
|
|
160
|
+
return oxyInstance.assets.url(assetId, variant, expiresIn);
|
|
150
161
|
}, []);
|
|
151
162
|
|
|
152
163
|
// Get asset metadata
|
|
@@ -154,13 +165,13 @@ const useAssets = () => {
|
|
|
154
165
|
if (!oxyInstance) {
|
|
155
166
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
156
167
|
}
|
|
157
|
-
const result = await oxyInstance.
|
|
168
|
+
const result = await oxyInstance.assets.get(assetId);
|
|
158
169
|
if (result.file) {
|
|
159
|
-
|
|
170
|
+
mergeAsset(result.file);
|
|
160
171
|
return result.file;
|
|
161
172
|
}
|
|
162
173
|
throw new Error('Asset not found');
|
|
163
|
-
}, [
|
|
174
|
+
}, [mergeAsset]);
|
|
164
175
|
|
|
165
176
|
// Delete asset
|
|
166
177
|
const deleteAsset = (0, _react.useCallback)(async (assetId, force = false) => {
|
|
@@ -170,7 +181,9 @@ const useAssets = () => {
|
|
|
170
181
|
try {
|
|
171
182
|
clearErrors();
|
|
172
183
|
setDeleting(true);
|
|
173
|
-
await oxyInstance.
|
|
184
|
+
await oxyInstance.assets.delete(assetId, {
|
|
185
|
+
force
|
|
186
|
+
});
|
|
174
187
|
removeAsset(assetId);
|
|
175
188
|
} catch (error) {
|
|
176
189
|
setDeleteError((error instanceof Error ? error.message : null) || 'Delete failed');
|
|
@@ -185,18 +198,21 @@ const useAssets = () => {
|
|
|
185
198
|
if (!oxyInstance) {
|
|
186
199
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
187
200
|
}
|
|
188
|
-
const result = await oxyInstance.
|
|
201
|
+
const result = await oxyInstance.assets.restore(assetId);
|
|
189
202
|
if (result.file) {
|
|
190
|
-
|
|
203
|
+
mergeAsset(result.file);
|
|
191
204
|
}
|
|
192
|
-
}, [
|
|
205
|
+
}, [mergeAsset]);
|
|
193
206
|
|
|
194
207
|
// Get variants
|
|
195
208
|
const getVariants = (0, _react.useCallback)(async assetId => {
|
|
196
209
|
if (!oxyInstance) {
|
|
197
210
|
throw new Error('OxyServices instance not configured. Call setOxyAssetInstance first.');
|
|
198
211
|
}
|
|
199
|
-
|
|
212
|
+
const {
|
|
213
|
+
file
|
|
214
|
+
} = await oxyInstance.assets.get(assetId);
|
|
215
|
+
return file?.variants ?? [];
|
|
200
216
|
}, []);
|
|
201
217
|
return {
|
|
202
218
|
// State
|