@oxy.so/services 11.13.0 → 11.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/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 +9 -9
- package/lib/commonjs/assets/assets/one/README.md +8 -0
- package/lib/commonjs/assets/assets/one/floral.jpg +0 -0
- package/lib/commonjs/assets/assets/one/floral.jpg.d.ts +2 -0
- package/lib/commonjs/assets/assets/one/floral.mp4 +0 -0
- package/lib/commonjs/assets/assets/one/floral.mp4.d.ts +2 -0
- 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 +9 -9
- package/lib/commonjs/assets/one/README.md +8 -0
- package/lib/commonjs/assets/one/floral.jpg +0 -0
- package/lib/commonjs/assets/one/floral.mp4 +0 -0
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js +2 -2
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js.map +1 -1
- package/lib/commonjs/ui/components/BloomLocaleBridge.js +2 -2
- package/lib/commonjs/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +2 -2
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/LanguageBridge.js +2 -2
- package/lib/commonjs/ui/components/LanguageBridge.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +5 -18
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +30 -25
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +6 -30
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +2 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +36 -6
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -2
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +7 -5
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +24 -57
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js +17 -43
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/SettingsIcon.js +14 -25
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +38 -47
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +232 -472
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/storageUsage.js +62 -0
- package/lib/commonjs/ui/components/authChooser/storageUsage.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/styles.js +21 -70
- package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +6 -5
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +25 -25
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +4 -4
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js +2 -2
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +2 -2
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +16 -50
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +3 -3
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +10 -12
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +3 -3
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +13 -6
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +53 -112
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyEmailAccountChoice.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyEmailAccountChoice.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js +31 -13
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js +2 -2
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/commonjs/ui/components/supervision/PersonPicker.js +2 -2
- package/lib/commonjs/ui/components/supervision/PersonPicker.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +32 -58
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/oxyRuntimeContext.js +57 -0
- package/lib/commonjs/ui/context/oxyRuntimeContext.js.map +1 -0
- package/lib/commonjs/ui/context/oxySupportContext.js +10 -0
- package/lib/commonjs/ui/context/oxySupportContext.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -10
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +6 -6
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +13 -10
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +3 -3
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +3 -3
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +5 -5
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js +3 -3
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -4
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +7 -7
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSupervision.js +2 -2
- package/lib/commonjs/ui/hooks/queries/useSupervision.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +2 -2
- package/lib/commonjs/ui/hooks/useAuth.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/useDisplayCurrency.js +2 -2
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +3 -3
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollowTarget.js +2 -2
- package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js +2 -2
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +33 -18
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOxyEvent.js +2 -2
- package/lib/commonjs/ui/hooks/useOxyEvent.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js +40 -2
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -1
- package/lib/commonjs/ui/hooks/useUsernameAvailability.js +60 -0
- package/lib/commonjs/ui/hooks/useUsernameAvailability.js.map +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +4 -4
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/index.js +37 -0
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +2 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +2 -2
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +27 -101
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/screenComponents.js +101 -0
- package/lib/commonjs/ui/navigation/screenComponents.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js +1 -1
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +25 -6
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +4 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js +19 -7
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- package/lib/commonjs/ui/one-video.js +50 -0
- package/lib/commonjs/ui/one-video.js.map +1 -0
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +7 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -6
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +10 -10
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +2 -2
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +36 -35
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +35 -64
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +8 -8
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +13 -14
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +10 -10
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js +7 -14
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +137 -285
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +19 -16
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +38 -189
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileTrashScreen.js +2 -2
- package/lib/commonjs/ui/screens/FileTrashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +74 -62
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -14
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +35 -36
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +9 -17
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +319 -328
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +10 -10
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyOneScreen.js +213 -0
- package/lib/commonjs/ui/screens/OxyOneScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js +12 -12
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +64 -87
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +309 -233
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ReportBugScreen.js +72 -0
- package/lib/commonjs/ui/screens/ReportBugScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +32 -61
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SupervisionScreen.js +4 -4
- package/lib/commonjs/ui/screens/SupervisionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +66 -58
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -2
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +6 -5
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +17 -82
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +3 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/index.js +7 -0
- package/lib/commonjs/ui/screens/index.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +12 -22
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +37 -67
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +20 -8
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +6 -10
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.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 +9 -9
- package/lib/module/assets/assets/one/README.md +8 -0
- package/lib/module/assets/assets/one/floral.jpg +0 -0
- package/lib/module/assets/assets/one/floral.jpg.d.ts +2 -0
- package/lib/module/assets/assets/one/floral.mp4 +0 -0
- package/lib/module/assets/assets/one/floral.mp4.d.ts +2 -0
- 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 +9 -9
- package/lib/module/assets/one/README.md +8 -0
- package/lib/module/assets/one/floral.jpg +0 -0
- package/lib/module/assets/one/floral.mp4 +0 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +2 -3
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/AccountInvitationAcceptance.js +1 -1
- package/lib/module/ui/components/AccountInvitationAcceptance.js.map +1 -1
- package/lib/module/ui/components/BloomLocaleBridge.js +1 -1
- package/lib/module/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/LanguageBridge.js +1 -1
- package/lib/module/ui/components/LanguageBridge.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +4 -17
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +29 -24
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +8 -32
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyOAuthCallback.js +3 -2
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +38 -6
- package/lib/module/ui/components/OxyProvider.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/ProfileButton.js +6 -4
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +24 -57
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js +17 -43
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js +14 -25
- package/lib/module/ui/components/SettingsIcon.js.map +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +39 -48
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +237 -475
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/storageUsage.js +56 -0
- package/lib/module/ui/components/authChooser/storageUsage.js.map +1 -0
- package/lib/module/ui/components/authChooser/styles.js +21 -70
- package/lib/module/ui/components/authChooser/styles.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +7 -6
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +26 -26
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +17 -51
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +3 -3
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +11 -13
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +3 -3
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js +14 -7
- package/lib/module/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +54 -113
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyEmailAccountChoice.js +1 -1
- package/lib/module/ui/components/signIn/OxyEmailAccountChoice.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js +30 -12
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/module/ui/components/signIn/accountFlowParts.js +1 -1
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/module/ui/components/supervision/PersonPicker.js +1 -1
- package/lib/module/ui/components/supervision/PersonPicker.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +7 -51
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/oxyRuntimeContext.js +49 -0
- package/lib/module/ui/context/oxyRuntimeContext.js.map +1 -0
- package/lib/module/ui/context/oxySupportContext.js +7 -0
- package/lib/module/ui/context/oxySupportContext.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +5 -2
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSupervision.js +1 -1
- package/lib/module/ui/hooks/queries/useSupervision.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +1 -1
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/hooks/useDisplayCurrency.js +1 -1
- package/lib/module/ui/hooks/useDisplayCurrency.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +1 -1
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +1 -1
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useLanguageManagement.js +34 -19
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/module/ui/hooks/useOxyEvent.js +1 -1
- package/lib/module/ui/hooks/useOxyEvent.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceHeader.js +41 -3
- package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -1
- package/lib/module/ui/hooks/useUsernameAvailability.js +56 -0
- package/lib/module/ui/hooks/useUsernameAvailability.js.map +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js +4 -4
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/index.js +4 -0
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +2 -0
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +3 -3
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +24 -102
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/screenComponents.js +96 -0
- package/lib/module/ui/navigation/screenComponents.js.map +1 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js +1 -1
- package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -1
- package/lib/module/ui/navigation/surfaceNavStack.js +25 -6
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js +4 -0
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js +19 -7
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- package/lib/module/ui/one-video.js +45 -0
- package/lib/module/ui/one-video.js.map +1 -0
- package/lib/module/ui/runtime/createOxyRuntime.js +7 -1
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +7 -6
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +10 -10
- 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 +36 -35
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +35 -64
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js +7 -7
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +13 -14
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +9 -9
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/DomainsScreen.js +6 -13
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +138 -287
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +18 -15
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +38 -189
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FileTrashScreen.js +1 -1
- package/lib/module/ui/screens/FileTrashScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +76 -64
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +8 -13
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +34 -35
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +9 -17
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +319 -328
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +9 -9
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyOneScreen.js +208 -0
- package/lib/module/ui/screens/OxyOneScreen.js.map +1 -0
- package/lib/module/ui/screens/PreferencesScreen.js +11 -11
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +64 -87
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +310 -235
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/ReportBugScreen.js +68 -0
- package/lib/module/ui/screens/ReportBugScreen.js.map +1 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js +33 -62
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SupervisionScreen.js +1 -1
- package/lib/module/ui/screens/SupervisionScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +67 -59
- 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/fileManagement/FileListSection.js +7 -6
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +19 -84
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js +3 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/index.js +1 -0
- package/lib/module/ui/screens/index.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +11 -21
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +37 -67
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +20 -8
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +5 -9
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/typescript/assets/one/floral.jpg.d.ts +2 -0
- package/lib/typescript/assets/one/floral.mp4.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +1 -2
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +3 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +4 -13
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +0 -4
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +8 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +2 -29
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/storageUsage.d.ts +11 -0
- package/lib/typescript/commonjs/ui/components/authChooser/storageUsage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts +24 -73
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts +22 -22
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -28
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyRuntimeContext.d.ts +31 -0
- package/lib/typescript/commonjs/ui/context/oxyRuntimeContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxySupportContext.d.ts +9 -0
- package/lib/typescript/commonjs/ui/context/oxySupportContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts +4 -2
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useUsernameAvailability.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +4 -4
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +15 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +10 -18
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/screenComponents.d.ts +4 -0
- package/lib/typescript/commonjs/ui/navigation/screenComponents.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +3 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +6 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/one-video.d.ts +3 -0
- package/lib/typescript/commonjs/ui/one-video.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- 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/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +4 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/OxyOneScreen.d.ts +4 -0
- package/lib/typescript/commonjs/ui/screens/OxyOneScreen.d.ts.map +1 -0
- 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/ReportBugScreen.d.ts +2 -0
- package/lib/typescript/commonjs/ui/screens/ReportBugScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts +1 -5
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/index.d.ts +1 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.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/types/navigation.d.ts +12 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +1 -2
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +3 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +4 -13
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +0 -4
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +8 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +2 -29
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/storageUsage.d.ts +11 -0
- package/lib/typescript/module/ui/components/authChooser/storageUsage.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts +24 -73
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +6 -6
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts +22 -22
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -28
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyRuntimeContext.d.ts +31 -0
- package/lib/typescript/module/ui/context/oxyRuntimeContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxySupportContext.d.ts +9 -0
- package/lib/typescript/module/ui/context/oxySupportContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts +4 -2
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useUsernameAvailability.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +4 -4
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +15 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +10 -18
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/screenComponents.d.ts +4 -0
- package/lib/typescript/module/ui/navigation/screenComponents.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +3 -1
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +6 -1
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/one-video.d.ts +3 -0
- package/lib/typescript/module/ui/one-video.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- 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/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +4 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/OxyOneScreen.d.ts +4 -0
- package/lib/typescript/module/ui/screens/OxyOneScreen.d.ts.map +1 -0
- 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/ReportBugScreen.d.ts +2 -0
- package/lib/typescript/module/ui/screens/ReportBugScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts +1 -5
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/index.d.ts +1 -0
- package/lib/typescript/module/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.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/types/navigation.d.ts +12 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/types/assets.d.ts +10 -0
- package/package.json +64 -48
- package/plugins/withOxySharedPermissions.js +2 -1
- package/plugins/withSharedDeviceSessionProvider.js +2 -1
- 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 +9 -9
- package/src/assets/one/README.md +8 -0
- package/src/assets/one/floral.jpg +0 -0
- package/src/assets/one/floral.jpg.d.ts +2 -0
- package/src/assets/one/floral.mp4 +0 -0
- package/src/assets/one/floral.mp4.d.ts +2 -0
- package/src/index.ts +9 -1
- package/src/types/assets.d.ts +10 -0
- package/src/ui/client.ts +2 -3
- package/src/ui/components/AccountInvitationAcceptance.tsx +1 -1
- package/src/ui/components/BloomLocaleBridge.tsx +1 -1
- package/src/ui/components/FollowButton.tsx +1 -1
- package/src/ui/components/LanguageBridge.tsx +1 -1
- package/src/ui/components/OxyAccountDialogScreen.tsx +3 -14
- package/src/ui/components/OxyAuthChooser.tsx +28 -24
- package/src/ui/components/OxyConsentScreen.tsx +8 -25
- package/src/ui/components/OxyOAuthCallback.tsx +3 -2
- package/src/ui/components/OxyProvider.tsx +34 -8
- package/src/ui/components/OxySignInButton.tsx +1 -1
- package/src/ui/components/ProfileButton.tsx +17 -4
- package/src/ui/components/ProfileSummaryCard.tsx +27 -68
- package/src/ui/components/RequireOxyAuth.tsx +16 -38
- package/src/ui/components/SettingsIcon.tsx +8 -33
- package/src/ui/components/SurfaceHeaderAction.tsx +1 -1
- package/src/ui/components/SurfaceScreen.tsx +56 -49
- package/src/ui/components/__tests__/AccountInvitationAcceptance.test.tsx +1 -1
- package/src/ui/components/__tests__/BloomLocaleBridge.test.tsx +1 -1
- package/src/ui/components/__tests__/LanguageBridge.test.tsx +1 -1
- package/src/ui/components/__tests__/followButtonAccessibility.test.tsx +1 -1
- package/src/ui/components/authChooser/AccountsMenuView.tsx +271 -521
- package/src/ui/components/authChooser/storageUsage.ts +75 -0
- package/src/ui/components/authChooser/styles.ts +14 -76
- package/src/ui/components/authChooser/types.ts +6 -6
- package/src/ui/components/fileManagement/FileViewer.tsx +7 -6
- package/src/ui/components/modals/DeleteAccountModal.tsx +25 -24
- package/src/ui/components/organizations/OrganizationClaimReview.tsx +1 -1
- package/src/ui/components/organizations/OrganizationClaims.tsx +1 -1
- package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +1 -1
- package/src/ui/components/organizations/OrganizationSettings.tsx +1 -1
- package/src/ui/components/payment/PaymentDetailsStep.tsx +13 -51
- package/src/ui/components/payment/PaymentMethodStep.tsx +4 -4
- package/src/ui/components/payment/PaymentReviewStep.tsx +12 -17
- package/src/ui/components/payment/PaymentSummaryStep.tsx +4 -4
- package/src/ui/components/signIn/InlineCommonsQr.tsx +9 -4
- package/src/ui/components/signIn/OxyAccountPicker.tsx +42 -93
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyEmailAccountChoice.tsx +1 -1
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +1 -1
- package/src/ui/components/signIn/OxySignInPanel.tsx +1 -1
- package/src/ui/components/signIn/OxySignUpPanel.tsx +1 -1
- package/src/ui/components/signIn/ReauthStep.tsx +26 -16
- package/src/ui/components/signIn/accountFlowParts.tsx +1 -1
- package/src/ui/components/supervision/PersonPicker.tsx +1 -1
- package/src/ui/context/OxyContext.tsx +15 -79
- package/src/ui/context/oxyContextTypes.ts +1 -0
- package/src/ui/context/oxyRuntimeContext.ts +69 -0
- package/src/ui/context/oxySupportContext.ts +9 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +1 -1
- package/src/ui/hooks/mutations/useServicesMutations.ts +1 -1
- package/src/ui/hooks/queries/useAccountQueries.ts +4 -2
- package/src/ui/hooks/queries/useAuthMethods.ts +1 -1
- package/src/ui/hooks/queries/useFileQueries.ts +1 -1
- package/src/ui/hooks/queries/usePaymentQueries.ts +1 -1
- package/src/ui/hooks/queries/usePersonalPlans.ts +1 -1
- package/src/ui/hooks/queries/useSecurityQueries.ts +1 -1
- package/src/ui/hooks/queries/useServicesQueries.ts +1 -1
- package/src/ui/hooks/queries/useSupervision.ts +1 -1
- package/src/ui/hooks/useAuth.ts +1 -1
- package/src/ui/hooks/useDeviceSwitcher.ts +1 -1
- package/src/ui/hooks/useDisplayCurrency.ts +1 -1
- package/src/ui/hooks/useFollow.ts +1 -1
- package/src/ui/hooks/useFollowTarget.ts +1 -1
- package/src/ui/hooks/useI18n.ts +1 -1
- package/src/ui/hooks/useLanguageManagement.ts +48 -23
- package/src/ui/hooks/useOxyEvent.ts +1 -1
- package/src/ui/hooks/useSurfaceHeader.ts +50 -2
- package/src/ui/hooks/useUsernameAvailability.ts +57 -0
- package/src/ui/icons/subsetGlyphMaps.ts +4 -4
- package/src/ui/index.ts +5 -0
- package/src/ui/navigation/__tests__/bottomSheetManager.test.ts +37 -0
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +27 -0
- package/src/ui/navigation/accountDialogManager.ts +16 -1
- package/src/ui/navigation/bottomSheetManager.ts +3 -3
- package/src/ui/navigation/routes.ts +75 -103
- package/src/ui/navigation/screenComponents.ts +96 -0
- package/src/ui/navigation/surfaceBackBridge.ts +1 -1
- package/src/ui/navigation/surfaceNavStack.ts +33 -6
- package/src/ui/navigation/surfaceRegistry.ts +7 -1
- package/src/ui/navigation/surfaces.ts +30 -15
- package/src/ui/one-video.tsx +44 -0
- package/src/ui/runtime/createOxyRuntime.ts +7 -1
- package/src/ui/screens/AccountMembersScreen.tsx +6 -6
- package/src/ui/screens/AccountSettingsScreen.tsx +14 -14
- package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
- package/src/ui/screens/AppInfoScreen.tsx +41 -42
- package/src/ui/screens/AvatarCropScreen.tsx +33 -57
- package/src/ui/screens/ChangeAvatarScreen.tsx +8 -8
- package/src/ui/screens/ConnectedAppsScreen.tsx +14 -16
- package/src/ui/screens/CreateAccountScreen.tsx +13 -13
- package/src/ui/screens/DomainsScreen.tsx +9 -14
- package/src/ui/screens/EditProfileFieldScreen.tsx +189 -282
- package/src/ui/screens/EditProfileScreen.tsx +21 -18
- package/src/ui/screens/FileManagementScreen.tsx +52 -209
- package/src/ui/screens/FileTrashScreen.tsx +3 -3
- package/src/ui/screens/HelpSupportScreen.tsx +59 -53
- package/src/ui/screens/HistoryViewScreen.tsx +10 -17
- package/src/ui/screens/LanguageSelectorScreen.tsx +37 -35
- package/src/ui/screens/LegalDocumentsScreen.tsx +10 -20
- package/src/ui/screens/ManageAccountScreen.tsx +367 -340
- package/src/ui/screens/NotificationsScreen.tsx +12 -12
- package/src/ui/screens/OxyOneScreen.tsx +223 -0
- package/src/ui/screens/PreferencesScreen.tsx +15 -15
- package/src/ui/screens/PrivacySettingsScreen.tsx +65 -89
- package/src/ui/screens/ProfileScreen.tsx +242 -268
- package/src/ui/screens/ReportBugScreen.tsx +68 -0
- package/src/ui/screens/SearchSettingsScreen.tsx +30 -65
- package/src/ui/screens/SupervisionScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +85 -62
- package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
- package/src/ui/screens/fileManagement/FileListSection.tsx +8 -7
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +16 -79
- package/src/ui/screens/fileManagement/UploadBar.tsx +4 -1
- package/src/ui/screens/index.ts +1 -0
- package/src/ui/screens/trust/TrustCenterScreen.tsx +13 -22
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +32 -62
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +10 -5
- package/src/ui/screens/trust/TrustRulesScreen.tsx +6 -9
- package/src/ui/types/navigation.ts +12 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js +0 -61
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +0 -1
- package/lib/module/ui/screens/UserLinksScreen.js +0 -57
- package/lib/module/ui/screens/UserLinksScreen.js.map +0 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts +0 -15
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts +0 -15
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +0 -1
- package/lib/typescript/types/expo-document-picker.d.ts +0 -35
- package/lib/typescript/types/expo-image-picker.d.ts +0 -35
- package/src/types/expo-document-picker.d.ts +0 -35
- package/src/types/expo-image-picker.d.ts +0 -35
- package/src/ui/screens/UserLinksScreen.tsx +0 -68
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery, useInfiniteQuery } from '@tanstack/react-query';
|
|
2
2
|
import { queryKeys } from './queryKeys';
|
|
3
|
-
import { useOxy } from '../../context/
|
|
3
|
+
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
4
4
|
import type { SecurityActivity, SecurityActivityResponse, SecurityEventType } from '@oxy.so/core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
2
2
|
import { authenticatedApiCall } from '@oxy.so/core';
|
|
3
3
|
import type { AccountStorageUsageResponse, ClientSession } from '@oxy.so/core';
|
|
4
4
|
import { queryKeys } from './queryKeys';
|
|
5
|
-
import { useOxy } from '../../context/
|
|
5
|
+
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
6
6
|
import { fetchSessionsWithFallback, mapSessionsToClient } from '../../utils/sessionHelpers';
|
|
7
7
|
|
|
8
8
|
// Per-account query scope. In the real-session switch model the active session
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
|
-
import { useOxy } from '../../context/
|
|
2
|
+
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
3
3
|
export const supervisionQueryKeys = {
|
|
4
4
|
all: ['oxy', 'safety', 'supervision'] as const,
|
|
5
5
|
account: (id: string, sessionId: string) =>
|
package/src/ui/hooks/useAuth.ts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
import { useCallback } from 'react';
|
|
30
|
-
import { useOxyAuthActions } from '../context/
|
|
30
|
+
import { useOxyAuthActions } from '../context/oxyRuntimeContext';
|
|
31
31
|
import type { User } from '@oxy.so/core';
|
|
32
32
|
import { isWebBrowser } from '../utils/isWebBrowser';
|
|
33
33
|
import { useOxyRuntime, useRuntimeSelector, type OxyRuntimeSnapshot } from '../runtime';
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
type DeviceContext,
|
|
6
6
|
type SwitcherPrincipalRow,
|
|
7
7
|
} from '@oxy.so/core/session';
|
|
8
|
-
import { useOxy } from '../context/
|
|
8
|
+
import { useOxy } from '../context/oxyRuntimeContext';
|
|
9
9
|
import { useI18n } from './useI18n';
|
|
10
10
|
import { useAccountDialogSnapshot } from './accountDialogSnapshot';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSyncExternalStore } from 'react';
|
|
2
2
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { authenticatedApiCall, type UserPreferences } from '@oxy.so/core';
|
|
4
|
-
import { useOxy } from '../context/
|
|
4
|
+
import { useOxy } from '../context/oxyRuntimeContext';
|
|
5
5
|
import { useCurrentUser } from './queries/useAccountQueries';
|
|
6
6
|
import { queryKeys } from './queries/queryKeys';
|
|
7
7
|
import { useAuthStore } from '../stores/authStore';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { useFollowStore } from '../stores/followStore';
|
|
4
|
-
import { useOxy } from '../context/
|
|
4
|
+
import { useOxy } from '../context/oxyRuntimeContext';
|
|
5
5
|
import type { OxyServices, BulkFollowResult, BulkUnfollowResult } from '@oxy.so/core';
|
|
6
6
|
import { useShallow } from 'zustand/react/shallow';
|
|
7
7
|
import { queryKeys } from './queries/queryKeys';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useCallback, useEffect } from 'react';
|
|
19
19
|
import type { FollowStatus } from '@oxy.so/contracts';
|
|
20
|
-
import { useOxy } from '../context/
|
|
20
|
+
import { useOxy } from '../context/oxyRuntimeContext';
|
|
21
21
|
import {
|
|
22
22
|
isCompleteFollowStatus,
|
|
23
23
|
isFollowedGlobally,
|
package/src/ui/hooks/useI18n.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
1
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import type { ApiError, User, SupportedLanguage } from '@oxy.so/core';
|
|
3
3
|
import {
|
|
4
4
|
FALLBACK_LOCALE,
|
|
@@ -35,8 +35,8 @@ export interface UseLanguageManagementResult {
|
|
|
35
35
|
*/
|
|
36
36
|
currentLanguage: string;
|
|
37
37
|
/**
|
|
38
|
-
* The ordered account locales (primary first) when signed in, or the
|
|
39
|
-
*
|
|
38
|
+
* The ordered account locales (primary first) when signed in, or the locally
|
|
39
|
+
* persisted selection when signed out. Empty only before the guest override loads
|
|
40
40
|
* and no device locale resolves.
|
|
41
41
|
*/
|
|
42
42
|
languages: string[];
|
|
@@ -50,6 +50,8 @@ export interface UseLanguageManagementResult {
|
|
|
50
50
|
* then follows the refreshed `user`.
|
|
51
51
|
*/
|
|
52
52
|
setLanguage: (locale: string) => Promise<void>;
|
|
53
|
+
/** Persist an ordered guest selection, primary first. */
|
|
54
|
+
setLanguages: (locales: readonly string[]) => Promise<void>;
|
|
53
55
|
hydrateLanguage: () => Promise<void>;
|
|
54
56
|
}
|
|
55
57
|
|
|
@@ -150,21 +152,35 @@ export const useLanguageManagement = ({
|
|
|
150
152
|
// The device locale is fixed for the lifetime of the runtime.
|
|
151
153
|
const deviceLanguage = useMemo(resolveDeviceLocale, []);
|
|
152
154
|
|
|
153
|
-
// The
|
|
154
|
-
//
|
|
155
|
-
|
|
156
|
-
const
|
|
155
|
+
// The guest selection is persisted in order, with the first locale primary.
|
|
156
|
+
// Until it loads, the UI uses the device locale.
|
|
157
|
+
const [guestLanguages, setGuestLanguages] = useState<string[]>([]);
|
|
158
|
+
const selectionVersion = useRef(0);
|
|
157
159
|
|
|
158
160
|
const loadLanguageFromStorage = useCallback(async (): Promise<void> => {
|
|
159
161
|
if (!storage) {
|
|
160
162
|
return;
|
|
161
163
|
}
|
|
162
164
|
|
|
165
|
+
const version = selectionVersion.current;
|
|
163
166
|
try {
|
|
164
167
|
const savedLanguageRaw = await storage.getItem(languageKey);
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
// Migrate the former single locale without discarding existing preferences.
|
|
169
|
+
let stored: unknown = savedLanguageRaw;
|
|
170
|
+
if (savedLanguageRaw?.startsWith('[')) {
|
|
171
|
+
stored = JSON.parse(savedLanguageRaw);
|
|
172
|
+
}
|
|
173
|
+
const entries = Array.isArray(stored) ? stored : [stored];
|
|
174
|
+
const normalized = [
|
|
175
|
+
...new Set(
|
|
176
|
+
entries.flatMap((entry) => {
|
|
177
|
+
const locale = typeof entry === 'string' ? normalizeLocale(entry) : undefined;
|
|
178
|
+
return locale ? [locale] : [];
|
|
179
|
+
}),
|
|
180
|
+
),
|
|
181
|
+
];
|
|
182
|
+
if (normalized.length && version === selectionVersion.current) {
|
|
183
|
+
setGuestLanguages(normalized);
|
|
168
184
|
}
|
|
169
185
|
} catch (error) {
|
|
170
186
|
const message = extractErrorMessage(error, 'Failed to load language preference');
|
|
@@ -189,20 +205,26 @@ export const useLanguageManagement = ({
|
|
|
189
205
|
});
|
|
190
206
|
}, [loadLanguageFromStorage, logger]);
|
|
191
207
|
|
|
192
|
-
const
|
|
193
|
-
async (
|
|
208
|
+
const setLanguages = useCallback(
|
|
209
|
+
async (locales: readonly string[]): Promise<void> => {
|
|
194
210
|
if (!storage) {
|
|
195
211
|
throw new Error('Storage not initialized');
|
|
196
212
|
}
|
|
197
213
|
|
|
198
|
-
const normalized =
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
214
|
+
const normalized = [
|
|
215
|
+
...new Set(
|
|
216
|
+
locales.map((locale) => {
|
|
217
|
+
const canonical = normalizeLocale(locale);
|
|
218
|
+
if (!canonical) throw new Error(`Unsupported locale: ${locale}`);
|
|
219
|
+
return canonical;
|
|
220
|
+
}),
|
|
221
|
+
),
|
|
222
|
+
];
|
|
223
|
+
if (!normalized.length) throw new Error('At least one language is required');
|
|
224
|
+
const version = ++selectionVersion.current;
|
|
203
225
|
try {
|
|
204
|
-
await storage.setItem(languageKey, normalized);
|
|
205
|
-
|
|
226
|
+
await storage.setItem(languageKey, JSON.stringify(normalized));
|
|
227
|
+
if (version === selectionVersion.current) setGuestLanguages(normalized);
|
|
206
228
|
} catch (error) {
|
|
207
229
|
const message = extractErrorMessage(error, 'Failed to save language preference');
|
|
208
230
|
onError?.({
|
|
@@ -221,19 +243,21 @@ export const useLanguageManagement = ({
|
|
|
221
243
|
[languageKey, logger, onError, storage],
|
|
222
244
|
);
|
|
223
245
|
|
|
246
|
+
const setLanguage = useCallback((locale: string) => setLanguages([locale]), [setLanguages]);
|
|
247
|
+
|
|
224
248
|
const languages = useMemo<string[]>(() => {
|
|
225
249
|
if (user) {
|
|
226
250
|
return getUserLanguages(user);
|
|
227
251
|
}
|
|
228
|
-
return
|
|
229
|
-
}, [user,
|
|
252
|
+
return guestLanguages;
|
|
253
|
+
}, [user, guestLanguages]);
|
|
230
254
|
|
|
231
255
|
const currentLanguage = useMemo<string>(() => {
|
|
232
256
|
if (user) {
|
|
233
257
|
return getPrimaryLanguage(user) ?? FALLBACK_LOCALE;
|
|
234
258
|
}
|
|
235
|
-
return
|
|
236
|
-
}, [user,
|
|
259
|
+
return guestLanguages[0] ?? deviceLanguage;
|
|
260
|
+
}, [user, guestLanguages, deviceLanguage]);
|
|
237
261
|
|
|
238
262
|
const metadata = useMemo(() => getLanguageMetadata(currentLanguage), [currentLanguage]);
|
|
239
263
|
const languageName = useMemo(() => getLanguageName(currentLanguage), [currentLanguage]);
|
|
@@ -249,6 +273,7 @@ export const useLanguageManagement = ({
|
|
|
249
273
|
languageName,
|
|
250
274
|
nativeLanguageName,
|
|
251
275
|
setLanguage,
|
|
276
|
+
setLanguages,
|
|
252
277
|
hydrateLanguage: loadLanguageFromStorage,
|
|
253
278
|
};
|
|
254
279
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, useContext, useLayoutEffect, useRef } from 'react';
|
|
1
|
+
import { createContext, useCallback, useContext, useLayoutEffect, useRef } from 'react';
|
|
2
2
|
import type { DialogHeaderConfig } from '@oxy.so/bloom/dialog';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -24,6 +24,7 @@ export type SurfaceHeaderContent = Pick<
|
|
|
24
24
|
| 'titleContent'
|
|
25
25
|
| 'subtitle'
|
|
26
26
|
| 'largeTitle'
|
|
27
|
+
| 'titleLayout'
|
|
27
28
|
| 'left'
|
|
28
29
|
| 'right'
|
|
29
30
|
| 'onBack'
|
|
@@ -139,6 +140,7 @@ function surfaceHeaderContentEqual(
|
|
|
139
140
|
a.titleContent === b.titleContent &&
|
|
140
141
|
a.subtitle === b.subtitle &&
|
|
141
142
|
a.largeTitle === b.largeTitle &&
|
|
143
|
+
a.titleLayout === b.titleLayout &&
|
|
142
144
|
a.left === b.left &&
|
|
143
145
|
a.right === b.right &&
|
|
144
146
|
!!a.onBack === !!b.onBack &&
|
|
@@ -165,6 +167,11 @@ function surfaceHeaderContentEqual(
|
|
|
165
167
|
* the object for us (i.e. anything not compiled by the React Compiler).
|
|
166
168
|
*/
|
|
167
169
|
export function useSurfaceHeader(content: SurfaceHeaderContent | null | undefined): void {
|
|
170
|
+
const liveContent = useRef(content);
|
|
171
|
+
useLayoutEffect(() => {
|
|
172
|
+
liveContent.current = content;
|
|
173
|
+
});
|
|
174
|
+
const onBack = useCallback(() => liveContent.current?.onBack?.(), []);
|
|
168
175
|
const ctx = useContext(SurfaceHeaderContext);
|
|
169
176
|
const set = ctx?.setContent;
|
|
170
177
|
const setRef = useRef(set);
|
|
@@ -177,7 +184,47 @@ export function useSurfaceHeader(content: SurfaceHeaderContent | null | undefine
|
|
|
177
184
|
useLayoutEffect(() => {
|
|
178
185
|
const s = setRef.current;
|
|
179
186
|
if (!s) return;
|
|
180
|
-
|
|
187
|
+
// Compare presentation values, but dispatch events to the latest committed
|
|
188
|
+
// screen state. Typing in a form must not leave Save bound to its old values.
|
|
189
|
+
const next: SurfaceHeaderContent | null = content
|
|
190
|
+
? {
|
|
191
|
+
...content,
|
|
192
|
+
...(content.onBack ? { onBack } : {}),
|
|
193
|
+
...(content.primaryAction
|
|
194
|
+
? {
|
|
195
|
+
primaryAction: {
|
|
196
|
+
...content.primaryAction,
|
|
197
|
+
onPress: () => liveContent.current?.primaryAction?.onPress(),
|
|
198
|
+
},
|
|
199
|
+
}
|
|
200
|
+
: {}),
|
|
201
|
+
...(content.actions
|
|
202
|
+
? {
|
|
203
|
+
actions: content.actions.map((action, index) => ({
|
|
204
|
+
...action,
|
|
205
|
+
onPress: () => liveContent.current?.actions?.[index]?.onPress(),
|
|
206
|
+
})),
|
|
207
|
+
}
|
|
208
|
+
: {}),
|
|
209
|
+
...(content.search
|
|
210
|
+
? {
|
|
211
|
+
search: {
|
|
212
|
+
...content.search,
|
|
213
|
+
onValueChange: (value) => liveContent.current?.search?.onValueChange(value),
|
|
214
|
+
onSubmit: () => liveContent.current?.search?.onSubmit?.(),
|
|
215
|
+
},
|
|
216
|
+
}
|
|
217
|
+
: {}),
|
|
218
|
+
...(content.segments
|
|
219
|
+
? {
|
|
220
|
+
segments: {
|
|
221
|
+
...content.segments,
|
|
222
|
+
onChange: (value) => liveContent.current?.segments?.onChange(value),
|
|
223
|
+
},
|
|
224
|
+
}
|
|
225
|
+
: {}),
|
|
226
|
+
}
|
|
227
|
+
: null;
|
|
181
228
|
if (lastRef.current !== undefined && surfaceHeaderContentEqual(lastRef.current, next)) return;
|
|
182
229
|
lastRef.current = next;
|
|
183
230
|
s(next);
|
|
@@ -187,6 +234,7 @@ export function useSurfaceHeader(content: SurfaceHeaderContent | null | undefine
|
|
|
187
234
|
useLayoutEffect(
|
|
188
235
|
() => () => {
|
|
189
236
|
lastRef.current = undefined;
|
|
237
|
+
liveContent.current = null;
|
|
190
238
|
setRef.current?.(null);
|
|
191
239
|
},
|
|
192
240
|
[],
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { usernameSchema } from '@oxy.so/contracts';
|
|
3
|
+
import { useOxy } from '../context/oxyRuntimeContext';
|
|
4
|
+
|
|
5
|
+
type CheckResult = { candidate: string; status: 'available' | 'taken' | 'error' };
|
|
6
|
+
|
|
7
|
+
/** Debounced server check; a response only applies to the draft that requested it. */
|
|
8
|
+
export function useUsernameAvailability(value: string, enabled: boolean) {
|
|
9
|
+
const { oxyServices, user } = useOxy();
|
|
10
|
+
const candidate = value.trim();
|
|
11
|
+
const parsed = usernameSchema.safeParse(candidate);
|
|
12
|
+
const invalid = parsed.success ? undefined : parsed.error.issues[0]?.message;
|
|
13
|
+
const unchanged = candidate.toLowerCase() === user?.username?.toLowerCase();
|
|
14
|
+
const [result, setResult] = useState<CheckResult>();
|
|
15
|
+
const [attempt, setAttempt] = useState(0);
|
|
16
|
+
|
|
17
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: attempt explicitly retries the same candidate.
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (!enabled || invalid || unchanged) return;
|
|
20
|
+
setResult(undefined);
|
|
21
|
+
let active = true;
|
|
22
|
+
const timer = setTimeout(() => {
|
|
23
|
+
void oxyServices.auth.checkUsername(candidate).then(
|
|
24
|
+
({ available }) => {
|
|
25
|
+
if (active) setResult({ candidate, status: available ? 'available' : 'taken' });
|
|
26
|
+
},
|
|
27
|
+
() => {
|
|
28
|
+
if (active) setResult({ candidate, status: 'error' });
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
}, 350);
|
|
32
|
+
return () => {
|
|
33
|
+
active = false;
|
|
34
|
+
clearTimeout(timer);
|
|
35
|
+
};
|
|
36
|
+
}, [candidate, enabled, invalid, unchanged, oxyServices, attempt]);
|
|
37
|
+
|
|
38
|
+
const status = !enabled
|
|
39
|
+
? 'idle'
|
|
40
|
+
: unchanged
|
|
41
|
+
? 'unchanged'
|
|
42
|
+
: invalid
|
|
43
|
+
? 'invalid'
|
|
44
|
+
: result?.candidate === candidate
|
|
45
|
+
? result.status
|
|
46
|
+
: 'checking';
|
|
47
|
+
return {
|
|
48
|
+
candidate,
|
|
49
|
+
status,
|
|
50
|
+
invalid,
|
|
51
|
+
canSave: status === 'available' || status === 'unchanged',
|
|
52
|
+
retry: () => {
|
|
53
|
+
setResult(undefined);
|
|
54
|
+
setAttempt((value) => value + 1);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -66,7 +66,6 @@ export const ioniconsGlyphMap = {
|
|
|
66
66
|
"footsteps": 62254,
|
|
67
67
|
"gift": 62263,
|
|
68
68
|
"gift-outline": 62264,
|
|
69
|
-
"globe-outline": 62288,
|
|
70
69
|
"grid": 62293,
|
|
71
70
|
"hand-left": 62299,
|
|
72
71
|
"hardware-chip-outline": 62309,
|
|
@@ -93,6 +92,7 @@ export const ioniconsGlyphMap = {
|
|
|
93
92
|
"location-outline": 62405,
|
|
94
93
|
"lock-closed": 62407,
|
|
95
94
|
"log-out-outline": 62417,
|
|
95
|
+
"mail": 62512,
|
|
96
96
|
"musical-notes": 62569,
|
|
97
97
|
"navigate": 62572,
|
|
98
98
|
"open": 62599,
|
|
@@ -147,7 +147,6 @@ export const materialCommunityIconsGlyphMap = {
|
|
|
147
147
|
"account-eye-outline": 987771,
|
|
148
148
|
"account-group": 985161,
|
|
149
149
|
"account-multiple": 983054,
|
|
150
|
-
"account-multiple-outline": 983055,
|
|
151
150
|
"account-outline": 983059,
|
|
152
151
|
"account-plus": 983060,
|
|
153
152
|
"account-search": 983062,
|
|
@@ -236,6 +235,7 @@ export const materialCommunityIconsGlyphMap = {
|
|
|
236
235
|
"folder-open-outline": 986575,
|
|
237
236
|
"folder-outline": 983638,
|
|
238
237
|
"folder-zip-outline": 985017,
|
|
238
|
+
"forward": 983693,
|
|
239
239
|
"function": 983701,
|
|
240
240
|
"ghost": 983712,
|
|
241
241
|
"gift": 986692,
|
|
@@ -249,6 +249,7 @@ export const materialCommunityIconsGlyphMap = {
|
|
|
249
249
|
"image": 983785,
|
|
250
250
|
"image-multiple-outline": 983791,
|
|
251
251
|
"image-outline": 985462,
|
|
252
|
+
"inbox": 984711,
|
|
252
253
|
"information": 983804,
|
|
253
254
|
"information-outline": 983805,
|
|
254
255
|
"key": 983814,
|
|
@@ -261,6 +262,7 @@ export const materialCommunityIconsGlyphMap = {
|
|
|
261
262
|
"lock-outline": 983873,
|
|
262
263
|
"logout": 983875,
|
|
263
264
|
"magnify": 983881,
|
|
265
|
+
"mail": 986811,
|
|
264
266
|
"map-marker": 983886,
|
|
265
267
|
"map-marker-multiple": 983888,
|
|
266
268
|
"map-marker-outline": 985049,
|
|
@@ -272,7 +274,6 @@ export const materialCommunityIconsGlyphMap = {
|
|
|
272
274
|
"network": 984819,
|
|
273
275
|
"null": 985058,
|
|
274
276
|
"numeric": 983968,
|
|
275
|
-
"opacity": 984524,
|
|
276
277
|
"open-in-app": 984011,
|
|
277
278
|
"openid": 984013,
|
|
278
279
|
"palette": 984024,
|
|
@@ -304,7 +305,6 @@ export const materialCommunityIconsGlyphMap = {
|
|
|
304
305
|
"shield-search": 986522,
|
|
305
306
|
"signature": 986619,
|
|
306
307
|
"solid": 984717,
|
|
307
|
-
"sort": 984250,
|
|
308
308
|
"sort-alphabetical-variant": 984251,
|
|
309
309
|
"sort-numeric-variant": 984254,
|
|
310
310
|
"star": 984270,
|
package/src/ui/index.ts
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
/// <reference path="../types/react-native-classname.d.ts" />
|
|
16
16
|
/// <reference path="../types/react-native-web-style.d.ts" />
|
|
17
17
|
|
|
18
|
+
import { registerScreens } from './navigation/routes';
|
|
19
|
+
import { screenComponents } from './navigation/screenComponents';
|
|
20
|
+
|
|
21
|
+
registerScreens(screenComponents);
|
|
22
|
+
|
|
18
23
|
// Components
|
|
19
24
|
export { default as OxyProvider } from './components/OxyProvider';
|
|
20
25
|
export { default as OxySignInButton } from './components/OxySignInButton';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createSurfaceNavStack } from '../surfaceNavStack';
|
|
2
|
+
import { showBottomSheet, goBack } from '../bottomSheetManager';
|
|
3
|
+
import { presentRoute, topMorphableSurface } from '../surfaces';
|
|
4
|
+
|
|
5
|
+
jest.mock('../surfaces', () => ({
|
|
6
|
+
presentRoute: jest.fn(),
|
|
7
|
+
topMorphableSurface: jest.fn(),
|
|
8
|
+
closeAllRouteSurfaces: jest.fn(),
|
|
9
|
+
}));
|
|
10
|
+
|
|
11
|
+
describe('imperative navigation preserves the visible surface history', () => {
|
|
12
|
+
beforeEach(() => jest.clearAllMocks());
|
|
13
|
+
|
|
14
|
+
it('morphs an open detached account menu and backs to it instead of presenting a new root', () => {
|
|
15
|
+
const stack = createSurfaceNavStack('AccountDialog');
|
|
16
|
+
jest
|
|
17
|
+
.mocked(topMorphableSurface)
|
|
18
|
+
.mockReturnValue({ navigate: stack.navigate, goBack: stack.goBack } as ReturnType<
|
|
19
|
+
typeof topMorphableSurface
|
|
20
|
+
>);
|
|
21
|
+
showBottomSheet('ManageAccount');
|
|
22
|
+
expect(presentRoute).not.toHaveBeenCalled();
|
|
23
|
+
expect(stack.getTop().route).toBe('ManageAccount');
|
|
24
|
+
expect(stack.canGoBack()).toBe(true);
|
|
25
|
+
expect(goBack()).toBe(true);
|
|
26
|
+
expect(stack.getTop().route).toBe('AccountDialog');
|
|
27
|
+
expect(goBack()).toBe(false);
|
|
28
|
+
expect(stack.store.getState().closing).toBe(false);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('opens a root only when there is no existing surface', () => {
|
|
32
|
+
jest.mocked(topMorphableSurface).mockReturnValue(undefined);
|
|
33
|
+
showBottomSheet('HelpSupport');
|
|
34
|
+
expect(presentRoute).toHaveBeenCalledWith('HelpSupport', {});
|
|
35
|
+
expect(goBack()).toBe(false);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -40,6 +40,20 @@ describe('createSurfaceNavStack', () => {
|
|
|
40
40
|
expect(stack.getTop().step).toBe(1);
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
+
it('backs through wizard history before leaving a drilled-in route', () => {
|
|
44
|
+
const stack = createSurfaceNavStack('AccountDialog');
|
|
45
|
+
stack.navigate('LegalDocuments', { initialStep: 2 });
|
|
46
|
+
expect(stack.goBack()).toBe(true);
|
|
47
|
+
expect(stack.getTop()).toMatchObject({ route: 'LegalDocuments', step: 1 });
|
|
48
|
+
expect(stack.goBack()).toBe(true);
|
|
49
|
+
expect(stack.getTop()).toMatchObject({ route: 'LegalDocuments', step: 0 });
|
|
50
|
+
expect(stack.goBack()).toBe(true);
|
|
51
|
+
expect(stack.getTop().route).toBe('AccountDialog');
|
|
52
|
+
expect(stack.canGoBack()).toBe(false);
|
|
53
|
+
expect(stack.goBack()).toBe(false);
|
|
54
|
+
expect(stack.store.getState().closing).toBe(false);
|
|
55
|
+
});
|
|
56
|
+
|
|
43
57
|
it('requestDismiss flips closing once', () => {
|
|
44
58
|
const stack = createSurfaceNavStack('ManageAccount');
|
|
45
59
|
stack.requestDismiss('done');
|
|
@@ -185,3 +199,16 @@ describe('pushSurfaceBackHandler', () => {
|
|
|
185
199
|
expect(calls).toEqual(['top']);
|
|
186
200
|
});
|
|
187
201
|
});
|
|
202
|
+
|
|
203
|
+
it('reports forward and backward content transitions without changing root navigation', () => {
|
|
204
|
+
const stack = createSurfaceNavStack('ManageAccount');
|
|
205
|
+
expect(stack.store.getState().direction).toBe('none');
|
|
206
|
+
stack.navigate('EditProfile');
|
|
207
|
+
expect(stack.store.getState().direction).toBe('forward');
|
|
208
|
+
stack.goBack();
|
|
209
|
+
expect(stack.store.getState().direction).toBe('backward');
|
|
210
|
+
stack.setStep(2);
|
|
211
|
+
expect(stack.store.getState().direction).toBe('forward');
|
|
212
|
+
stack.setStep(1);
|
|
213
|
+
expect(stack.store.getState().direction).toBe('backward');
|
|
214
|
+
});
|
|
@@ -10,16 +10,30 @@
|
|
|
10
10
|
* view) from a non-React call site.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import type { ReactNode } from 'react';
|
|
13
14
|
import type { AccountDialogView } from '@oxy.so/core/session';
|
|
14
15
|
|
|
15
16
|
/** An app-owned action rendered inside the shared account menu. */
|
|
16
17
|
export interface AccountDialogMenuItem {
|
|
17
18
|
key: string;
|
|
18
19
|
label: string;
|
|
19
|
-
icon
|
|
20
|
+
/** An icon name or an app-owned icon element. */
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
description?: string;
|
|
23
|
+
badge?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Default false: close the account dialog before navigating. */
|
|
26
|
+
keepOpen?: boolean;
|
|
20
27
|
onPress: () => void;
|
|
21
28
|
}
|
|
22
29
|
|
|
30
|
+
/** App-owned group, rendered as one rounded card in the account menu. */
|
|
31
|
+
export interface AccountDialogMenuSection {
|
|
32
|
+
key: string;
|
|
33
|
+
title?: string;
|
|
34
|
+
items: readonly AccountDialogMenuItem[];
|
|
35
|
+
}
|
|
36
|
+
|
|
23
37
|
/**
|
|
24
38
|
* Live open/close handles registered by the mounted provider. `open` presents
|
|
25
39
|
* the `AccountDialog` surface (and points its view); `close` dismisses it. Both
|
|
@@ -40,6 +54,7 @@ export interface AccountDialogConsumerHooks {
|
|
|
40
54
|
onAddAccount?: () => void;
|
|
41
55
|
onNavigateProfile?: () => void;
|
|
42
56
|
menuItems?: readonly AccountDialogMenuItem[];
|
|
57
|
+
menuSections?: readonly AccountDialogMenuSection[];
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
let controls: AccountDialogControls | null = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RouteName } from './routes';
|
|
2
2
|
import { isValidRoute } from './routes';
|
|
3
3
|
import { getSurfaceConfig } from './surfaceRegistry';
|
|
4
|
-
import { closeAllRouteSurfaces, presentRoute,
|
|
4
|
+
import { closeAllRouteSurfaces, presentRoute, topMorphableSurface } from './surfaces';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Bottom-sheet manager — the INTERNAL adapter that keeps the historical
|
|
@@ -37,7 +37,7 @@ export const showBottomSheet = (
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const top =
|
|
40
|
+
const top = topMorphableSurface();
|
|
41
41
|
if (top && !getSurfaceConfig(screen, props).stacks) {
|
|
42
42
|
top.navigate(screen, props);
|
|
43
43
|
} else {
|
|
@@ -55,6 +55,6 @@ export const closeBottomSheet = (): void => {
|
|
|
55
55
|
* frame was popped, `false` when the surface is already at its root frame.
|
|
56
56
|
*/
|
|
57
57
|
export const goBack = (): boolean => {
|
|
58
|
-
const top =
|
|
58
|
+
const top = topMorphableSurface();
|
|
59
59
|
return top ? top.goBack() : false;
|
|
60
60
|
};
|