@oxy.so/services 11.14.0 → 11.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +9 -9
- package/lib/commonjs/assets/assets/one/README.md +8 -0
- package/lib/commonjs/assets/assets/one/floral.jpg +0 -0
- package/lib/commonjs/assets/assets/one/floral.jpg.d.ts +2 -0
- package/lib/commonjs/assets/assets/one/floral.mp4 +0 -0
- package/lib/commonjs/assets/assets/one/floral.mp4.d.ts +2 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +9 -9
- package/lib/commonjs/assets/one/README.md +8 -0
- package/lib/commonjs/assets/one/floral.jpg +0 -0
- package/lib/commonjs/assets/one/floral.mp4 +0 -0
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js +2 -2
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js.map +1 -1
- package/lib/commonjs/ui/components/BloomLocaleBridge.js +2 -2
- package/lib/commonjs/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +2 -2
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/LanguageBridge.js +2 -2
- package/lib/commonjs/ui/components/LanguageBridge.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +5 -18
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +30 -25
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +6 -30
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +2 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +36 -6
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -2
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +7 -5
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +24 -57
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js +17 -43
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/SettingsIcon.js +14 -25
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +38 -47
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +232 -472
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/storageUsage.js +62 -0
- package/lib/commonjs/ui/components/authChooser/storageUsage.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/styles.js +21 -70
- package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +6 -5
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +25 -25
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +4 -4
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js +2 -2
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +2 -2
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +16 -50
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +3 -3
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +10 -12
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +3 -3
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +13 -6
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +53 -112
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyEmailAccountChoice.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyEmailAccountChoice.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js +31 -13
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js +2 -2
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/commonjs/ui/components/supervision/PersonPicker.js +2 -2
- package/lib/commonjs/ui/components/supervision/PersonPicker.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +32 -58
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/oxyRuntimeContext.js +57 -0
- package/lib/commonjs/ui/context/oxyRuntimeContext.js.map +1 -0
- package/lib/commonjs/ui/context/oxySupportContext.js +10 -0
- package/lib/commonjs/ui/context/oxySupportContext.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -10
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +6 -6
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +13 -10
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +3 -3
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +3 -3
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +5 -5
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js +3 -3
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -4
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +7 -7
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSupervision.js +2 -2
- package/lib/commonjs/ui/hooks/queries/useSupervision.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +2 -2
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +2 -2
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js +2 -2
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +3 -3
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollowTarget.js +2 -2
- package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js +2 -2
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +33 -18
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOxyEvent.js +2 -2
- package/lib/commonjs/ui/hooks/useOxyEvent.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js +40 -2
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -1
- package/lib/commonjs/ui/hooks/useUsernameAvailability.js +60 -0
- package/lib/commonjs/ui/hooks/useUsernameAvailability.js.map +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +4 -4
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/index.js +37 -0
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +2 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +2 -2
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +27 -101
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/screenComponents.js +101 -0
- package/lib/commonjs/ui/navigation/screenComponents.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js +1 -1
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +25 -6
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +4 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js +19 -7
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- package/lib/commonjs/ui/one-video.js +50 -0
- package/lib/commonjs/ui/one-video.js.map +1 -0
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +7 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -6
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +10 -10
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +2 -2
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +36 -35
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +35 -64
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +8 -8
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +10 -13
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +10 -10
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js +7 -14
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +137 -285
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +19 -16
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +33 -188
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileTrashScreen.js +2 -2
- package/lib/commonjs/ui/screens/FileTrashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +74 -62
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -14
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +35 -36
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +9 -17
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +319 -328
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +10 -10
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyOneScreen.js +213 -0
- package/lib/commonjs/ui/screens/OxyOneScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js +12 -12
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +64 -87
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +309 -233
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ReportBugScreen.js +72 -0
- package/lib/commonjs/ui/screens/ReportBugScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +32 -61
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SupervisionScreen.js +4 -4
- package/lib/commonjs/ui/screens/SupervisionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +66 -58
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -2
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +6 -5
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +16 -81
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +3 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/index.js +7 -0
- package/lib/commonjs/ui/screens/index.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +12 -22
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +37 -67
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +20 -8
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +6 -10
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +9 -9
- package/lib/module/assets/assets/one/README.md +8 -0
- package/lib/module/assets/assets/one/floral.jpg +0 -0
- package/lib/module/assets/assets/one/floral.jpg.d.ts +2 -0
- package/lib/module/assets/assets/one/floral.mp4 +0 -0
- package/lib/module/assets/assets/one/floral.mp4.d.ts +2 -0
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +9 -9
- package/lib/module/assets/one/README.md +8 -0
- package/lib/module/assets/one/floral.jpg +0 -0
- package/lib/module/assets/one/floral.mp4 +0 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +2 -3
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/AccountInvitationAcceptance.js +1 -1
- package/lib/module/ui/components/AccountInvitationAcceptance.js.map +1 -1
- package/lib/module/ui/components/BloomLocaleBridge.js +1 -1
- package/lib/module/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/LanguageBridge.js +1 -1
- package/lib/module/ui/components/LanguageBridge.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +4 -17
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +29 -24
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +8 -32
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyOAuthCallback.js +3 -2
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +38 -6
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +1 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +6 -4
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +24 -57
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js +17 -43
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js +14 -25
- package/lib/module/ui/components/SettingsIcon.js.map +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +39 -48
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +237 -475
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/storageUsage.js +56 -0
- package/lib/module/ui/components/authChooser/storageUsage.js.map +1 -0
- package/lib/module/ui/components/authChooser/styles.js +21 -70
- package/lib/module/ui/components/authChooser/styles.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +7 -6
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +26 -26
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +17 -51
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +3 -3
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +11 -13
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +3 -3
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js +14 -7
- package/lib/module/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +54 -113
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyEmailAccountChoice.js +1 -1
- package/lib/module/ui/components/signIn/OxyEmailAccountChoice.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js +30 -12
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/module/ui/components/signIn/accountFlowParts.js +1 -1
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/module/ui/components/supervision/PersonPicker.js +1 -1
- package/lib/module/ui/components/supervision/PersonPicker.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +7 -51
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/oxyRuntimeContext.js +49 -0
- package/lib/module/ui/context/oxyRuntimeContext.js.map +1 -0
- package/lib/module/ui/context/oxySupportContext.js +7 -0
- package/lib/module/ui/context/oxySupportContext.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +5 -2
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSupervision.js +1 -1
- package/lib/module/ui/hooks/queries/useSupervision.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +1 -1
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/hooks/useDisplayCurrency.js +1 -1
- package/lib/module/ui/hooks/useDisplayCurrency.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +1 -1
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +1 -1
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useLanguageManagement.js +34 -19
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/module/ui/hooks/useOxyEvent.js +1 -1
- package/lib/module/ui/hooks/useOxyEvent.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceHeader.js +41 -3
- package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -1
- package/lib/module/ui/hooks/useUsernameAvailability.js +56 -0
- package/lib/module/ui/hooks/useUsernameAvailability.js.map +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js +4 -4
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/index.js +4 -0
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +2 -0
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +3 -3
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +24 -102
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/screenComponents.js +96 -0
- package/lib/module/ui/navigation/screenComponents.js.map +1 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js +1 -1
- package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -1
- package/lib/module/ui/navigation/surfaceNavStack.js +25 -6
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js +4 -0
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js +19 -7
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- package/lib/module/ui/one-video.js +45 -0
- package/lib/module/ui/one-video.js.map +1 -0
- package/lib/module/ui/runtime/createOxyRuntime.js +7 -1
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +7 -6
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +10 -10
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +36 -35
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +35 -64
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js +7 -7
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +10 -13
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +9 -9
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/DomainsScreen.js +6 -13
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +138 -287
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +18 -15
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +33 -188
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FileTrashScreen.js +1 -1
- package/lib/module/ui/screens/FileTrashScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +76 -64
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +8 -13
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +34 -35
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +9 -17
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +319 -328
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +9 -9
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyOneScreen.js +208 -0
- package/lib/module/ui/screens/OxyOneScreen.js.map +1 -0
- package/lib/module/ui/screens/PreferencesScreen.js +11 -11
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +64 -87
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +310 -235
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/ReportBugScreen.js +68 -0
- package/lib/module/ui/screens/ReportBugScreen.js.map +1 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js +33 -62
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SupervisionScreen.js +1 -1
- package/lib/module/ui/screens/SupervisionScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +67 -59
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +7 -6
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +18 -83
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js +3 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/index.js +1 -0
- package/lib/module/ui/screens/index.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +11 -21
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +37 -67
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +20 -8
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +5 -9
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/typescript/assets/one/floral.jpg.d.ts +2 -0
- package/lib/typescript/assets/one/floral.mp4.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +1 -2
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +3 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +4 -13
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +0 -4
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +8 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +2 -29
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/storageUsage.d.ts +11 -0
- package/lib/typescript/commonjs/ui/components/authChooser/storageUsage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts +19 -68
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -28
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyRuntimeContext.d.ts +31 -0
- package/lib/typescript/commonjs/ui/context/oxyRuntimeContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxySupportContext.d.ts +9 -0
- package/lib/typescript/commonjs/ui/context/oxySupportContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts +4 -2
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useUsernameAvailability.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +4 -4
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +15 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +10 -18
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/screenComponents.d.ts +4 -0
- package/lib/typescript/commonjs/ui/navigation/screenComponents.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +3 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +6 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/one-video.d.ts +3 -0
- package/lib/typescript/commonjs/ui/one-video.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +4 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/OxyOneScreen.d.ts +4 -0
- package/lib/typescript/commonjs/ui/screens/OxyOneScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ReportBugScreen.d.ts +2 -0
- package/lib/typescript/commonjs/ui/screens/ReportBugScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts +1 -5
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/index.d.ts +1 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +12 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +1 -2
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +3 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +4 -13
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +0 -4
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +8 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +2 -29
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/storageUsage.d.ts +11 -0
- package/lib/typescript/module/ui/components/authChooser/storageUsage.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts +19 -68
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +6 -6
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -28
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyRuntimeContext.d.ts +31 -0
- package/lib/typescript/module/ui/context/oxyRuntimeContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxySupportContext.d.ts +9 -0
- package/lib/typescript/module/ui/context/oxySupportContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts +4 -2
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useUsernameAvailability.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +4 -4
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +15 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +10 -18
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/screenComponents.d.ts +4 -0
- package/lib/typescript/module/ui/navigation/screenComponents.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +3 -1
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +6 -1
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/one-video.d.ts +3 -0
- package/lib/typescript/module/ui/one-video.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +4 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/OxyOneScreen.d.ts +4 -0
- package/lib/typescript/module/ui/screens/OxyOneScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ReportBugScreen.d.ts +2 -0
- package/lib/typescript/module/ui/screens/ReportBugScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts +1 -5
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/index.d.ts +1 -0
- package/lib/typescript/module/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +12 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/types/assets.d.ts +10 -0
- package/package.json +28 -12
- package/plugins/withOxySharedPermissions.js +2 -1
- package/plugins/withSharedDeviceSessionProvider.js +2 -1
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/manifest.json +9 -9
- package/src/assets/one/README.md +8 -0
- package/src/assets/one/floral.jpg +0 -0
- package/src/assets/one/floral.jpg.d.ts +2 -0
- package/src/assets/one/floral.mp4 +0 -0
- package/src/assets/one/floral.mp4.d.ts +2 -0
- package/src/index.ts +9 -1
- package/src/types/assets.d.ts +10 -0
- package/src/ui/client.ts +2 -3
- package/src/ui/components/AccountInvitationAcceptance.tsx +1 -1
- package/src/ui/components/BloomLocaleBridge.tsx +1 -1
- package/src/ui/components/FollowButton.tsx +1 -1
- package/src/ui/components/LanguageBridge.tsx +1 -1
- package/src/ui/components/OxyAccountDialogScreen.tsx +3 -14
- package/src/ui/components/OxyAuthChooser.tsx +28 -24
- package/src/ui/components/OxyConsentScreen.tsx +8 -25
- package/src/ui/components/OxyOAuthCallback.tsx +3 -2
- package/src/ui/components/OxyProvider.tsx +34 -8
- package/src/ui/components/OxySignInButton.tsx +1 -1
- package/src/ui/components/ProfileButton.tsx +17 -4
- package/src/ui/components/ProfileSummaryCard.tsx +27 -68
- package/src/ui/components/RequireOxyAuth.tsx +16 -38
- package/src/ui/components/SettingsIcon.tsx +8 -33
- package/src/ui/components/SurfaceHeaderAction.tsx +1 -1
- package/src/ui/components/SurfaceScreen.tsx +56 -49
- package/src/ui/components/__tests__/AccountInvitationAcceptance.test.tsx +1 -1
- package/src/ui/components/__tests__/BloomLocaleBridge.test.tsx +1 -1
- package/src/ui/components/__tests__/LanguageBridge.test.tsx +1 -1
- package/src/ui/components/__tests__/followButtonAccessibility.test.tsx +1 -1
- package/src/ui/components/authChooser/AccountsMenuView.tsx +271 -521
- package/src/ui/components/authChooser/storageUsage.ts +75 -0
- package/src/ui/components/authChooser/styles.ts +14 -76
- package/src/ui/components/authChooser/types.ts +6 -6
- package/src/ui/components/fileManagement/FileViewer.tsx +7 -6
- package/src/ui/components/modals/DeleteAccountModal.tsx +25 -24
- package/src/ui/components/organizations/OrganizationClaimReview.tsx +1 -1
- package/src/ui/components/organizations/OrganizationClaims.tsx +1 -1
- package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +1 -1
- package/src/ui/components/organizations/OrganizationSettings.tsx +1 -1
- package/src/ui/components/payment/PaymentDetailsStep.tsx +13 -51
- package/src/ui/components/payment/PaymentMethodStep.tsx +4 -4
- package/src/ui/components/payment/PaymentReviewStep.tsx +12 -17
- package/src/ui/components/payment/PaymentSummaryStep.tsx +4 -4
- package/src/ui/components/signIn/InlineCommonsQr.tsx +9 -4
- package/src/ui/components/signIn/OxyAccountPicker.tsx +42 -93
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyEmailAccountChoice.tsx +1 -1
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +1 -1
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +1 -1
- package/src/ui/components/signIn/OxySignInPanel.tsx +1 -1
- package/src/ui/components/signIn/OxySignUpPanel.tsx +1 -1
- package/src/ui/components/signIn/ReauthStep.tsx +26 -16
- package/src/ui/components/signIn/accountFlowParts.tsx +1 -1
- package/src/ui/components/supervision/PersonPicker.tsx +1 -1
- package/src/ui/context/OxyContext.tsx +15 -79
- package/src/ui/context/oxyContextTypes.ts +1 -0
- package/src/ui/context/oxyRuntimeContext.ts +69 -0
- package/src/ui/context/oxySupportContext.ts +9 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +1 -1
- package/src/ui/hooks/mutations/useServicesMutations.ts +1 -1
- package/src/ui/hooks/queries/useAccountQueries.ts +4 -2
- package/src/ui/hooks/queries/useAuthMethods.ts +1 -1
- package/src/ui/hooks/queries/useFileQueries.ts +1 -1
- package/src/ui/hooks/queries/usePaymentQueries.ts +1 -1
- package/src/ui/hooks/queries/usePersonalPlans.ts +1 -1
- package/src/ui/hooks/queries/useSecurityQueries.ts +1 -1
- package/src/ui/hooks/queries/useServicesQueries.ts +1 -1
- package/src/ui/hooks/queries/useSupervision.ts +1 -1
- package/src/ui/hooks/useAuth.ts +1 -1
- package/src/ui/hooks/useDeviceSwitcher.ts +1 -1
- package/src/ui/hooks/useDisplayCurrency.ts +1 -1
- package/src/ui/hooks/useFollow.ts +1 -1
- package/src/ui/hooks/useFollowTarget.ts +1 -1
- package/src/ui/hooks/useI18n.ts +1 -1
- package/src/ui/hooks/useLanguageManagement.ts +48 -23
- package/src/ui/hooks/useOxyEvent.ts +1 -1
- package/src/ui/hooks/useSurfaceHeader.ts +50 -2
- package/src/ui/hooks/useUsernameAvailability.ts +57 -0
- package/src/ui/icons/subsetGlyphMaps.ts +4 -4
- package/src/ui/index.ts +5 -0
- package/src/ui/navigation/__tests__/bottomSheetManager.test.ts +37 -0
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +27 -0
- package/src/ui/navigation/accountDialogManager.ts +16 -1
- package/src/ui/navigation/bottomSheetManager.ts +3 -3
- package/src/ui/navigation/routes.ts +75 -103
- package/src/ui/navigation/screenComponents.ts +96 -0
- package/src/ui/navigation/surfaceBackBridge.ts +1 -1
- package/src/ui/navigation/surfaceNavStack.ts +33 -6
- package/src/ui/navigation/surfaceRegistry.ts +7 -1
- package/src/ui/navigation/surfaces.ts +30 -15
- package/src/ui/one-video.tsx +44 -0
- package/src/ui/runtime/createOxyRuntime.ts +7 -1
- package/src/ui/screens/AccountMembersScreen.tsx +6 -6
- package/src/ui/screens/AccountSettingsScreen.tsx +14 -14
- package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
- package/src/ui/screens/AppInfoScreen.tsx +41 -42
- package/src/ui/screens/AvatarCropScreen.tsx +33 -57
- package/src/ui/screens/ChangeAvatarScreen.tsx +8 -8
- package/src/ui/screens/ConnectedAppsScreen.tsx +11 -15
- package/src/ui/screens/CreateAccountScreen.tsx +13 -13
- package/src/ui/screens/DomainsScreen.tsx +9 -14
- package/src/ui/screens/EditProfileFieldScreen.tsx +189 -282
- package/src/ui/screens/EditProfileScreen.tsx +21 -18
- package/src/ui/screens/FileManagementScreen.tsx +44 -205
- package/src/ui/screens/FileTrashScreen.tsx +1 -1
- package/src/ui/screens/HelpSupportScreen.tsx +59 -53
- package/src/ui/screens/HistoryViewScreen.tsx +10 -17
- package/src/ui/screens/LanguageSelectorScreen.tsx +37 -35
- package/src/ui/screens/LegalDocumentsScreen.tsx +10 -20
- package/src/ui/screens/ManageAccountScreen.tsx +367 -340
- package/src/ui/screens/NotificationsScreen.tsx +12 -12
- package/src/ui/screens/OxyOneScreen.tsx +223 -0
- package/src/ui/screens/PreferencesScreen.tsx +15 -15
- package/src/ui/screens/PrivacySettingsScreen.tsx +65 -89
- package/src/ui/screens/ProfileScreen.tsx +242 -268
- package/src/ui/screens/ReportBugScreen.tsx +68 -0
- package/src/ui/screens/SearchSettingsScreen.tsx +30 -65
- package/src/ui/screens/SupervisionScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +85 -62
- package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
- package/src/ui/screens/fileManagement/FileListSection.tsx +7 -6
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +15 -78
- package/src/ui/screens/fileManagement/UploadBar.tsx +4 -1
- package/src/ui/screens/index.ts +1 -0
- package/src/ui/screens/trust/TrustCenterScreen.tsx +13 -22
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +32 -62
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +10 -5
- package/src/ui/screens/trust/TrustRulesScreen.tsx +6 -9
- package/src/ui/types/navigation.ts +12 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js +0 -61
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +0 -1
- package/lib/module/ui/screens/UserLinksScreen.js +0 -57
- package/lib/module/ui/screens/UserLinksScreen.js.map +0 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts +0 -15
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts +0 -15
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +0 -1
- package/lib/typescript/types/expo-document-picker.d.ts +0 -35
- package/lib/typescript/types/expo-image-picker.d.ts +0 -35
- package/src/types/expo-document-picker.d.ts +0 -35
- package/src/types/expo-image-picker.d.ts +0 -35
- package/src/ui/screens/UserLinksScreen.tsx +0 -68
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { useState, useCallback, useMemo
|
|
4
|
-
import { View, Image, StyleSheet
|
|
3
|
+
import React, { useState, useCallback, useMemo } from 'react';
|
|
4
|
+
import { View, Image, StyleSheet } from 'react-native';
|
|
5
5
|
import Ionicons from "../icons/Ionicons.js";
|
|
6
6
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
7
|
-
import { Text } from '@oxy.so/bloom/typography';
|
|
8
7
|
import { Button } from '@oxy.so/bloom/button';
|
|
9
|
-
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { TextField, TextFieldInput, TextFieldLabel, TextFieldHint } from '@oxy.so/bloom/text-field';
|
|
9
|
+
import { PhoneInput, COUNTRIES, findCountry } from '@oxy.so/bloom/phone-input';
|
|
10
|
+
import { Textarea } from '@oxy.so/bloom/textarea';
|
|
11
|
+
import { DatePicker } from '@oxy.so/bloom/date-picker';
|
|
12
|
+
import { Field } from '@oxy.so/bloom/field';
|
|
13
|
+
import { usernameSchema, USERNAME_INVALID_MESSAGE } from '@oxy.so/contracts';
|
|
14
|
+
import { useUsernameAvailability } from "../hooks/useUsernameAvailability.js";
|
|
15
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
12
16
|
import { useI18n } from "../hooks/useI18n.js";
|
|
13
17
|
import { useSurfaceHeader } from "../hooks/useSurfaceHeader.js";
|
|
14
|
-
import {
|
|
15
|
-
import { useOxy } from "../context/OxyContext.js";
|
|
18
|
+
import { useOxy } from "../context/oxyRuntimeContext.js";
|
|
16
19
|
import { useProfileEditing } from "../hooks/useProfileEditing.js";
|
|
17
20
|
import { toast } from '@oxy.so/bloom/toast';
|
|
18
21
|
import { DISPLAY_NAME_INVALID_MESSAGE, isValidDisplayName } from '@oxy.so/core';
|
|
@@ -32,89 +35,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
32
35
|
* value this picker can produce is never one the API would reject.
|
|
33
36
|
*/
|
|
34
37
|
const MIN_BIRTH_YEAR = 1900;
|
|
35
|
-
|
|
36
|
-
/** `MIN_BIRTH_YEAR` through the current year, most recent first. */
|
|
37
|
-
function birthYearOptions() {
|
|
38
|
-
const currentYear = new Date().getUTCFullYear();
|
|
39
|
-
const years = [];
|
|
40
|
-
for (let year = currentYear; year >= MIN_BIRTH_YEAR; year--) {
|
|
41
|
-
years.push({
|
|
42
|
-
value: String(year),
|
|
43
|
-
label: String(year)
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return years;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Month names are not run through `t()` here: this SDK has no existing
|
|
51
|
-
* calendar-month translation catalogue to hook into, and inventing one is out
|
|
52
|
-
* of scope for wiring up the date picker itself. English month names are a
|
|
53
|
-
* known, deliberate limitation of this pass.
|
|
54
|
-
*/
|
|
55
|
-
const MONTH_OPTIONS = [{
|
|
56
|
-
value: '01',
|
|
57
|
-
label: 'January'
|
|
58
|
-
}, {
|
|
59
|
-
value: '02',
|
|
60
|
-
label: 'February'
|
|
61
|
-
}, {
|
|
62
|
-
value: '03',
|
|
63
|
-
label: 'March'
|
|
64
|
-
}, {
|
|
65
|
-
value: '04',
|
|
66
|
-
label: 'April'
|
|
67
|
-
}, {
|
|
68
|
-
value: '05',
|
|
69
|
-
label: 'May'
|
|
70
|
-
}, {
|
|
71
|
-
value: '06',
|
|
72
|
-
label: 'June'
|
|
73
|
-
}, {
|
|
74
|
-
value: '07',
|
|
75
|
-
label: 'July'
|
|
76
|
-
}, {
|
|
77
|
-
value: '08',
|
|
78
|
-
label: 'August'
|
|
79
|
-
}, {
|
|
80
|
-
value: '09',
|
|
81
|
-
label: 'September'
|
|
82
|
-
}, {
|
|
83
|
-
value: '10',
|
|
84
|
-
label: 'October'
|
|
85
|
-
}, {
|
|
86
|
-
value: '11',
|
|
87
|
-
label: 'November'
|
|
88
|
-
}, {
|
|
89
|
-
value: '12',
|
|
90
|
-
label: 'December'
|
|
91
|
-
}];
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Real Gregorian days in `month` (1-12) of `year`, leap years included — the
|
|
95
|
-
* same rule `dateOfBirthSchema` (`@oxy.so/contracts`) applies server-side,
|
|
96
|
-
* written a second time here because a picker's OWN day list must bound
|
|
97
|
-
* itself before the value ever reaches it.
|
|
98
|
-
*/
|
|
99
|
-
function daysInMonth(year, month) {
|
|
100
|
-
const isLeapYear = year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
101
|
-
const DAYS_PER_MONTH = [31, isLeapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
102
|
-
return DAYS_PER_MONTH[month - 1];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/** Day options for the current year/month selection — 31 while either is unset. */
|
|
106
|
-
function dayOptions(year, month) {
|
|
107
|
-
const count = year && month ? daysInMonth(Number(year), Number(month)) : 31;
|
|
108
|
-
return Array.from({
|
|
109
|
-
length: count
|
|
110
|
-
}, (_, index) => {
|
|
111
|
-
const day = String(index + 1).padStart(2, '0');
|
|
112
|
-
return {
|
|
113
|
-
value: day,
|
|
114
|
-
label: day
|
|
115
|
-
};
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
38
|
/**
|
|
119
39
|
* Pure seeding function: derives the initial `fieldValues` / `listItems` for a
|
|
120
40
|
* given field type from the active account snapshot. Called ONCE per state via
|
|
@@ -208,7 +128,6 @@ function buildInitialProfileState(user, fieldType) {
|
|
|
208
128
|
const EditProfileFieldScreen = ({
|
|
209
129
|
goBack,
|
|
210
130
|
onClose,
|
|
211
|
-
theme,
|
|
212
131
|
fieldType = 'displayName'
|
|
213
132
|
}) => {
|
|
214
133
|
// Editing "my" profile targets the ACTIVE account — writes authenticate as
|
|
@@ -227,7 +146,6 @@ const EditProfileFieldScreen = ({
|
|
|
227
146
|
isSaving
|
|
228
147
|
} = useProfileEditing();
|
|
229
148
|
const bloomTheme = useTheme();
|
|
230
|
-
const normalizedTheme = normalizeTheme(theme);
|
|
231
149
|
|
|
232
150
|
// State for field values — seeded ONCE from the active account snapshot at
|
|
233
151
|
// mount via lazy initializers. See buildInitialProfileState: no effect
|
|
@@ -238,6 +156,14 @@ const EditProfileFieldScreen = ({
|
|
|
238
156
|
// State for list fields (locations, links) — same one-time mount seeding.
|
|
239
157
|
const [listItems, setListItems] = useState(() => buildInitialProfileState(user, fieldType).listItems);
|
|
240
158
|
const [newItemValue, setNewItemValue] = useState('');
|
|
159
|
+
const [phoneCountry, setPhoneCountry] = useState(() => {
|
|
160
|
+
const phone = fieldValues.phone?.replace(/[\s()-]/g, '') || '';
|
|
161
|
+
return [...COUNTRIES].sort((a, b) => b.dial.length - a.dial.length).find(country => phone.startsWith(`+${country.dial}`))?.iso2 || 'US';
|
|
162
|
+
});
|
|
163
|
+
const phoneDial = findCountry(phoneCountry)?.dial || '1';
|
|
164
|
+
const phoneValue = fieldValues.phone || '';
|
|
165
|
+
const phoneNumber = phoneValue.startsWith(`+${phoneDial}`) ? phoneValue.slice(phoneDial.length + 1).trimStart() : phoneValue;
|
|
166
|
+
const usernameCheck = useUsernameAvailability(fieldValues.username || '', fieldType === 'username');
|
|
241
167
|
|
|
242
168
|
// Get field configuration based on fieldType
|
|
243
169
|
const fieldConfig = useMemo(() => {
|
|
@@ -267,13 +193,8 @@ const EditProfileFieldScreen = ({
|
|
|
267
193
|
label: t('editProfile.items.username.label') || 'Username',
|
|
268
194
|
placeholder: t('editProfile.items.username.placeholder') || 'Choose a username',
|
|
269
195
|
validation: value => {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
if (value.length < 3) {
|
|
274
|
-
return t('editProfile.items.username.tooShort') || 'Username must be at least 3 characters';
|
|
275
|
-
}
|
|
276
|
-
return undefined;
|
|
196
|
+
const parsed = usernameSchema.safeParse(value);
|
|
197
|
+
return parsed.success ? undefined : parsed.error.issues[0]?.message;
|
|
277
198
|
},
|
|
278
199
|
inputProps: {
|
|
279
200
|
autoCapitalize: 'none',
|
|
@@ -332,10 +253,7 @@ const EditProfileFieldScreen = ({
|
|
|
332
253
|
return {
|
|
333
254
|
title: t('editProfile.items.birthday.title') || 'Birthday',
|
|
334
255
|
subtitle: t('editProfile.items.birthday.subtitle') || 'Your date of birth',
|
|
335
|
-
//
|
|
336
|
-
// (`fieldConfig.fields[0]?.key`) — `renderBirthdayPicker` renders the
|
|
337
|
-
// actual day/month/year controls; this array is never mapped through
|
|
338
|
-
// `renderField` for this field type (see `isDatePicker` below).
|
|
256
|
+
// The shared date picker writes the same date-only API field.
|
|
339
257
|
fields: [{
|
|
340
258
|
key: 'dateOfBirth',
|
|
341
259
|
label: t('editProfile.items.birthday.label') || 'Birthday',
|
|
@@ -379,48 +297,6 @@ const EditProfileFieldScreen = ({
|
|
|
379
297
|
}
|
|
380
298
|
}, [fieldErrors]);
|
|
381
299
|
|
|
382
|
-
// The birthday picker's three pieces, seeded once from the same
|
|
383
|
-
// one-time-mount value `fieldValues.dateOfBirth` already carries (empty
|
|
384
|
-
// string parts when unset). Kept separate from `fieldValues` because a
|
|
385
|
-
// `Select` needs its OWN current value per control; each change handler
|
|
386
|
-
// below composes the three back into the single `dateOfBirth` field
|
|
387
|
-
// `handleSave` actually writes, in the event handler itself rather than
|
|
388
|
-
// an effect.
|
|
389
|
-
const [dobYear, setDobYear] = useState(() => (fieldValues.dateOfBirth || '').split('-')[0] || '');
|
|
390
|
-
const [dobMonth, setDobMonth] = useState(() => (fieldValues.dateOfBirth || '').split('-')[1] || '');
|
|
391
|
-
const [dobDay, setDobDay] = useState(() => (fieldValues.dateOfBirth || '').split('-')[2] || '');
|
|
392
|
-
|
|
393
|
-
// A partial selection (e.g. year and month but no day yet) writes ''`,
|
|
394
|
-
// which `updateField`/the API's `dateOfBirth` write path already treats
|
|
395
|
-
// as "clear" — the same behaviour a fully-erased text field would have
|
|
396
|
-
// had. There is deliberately no separate "incomplete date" error: the
|
|
397
|
-
// three controls are either all filled (a real date) or the field is
|
|
398
|
-
// unset, and both are valid states to save.
|
|
399
|
-
const commitDateOfBirth = useCallback((year, month, day) => {
|
|
400
|
-
handleFieldChange('dateOfBirth', year && month && day ? `${year}-${month}-${day}` : '');
|
|
401
|
-
}, [handleFieldChange]);
|
|
402
|
-
|
|
403
|
-
// Changing the year or month can strand a selected day past the new
|
|
404
|
-
// month's length (31 March -> April has none) — clamped down to the new
|
|
405
|
-
// last day rather than left pointing at a day `dayOptions` no longer
|
|
406
|
-
// lists, the same way a native date picker behaves.
|
|
407
|
-
const handleDobYearChange = useCallback(year => {
|
|
408
|
-
const clampedDay = dobDay && dobMonth && Number(dobDay) > daysInMonth(Number(year), Number(dobMonth)) ? String(daysInMonth(Number(year), Number(dobMonth))).padStart(2, '0') : dobDay;
|
|
409
|
-
setDobYear(year);
|
|
410
|
-
setDobDay(clampedDay);
|
|
411
|
-
commitDateOfBirth(year, dobMonth, clampedDay);
|
|
412
|
-
}, [dobMonth, dobDay, commitDateOfBirth]);
|
|
413
|
-
const handleDobMonthChange = useCallback(month => {
|
|
414
|
-
const clampedDay = dobDay && dobYear && Number(dobDay) > daysInMonth(Number(dobYear), Number(month)) ? String(daysInMonth(Number(dobYear), Number(month))).padStart(2, '0') : dobDay;
|
|
415
|
-
setDobMonth(month);
|
|
416
|
-
setDobDay(clampedDay);
|
|
417
|
-
commitDateOfBirth(dobYear, month, clampedDay);
|
|
418
|
-
}, [dobYear, dobDay, commitDateOfBirth]);
|
|
419
|
-
const handleDobDayChange = useCallback(day => {
|
|
420
|
-
setDobDay(day);
|
|
421
|
-
commitDateOfBirth(dobYear, dobMonth, day);
|
|
422
|
-
}, [dobYear, dobMonth, commitDateOfBirth]);
|
|
423
|
-
|
|
424
300
|
// Validate all fields
|
|
425
301
|
const validateFields = useCallback(() => {
|
|
426
302
|
const errors = {};
|
|
@@ -466,6 +342,7 @@ const EditProfileFieldScreen = ({
|
|
|
466
342
|
|
|
467
343
|
// Save handler
|
|
468
344
|
const handleSave = async () => {
|
|
345
|
+
if (isSaving || fieldType === 'username' && !usernameCheck.canSave) return;
|
|
469
346
|
if (fieldConfig.isList) {
|
|
470
347
|
let success = false;
|
|
471
348
|
if (fieldType === 'locations') {
|
|
@@ -510,7 +387,7 @@ const EditProfileFieldScreen = ({
|
|
|
510
387
|
} else {
|
|
511
388
|
const key = fieldConfig.fields[0]?.key;
|
|
512
389
|
if (key) {
|
|
513
|
-
success = await updateField(key, fieldValues[key]);
|
|
390
|
+
success = await updateField(key, key === 'username' ? usernameCheck.candidate : fieldValues[key]);
|
|
514
391
|
}
|
|
515
392
|
}
|
|
516
393
|
if (success) {
|
|
@@ -519,130 +396,98 @@ const EditProfileFieldScreen = ({
|
|
|
519
396
|
}
|
|
520
397
|
}
|
|
521
398
|
};
|
|
522
|
-
|
|
523
|
-
// Contribute the field title/subtitle + a Save action into the Dialog's own
|
|
524
|
-
// nav header (this screen renders no header of its own). `handleSave` closes
|
|
525
|
-
// over the live form values, so route it through a ref to keep the Save node
|
|
526
|
-
// stable across keystrokes (only re-created when the saving state flips).
|
|
527
|
-
const handleSaveRef = useRef(handleSave);
|
|
528
|
-
handleSaveRef.current = handleSave;
|
|
529
|
-
const onSavePress = useCallback(() => {
|
|
530
|
-
void handleSaveRef.current();
|
|
531
|
-
}, []);
|
|
532
|
-
const saveAction = useMemo(() => /*#__PURE__*/_jsx(SurfaceHeaderAction, {
|
|
533
|
-
label: isSaving ? t('common.saving') || 'Saving…' : t('common.save') || 'Save',
|
|
534
|
-
onPress: onSavePress,
|
|
535
|
-
loading: isSaving,
|
|
536
|
-
disabled: isSaving
|
|
537
|
-
}), [isSaving, onSavePress, t]);
|
|
399
|
+
const saveDisabled = isSaving || fieldType === 'username' && !usernameCheck.canSave;
|
|
538
400
|
useSurfaceHeader({
|
|
539
401
|
title: fieldConfig.title,
|
|
540
402
|
subtitle: fieldConfig.subtitle,
|
|
541
|
-
|
|
403
|
+
primaryAction: {
|
|
404
|
+
label: t('common.save') || 'Save',
|
|
405
|
+
onPress: () => void handleSave(),
|
|
406
|
+
loading: isSaving,
|
|
407
|
+
disabled: saveDisabled
|
|
408
|
+
}
|
|
542
409
|
});
|
|
543
410
|
|
|
544
411
|
// Render a single field input
|
|
545
412
|
const renderField = (field, index) => {
|
|
546
|
-
const error = fieldErrors[field.key];
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
413
|
+
const error = fieldErrors[field.key] || (field.key === 'username' ? usernameCheck.status === 'invalid' ? usernameCheck.invalid : usernameCheck.status === 'taken' ? t('accounts.create.username.taken') : usernameCheck.status === 'error' ? t('accounts.create.username.checkFailed') : undefined : undefined);
|
|
414
|
+
if (field.key === 'phone') {
|
|
415
|
+
return /*#__PURE__*/_jsx(PhoneInput, {
|
|
416
|
+
label: field.label,
|
|
417
|
+
placeholder: field.placeholder,
|
|
418
|
+
country: phoneCountry,
|
|
419
|
+
value: phoneNumber,
|
|
420
|
+
disabled: isSaving,
|
|
550
421
|
isInvalid: Boolean(error),
|
|
422
|
+
hint: error,
|
|
423
|
+
onCountryChange: (iso2, country) => {
|
|
424
|
+
setPhoneCountry(iso2);
|
|
425
|
+
handleFieldChange('phone', phoneNumber.trim() ? `+${country.dial}${phoneNumber}` : '');
|
|
426
|
+
},
|
|
427
|
+
onValueChange: value => {
|
|
428
|
+
const trimmed = value.trim();
|
|
429
|
+
if (trimmed.startsWith('+')) {
|
|
430
|
+
const international = trimmed.replace(/[\s()-]/g, '');
|
|
431
|
+
const country = [...COUNTRIES].sort((a, b) => b.dial.length - a.dial.length).find(candidate => international.startsWith(`+${candidate.dial}`));
|
|
432
|
+
if (country) setPhoneCountry(country.iso2);
|
|
433
|
+
handleFieldChange('phone', international);
|
|
434
|
+
} else {
|
|
435
|
+
handleFieldChange('phone', trimmed ? `+${phoneDial}${value}` : '');
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}, field.key);
|
|
439
|
+
}
|
|
440
|
+
if (field.type === 'textarea') {
|
|
441
|
+
return /*#__PURE__*/_jsx(Textarea, {
|
|
442
|
+
label: field.label,
|
|
443
|
+
placeholder: field.placeholder,
|
|
444
|
+
value: fieldValues[field.key] || '',
|
|
445
|
+
onValueChange: value => handleFieldChange(field.key, value),
|
|
446
|
+
rows: field.key === 'bio' ? 6 : 3,
|
|
447
|
+
disabled: isSaving,
|
|
448
|
+
isInvalid: Boolean(error),
|
|
449
|
+
hint: error,
|
|
450
|
+
autoFocus: index === 0
|
|
451
|
+
}, field.key);
|
|
452
|
+
}
|
|
453
|
+
return /*#__PURE__*/_jsx(Field, {
|
|
454
|
+
label: field.label,
|
|
455
|
+
error: error,
|
|
456
|
+
disabled: isSaving,
|
|
457
|
+
description: field.key === 'username' ? usernameCheck.status === 'checking' ? t('editProfile.items.username.checking') : usernameCheck.status === 'available' ? t('accounts.create.username.available') : USERNAME_INVALID_MESSAGE : undefined,
|
|
458
|
+
children: /*#__PURE__*/_jsx(TextField, {
|
|
551
459
|
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
552
|
-
floatingLabel: true,
|
|
553
460
|
label: field.label,
|
|
461
|
+
placeholder: field.placeholder,
|
|
554
462
|
value: fieldValues[field.key] || '',
|
|
555
463
|
onChangeText: value => handleFieldChange(field.key, value),
|
|
556
464
|
isInvalid: Boolean(error),
|
|
557
465
|
autoFocus: index === 0,
|
|
558
466
|
...field.inputProps
|
|
559
467
|
})
|
|
560
|
-
})
|
|
561
|
-
className: "text-caption px-space-4",
|
|
562
|
-
style: {
|
|
563
|
-
color: bloomTheme.colors.negative
|
|
564
|
-
},
|
|
565
|
-
children: error
|
|
566
|
-
})]
|
|
468
|
+
})
|
|
567
469
|
}, field.key);
|
|
568
470
|
};
|
|
569
471
|
|
|
570
|
-
//
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
label: t('editProfile.items.birthday.month') || 'Month',
|
|
590
|
-
items: MONTH_OPTIONS,
|
|
591
|
-
renderItem: item => /*#__PURE__*/_jsxs(SelectItem, {
|
|
592
|
-
value: item.value,
|
|
593
|
-
label: item.label,
|
|
594
|
-
children: [/*#__PURE__*/_jsx(SelectItemIndicator, {}), /*#__PURE__*/_jsx(SelectItemText, {
|
|
595
|
-
children: item.label
|
|
596
|
-
})]
|
|
597
|
-
})
|
|
598
|
-
})]
|
|
599
|
-
})
|
|
600
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
601
|
-
className: "flex-1",
|
|
602
|
-
children: /*#__PURE__*/_jsxs(Select, {
|
|
603
|
-
value: dobDay,
|
|
604
|
-
onValueChange: handleDobDayChange,
|
|
605
|
-
children: [/*#__PURE__*/_jsxs(SelectTrigger, {
|
|
606
|
-
label: t('editProfile.items.birthday.day') || 'Day',
|
|
607
|
-
children: [/*#__PURE__*/_jsx(SelectValue, {
|
|
608
|
-
placeholder: t('editProfile.items.birthday.day') || 'Day'
|
|
609
|
-
}), /*#__PURE__*/_jsx(SelectIcon, {})]
|
|
610
|
-
}), /*#__PURE__*/_jsx(SelectContent, {
|
|
611
|
-
label: t('editProfile.items.birthday.day') || 'Day',
|
|
612
|
-
items: dayOptions(dobYear, dobMonth),
|
|
613
|
-
renderItem: item => /*#__PURE__*/_jsxs(SelectItem, {
|
|
614
|
-
value: item.value,
|
|
615
|
-
label: item.label,
|
|
616
|
-
children: [/*#__PURE__*/_jsx(SelectItemIndicator, {}), /*#__PURE__*/_jsx(SelectItemText, {
|
|
617
|
-
children: item.label
|
|
618
|
-
})]
|
|
619
|
-
})
|
|
620
|
-
})]
|
|
621
|
-
})
|
|
622
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
623
|
-
className: "flex-1",
|
|
624
|
-
children: /*#__PURE__*/_jsxs(Select, {
|
|
625
|
-
value: dobYear,
|
|
626
|
-
onValueChange: handleDobYearChange,
|
|
627
|
-
children: [/*#__PURE__*/_jsxs(SelectTrigger, {
|
|
628
|
-
label: t('editProfile.items.birthday.year') || 'Year',
|
|
629
|
-
children: [/*#__PURE__*/_jsx(SelectValue, {
|
|
630
|
-
placeholder: t('editProfile.items.birthday.year') || 'Year'
|
|
631
|
-
}), /*#__PURE__*/_jsx(SelectIcon, {})]
|
|
632
|
-
}), /*#__PURE__*/_jsx(SelectContent, {
|
|
633
|
-
label: t('editProfile.items.birthday.year') || 'Year',
|
|
634
|
-
items: birthYearOptions(),
|
|
635
|
-
renderItem: item => /*#__PURE__*/_jsxs(SelectItem, {
|
|
636
|
-
value: item.value,
|
|
637
|
-
label: item.label,
|
|
638
|
-
children: [/*#__PURE__*/_jsx(SelectItemIndicator, {}), /*#__PURE__*/_jsx(SelectItemText, {
|
|
639
|
-
children: item.label
|
|
640
|
-
})]
|
|
641
|
-
})
|
|
642
|
-
})]
|
|
643
|
-
})
|
|
644
|
-
})]
|
|
645
|
-
});
|
|
472
|
+
// Keep birthdays date-only: local calendar components avoid UTC day shifts.
|
|
473
|
+
const renderBirthdayPicker = () => {
|
|
474
|
+
const value = fieldValues.dateOfBirth;
|
|
475
|
+
const parts = value ? value.split('-').map(Number) : null;
|
|
476
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
477
|
+
className: "gap-space-8",
|
|
478
|
+
children: [/*#__PURE__*/_jsx(TextFieldLabel, {
|
|
479
|
+
children: fieldConfig.title
|
|
480
|
+
}), /*#__PURE__*/_jsx(DatePicker, {
|
|
481
|
+
value: parts ? new Date(parts[0], parts[1] - 1, parts[2]) : null,
|
|
482
|
+
minDate: new Date(MIN_BIRTH_YEAR, 0, 1),
|
|
483
|
+
maxDate: new Date(),
|
|
484
|
+
accessibilityLabel: fieldConfig.title,
|
|
485
|
+
placeholder: fieldConfig.fields[0].placeholder,
|
|
486
|
+
disabled: isSaving,
|
|
487
|
+
onChange: date => handleFieldChange('dateOfBirth', date ? `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}` : '')
|
|
488
|
+
})]
|
|
489
|
+
});
|
|
490
|
+
};
|
|
646
491
|
|
|
647
492
|
// Render list content (locations or links)
|
|
648
493
|
const renderListContent = () => {
|
|
@@ -651,11 +496,13 @@ const EditProfileFieldScreen = ({
|
|
|
651
496
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
652
497
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
653
498
|
className: "flex-row items-center gap-space-8",
|
|
654
|
-
children: [/*#__PURE__*/
|
|
499
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
655
500
|
className: "flex-1",
|
|
656
|
-
children: /*#__PURE__*/_jsx(
|
|
501
|
+
children: [/*#__PURE__*/_jsx(TextFieldLabel, {
|
|
502
|
+
children: addLabel
|
|
503
|
+
}), /*#__PURE__*/_jsx(TextField, {
|
|
504
|
+
disabled: isSaving,
|
|
657
505
|
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
658
|
-
floatingLabel: true,
|
|
659
506
|
label: addLabel,
|
|
660
507
|
value: newItemValue,
|
|
661
508
|
onChangeText: setNewItemValue,
|
|
@@ -665,10 +512,10 @@ const EditProfileFieldScreen = ({
|
|
|
665
512
|
returnKeyType: "done",
|
|
666
513
|
keyboardType: fieldType === 'links' ? 'url' : 'default'
|
|
667
514
|
})
|
|
668
|
-
})
|
|
515
|
+
})]
|
|
669
516
|
}), /*#__PURE__*/_jsx(Button, {
|
|
670
517
|
onPress: handleAddItem,
|
|
671
|
-
disabled: !newItemValue.trim(),
|
|
518
|
+
disabled: isSaving || !newItemValue.trim(),
|
|
672
519
|
accessibilityLabel: addLabel,
|
|
673
520
|
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
674
521
|
name: "add",
|
|
@@ -679,49 +526,53 @@ const EditProfileFieldScreen = ({
|
|
|
679
526
|
tone: "neutral",
|
|
680
527
|
appearance: "outline"
|
|
681
528
|
})]
|
|
682
|
-
}), listItems.length > 0 && /*#__PURE__*/
|
|
683
|
-
|
|
684
|
-
children:
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
className: "flex-row items-center gap-space-12 p-space-16 rounded-radius-12 border-hairline border-border-image bg-fill",
|
|
689
|
-
children: [fieldType === 'links' && item.image && /*#__PURE__*/_jsx(Image, {
|
|
529
|
+
}), listItems.length > 0 && /*#__PURE__*/_jsx(GroupedSection, {
|
|
530
|
+
title: `${listTitle} (${listItems.length})`,
|
|
531
|
+
children: listItems.map(item => /*#__PURE__*/_jsx(GroupedSectionItem, {
|
|
532
|
+
title: String(fieldType === 'locations' ? item.name : item.title || item.url),
|
|
533
|
+
description: fieldType === 'links' ? String(item.url) : undefined,
|
|
534
|
+
icon: fieldType === 'links' && item.image ? /*#__PURE__*/_jsx(Image, {
|
|
690
535
|
source: {
|
|
691
536
|
uri: item.image
|
|
692
537
|
},
|
|
693
538
|
style: styles.linkImage
|
|
694
|
-
})
|
|
695
|
-
|
|
696
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
697
|
-
className: "text-subtitle font-subtitle text-text",
|
|
698
|
-
numberOfLines: 1,
|
|
699
|
-
children: fieldType === 'locations' ? item.name : item.title || item.url
|
|
700
|
-
}), fieldType === 'links' && /*#__PURE__*/_jsx(Text, {
|
|
701
|
-
className: "text-bodySmall font-bodySmall text-text-secondary",
|
|
702
|
-
numberOfLines: 1,
|
|
703
|
-
children: item.url
|
|
704
|
-
})]
|
|
705
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
539
|
+
}) : undefined,
|
|
540
|
+
rightElement: /*#__PURE__*/_jsx(Button, {
|
|
706
541
|
onPress: () => handleRemoveItem(item.id),
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
542
|
+
disabled: isSaving,
|
|
543
|
+
accessibilityLabel: `${t('common.remove') || 'Remove'} ${fieldType === 'locations' ? item.name : item.title || item.url}`,
|
|
544
|
+
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
711
545
|
name: "trash-outline",
|
|
712
546
|
size: 18,
|
|
713
547
|
color: bloomTheme.colors.negative
|
|
714
|
-
})
|
|
715
|
-
|
|
716
|
-
|
|
548
|
+
}),
|
|
549
|
+
iconOnly: true,
|
|
550
|
+
tone: "danger",
|
|
551
|
+
appearance: "plain"
|
|
552
|
+
})
|
|
553
|
+
}, item.id))
|
|
717
554
|
})]
|
|
718
555
|
});
|
|
719
556
|
};
|
|
720
557
|
return /*#__PURE__*/_jsx(View, {
|
|
721
558
|
className: "px-screen-margin pt-space-16 pb-space-32 gap-space-24",
|
|
722
|
-
children: /*#__PURE__*/
|
|
723
|
-
|
|
724
|
-
|
|
559
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
560
|
+
style: {
|
|
561
|
+
gap: 20
|
|
562
|
+
},
|
|
563
|
+
children: [fieldConfig.isList ? renderListContent() : fieldConfig.isDatePicker ? renderBirthdayPicker() : fieldConfig.fields.map(renderField), fieldType === 'username' && /*#__PURE__*/_jsxs(View, {
|
|
564
|
+
style: {
|
|
565
|
+
gap: 12
|
|
566
|
+
},
|
|
567
|
+
children: [usernameCheck.status === 'error' && /*#__PURE__*/_jsx(Button, {
|
|
568
|
+
appearance: "plain",
|
|
569
|
+
tone: "neutral",
|
|
570
|
+
onPress: usernameCheck.retry,
|
|
571
|
+
children: t('common.retry')
|
|
572
|
+
}), /*#__PURE__*/_jsx(TextFieldHint, {
|
|
573
|
+
children: t('editProfile.items.username.changeHint')
|
|
574
|
+
})]
|
|
575
|
+
})]
|
|
725
576
|
})
|
|
726
577
|
});
|
|
727
578
|
};
|