@oxy.so/services 11.2.0-oxy-one.3 → 11.2.0-oxy-one.4
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/icons/OxyServices.tsx +42 -40
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +58 -31
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/notifications/deviceNotifications.js +8 -4
- package/lib/commonjs/notifications/deviceNotifications.js.map +1 -1
- package/lib/commonjs/ui/analytics/productAnalytics.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/BenefitList.js.map +1 -1
- package/lib/commonjs/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/commonjs/ui/components/LanguageBridge.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthPrompt.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.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/PeableButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/followButtonAccessibility.js.map +1 -1
- package/lib/commonjs/ui/components/followRules.js.map +1 -1
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -1
- package/lib/commonjs/ui/components/logo/LogoText.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/oauthNavigation.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/artwork.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -1
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -1
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -1
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -1
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/commonjs/ui/constants/spacing.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/isolatedOAuthSession.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js +38 -38
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useReduceMotion.js.map +1 -1
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceFrameWidth.js.map +1 -1
- package/lib/commonjs/ui/icons/Ionicons.js.map +1 -1
- package/lib/commonjs/ui/icons/MaterialCommunityIcons.js.map +1 -1
- package/lib/commonjs/ui/icons/decorativeIconSet.js.map +1 -1
- package/lib/commonjs/ui/isFrontend.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- package/lib/commonjs/ui/oauth/applicationSessionLane.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserAuthTransport.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -1
- package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/commonjs/ui/oauth/nativeAuthTransport.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthHandshake.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthPopup.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthPopupMessages.js.map +1 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +2 -5
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +3 -3
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +7 -7
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -1
- package/lib/commonjs/ui/screens/linkFormat.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
- package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/commonjs/ui/session/tokenLossRecovery.js.map +1 -1
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/clipboard.native.js +23 -6
- package/lib/commonjs/ui/utils/clipboard.native.js.map +1 -1
- package/lib/commonjs/ui/utils/commonsStoreLinks.js.map +1 -1
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +24 -24
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
- package/lib/commonjs/utils/hookUtils.js +2 -4
- package/lib/commonjs/utils/hookUtils.js.map +1 -1
- package/lib/module/assets/assets/icons/OxyServices.tsx +42 -40
- package/lib/module/assets/assets/illustrations/HighFive.tsx +58 -31
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/assets/illustrations/HighFive.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/notifications/deviceNotifications.js +8 -4
- package/lib/module/notifications/deviceNotifications.js.map +1 -1
- package/lib/module/ui/analytics/productAnalytics.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/BenefitList.js.map +1 -1
- package/lib/module/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FollowTargetButton.js +1 -1
- package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/module/ui/components/LanguageBridge.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyAuthPrompt.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- 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/OxySignInRequestSurface.js.map +1 -1
- package/lib/module/ui/components/PeableButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js.map +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js.map +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/feedback/constants.js.map +1 -1
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/followButtonAccessibility.js.map +1 -1
- package/lib/module/ui/components/followRules.js.map +1 -1
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -1
- package/lib/module/ui/components/logo/LogoText.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/oauthNavigation.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/payment/constants.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/module/ui/components/signIn/artwork.js.map +1 -1
- package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -1
- package/lib/module/ui/components/styles/overlay.js.map +1 -1
- package/lib/module/ui/components/styles/shadow.js.map +1 -1
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -1
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/module/ui/constants/spacing.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/isolatedOAuthSession.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/accountDialogSnapshot.js.map +1 -1
- package/lib/module/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/persistedQueryCache.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/userCache.js +38 -38
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useReduceMotion.js.map +1 -1
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/hooks/useStorage.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceFrameWidth.js.map +1 -1
- package/lib/module/ui/icons/Ionicons.js.map +1 -1
- package/lib/module/ui/icons/MaterialCommunityIcons.js.map +1 -1
- package/lib/module/ui/icons/decorativeIconSet.js.map +1 -1
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/isFrontend.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- package/lib/module/ui/oauth/applicationSessionLane.js.map +1 -1
- package/lib/module/ui/oauth/browserAuthTransport.js.map +1 -1
- package/lib/module/ui/oauth/browserBridge.js.map +1 -1
- package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/module/ui/oauth/nativeAuthTransport.js.map +1 -1
- package/lib/module/ui/oauth/oauthHandshake.js.map +1 -1
- package/lib/module/ui/oauth/oauthPopup.js.map +1 -1
- package/lib/module/ui/oauth/oauthPopupMessages.js.map +1 -1
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +2 -5
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +3 -3
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +7 -7
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -1
- package/lib/module/ui/screens/linkFormat.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/session/backgroundSession.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js.map +1 -1
- package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/module/ui/session/identityBinding.js.map +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/module/ui/session/tokenLossRecovery.js.map +1 -1
- package/lib/module/ui/session/tokenTransport.js.map +1 -1
- package/lib/module/ui/stores/assetStore.js.map +1 -1
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/clipboard.native.js +23 -6
- package/lib/module/ui/utils/clipboard.native.js.map +1 -1
- package/lib/module/ui/utils/commonsStoreLinks.js.map +1 -1
- package/lib/module/ui/utils/errorHandlers.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +25 -25
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/iconNames.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/ui/utils/userUtils.js.map +1 -1
- package/lib/module/utils/hookUtils.js +2 -4
- package/lib/module/utils/hookUtils.js.map +1 -1
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/commonjs/assets/illustrations/HighFive.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +4 -4
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts +8 -4
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/analytics/productAnalytics.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BenefitList.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/LanguageBridge.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/LanguageBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/useFeedbackForm.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/followButtonAccessibility.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/followRules.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/oauthNavigation.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/PaymentMethodStep.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/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +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.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/artwork.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/utils/hasTouchHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/utils/roundLayoutSize.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/utils/splitStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/isolatedOAuthSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/paymentTypes.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.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/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +5 -5
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/decorativeIconSet.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/isFrontend.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/applicationSessionLane.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/completeOAuthCode.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/nativeAuthTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthPopupMessages.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.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/ChangeAvatarScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.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/LearnMoreUsernamesScreen.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.map +1 -1
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.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/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +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.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.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/TrustFAQScreen.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/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/tokenLossRecovery.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/clipboard.native.d.ts +16 -5
- package/lib/typescript/commonjs/ui/utils/clipboard.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/commonsStoreLinks.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +4 -4
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/hookUtils.d.ts.map +1 -1
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/module/assets/illustrations/HighFive.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +4 -4
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/notifications/deviceNotifications.d.ts +8 -4
- package/lib/typescript/module/notifications/deviceNotifications.d.ts.map +1 -1
- package/lib/typescript/module/ui/analytics/productAnalytics.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BenefitList.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/LanguageBridge.d.ts +1 -1
- package/lib/typescript/module/ui/components/LanguageBridge.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/constants.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/useFeedbackForm.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/followButtonAccessibility.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/followRules.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/oauthNavigation.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/PaymentMethodStep.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/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/constants.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts +6 -6
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +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.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/artwork.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/utils/hasTouchHandler.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/utils/roundLayoutSize.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/utils/splitStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/isolatedOAuthSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/paymentTypes.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/queries/queryKeys.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/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +5 -5
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useStorage.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/decorativeIconSet.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/isFrontend.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/applicationSessionLane.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/completeOAuthCode.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/nativeAuthTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthPopupMessages.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.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/ChangeAvatarScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateAccountScreen.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/LearnMoreUsernamesScreen.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.map +1 -1
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.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/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +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.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/linkFormat.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.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/TrustFAQScreen.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/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/tokenLossRecovery.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/clipboard.native.d.ts +16 -5
- package/lib/typescript/module/ui/utils/clipboard.native.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/commonsStoreLinks.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +4 -4
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/userUtils.d.ts.map +1 -1
- package/lib/typescript/module/utils/hookUtils.d.ts.map +1 -1
- package/lib/typescript/types/expo-crypto.d.ts +2 -4
- package/lib/typescript/types/expo-document-picker.d.ts +27 -28
- package/lib/typescript/types/expo-image-picker.d.ts +27 -27
- package/lib/typescript/types/expo-secure-store.d.ts +11 -4
- package/lib/typescript/types/express.d.ts +22 -7
- package/package.json +4 -5
- package/src/assets/icons/OxyServices.tsx +42 -40
- package/src/assets/illustrations/HighFive.tsx +58 -31
- package/src/index.ts +99 -86
- package/src/notifications/deviceNotifications.ts +9 -7
- package/src/types/expo-crypto.d.ts +2 -4
- package/src/types/expo-document-picker.d.ts +27 -28
- package/src/types/expo-image-picker.d.ts +27 -27
- package/src/types/expo-secure-store.d.ts +11 -4
- package/src/types/express.d.ts +22 -7
- package/src/ui/analytics/productAnalytics.tsx +5 -5
- package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +91 -29
- package/src/ui/boot/runProviderColdBoot.ts +12 -3
- package/src/ui/client.ts +31 -31
- package/src/ui/components/BenefitList.tsx +78 -77
- package/src/ui/components/BloomLocaleBridge.tsx +3 -3
- package/src/ui/components/FollowButton.tsx +88 -84
- package/src/ui/components/FollowTargetButton.tsx +15 -6
- package/src/ui/components/LanguageBridge.tsx +24 -19
- package/src/ui/components/OxyAuthChooser.tsx +17 -3
- package/src/ui/components/OxyAuthPrompt.tsx +79 -98
- package/src/ui/components/OxyConsentScreen.tsx +51 -12
- package/src/ui/components/OxyProvider.tsx +189 -182
- package/src/ui/components/OxySignInButton.tsx +415 -405
- package/src/ui/components/OxySignInRequestSurface.tsx +7 -1
- package/src/ui/components/PeableButton.tsx +57 -49
- package/src/ui/components/ProfileButton.tsx +158 -109
- package/src/ui/components/ProfileSummaryCard.tsx +64 -64
- package/src/ui/components/RequireOxyAuth.tsx +15 -3
- package/src/ui/components/SettingsIcon.tsx +24 -19
- package/src/ui/components/SurfaceHeaderAction.tsx +6 -1
- package/src/ui/components/SurfaceScreen.tsx +21 -16
- package/src/ui/components/__tests__/BloomLocaleBridge.test.tsx +1 -1
- package/src/ui/components/__tests__/LanguageBridge.test.tsx +15 -5
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +21 -11
- package/src/ui/components/__tests__/followButtonAccessibility.test.tsx +42 -15
- package/src/ui/components/__tests__/followTargetButton.test.ts +23 -20
- package/src/ui/components/authChooser/AccountsMenuView.tsx +70 -56
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +6 -1
- package/src/ui/components/authChooser/requestSurfaces.tsx +3 -1
- package/src/ui/components/authChooser/types.ts +6 -1
- package/src/ui/components/feedback/constants.ts +36 -12
- package/src/ui/components/feedback/types.ts +30 -30
- package/src/ui/components/feedback/useFeedbackForm.ts +38 -35
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +86 -92
- package/src/ui/components/fileManagement/FileViewer.tsx +362 -338
- package/src/ui/components/fileManagement/UploadPreview.tsx +134 -127
- package/src/ui/components/followButtonAccessibility.ts +6 -2
- package/src/ui/components/followRules.ts +6 -2
- package/src/ui/components/icon/FAIRWalletIcon.tsx +47 -35
- package/src/ui/components/logo/LogoText.tsx +6 -1
- package/src/ui/components/modals/DeleteAccountModal.tsx +89 -83
- package/src/ui/components/oauthNavigation.ts +54 -56
- package/src/ui/components/payment/PaymentDetailsStep.tsx +269 -201
- package/src/ui/components/payment/PaymentMethodStep.tsx +88 -68
- package/src/ui/components/payment/PaymentReviewStep.tsx +119 -102
- package/src/ui/components/payment/PaymentSuccessStep.tsx +48 -48
- package/src/ui/components/payment/PaymentSummaryStep.tsx +167 -124
- package/src/ui/components/payment/constants.ts +38 -23
- package/src/ui/components/payment/paymentStyles.ts +252 -251
- package/src/ui/components/payment/types.ts +24 -24
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +207 -183
- package/src/ui/components/photogrid/__tests__/chunkPhotos.test.ts +32 -33
- package/src/ui/components/signIn/InlineCommonsQr.tsx +14 -6
- package/src/ui/components/signIn/OxyAccountPicker.tsx +19 -4
- package/src/ui/components/signIn/OxyAuthScreen.tsx +21 -11
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +47 -13
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +14 -4
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +69 -15
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +19 -4
- package/src/ui/components/signIn/OxySignInPanel.tsx +74 -21
- package/src/ui/components/signIn/OxySignUpPanel.tsx +60 -12
- package/src/ui/components/signIn/ReauthStep.tsx +26 -5
- package/src/ui/components/signIn/accountFlowParts.tsx +45 -16
- package/src/ui/components/signIn/artwork.ts +3 -1
- package/src/ui/components/signIn/signInFlowStore.ts +5 -1
- package/src/ui/components/styles/overlay.tsx +10 -11
- package/src/ui/components/styles/shadow.tsx +59 -59
- package/src/ui/components/surfaces/ActionSheetSurface.tsx +51 -61
- package/src/ui/components/utils/hasTouchHandler.tsx +3 -13
- package/src/ui/components/utils/roundLayoutSize.ts +1 -2
- package/src/ui/components/utils/splitStyles.ts +2 -5
- package/src/ui/constants/spacing.ts +8 -9
- package/src/ui/context/OxyContext.tsx +324 -140
- package/src/ui/context/__tests__/commitSessionFlow.test.ts +8 -3
- package/src/ui/context/__tests__/isolatedOAuthSession.test.ts +11 -3
- package/src/ui/context/commitSessionFlow.ts +15 -3
- package/src/ui/context/hooks/useAuthOperations.ts +54 -16
- package/src/ui/context/isolatedOAuthSession.ts +4 -1
- package/src/ui/context/oxyContextTypes.ts +26 -9
- package/src/ui/context/useOxyAccountGraph.ts +26 -4
- package/src/ui/hooks/accountDialogSnapshot.ts +3 -1
- package/src/ui/hooks/accountQueryPersistence.ts +16 -5
- package/src/ui/hooks/mutations/mutationFactory.ts +11 -6
- package/src/ui/hooks/mutations/useAccountMutations.ts +77 -54
- package/src/ui/hooks/mutations/useServicesMutations.ts +10 -11
- package/src/ui/hooks/persistedQueryCache.ts +10 -2
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +72 -17
- package/src/ui/hooks/queries/__tests__/userCacheClear.test.ts +18 -23
- package/src/ui/hooks/queries/paymentTypes.ts +2 -2
- package/src/ui/hooks/queries/queryKeys.ts +5 -5
- package/src/ui/hooks/queries/useAccountQueries.ts +12 -17
- package/src/ui/hooks/queries/useFileQueries.ts +88 -92
- package/src/ui/hooks/queries/usePaymentQueries.ts +13 -26
- package/src/ui/hooks/queries/usePersonalPlans.ts +14 -6
- package/src/ui/hooks/queries/useSecurityQueries.ts +16 -29
- package/src/ui/hooks/queries/useServicesQueries.ts +17 -23
- package/src/ui/hooks/queries/userCache.ts +249 -270
- package/src/ui/hooks/queryClient.ts +9 -5
- package/src/ui/hooks/useAssets.ts +166 -160
- package/src/ui/hooks/useAsyncAction.ts +92 -91
- package/src/ui/hooks/useAuth.ts +45 -42
- package/src/ui/hooks/useAvatarPicker.ts +2 -5
- package/src/ui/hooks/useDeviceManagement.ts +0 -2
- package/src/ui/hooks/useDeviceSwitcher.ts +73 -68
- package/src/ui/hooks/useFileFiltering.ts +2 -2
- package/src/ui/hooks/useFollow.ts +139 -67
- package/src/ui/hooks/useFollowTarget.ts +11 -11
- package/src/ui/hooks/useI18n.ts +7 -2
- package/src/ui/hooks/useProfileEditing.ts +167 -155
- package/src/ui/hooks/useQueryClient.ts +2 -3
- package/src/ui/hooks/useReduceMotion.ts +21 -21
- package/src/ui/hooks/useResolvedFileUrls.ts +5 -1
- package/src/ui/hooks/useSessionManagement.ts +3 -1
- package/src/ui/hooks/useSettingToggle.ts +122 -114
- package/src/ui/hooks/useStorage.ts +1 -4
- package/src/ui/hooks/useSurfaceFrameWidth.ts +3 -1
- package/src/ui/icons/Ionicons.ts +1 -5
- package/src/ui/icons/MaterialCommunityIcons.ts +1 -5
- package/src/ui/icons/__tests__/decorativeIconSet.test.tsx +3 -1
- package/src/ui/icons/decorativeIconSet.ts +13 -2
- package/src/ui/index.ts +4 -4
- package/src/ui/isFrontend.ts +3 -2
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +83 -83
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +8 -2
- package/src/ui/navigation/bottomSheetManager.ts +1 -1
- package/src/ui/navigation/routes.ts +90 -88
- package/src/ui/navigation/surfaces.ts +7 -6
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +18 -11
- package/src/ui/oauth/__tests__/browserBridge.test.ts +108 -21
- package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +9 -6
- package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +222 -241
- package/src/ui/oauth/__tests__/nativeAuthTransport.test.ts +118 -35
- package/src/ui/oauth/__tests__/oauthBearerCommit.http.test.ts +60 -18
- package/src/ui/oauth/__tests__/oauthPopup.test.ts +2 -7
- package/src/ui/oauth/__tests__/oauthPopupMessages.test.ts +9 -7
- package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +4 -5
- package/src/ui/oauth/applicationSessionLane.ts +12 -3
- package/src/ui/oauth/browserAuthTransport.ts +15 -7
- package/src/ui/oauth/browserBridge.ts +22 -5
- package/src/ui/oauth/completeOAuthCode.ts +9 -6
- package/src/ui/oauth/nativeAuthTransport.ts +73 -20
- package/src/ui/oauth/oauthHandshake.ts +6 -1
- package/src/ui/oauth/oauthPopup.ts +6 -4
- package/src/ui/oauth/oauthPopupMessages.ts +3 -4
- package/src/ui/oauth/types.ts +1 -3
- package/src/ui/runtime/createOxyRuntime.ts +21 -4
- package/src/ui/screens/AccountMembersScreen.tsx +274 -204
- package/src/ui/screens/AccountSecurityPanelScreen.tsx +3 -1
- package/src/ui/screens/AccountSettingsScreen.tsx +133 -113
- package/src/ui/screens/AccountVerificationScreen.tsx +176 -161
- package/src/ui/screens/AppInfoScreen.tsx +360 -304
- package/src/ui/screens/AvatarCropScreen.tsx +977 -988
- package/src/ui/screens/ChangeAvatarScreen.tsx +257 -253
- package/src/ui/screens/ConnectedAppsScreen.tsx +117 -130
- package/src/ui/screens/CreateAccountScreen.tsx +173 -129
- package/src/ui/screens/DomainsScreen.tsx +157 -140
- package/src/ui/screens/EditProfileFieldScreen.tsx +693 -663
- package/src/ui/screens/EditProfileScreen.tsx +106 -100
- package/src/ui/screens/FileManagementScreen.tsx +1505 -1162
- package/src/ui/screens/HelpSupportScreen.tsx +88 -75
- package/src/ui/screens/HistoryViewScreen.tsx +143 -102
- package/src/ui/screens/LanguageSelectorScreen.tsx +206 -199
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +92 -110
- package/src/ui/screens/LegalDocumentsScreen.tsx +134 -193
- package/src/ui/screens/ManageAccountScreen.tsx +649 -871
- package/src/ui/screens/NotificationsScreen.tsx +111 -143
- package/src/ui/screens/PaymentGatewayScreen.tsx +229 -244
- package/src/ui/screens/PreferencesScreen.tsx +153 -196
- package/src/ui/screens/PrivacySettingsScreen.tsx +509 -351
- package/src/ui/screens/ProfileScreen.tsx +416 -319
- package/src/ui/screens/SearchSettingsScreen.tsx +100 -98
- package/src/ui/screens/UserLinksScreen.tsx +48 -43
- package/src/ui/screens/UserListScreen.tsx +53 -30
- package/src/ui/screens/WelcomeNewUserScreen.tsx +430 -334
- package/src/ui/screens/__tests__/linkFormat.test.ts +58 -62
- package/src/ui/screens/__tests__/photoGridLayout.test.ts +43 -47
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +33 -27
- package/src/ui/screens/fileManagement/FileListSection.tsx +96 -87
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +508 -475
- package/src/ui/screens/fileManagement/UploadBar.tsx +26 -16
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +514 -490
- package/src/ui/screens/fileManagement/photoGridLayout.ts +13 -13
- package/src/ui/screens/fileManagement/shared.ts +40 -38
- package/src/ui/screens/linkFormat.ts +14 -14
- package/src/ui/screens/trust/TrustAboutScreen.tsx +53 -51
- package/src/ui/screens/trust/TrustCenterScreen.tsx +156 -214
- package/src/ui/screens/trust/TrustFAQScreen.tsx +60 -67
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +183 -183
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +495 -494
- package/src/ui/screens/trust/TrustRulesScreen.tsx +84 -85
- package/src/ui/server.ts +12 -15
- package/src/ui/session/__tests__/authStore.test.ts +6 -1
- package/src/ui/session/__tests__/createSessionClient.test.ts +22 -8
- package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +24 -6
- package/src/ui/session/__tests__/tokenLossRecovery.test.ts +3 -1
- package/src/ui/session/__tests__/tokenTransport.test.ts +9 -2
- package/src/ui/session/authStore.ts +7 -1
- package/src/ui/session/backgroundSession.ts +4 -3
- package/src/ui/session/createSessionClient.ts +17 -5
- package/src/ui/session/deviceCredentialTracker.ts +12 -6
- package/src/ui/session/identityBinding.ts +6 -1
- package/src/ui/session/sharedDeviceCredentialStore.ts +15 -4
- package/src/ui/session/tokenLossRecovery.ts +24 -10
- package/src/ui/session/tokenTransport.ts +5 -1
- package/src/ui/stores/__tests__/followStore.test.ts +20 -7
- package/src/ui/stores/assetStore.ts +209 -207
- package/src/ui/stores/followStore.ts +80 -39
- package/src/ui/stores/followTargetStore.ts +1 -1
- package/src/ui/types/fileManagement.ts +48 -49
- package/src/ui/types/navigation.ts +168 -168
- package/src/ui/types/surfaceScreen.ts +4 -1
- package/src/ui/utils/__tests__/deviceSessionTitle.test.ts +4 -2
- package/src/ui/utils/accountDeletionHandoff.ts +14 -3
- package/src/ui/utils/avatarUtils.ts +7 -6
- package/src/ui/utils/clipboard.native.ts +23 -6
- package/src/ui/utils/commonsStoreLinks.ts +2 -1
- package/src/ui/utils/errorHandlers.ts +7 -12
- package/src/ui/utils/fileManagement.ts +92 -103
- package/src/ui/utils/iconNames.ts +60 -60
- package/src/ui/utils/sessionHelpers.ts +1 -6
- package/src/ui/utils/storageHelpers.ts +0 -1
- package/src/ui/utils/userUtils.ts +2 -6
- package/src/utils/hookUtils.ts +77 -65
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React, { useState, useCallback, useMemo, useRef } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
View,
|
|
4
|
-
Image,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
TouchableOpacity,
|
|
7
|
-
type TextInputProps,
|
|
8
|
-
} from 'react-native';
|
|
2
|
+
import { View, Image, StyleSheet, TouchableOpacity, type TextInputProps } from 'react-native';
|
|
9
3
|
import Ionicons from '../icons/Ionicons';
|
|
10
4
|
import type { BaseScreenProps } from '../types/navigation';
|
|
11
5
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
@@ -13,14 +7,14 @@ import { Text } from '@oxy.so/bloom/typography';
|
|
|
13
7
|
import { Button } from '@oxy.so/bloom/button';
|
|
14
8
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
15
9
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
Select,
|
|
11
|
+
SelectContent,
|
|
12
|
+
SelectIcon,
|
|
13
|
+
SelectItem,
|
|
14
|
+
SelectItemIndicator,
|
|
15
|
+
SelectItemText,
|
|
16
|
+
SelectTrigger,
|
|
17
|
+
SelectValue,
|
|
24
18
|
} from '@oxy.so/bloom/select';
|
|
25
19
|
import { normalizeTheme } from '@oxy.so/core';
|
|
26
20
|
import type { User } from '@oxy.so/core';
|
|
@@ -37,33 +31,33 @@ import { getLinkTitle, getLinkDescription, linksToListItems } from './linkFormat
|
|
|
37
31
|
* Field types supported by EditProfileFieldScreen
|
|
38
32
|
*/
|
|
39
33
|
export type ProfileFieldType =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
| 'displayName'
|
|
35
|
+
| 'username'
|
|
36
|
+
| 'bio'
|
|
37
|
+
| 'phone'
|
|
38
|
+
| 'address'
|
|
39
|
+
| 'birthday'
|
|
40
|
+
| 'location'
|
|
41
|
+
| 'locations'
|
|
42
|
+
| 'links';
|
|
49
43
|
|
|
50
44
|
/**
|
|
51
45
|
* Field configuration for each field type
|
|
52
46
|
*/
|
|
53
47
|
interface FieldConfig {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
title: string;
|
|
49
|
+
subtitle?: string;
|
|
50
|
+
fields: Array<{
|
|
51
|
+
key: string;
|
|
52
|
+
label: string;
|
|
53
|
+
placeholder: string;
|
|
54
|
+
type?: 'text' | 'email' | 'textarea';
|
|
55
|
+
validation?: (value: string) => string | undefined;
|
|
56
|
+
inputProps?: Partial<TextInputProps>;
|
|
57
|
+
}>;
|
|
58
|
+
isList?: boolean;
|
|
59
|
+
/** Renders `renderBirthdayPicker` instead of the plain-text `fields`. */
|
|
60
|
+
isDatePicker?: boolean;
|
|
67
61
|
}
|
|
68
62
|
|
|
69
63
|
/**
|
|
@@ -75,12 +69,12 @@ const MIN_BIRTH_YEAR = 1900;
|
|
|
75
69
|
|
|
76
70
|
/** `MIN_BIRTH_YEAR` through the current year, most recent first. */
|
|
77
71
|
function birthYearOptions(): Array<{ value: string; label: string }> {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
72
|
+
const currentYear = new Date().getUTCFullYear();
|
|
73
|
+
const years: Array<{ value: string; label: string }> = [];
|
|
74
|
+
for (let year = currentYear; year >= MIN_BIRTH_YEAR; year--) {
|
|
75
|
+
years.push({ value: String(year), label: String(year) });
|
|
76
|
+
}
|
|
77
|
+
return years;
|
|
84
78
|
}
|
|
85
79
|
|
|
86
80
|
/**
|
|
@@ -90,18 +84,18 @@ function birthYearOptions(): Array<{ value: string; label: string }> {
|
|
|
90
84
|
* known, deliberate limitation of this pass.
|
|
91
85
|
*/
|
|
92
86
|
const MONTH_OPTIONS: Array<{ value: string; label: string }> = [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
87
|
+
{ value: '01', label: 'January' },
|
|
88
|
+
{ value: '02', label: 'February' },
|
|
89
|
+
{ value: '03', label: 'March' },
|
|
90
|
+
{ value: '04', label: 'April' },
|
|
91
|
+
{ value: '05', label: 'May' },
|
|
92
|
+
{ value: '06', label: 'June' },
|
|
93
|
+
{ value: '07', label: 'July' },
|
|
94
|
+
{ value: '08', label: 'August' },
|
|
95
|
+
{ value: '09', label: 'September' },
|
|
96
|
+
{ value: '10', label: 'October' },
|
|
97
|
+
{ value: '11', label: 'November' },
|
|
98
|
+
{ value: '12', label: 'December' },
|
|
105
99
|
];
|
|
106
100
|
|
|
107
101
|
/**
|
|
@@ -111,37 +105,36 @@ const MONTH_OPTIONS: Array<{ value: string; label: string }> = [
|
|
|
111
105
|
* itself before the value ever reaches it.
|
|
112
106
|
*/
|
|
113
107
|
function daysInMonth(year: number, month: number): number {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
const isLeapYear = (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
109
|
+
const DAYS_PER_MONTH = [31, isLeapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
110
|
+
return DAYS_PER_MONTH[month - 1];
|
|
117
111
|
}
|
|
118
112
|
|
|
119
113
|
/** Day options for the current year/month selection — 31 while either is unset. */
|
|
120
114
|
function dayOptions(year: string, month: string): Array<{ value: string; label: string }> {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
const count = year && month ? daysInMonth(Number(year), Number(month)) : 31;
|
|
116
|
+
return Array.from({ length: count }, (_, index) => {
|
|
117
|
+
const day = String(index + 1).padStart(2, '0');
|
|
118
|
+
return { value: day, label: day };
|
|
119
|
+
});
|
|
126
120
|
}
|
|
127
121
|
|
|
128
122
|
interface EditProfileFieldScreenProps extends BaseScreenProps {
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
/** The field type to edit */
|
|
124
|
+
fieldType?: ProfileFieldType;
|
|
131
125
|
}
|
|
132
126
|
|
|
133
127
|
type EditableListItem = {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
128
|
+
id: string;
|
|
129
|
+
name?: string;
|
|
130
|
+
label?: string;
|
|
131
|
+
url?: string;
|
|
132
|
+
title?: string;
|
|
133
|
+
description?: string;
|
|
134
|
+
image?: string;
|
|
135
|
+
coordinates?: { lat: number; lon: number };
|
|
142
136
|
};
|
|
143
137
|
|
|
144
|
-
|
|
145
138
|
/**
|
|
146
139
|
* Pure seeding function: derives the initial `fieldValues` / `listItems` for a
|
|
147
140
|
* given field type from the active account snapshot. Called ONCE per state via
|
|
@@ -151,76 +144,76 @@ type EditableListItem = {
|
|
|
151
144
|
* seed is stable for the lifetime of the mount.
|
|
152
145
|
*/
|
|
153
146
|
function buildInitialProfileState(
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
user: User | null,
|
|
148
|
+
fieldType: ProfileFieldType,
|
|
156
149
|
): { fieldValues: Record<string, string>; listItems: EditableListItem[] } {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
return {
|
|
191
|
-
fieldValues: {},
|
|
192
|
-
listItems: linksToListItems(links),
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// Scalar fields: seed only the keys this field type edits.
|
|
197
|
-
const fieldValues: Record<string, string> = {};
|
|
198
|
-
switch (fieldType) {
|
|
199
|
-
case 'displayName':
|
|
200
|
-
fieldValues.firstName = String(userData.name?.first || '');
|
|
201
|
-
fieldValues.lastName = String(userData.lastName || userData.name?.last || '');
|
|
202
|
-
break;
|
|
203
|
-
case 'birthday':
|
|
204
|
-
// Seeded from `dateOfBirth` ONLY, never the legacy free-text
|
|
205
|
-
// `birthday` — a structured picker needs a real `YYYY-MM-DD`
|
|
206
|
-
// value to select against, and `birthday` has no guaranteed
|
|
207
|
-
// shape (see its own comment in `db/schema/users.ts`). An
|
|
208
|
-
// account whose `dateOfBirth` is not yet set opens the picker
|
|
209
|
-
// empty rather than seeded with a guess.
|
|
210
|
-
fieldValues.dateOfBirth = String(userData.dateOfBirth || '');
|
|
211
|
-
break;
|
|
212
|
-
case 'address':
|
|
213
|
-
fieldValues.address = String(userData.address || '');
|
|
214
|
-
break;
|
|
215
|
-
case 'username':
|
|
216
|
-
case 'bio':
|
|
217
|
-
case 'phone':
|
|
218
|
-
fieldValues[fieldType] = String(userData[fieldType] || '');
|
|
219
|
-
break;
|
|
220
|
-
default:
|
|
221
|
-
break;
|
|
150
|
+
if (!user) {
|
|
151
|
+
return { fieldValues: {}, listItems: [] };
|
|
152
|
+
}
|
|
153
|
+
const userData = user;
|
|
154
|
+
|
|
155
|
+
if (fieldType === 'locations') {
|
|
156
|
+
const locations = Array.isArray(userData.locations) ? userData.locations : [];
|
|
157
|
+
return {
|
|
158
|
+
fieldValues: {},
|
|
159
|
+
listItems: locations.map((loc, i) => ({
|
|
160
|
+
id: String(loc.id || `location-${i}`),
|
|
161
|
+
name: String(loc.name || ''),
|
|
162
|
+
...loc,
|
|
163
|
+
})),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (fieldType === 'links') {
|
|
168
|
+
const linksMetadata = Array.isArray(userData.linksMetadata) ? userData.linksMetadata : [];
|
|
169
|
+
const links = Array.isArray(userData.links) ? userData.links : [];
|
|
170
|
+
// Prefer rich link metadata; fall back to the plain links array.
|
|
171
|
+
if (linksMetadata.length > 0) {
|
|
172
|
+
return {
|
|
173
|
+
fieldValues: {},
|
|
174
|
+
listItems: linksMetadata.map((link, i) => ({
|
|
175
|
+
...link,
|
|
176
|
+
id: String(link.id || `link-${i}`),
|
|
177
|
+
url: String(link.url || ''),
|
|
178
|
+
title: String(link.title || getLinkTitle(String(link.url || ''))),
|
|
179
|
+
description: String(link.description || getLinkDescription(String(link.url || ''))),
|
|
180
|
+
})),
|
|
181
|
+
};
|
|
222
182
|
}
|
|
223
|
-
return {
|
|
183
|
+
return {
|
|
184
|
+
fieldValues: {},
|
|
185
|
+
listItems: linksToListItems(links),
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Scalar fields: seed only the keys this field type edits.
|
|
190
|
+
const fieldValues: Record<string, string> = {};
|
|
191
|
+
switch (fieldType) {
|
|
192
|
+
case 'displayName':
|
|
193
|
+
fieldValues.firstName = String(userData.name?.first || '');
|
|
194
|
+
fieldValues.lastName = String(userData.lastName || userData.name?.last || '');
|
|
195
|
+
break;
|
|
196
|
+
case 'birthday':
|
|
197
|
+
// Seeded from `dateOfBirth` ONLY, never the legacy free-text
|
|
198
|
+
// `birthday` — a structured picker needs a real `YYYY-MM-DD`
|
|
199
|
+
// value to select against, and `birthday` has no guaranteed
|
|
200
|
+
// shape (see its own comment in `db/schema/users.ts`). An
|
|
201
|
+
// account whose `dateOfBirth` is not yet set opens the picker
|
|
202
|
+
// empty rather than seeded with a guess.
|
|
203
|
+
fieldValues.dateOfBirth = String(userData.dateOfBirth || '');
|
|
204
|
+
break;
|
|
205
|
+
case 'address':
|
|
206
|
+
fieldValues.address = String(userData.address || '');
|
|
207
|
+
break;
|
|
208
|
+
case 'username':
|
|
209
|
+
case 'bio':
|
|
210
|
+
case 'phone':
|
|
211
|
+
fieldValues[fieldType] = String(userData[fieldType] || '');
|
|
212
|
+
break;
|
|
213
|
+
default:
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
return { fieldValues, listItems: [] };
|
|
224
217
|
}
|
|
225
218
|
|
|
226
219
|
/**
|
|
@@ -232,544 +225,581 @@ function buildInitialProfileState(
|
|
|
232
225
|
* navigate('EditProfileField', { fieldType: 'username' })
|
|
233
226
|
*/
|
|
234
227
|
const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
228
|
+
goBack,
|
|
229
|
+
onClose,
|
|
230
|
+
theme,
|
|
231
|
+
fieldType = 'displayName',
|
|
239
232
|
}) => {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
233
|
+
// Editing "my" profile targets the ACTIVE account — writes authenticate as
|
|
234
|
+
// the active session, which IS that account — so the initial field values
|
|
235
|
+
// must mirror the active account (an org/project/bot when switched, else the
|
|
236
|
+
// personal user).
|
|
237
|
+
const { user } = useOxy();
|
|
238
|
+
const { t } = useI18n();
|
|
239
|
+
const { saveProfile, updateField, isSaving } = useProfileEditing();
|
|
240
|
+
const bloomTheme = useTheme();
|
|
241
|
+
const normalizedTheme = normalizeTheme(theme);
|
|
242
|
+
|
|
243
|
+
// State for field values — seeded ONCE from the active account snapshot at
|
|
244
|
+
// mount via lazy initializers. See buildInitialProfileState: no effect
|
|
245
|
+
// reseeds these, so a background user-ref swap never wipes typing.
|
|
246
|
+
const [fieldValues, setFieldValues] = useState<Record<string, string>>(
|
|
247
|
+
() => buildInitialProfileState(user, fieldType).fieldValues,
|
|
248
|
+
);
|
|
249
|
+
const [fieldErrors, setFieldErrors] = useState<Record<string, string | undefined>>({});
|
|
250
|
+
|
|
251
|
+
// State for list fields (locations, links) — same one-time mount seeding.
|
|
252
|
+
const [listItems, setListItems] = useState<EditableListItem[]>(
|
|
253
|
+
() => buildInitialProfileState(user, fieldType).listItems,
|
|
254
|
+
);
|
|
255
|
+
const [newItemValue, setNewItemValue] = useState('');
|
|
256
|
+
|
|
257
|
+
// Get field configuration based on fieldType
|
|
258
|
+
const fieldConfig = useMemo((): FieldConfig => {
|
|
259
|
+
switch (fieldType) {
|
|
260
|
+
case 'displayName':
|
|
261
|
+
return {
|
|
262
|
+
title: t('editProfile.items.displayName.title') || 'Display Name',
|
|
263
|
+
subtitle:
|
|
264
|
+
t('editProfile.items.displayName.subtitle') ||
|
|
265
|
+
'This is how your name will appear to others',
|
|
266
|
+
fields: [
|
|
267
|
+
{
|
|
268
|
+
key: 'firstName',
|
|
269
|
+
label: t('editProfile.items.displayName.firstName') || 'First Name',
|
|
270
|
+
placeholder:
|
|
271
|
+
t('editProfile.items.displayName.firstNamePlaceholder') || 'Enter first name',
|
|
272
|
+
validation: (value) =>
|
|
273
|
+
isValidDisplayName(value)
|
|
274
|
+
? undefined
|
|
275
|
+
: t('editProfile.items.displayName.invalidChars') || DISPLAY_NAME_INVALID_MESSAGE,
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
key: 'lastName',
|
|
279
|
+
label: t('editProfile.items.displayName.lastName') || 'Last Name',
|
|
280
|
+
placeholder:
|
|
281
|
+
t('editProfile.items.displayName.lastNamePlaceholder') ||
|
|
282
|
+
'Enter last name (optional)',
|
|
283
|
+
validation: (value) =>
|
|
284
|
+
isValidDisplayName(value)
|
|
285
|
+
? undefined
|
|
286
|
+
: t('editProfile.items.displayName.invalidChars') || DISPLAY_NAME_INVALID_MESSAGE,
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
};
|
|
290
|
+
case 'username':
|
|
291
|
+
return {
|
|
292
|
+
title: t('editProfile.items.username.title') || 'Username',
|
|
293
|
+
subtitle:
|
|
294
|
+
t('editProfile.items.username.subtitle') || 'Your unique identifier on the platform',
|
|
295
|
+
fields: [
|
|
296
|
+
{
|
|
297
|
+
key: 'username',
|
|
298
|
+
label: t('editProfile.items.username.label') || 'Username',
|
|
299
|
+
placeholder: t('editProfile.items.username.placeholder') || 'Choose a username',
|
|
300
|
+
validation: (value) => {
|
|
301
|
+
if (!value.trim()) {
|
|
302
|
+
return t('editProfile.items.username.required') || 'Username is required';
|
|
303
|
+
}
|
|
304
|
+
if (value.length < 3) {
|
|
305
|
+
return (
|
|
306
|
+
t('editProfile.items.username.tooShort') ||
|
|
307
|
+
'Username must be at least 3 characters'
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
return undefined;
|
|
311
|
+
},
|
|
312
|
+
inputProps: {
|
|
313
|
+
autoCapitalize: 'none',
|
|
314
|
+
autoCorrect: false,
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
};
|
|
319
|
+
case 'bio':
|
|
320
|
+
return {
|
|
321
|
+
title: t('editProfile.items.bio.title') || 'Bio',
|
|
322
|
+
subtitle: t('editProfile.items.bio.subtitle') || 'Tell people a bit about yourself',
|
|
323
|
+
fields: [
|
|
324
|
+
{
|
|
325
|
+
key: 'bio',
|
|
326
|
+
label: t('editProfile.items.bio.label') || 'Bio',
|
|
327
|
+
placeholder:
|
|
328
|
+
t('editProfile.items.bio.placeholder') || 'Tell people about yourself...',
|
|
329
|
+
type: 'textarea',
|
|
330
|
+
inputProps: {
|
|
331
|
+
multiline: true,
|
|
332
|
+
numberOfLines: 6,
|
|
333
|
+
textAlignVertical: 'top',
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
};
|
|
338
|
+
case 'phone':
|
|
339
|
+
return {
|
|
340
|
+
title: t('editProfile.items.phone.title') || 'Phone Number',
|
|
341
|
+
subtitle: t('editProfile.items.phone.subtitle') || 'Your contact phone number',
|
|
342
|
+
fields: [
|
|
343
|
+
{
|
|
344
|
+
key: 'phone',
|
|
345
|
+
label: t('editProfile.items.phone.label') || 'Phone Number',
|
|
346
|
+
placeholder: t('editProfile.items.phone.placeholder') || 'Enter your phone number',
|
|
347
|
+
inputProps: {
|
|
348
|
+
keyboardType: 'phone-pad',
|
|
349
|
+
autoCapitalize: 'none',
|
|
350
|
+
autoCorrect: false,
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
],
|
|
354
|
+
};
|
|
355
|
+
case 'address':
|
|
356
|
+
return {
|
|
357
|
+
title: t('editProfile.items.address.title') || 'Address',
|
|
358
|
+
subtitle: t('editProfile.items.address.subtitle') || 'Your physical address',
|
|
359
|
+
fields: [
|
|
360
|
+
{
|
|
361
|
+
key: 'address',
|
|
362
|
+
label: t('editProfile.items.address.label') || 'Address',
|
|
363
|
+
placeholder: t('editProfile.items.address.placeholder') || 'Enter your address',
|
|
364
|
+
type: 'textarea',
|
|
365
|
+
inputProps: {
|
|
366
|
+
multiline: true,
|
|
367
|
+
numberOfLines: 3,
|
|
368
|
+
textAlignVertical: 'top',
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
],
|
|
372
|
+
};
|
|
373
|
+
case 'birthday':
|
|
374
|
+
return {
|
|
375
|
+
title: t('editProfile.items.birthday.title') || 'Birthday',
|
|
376
|
+
subtitle: t('editProfile.items.birthday.subtitle') || 'Your date of birth',
|
|
377
|
+
// One entry, naming the field `handleSave`'s generic branch writes
|
|
378
|
+
// (`fieldConfig.fields[0]?.key`) — `renderBirthdayPicker` renders the
|
|
379
|
+
// actual day/month/year controls; this array is never mapped through
|
|
380
|
+
// `renderField` for this field type (see `isDatePicker` below).
|
|
381
|
+
fields: [
|
|
382
|
+
{
|
|
383
|
+
key: 'dateOfBirth',
|
|
384
|
+
label: t('editProfile.items.birthday.label') || 'Birthday',
|
|
385
|
+
placeholder: t('editProfile.items.birthday.placeholder') || 'YYYY-MM-DD',
|
|
386
|
+
},
|
|
387
|
+
],
|
|
388
|
+
isDatePicker: true,
|
|
389
|
+
};
|
|
390
|
+
case 'locations':
|
|
391
|
+
return {
|
|
392
|
+
title: t('editProfile.items.locations.title') || 'Locations',
|
|
393
|
+
subtitle: t('editProfile.items.locations.subtitle') || "Places you've been or live",
|
|
394
|
+
fields: [],
|
|
395
|
+
isList: true,
|
|
396
|
+
};
|
|
397
|
+
case 'links':
|
|
398
|
+
return {
|
|
399
|
+
title: t('editProfile.items.links.title') || 'Links',
|
|
400
|
+
subtitle:
|
|
401
|
+
t('editProfile.items.links.subtitle') || 'Share your website, social profiles, etc.',
|
|
402
|
+
fields: [],
|
|
403
|
+
isList: true,
|
|
404
|
+
};
|
|
405
|
+
default:
|
|
406
|
+
return {
|
|
407
|
+
title: 'Edit Field',
|
|
408
|
+
fields: [],
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
}, [fieldType, t]);
|
|
412
|
+
|
|
413
|
+
// Field change handler
|
|
414
|
+
const handleFieldChange = useCallback(
|
|
415
|
+
(key: string, value: string) => {
|
|
416
|
+
setFieldValues((prev) => ({ ...prev, [key]: value }));
|
|
417
|
+
if (fieldErrors[key]) {
|
|
418
|
+
setFieldErrors((prev) => ({ ...prev, [key]: undefined }));
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
[fieldErrors],
|
|
422
|
+
);
|
|
423
|
+
|
|
424
|
+
// The birthday picker's three pieces, seeded once from the same
|
|
425
|
+
// one-time-mount value `fieldValues.dateOfBirth` already carries (empty
|
|
426
|
+
// string parts when unset). Kept separate from `fieldValues` because a
|
|
427
|
+
// `Select` needs its OWN current value per control; each change handler
|
|
428
|
+
// below composes the three back into the single `dateOfBirth` field
|
|
429
|
+
// `handleSave` actually writes, in the event handler itself rather than
|
|
430
|
+
// an effect.
|
|
431
|
+
const [dobYear, setDobYear] = useState(() => (fieldValues.dateOfBirth || '').split('-')[0] || '');
|
|
432
|
+
const [dobMonth, setDobMonth] = useState(
|
|
433
|
+
() => (fieldValues.dateOfBirth || '').split('-')[1] || '',
|
|
434
|
+
);
|
|
435
|
+
const [dobDay, setDobDay] = useState(() => (fieldValues.dateOfBirth || '').split('-')[2] || '');
|
|
436
|
+
|
|
437
|
+
// A partial selection (e.g. year and month but no day yet) writes ''`,
|
|
438
|
+
// which `updateField`/the API's `dateOfBirth` write path already treats
|
|
439
|
+
// as "clear" — the same behaviour a fully-erased text field would have
|
|
440
|
+
// had. There is deliberately no separate "incomplete date" error: the
|
|
441
|
+
// three controls are either all filled (a real date) or the field is
|
|
442
|
+
// unset, and both are valid states to save.
|
|
443
|
+
const commitDateOfBirth = useCallback(
|
|
444
|
+
(year: string, month: string, day: string) => {
|
|
445
|
+
handleFieldChange('dateOfBirth', year && month && day ? `${year}-${month}-${day}` : '');
|
|
446
|
+
},
|
|
447
|
+
[handleFieldChange],
|
|
448
|
+
);
|
|
449
|
+
|
|
450
|
+
// Changing the year or month can strand a selected day past the new
|
|
451
|
+
// month's length (31 March -> April has none) — clamped down to the new
|
|
452
|
+
// last day rather than left pointing at a day `dayOptions` no longer
|
|
453
|
+
// lists, the same way a native date picker behaves.
|
|
454
|
+
const handleDobYearChange = useCallback(
|
|
455
|
+
(year: string) => {
|
|
456
|
+
const clampedDay =
|
|
457
|
+
dobDay && dobMonth && Number(dobDay) > daysInMonth(Number(year), Number(dobMonth))
|
|
458
|
+
? String(daysInMonth(Number(year), Number(dobMonth))).padStart(2, '0')
|
|
459
|
+
: dobDay;
|
|
460
|
+
setDobYear(year);
|
|
461
|
+
setDobDay(clampedDay);
|
|
462
|
+
commitDateOfBirth(year, dobMonth, clampedDay);
|
|
463
|
+
},
|
|
464
|
+
[dobMonth, dobDay, commitDateOfBirth],
|
|
465
|
+
);
|
|
466
|
+
|
|
467
|
+
const handleDobMonthChange = useCallback(
|
|
468
|
+
(month: string) => {
|
|
469
|
+
const clampedDay =
|
|
470
|
+
dobDay && dobYear && Number(dobDay) > daysInMonth(Number(dobYear), Number(month))
|
|
471
|
+
? String(daysInMonth(Number(dobYear), Number(month))).padStart(2, '0')
|
|
472
|
+
: dobDay;
|
|
473
|
+
setDobMonth(month);
|
|
474
|
+
setDobDay(clampedDay);
|
|
475
|
+
commitDateOfBirth(dobYear, month, clampedDay);
|
|
476
|
+
},
|
|
477
|
+
[dobYear, dobDay, commitDateOfBirth],
|
|
478
|
+
);
|
|
257
479
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
isValidDisplayName(value)
|
|
278
|
-
? undefined
|
|
279
|
-
: (t('editProfile.items.displayName.invalidChars')
|
|
280
|
-
|| DISPLAY_NAME_INVALID_MESSAGE),
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
key: 'lastName',
|
|
284
|
-
label: t('editProfile.items.displayName.lastName') || 'Last Name',
|
|
285
|
-
placeholder: t('editProfile.items.displayName.lastNamePlaceholder') || 'Enter last name (optional)',
|
|
286
|
-
validation: (value) =>
|
|
287
|
-
isValidDisplayName(value)
|
|
288
|
-
? undefined
|
|
289
|
-
: (t('editProfile.items.displayName.invalidChars')
|
|
290
|
-
|| DISPLAY_NAME_INVALID_MESSAGE),
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
|
-
};
|
|
294
|
-
case 'username':
|
|
295
|
-
return {
|
|
296
|
-
title: t('editProfile.items.username.title') || 'Username',
|
|
297
|
-
subtitle: t('editProfile.items.username.subtitle') || 'Your unique identifier on the platform',
|
|
298
|
-
fields: [
|
|
299
|
-
{
|
|
300
|
-
key: 'username',
|
|
301
|
-
label: t('editProfile.items.username.label') || 'Username',
|
|
302
|
-
placeholder: t('editProfile.items.username.placeholder') || 'Choose a username',
|
|
303
|
-
validation: (value) => {
|
|
304
|
-
if (!value.trim()) {
|
|
305
|
-
return t('editProfile.items.username.required') || 'Username is required';
|
|
306
|
-
}
|
|
307
|
-
if (value.length < 3) {
|
|
308
|
-
return t('editProfile.items.username.tooShort') || 'Username must be at least 3 characters';
|
|
309
|
-
}
|
|
310
|
-
return undefined;
|
|
311
|
-
},
|
|
312
|
-
inputProps: {
|
|
313
|
-
autoCapitalize: 'none',
|
|
314
|
-
autoCorrect: false,
|
|
315
|
-
},
|
|
316
|
-
},
|
|
317
|
-
],
|
|
318
|
-
};
|
|
319
|
-
case 'bio':
|
|
320
|
-
return {
|
|
321
|
-
title: t('editProfile.items.bio.title') || 'Bio',
|
|
322
|
-
subtitle: t('editProfile.items.bio.subtitle') || 'Tell people a bit about yourself',
|
|
323
|
-
fields: [
|
|
324
|
-
{
|
|
325
|
-
key: 'bio',
|
|
326
|
-
label: t('editProfile.items.bio.label') || 'Bio',
|
|
327
|
-
placeholder: t('editProfile.items.bio.placeholder') || 'Tell people about yourself...',
|
|
328
|
-
type: 'textarea',
|
|
329
|
-
inputProps: {
|
|
330
|
-
multiline: true,
|
|
331
|
-
numberOfLines: 6,
|
|
332
|
-
textAlignVertical: 'top',
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
],
|
|
336
|
-
};
|
|
337
|
-
case 'phone':
|
|
338
|
-
return {
|
|
339
|
-
title: t('editProfile.items.phone.title') || 'Phone Number',
|
|
340
|
-
subtitle: t('editProfile.items.phone.subtitle') || 'Your contact phone number',
|
|
341
|
-
fields: [
|
|
342
|
-
{
|
|
343
|
-
key: 'phone',
|
|
344
|
-
label: t('editProfile.items.phone.label') || 'Phone Number',
|
|
345
|
-
placeholder: t('editProfile.items.phone.placeholder') || 'Enter your phone number',
|
|
346
|
-
inputProps: {
|
|
347
|
-
keyboardType: 'phone-pad',
|
|
348
|
-
autoCapitalize: 'none',
|
|
349
|
-
autoCorrect: false,
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
],
|
|
353
|
-
};
|
|
354
|
-
case 'address':
|
|
355
|
-
return {
|
|
356
|
-
title: t('editProfile.items.address.title') || 'Address',
|
|
357
|
-
subtitle: t('editProfile.items.address.subtitle') || 'Your physical address',
|
|
358
|
-
fields: [
|
|
359
|
-
{
|
|
360
|
-
key: 'address',
|
|
361
|
-
label: t('editProfile.items.address.label') || 'Address',
|
|
362
|
-
placeholder: t('editProfile.items.address.placeholder') || 'Enter your address',
|
|
363
|
-
type: 'textarea',
|
|
364
|
-
inputProps: {
|
|
365
|
-
multiline: true,
|
|
366
|
-
numberOfLines: 3,
|
|
367
|
-
textAlignVertical: 'top',
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
],
|
|
371
|
-
};
|
|
372
|
-
case 'birthday':
|
|
373
|
-
return {
|
|
374
|
-
title: t('editProfile.items.birthday.title') || 'Birthday',
|
|
375
|
-
subtitle: t('editProfile.items.birthday.subtitle') || 'Your date of birth',
|
|
376
|
-
// One entry, naming the field `handleSave`'s generic branch writes
|
|
377
|
-
// (`fieldConfig.fields[0]?.key`) — `renderBirthdayPicker` renders the
|
|
378
|
-
// actual day/month/year controls; this array is never mapped through
|
|
379
|
-
// `renderField` for this field type (see `isDatePicker` below).
|
|
380
|
-
fields: [
|
|
381
|
-
{
|
|
382
|
-
key: 'dateOfBirth',
|
|
383
|
-
label: t('editProfile.items.birthday.label') || 'Birthday',
|
|
384
|
-
placeholder: t('editProfile.items.birthday.placeholder') || 'YYYY-MM-DD',
|
|
385
|
-
},
|
|
386
|
-
],
|
|
387
|
-
isDatePicker: true,
|
|
388
|
-
};
|
|
389
|
-
case 'locations':
|
|
390
|
-
return {
|
|
391
|
-
title: t('editProfile.items.locations.title') || 'Locations',
|
|
392
|
-
subtitle: t('editProfile.items.locations.subtitle') || 'Places you\'ve been or live',
|
|
393
|
-
fields: [],
|
|
394
|
-
isList: true,
|
|
395
|
-
};
|
|
396
|
-
case 'links':
|
|
397
|
-
return {
|
|
398
|
-
title: t('editProfile.items.links.title') || 'Links',
|
|
399
|
-
subtitle: t('editProfile.items.links.subtitle') || 'Share your website, social profiles, etc.',
|
|
400
|
-
fields: [],
|
|
401
|
-
isList: true,
|
|
402
|
-
};
|
|
403
|
-
default:
|
|
404
|
-
return {
|
|
405
|
-
title: 'Edit Field',
|
|
406
|
-
fields: [],
|
|
407
|
-
};
|
|
480
|
+
const handleDobDayChange = useCallback(
|
|
481
|
+
(day: string) => {
|
|
482
|
+
setDobDay(day);
|
|
483
|
+
commitDateOfBirth(dobYear, dobMonth, day);
|
|
484
|
+
},
|
|
485
|
+
[dobYear, dobMonth, commitDateOfBirth],
|
|
486
|
+
);
|
|
487
|
+
|
|
488
|
+
// Validate all fields
|
|
489
|
+
const validateFields = useCallback((): boolean => {
|
|
490
|
+
const errors: Record<string, string | undefined> = {};
|
|
491
|
+
let isValid = true;
|
|
492
|
+
|
|
493
|
+
for (const field of fieldConfig.fields) {
|
|
494
|
+
if (field.validation) {
|
|
495
|
+
const error = field.validation(fieldValues[field.key] || '');
|
|
496
|
+
if (error) {
|
|
497
|
+
errors[field.key] = error;
|
|
498
|
+
isValid = false;
|
|
408
499
|
}
|
|
409
|
-
|
|
500
|
+
}
|
|
501
|
+
}
|
|
410
502
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
if (fieldErrors[key]) {
|
|
415
|
-
setFieldErrors(prev => ({ ...prev, [key]: undefined }));
|
|
416
|
-
}
|
|
417
|
-
}, [fieldErrors]);
|
|
418
|
-
|
|
419
|
-
// The birthday picker's three pieces, seeded once from the same
|
|
420
|
-
// one-time-mount value `fieldValues.dateOfBirth` already carries (empty
|
|
421
|
-
// string parts when unset). Kept separate from `fieldValues` because a
|
|
422
|
-
// `Select` needs its OWN current value per control; each change handler
|
|
423
|
-
// below composes the three back into the single `dateOfBirth` field
|
|
424
|
-
// `handleSave` actually writes, in the event handler itself rather than
|
|
425
|
-
// an effect.
|
|
426
|
-
const [dobYear, setDobYear] = useState(() => (fieldValues.dateOfBirth || '').split('-')[0] || '');
|
|
427
|
-
const [dobMonth, setDobMonth] = useState(() => (fieldValues.dateOfBirth || '').split('-')[1] || '');
|
|
428
|
-
const [dobDay, setDobDay] = useState(() => (fieldValues.dateOfBirth || '').split('-')[2] || '');
|
|
429
|
-
|
|
430
|
-
// A partial selection (e.g. year and month but no day yet) writes ''`,
|
|
431
|
-
// which `updateField`/the API's `dateOfBirth` write path already treats
|
|
432
|
-
// as "clear" — the same behaviour a fully-erased text field would have
|
|
433
|
-
// had. There is deliberately no separate "incomplete date" error: the
|
|
434
|
-
// three controls are either all filled (a real date) or the field is
|
|
435
|
-
// unset, and both are valid states to save.
|
|
436
|
-
const commitDateOfBirth = useCallback((year: string, month: string, day: string) => {
|
|
437
|
-
handleFieldChange('dateOfBirth', year && month && day ? `${year}-${month}-${day}` : '');
|
|
438
|
-
}, [handleFieldChange]);
|
|
439
|
-
|
|
440
|
-
// Changing the year or month can strand a selected day past the new
|
|
441
|
-
// month's length (31 March -> April has none) — clamped down to the new
|
|
442
|
-
// last day rather than left pointing at a day `dayOptions` no longer
|
|
443
|
-
// lists, the same way a native date picker behaves.
|
|
444
|
-
const handleDobYearChange = useCallback((year: string) => {
|
|
445
|
-
const clampedDay = dobDay && dobMonth && Number(dobDay) > daysInMonth(Number(year), Number(dobMonth))
|
|
446
|
-
? String(daysInMonth(Number(year), Number(dobMonth))).padStart(2, '0')
|
|
447
|
-
: dobDay;
|
|
448
|
-
setDobYear(year);
|
|
449
|
-
setDobDay(clampedDay);
|
|
450
|
-
commitDateOfBirth(year, dobMonth, clampedDay);
|
|
451
|
-
}, [dobMonth, dobDay, commitDateOfBirth]);
|
|
452
|
-
|
|
453
|
-
const handleDobMonthChange = useCallback((month: string) => {
|
|
454
|
-
const clampedDay = dobDay && dobYear && Number(dobDay) > daysInMonth(Number(dobYear), Number(month))
|
|
455
|
-
? String(daysInMonth(Number(dobYear), Number(month))).padStart(2, '0')
|
|
456
|
-
: dobDay;
|
|
457
|
-
setDobMonth(month);
|
|
458
|
-
setDobDay(clampedDay);
|
|
459
|
-
commitDateOfBirth(dobYear, month, clampedDay);
|
|
460
|
-
}, [dobYear, dobDay, commitDateOfBirth]);
|
|
461
|
-
|
|
462
|
-
const handleDobDayChange = useCallback((day: string) => {
|
|
463
|
-
setDobDay(day);
|
|
464
|
-
commitDateOfBirth(dobYear, dobMonth, day);
|
|
465
|
-
}, [dobYear, dobMonth, commitDateOfBirth]);
|
|
466
|
-
|
|
467
|
-
// Validate all fields
|
|
468
|
-
const validateFields = useCallback((): boolean => {
|
|
469
|
-
const errors: Record<string, string | undefined> = {};
|
|
470
|
-
let isValid = true;
|
|
471
|
-
|
|
472
|
-
for (const field of fieldConfig.fields) {
|
|
473
|
-
if (field.validation) {
|
|
474
|
-
const error = field.validation(fieldValues[field.key] || '');
|
|
475
|
-
if (error) {
|
|
476
|
-
errors[field.key] = error;
|
|
477
|
-
isValid = false;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
503
|
+
setFieldErrors(errors);
|
|
504
|
+
return isValid;
|
|
505
|
+
}, [fieldConfig.fields, fieldValues]);
|
|
481
506
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
// Add item to list
|
|
487
|
-
const handleAddItem = useCallback(() => {
|
|
488
|
-
if (!newItemValue.trim()) return;
|
|
489
|
-
|
|
490
|
-
if (fieldType === 'locations') {
|
|
491
|
-
const newItem = {
|
|
492
|
-
id: `location-${Date.now()}`,
|
|
493
|
-
name: newItemValue.trim(),
|
|
494
|
-
};
|
|
495
|
-
setListItems(prev => [...prev, newItem]);
|
|
496
|
-
} else if (fieldType === 'links') {
|
|
497
|
-
const newItem = {
|
|
498
|
-
id: `link-${Date.now()}`,
|
|
499
|
-
url: newItemValue.trim(),
|
|
500
|
-
title: getLinkTitle(newItemValue.trim()),
|
|
501
|
-
description: getLinkDescription(newItemValue.trim()),
|
|
502
|
-
};
|
|
503
|
-
setListItems(prev => [...prev, newItem]);
|
|
504
|
-
}
|
|
505
|
-
setNewItemValue('');
|
|
506
|
-
}, [newItemValue, fieldType]);
|
|
507
|
-
|
|
508
|
-
// Remove item from list
|
|
509
|
-
const handleRemoveItem = useCallback((id: string) => {
|
|
510
|
-
setListItems(prev => prev.filter(item => item.id !== id));
|
|
511
|
-
}, []);
|
|
512
|
-
|
|
513
|
-
// Save handler
|
|
514
|
-
const handleSave = async () => {
|
|
515
|
-
if (fieldConfig.isList) {
|
|
516
|
-
let success = false;
|
|
517
|
-
if (fieldType === 'locations') {
|
|
518
|
-
success = await saveProfile({
|
|
519
|
-
locations: listItems.map(item => ({
|
|
520
|
-
id: item.id,
|
|
521
|
-
name: String(item.name || ''),
|
|
522
|
-
...(item.label !== undefined && { label: String(item.label) }),
|
|
523
|
-
...(item.coordinates !== undefined && { coordinates: item.coordinates as { lat: number; lon: number } }),
|
|
524
|
-
})),
|
|
525
|
-
});
|
|
526
|
-
} else if (fieldType === 'links') {
|
|
527
|
-
success = await saveProfile({
|
|
528
|
-
linksMetadata: listItems.map(item => ({
|
|
529
|
-
id: item.id,
|
|
530
|
-
url: String(item.url || ''),
|
|
531
|
-
title: String(item.title || getLinkTitle(String(item.url || ''))),
|
|
532
|
-
description: String(item.description || getLinkDescription(String(item.url || ''))),
|
|
533
|
-
...(item.image !== undefined && { image: String(item.image) }),
|
|
534
|
-
})),
|
|
535
|
-
links: listItems.map(item => String(item.url || '')),
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
if (success) {
|
|
539
|
-
toast.success(t('common.saved') || 'Saved successfully');
|
|
540
|
-
(onClose || goBack)?.();
|
|
541
|
-
}
|
|
542
|
-
} else {
|
|
543
|
-
if (!validateFields()) return;
|
|
544
|
-
|
|
545
|
-
let success = false;
|
|
546
|
-
if (fieldType === 'displayName') {
|
|
547
|
-
success = await saveProfile({
|
|
548
|
-
firstName: fieldValues.firstName,
|
|
549
|
-
lastName: fieldValues.lastName,
|
|
550
|
-
});
|
|
551
|
-
} else {
|
|
552
|
-
const key = fieldConfig.fields[0]?.key;
|
|
553
|
-
if (key) {
|
|
554
|
-
success = await updateField(key, fieldValues[key]);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
507
|
+
// Add item to list
|
|
508
|
+
const handleAddItem = useCallback(() => {
|
|
509
|
+
if (!newItemValue.trim()) return;
|
|
557
510
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
511
|
+
if (fieldType === 'locations') {
|
|
512
|
+
const newItem = {
|
|
513
|
+
id: `location-${Date.now()}`,
|
|
514
|
+
name: newItemValue.trim(),
|
|
515
|
+
};
|
|
516
|
+
setListItems((prev) => [...prev, newItem]);
|
|
517
|
+
} else if (fieldType === 'links') {
|
|
518
|
+
const newItem = {
|
|
519
|
+
id: `link-${Date.now()}`,
|
|
520
|
+
url: newItemValue.trim(),
|
|
521
|
+
title: getLinkTitle(newItemValue.trim()),
|
|
522
|
+
description: getLinkDescription(newItemValue.trim()),
|
|
523
|
+
};
|
|
524
|
+
setListItems((prev) => [...prev, newItem]);
|
|
525
|
+
}
|
|
526
|
+
setNewItemValue('');
|
|
527
|
+
}, [newItemValue, fieldType]);
|
|
528
|
+
|
|
529
|
+
// Remove item from list
|
|
530
|
+
const handleRemoveItem = useCallback((id: string) => {
|
|
531
|
+
setListItems((prev) => prev.filter((item) => item.id !== id));
|
|
532
|
+
}, []);
|
|
533
|
+
|
|
534
|
+
// Save handler
|
|
535
|
+
const handleSave = async () => {
|
|
536
|
+
if (fieldConfig.isList) {
|
|
537
|
+
let success = false;
|
|
538
|
+
if (fieldType === 'locations') {
|
|
539
|
+
success = await saveProfile({
|
|
540
|
+
locations: listItems.map((item) => ({
|
|
541
|
+
id: item.id,
|
|
542
|
+
name: String(item.name || ''),
|
|
543
|
+
...(item.label !== undefined && { label: String(item.label) }),
|
|
544
|
+
...(item.coordinates !== undefined && {
|
|
545
|
+
coordinates: item.coordinates as { lat: number; lon: number },
|
|
546
|
+
}),
|
|
547
|
+
})),
|
|
548
|
+
});
|
|
549
|
+
} else if (fieldType === 'links') {
|
|
550
|
+
success = await saveProfile({
|
|
551
|
+
linksMetadata: listItems.map((item) => ({
|
|
552
|
+
id: item.id,
|
|
553
|
+
url: String(item.url || ''),
|
|
554
|
+
title: String(item.title || getLinkTitle(String(item.url || ''))),
|
|
555
|
+
description: String(item.description || getLinkDescription(String(item.url || ''))),
|
|
556
|
+
...(item.image !== undefined && { image: String(item.image) }),
|
|
557
|
+
})),
|
|
558
|
+
links: listItems.map((item) => String(item.url || '')),
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
if (success) {
|
|
562
|
+
toast.success(t('common.saved') || 'Saved successfully');
|
|
563
|
+
(onClose || goBack)?.();
|
|
564
|
+
}
|
|
565
|
+
} else {
|
|
566
|
+
if (!validateFields()) return;
|
|
567
|
+
|
|
568
|
+
let success = false;
|
|
569
|
+
if (fieldType === 'displayName') {
|
|
570
|
+
success = await saveProfile({
|
|
571
|
+
firstName: fieldValues.firstName,
|
|
572
|
+
lastName: fieldValues.lastName,
|
|
573
|
+
});
|
|
574
|
+
} else {
|
|
575
|
+
const key = fieldConfig.fields[0]?.key;
|
|
576
|
+
if (key) {
|
|
577
|
+
success = await updateField(key, fieldValues[key]);
|
|
562
578
|
}
|
|
563
|
-
|
|
579
|
+
}
|
|
564
580
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
)
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
isInvalid={Boolean(error)}
|
|
598
|
-
autoFocus={index === 0}
|
|
599
|
-
{...field.inputProps}
|
|
600
|
-
/>
|
|
601
|
-
</TextField>
|
|
602
|
-
{error && (
|
|
603
|
-
<Text
|
|
604
|
-
className="text-caption px-space-4"
|
|
605
|
-
style={{ color: bloomTheme.colors.negative }}
|
|
606
|
-
>
|
|
607
|
-
{error}
|
|
608
|
-
</Text>
|
|
609
|
-
)}
|
|
610
|
-
</View>
|
|
611
|
-
);
|
|
612
|
-
};
|
|
581
|
+
if (success) {
|
|
582
|
+
toast.success(t('common.saved') || 'Saved successfully');
|
|
583
|
+
(onClose || goBack)?.();
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
// Contribute the field title/subtitle + a Save action into the Dialog's own
|
|
589
|
+
// nav header (this screen renders no header of its own). `handleSave` closes
|
|
590
|
+
// over the live form values, so route it through a ref to keep the Save node
|
|
591
|
+
// stable across keystrokes (only re-created when the saving state flips).
|
|
592
|
+
const handleSaveRef = useRef(handleSave);
|
|
593
|
+
handleSaveRef.current = handleSave;
|
|
594
|
+
const onSavePress = useCallback(() => {
|
|
595
|
+
void handleSaveRef.current();
|
|
596
|
+
}, []);
|
|
597
|
+
const saveAction = useMemo(
|
|
598
|
+
() => (
|
|
599
|
+
<SurfaceHeaderAction
|
|
600
|
+
label={isSaving ? t('common.saving') || 'Saving…' : t('common.save') || 'Save'}
|
|
601
|
+
onPress={onSavePress}
|
|
602
|
+
loading={isSaving}
|
|
603
|
+
disabled={isSaving}
|
|
604
|
+
/>
|
|
605
|
+
),
|
|
606
|
+
[isSaving, onSavePress, t],
|
|
607
|
+
);
|
|
608
|
+
useSurfaceHeader({ title: fieldConfig.title, subtitle: fieldConfig.subtitle, right: saveAction });
|
|
609
|
+
|
|
610
|
+
// Render a single field input
|
|
611
|
+
const renderField = (field: FieldConfig['fields'][0], index: number) => {
|
|
612
|
+
const error = fieldErrors[field.key];
|
|
613
613
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
<SelectItemIndicator />
|
|
634
|
-
<SelectItemText>{item.label}</SelectItemText>
|
|
635
|
-
</SelectItem>
|
|
636
|
-
)}
|
|
637
|
-
/>
|
|
638
|
-
</Select>
|
|
639
|
-
</View>
|
|
640
|
-
<View className="flex-1">
|
|
641
|
-
<Select value={dobDay} onValueChange={handleDobDayChange}>
|
|
642
|
-
<SelectTrigger label={t('editProfile.items.birthday.day') || 'Day'}>
|
|
643
|
-
<SelectValue placeholder={t('editProfile.items.birthday.day') || 'Day'} />
|
|
644
|
-
<SelectIcon />
|
|
645
|
-
</SelectTrigger>
|
|
646
|
-
<SelectContent
|
|
647
|
-
label={t('editProfile.items.birthday.day') || 'Day'}
|
|
648
|
-
items={dayOptions(dobYear, dobMonth)}
|
|
649
|
-
renderItem={(item) => (
|
|
650
|
-
<SelectItem value={item.value} label={item.label}>
|
|
651
|
-
<SelectItemIndicator />
|
|
652
|
-
<SelectItemText>{item.label}</SelectItemText>
|
|
653
|
-
</SelectItem>
|
|
654
|
-
)}
|
|
655
|
-
/>
|
|
656
|
-
</Select>
|
|
657
|
-
</View>
|
|
658
|
-
<View className="flex-1">
|
|
659
|
-
<Select value={dobYear} onValueChange={handleDobYearChange}>
|
|
660
|
-
<SelectTrigger label={t('editProfile.items.birthday.year') || 'Year'}>
|
|
661
|
-
<SelectValue placeholder={t('editProfile.items.birthday.year') || 'Year'} />
|
|
662
|
-
<SelectIcon />
|
|
663
|
-
</SelectTrigger>
|
|
664
|
-
<SelectContent
|
|
665
|
-
label={t('editProfile.items.birthday.year') || 'Year'}
|
|
666
|
-
items={birthYearOptions()}
|
|
667
|
-
renderItem={(item) => (
|
|
668
|
-
<SelectItem value={item.value} label={item.label}>
|
|
669
|
-
<SelectItemIndicator />
|
|
670
|
-
<SelectItemText>{item.label}</SelectItemText>
|
|
671
|
-
</SelectItem>
|
|
672
|
-
)}
|
|
673
|
-
/>
|
|
674
|
-
</Select>
|
|
675
|
-
</View>
|
|
676
|
-
</View>
|
|
614
|
+
return (
|
|
615
|
+
<View key={field.key} className="gap-space-8">
|
|
616
|
+
<TextField isInvalid={Boolean(error)}>
|
|
617
|
+
<TextFieldInput
|
|
618
|
+
floatingLabel
|
|
619
|
+
label={field.label}
|
|
620
|
+
value={fieldValues[field.key] || ''}
|
|
621
|
+
onChangeText={(value) => handleFieldChange(field.key, value)}
|
|
622
|
+
isInvalid={Boolean(error)}
|
|
623
|
+
autoFocus={index === 0}
|
|
624
|
+
{...field.inputProps}
|
|
625
|
+
/>
|
|
626
|
+
</TextField>
|
|
627
|
+
{error && (
|
|
628
|
+
<Text className="text-caption px-space-4" style={{ color: bloomTheme.colors.negative }}>
|
|
629
|
+
{error}
|
|
630
|
+
</Text>
|
|
631
|
+
)}
|
|
632
|
+
</View>
|
|
677
633
|
);
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
);
|
|
751
|
-
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
// Render the birthday picker: three `Select`s (day, month, year) rather
|
|
637
|
+
// than a native date-picker dependency. Neither this app nor
|
|
638
|
+
// `@oxy.so/bloom` has one installed, and `Select` is already this
|
|
639
|
+
// design system's cross-platform choice control (a bottom sheet on
|
|
640
|
+
// native, an anchored dropdown on web — see its own docs) with no new
|
|
641
|
+
// dependency to add and no native linking to carry across platforms.
|
|
642
|
+
const renderBirthdayPicker = () => (
|
|
643
|
+
<View className="flex-row gap-space-8">
|
|
644
|
+
<View className="flex-1">
|
|
645
|
+
<Select value={dobMonth} onValueChange={handleDobMonthChange}>
|
|
646
|
+
<SelectTrigger label={t('editProfile.items.birthday.month') || 'Month'}>
|
|
647
|
+
<SelectValue placeholder={t('editProfile.items.birthday.month') || 'Month'} />
|
|
648
|
+
<SelectIcon />
|
|
649
|
+
</SelectTrigger>
|
|
650
|
+
<SelectContent
|
|
651
|
+
label={t('editProfile.items.birthday.month') || 'Month'}
|
|
652
|
+
items={MONTH_OPTIONS}
|
|
653
|
+
renderItem={(item) => (
|
|
654
|
+
<SelectItem value={item.value} label={item.label}>
|
|
655
|
+
<SelectItemIndicator />
|
|
656
|
+
<SelectItemText>{item.label}</SelectItemText>
|
|
657
|
+
</SelectItem>
|
|
658
|
+
)}
|
|
659
|
+
/>
|
|
660
|
+
</Select>
|
|
661
|
+
</View>
|
|
662
|
+
<View className="flex-1">
|
|
663
|
+
<Select value={dobDay} onValueChange={handleDobDayChange}>
|
|
664
|
+
<SelectTrigger label={t('editProfile.items.birthday.day') || 'Day'}>
|
|
665
|
+
<SelectValue placeholder={t('editProfile.items.birthday.day') || 'Day'} />
|
|
666
|
+
<SelectIcon />
|
|
667
|
+
</SelectTrigger>
|
|
668
|
+
<SelectContent
|
|
669
|
+
label={t('editProfile.items.birthday.day') || 'Day'}
|
|
670
|
+
items={dayOptions(dobYear, dobMonth)}
|
|
671
|
+
renderItem={(item) => (
|
|
672
|
+
<SelectItem value={item.value} label={item.label}>
|
|
673
|
+
<SelectItemIndicator />
|
|
674
|
+
<SelectItemText>{item.label}</SelectItemText>
|
|
675
|
+
</SelectItem>
|
|
676
|
+
)}
|
|
677
|
+
/>
|
|
678
|
+
</Select>
|
|
679
|
+
</View>
|
|
680
|
+
<View className="flex-1">
|
|
681
|
+
<Select value={dobYear} onValueChange={handleDobYearChange}>
|
|
682
|
+
<SelectTrigger label={t('editProfile.items.birthday.year') || 'Year'}>
|
|
683
|
+
<SelectValue placeholder={t('editProfile.items.birthday.year') || 'Year'} />
|
|
684
|
+
<SelectIcon />
|
|
685
|
+
</SelectTrigger>
|
|
686
|
+
<SelectContent
|
|
687
|
+
label={t('editProfile.items.birthday.year') || 'Year'}
|
|
688
|
+
items={birthYearOptions()}
|
|
689
|
+
renderItem={(item) => (
|
|
690
|
+
<SelectItem value={item.value} label={item.label}>
|
|
691
|
+
<SelectItemIndicator />
|
|
692
|
+
<SelectItemText>{item.label}</SelectItemText>
|
|
693
|
+
</SelectItem>
|
|
694
|
+
)}
|
|
695
|
+
/>
|
|
696
|
+
</Select>
|
|
697
|
+
</View>
|
|
698
|
+
</View>
|
|
699
|
+
);
|
|
700
|
+
|
|
701
|
+
// Render list content (locations or links)
|
|
702
|
+
const renderListContent = () => {
|
|
703
|
+
const addLabel =
|
|
704
|
+
fieldType === 'locations'
|
|
705
|
+
? t('editProfile.items.locations.add') || 'Add Location'
|
|
706
|
+
: t('editProfile.items.links.add') || 'Add Link';
|
|
707
|
+
const listTitle =
|
|
708
|
+
fieldType === 'locations'
|
|
709
|
+
? t('editProfile.items.locations.yourLocations') || 'Your Locations'
|
|
710
|
+
: t('editProfile.items.links.yourLinks') || 'Your Links';
|
|
752
711
|
|
|
753
712
|
return (
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
713
|
+
<>
|
|
714
|
+
<View className="flex-row items-center gap-space-8">
|
|
715
|
+
<View className="flex-1">
|
|
716
|
+
<TextField>
|
|
717
|
+
<TextFieldInput
|
|
718
|
+
floatingLabel
|
|
719
|
+
label={addLabel}
|
|
720
|
+
value={newItemValue}
|
|
721
|
+
onChangeText={setNewItemValue}
|
|
722
|
+
autoCapitalize="none"
|
|
723
|
+
autoCorrect={false}
|
|
724
|
+
onSubmitEditing={handleAddItem}
|
|
725
|
+
returnKeyType="done"
|
|
726
|
+
keyboardType={fieldType === 'links' ? 'url' : 'default'}
|
|
727
|
+
/>
|
|
728
|
+
</TextField>
|
|
729
|
+
</View>
|
|
730
|
+
<Button
|
|
731
|
+
onPress={handleAddItem}
|
|
732
|
+
disabled={!newItemValue.trim()}
|
|
733
|
+
accessibilityLabel={addLabel}
|
|
734
|
+
icon={<Ionicons name="add" size={20} color={bloomTheme.colors.primaryForeground} />}
|
|
735
|
+
iconOnly
|
|
736
|
+
tone="neutral"
|
|
737
|
+
appearance="outline"
|
|
738
|
+
/>
|
|
763
739
|
</View>
|
|
740
|
+
|
|
741
|
+
{listItems.length > 0 && (
|
|
742
|
+
<View className="mt-space-8 gap-space-12">
|
|
743
|
+
<Text className="text-sectionTitle font-sectionTitle text-text">
|
|
744
|
+
{listTitle} ({listItems.length})
|
|
745
|
+
</Text>
|
|
746
|
+
{listItems.map((item) => (
|
|
747
|
+
<View
|
|
748
|
+
key={item.id}
|
|
749
|
+
className="flex-row items-center gap-space-12 p-space-16 rounded-radius-12 border-hairline border-border-image bg-fill"
|
|
750
|
+
>
|
|
751
|
+
{fieldType === 'links' && item.image && (
|
|
752
|
+
<Image source={{ uri: item.image }} style={styles.linkImage} />
|
|
753
|
+
)}
|
|
754
|
+
<View className="flex-1 gap-space-4">
|
|
755
|
+
<Text className="text-subtitle font-subtitle text-text" numberOfLines={1}>
|
|
756
|
+
{fieldType === 'locations' ? item.name : item.title || item.url}
|
|
757
|
+
</Text>
|
|
758
|
+
{fieldType === 'links' && (
|
|
759
|
+
<Text
|
|
760
|
+
className="text-bodySmall font-bodySmall text-text-secondary"
|
|
761
|
+
numberOfLines={1}
|
|
762
|
+
>
|
|
763
|
+
{item.url}
|
|
764
|
+
</Text>
|
|
765
|
+
)}
|
|
766
|
+
</View>
|
|
767
|
+
<TouchableOpacity
|
|
768
|
+
onPress={() => handleRemoveItem(item.id)}
|
|
769
|
+
className="p-space-8"
|
|
770
|
+
accessibilityRole="button"
|
|
771
|
+
accessibilityLabel={t('common.remove') || 'Remove'}
|
|
772
|
+
>
|
|
773
|
+
<Ionicons name="trash-outline" size={18} color={bloomTheme.colors.negative} />
|
|
774
|
+
</TouchableOpacity>
|
|
775
|
+
</View>
|
|
776
|
+
))}
|
|
777
|
+
</View>
|
|
778
|
+
)}
|
|
779
|
+
</>
|
|
764
780
|
);
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
return (
|
|
784
|
+
<View className="px-screen-margin pt-space-16 pb-space-32 gap-space-24">
|
|
785
|
+
{/* Form Content */}
|
|
786
|
+
<View className="gap-space-16 p-space-16 rounded-radius-20 bg-fill">
|
|
787
|
+
{fieldConfig.isList
|
|
788
|
+
? renderListContent()
|
|
789
|
+
: fieldConfig.isDatePicker
|
|
790
|
+
? renderBirthdayPicker()
|
|
791
|
+
: fieldConfig.fields.map(renderField)}
|
|
792
|
+
</View>
|
|
793
|
+
</View>
|
|
794
|
+
);
|
|
765
795
|
};
|
|
766
796
|
|
|
767
797
|
const styles = StyleSheet.create({
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
798
|
+
linkImage: {
|
|
799
|
+
width: 40,
|
|
800
|
+
height: 40,
|
|
801
|
+
borderRadius: 8,
|
|
802
|
+
},
|
|
773
803
|
});
|
|
774
804
|
|
|
775
805
|
export default React.memo(EditProfileFieldScreen);
|