@oxy.so/services 11.14.0 → 11.16.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
|
@@ -8,17 +8,21 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _Ionicons = _interopRequireDefault(require("../icons/Ionicons.js"));
|
|
10
10
|
var _theme = require("@oxy.so/bloom/theme");
|
|
11
|
-
var _typography = require("@oxy.so/bloom/typography");
|
|
12
11
|
var _button = require("@oxy.so/bloom/button");
|
|
13
12
|
var _textField = require("@oxy.so/bloom/text-field");
|
|
14
|
-
var
|
|
15
|
-
var
|
|
13
|
+
var _phoneInput = require("@oxy.so/bloom/phone-input");
|
|
14
|
+
var _textarea = require("@oxy.so/bloom/textarea");
|
|
15
|
+
var _datePicker = require("@oxy.so/bloom/date-picker");
|
|
16
|
+
var _field = require("@oxy.so/bloom/field");
|
|
17
|
+
var _contracts = require("@oxy.so/contracts");
|
|
18
|
+
var _useUsernameAvailability = require("../hooks/useUsernameAvailability.js");
|
|
19
|
+
var _groupedSection = require("@oxy.so/bloom/grouped-section");
|
|
16
20
|
var _useI18n = require("../hooks/useI18n.js");
|
|
17
21
|
var _useSurfaceHeader = require("../hooks/useSurfaceHeader.js");
|
|
18
|
-
var
|
|
19
|
-
var _OxyContext = require("../context/OxyContext.js");
|
|
22
|
+
var _oxyRuntimeContext = require("../context/oxyRuntimeContext.js");
|
|
20
23
|
var _useProfileEditing = require("../hooks/useProfileEditing.js");
|
|
21
24
|
var _toast = require("@oxy.so/bloom/toast");
|
|
25
|
+
var _core = require("@oxy.so/core");
|
|
22
26
|
var _linkFormat = require("./linkFormat.js");
|
|
23
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
28
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -37,89 +41,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
37
41
|
* value this picker can produce is never one the API would reject.
|
|
38
42
|
*/
|
|
39
43
|
const MIN_BIRTH_YEAR = 1900;
|
|
40
|
-
|
|
41
|
-
/** `MIN_BIRTH_YEAR` through the current year, most recent first. */
|
|
42
|
-
function birthYearOptions() {
|
|
43
|
-
const currentYear = new Date().getUTCFullYear();
|
|
44
|
-
const years = [];
|
|
45
|
-
for (let year = currentYear; year >= MIN_BIRTH_YEAR; year--) {
|
|
46
|
-
years.push({
|
|
47
|
-
value: String(year),
|
|
48
|
-
label: String(year)
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return years;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Month names are not run through `t()` here: this SDK has no existing
|
|
56
|
-
* calendar-month translation catalogue to hook into, and inventing one is out
|
|
57
|
-
* of scope for wiring up the date picker itself. English month names are a
|
|
58
|
-
* known, deliberate limitation of this pass.
|
|
59
|
-
*/
|
|
60
|
-
const MONTH_OPTIONS = [{
|
|
61
|
-
value: '01',
|
|
62
|
-
label: 'January'
|
|
63
|
-
}, {
|
|
64
|
-
value: '02',
|
|
65
|
-
label: 'February'
|
|
66
|
-
}, {
|
|
67
|
-
value: '03',
|
|
68
|
-
label: 'March'
|
|
69
|
-
}, {
|
|
70
|
-
value: '04',
|
|
71
|
-
label: 'April'
|
|
72
|
-
}, {
|
|
73
|
-
value: '05',
|
|
74
|
-
label: 'May'
|
|
75
|
-
}, {
|
|
76
|
-
value: '06',
|
|
77
|
-
label: 'June'
|
|
78
|
-
}, {
|
|
79
|
-
value: '07',
|
|
80
|
-
label: 'July'
|
|
81
|
-
}, {
|
|
82
|
-
value: '08',
|
|
83
|
-
label: 'August'
|
|
84
|
-
}, {
|
|
85
|
-
value: '09',
|
|
86
|
-
label: 'September'
|
|
87
|
-
}, {
|
|
88
|
-
value: '10',
|
|
89
|
-
label: 'October'
|
|
90
|
-
}, {
|
|
91
|
-
value: '11',
|
|
92
|
-
label: 'November'
|
|
93
|
-
}, {
|
|
94
|
-
value: '12',
|
|
95
|
-
label: 'December'
|
|
96
|
-
}];
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Real Gregorian days in `month` (1-12) of `year`, leap years included — the
|
|
100
|
-
* same rule `dateOfBirthSchema` (`@oxy.so/contracts`) applies server-side,
|
|
101
|
-
* written a second time here because a picker's OWN day list must bound
|
|
102
|
-
* itself before the value ever reaches it.
|
|
103
|
-
*/
|
|
104
|
-
function daysInMonth(year, month) {
|
|
105
|
-
const isLeapYear = year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
106
|
-
const DAYS_PER_MONTH = [31, isLeapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
107
|
-
return DAYS_PER_MONTH[month - 1];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** Day options for the current year/month selection — 31 while either is unset. */
|
|
111
|
-
function dayOptions(year, month) {
|
|
112
|
-
const count = year && month ? daysInMonth(Number(year), Number(month)) : 31;
|
|
113
|
-
return Array.from({
|
|
114
|
-
length: count
|
|
115
|
-
}, (_, index) => {
|
|
116
|
-
const day = String(index + 1).padStart(2, '0');
|
|
117
|
-
return {
|
|
118
|
-
value: day,
|
|
119
|
-
label: day
|
|
120
|
-
};
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
44
|
/**
|
|
124
45
|
* Pure seeding function: derives the initial `fieldValues` / `listItems` for a
|
|
125
46
|
* given field type from the active account snapshot. Called ONCE per state via
|
|
@@ -213,7 +134,6 @@ function buildInitialProfileState(user, fieldType) {
|
|
|
213
134
|
const EditProfileFieldScreen = ({
|
|
214
135
|
goBack,
|
|
215
136
|
onClose,
|
|
216
|
-
theme,
|
|
217
137
|
fieldType = 'displayName'
|
|
218
138
|
}) => {
|
|
219
139
|
// Editing "my" profile targets the ACTIVE account — writes authenticate as
|
|
@@ -222,7 +142,7 @@ const EditProfileFieldScreen = ({
|
|
|
222
142
|
// personal user).
|
|
223
143
|
const {
|
|
224
144
|
user
|
|
225
|
-
} = (0,
|
|
145
|
+
} = (0, _oxyRuntimeContext.useOxy)();
|
|
226
146
|
const {
|
|
227
147
|
t
|
|
228
148
|
} = (0, _useI18n.useI18n)();
|
|
@@ -232,7 +152,6 @@ const EditProfileFieldScreen = ({
|
|
|
232
152
|
isSaving
|
|
233
153
|
} = (0, _useProfileEditing.useProfileEditing)();
|
|
234
154
|
const bloomTheme = (0, _theme.useTheme)();
|
|
235
|
-
const normalizedTheme = (0, _core.normalizeTheme)(theme);
|
|
236
155
|
|
|
237
156
|
// State for field values — seeded ONCE from the active account snapshot at
|
|
238
157
|
// mount via lazy initializers. See buildInitialProfileState: no effect
|
|
@@ -243,6 +162,14 @@ const EditProfileFieldScreen = ({
|
|
|
243
162
|
// State for list fields (locations, links) — same one-time mount seeding.
|
|
244
163
|
const [listItems, setListItems] = (0, _react.useState)(() => buildInitialProfileState(user, fieldType).listItems);
|
|
245
164
|
const [newItemValue, setNewItemValue] = (0, _react.useState)('');
|
|
165
|
+
const [phoneCountry, setPhoneCountry] = (0, _react.useState)(() => {
|
|
166
|
+
const phone = fieldValues.phone?.replace(/[\s()-]/g, '') || '';
|
|
167
|
+
return [..._phoneInput.COUNTRIES].sort((a, b) => b.dial.length - a.dial.length).find(country => phone.startsWith(`+${country.dial}`))?.iso2 || 'US';
|
|
168
|
+
});
|
|
169
|
+
const phoneDial = (0, _phoneInput.findCountry)(phoneCountry)?.dial || '1';
|
|
170
|
+
const phoneValue = fieldValues.phone || '';
|
|
171
|
+
const phoneNumber = phoneValue.startsWith(`+${phoneDial}`) ? phoneValue.slice(phoneDial.length + 1).trimStart() : phoneValue;
|
|
172
|
+
const usernameCheck = (0, _useUsernameAvailability.useUsernameAvailability)(fieldValues.username || '', fieldType === 'username');
|
|
246
173
|
|
|
247
174
|
// Get field configuration based on fieldType
|
|
248
175
|
const fieldConfig = (0, _react.useMemo)(() => {
|
|
@@ -272,13 +199,8 @@ const EditProfileFieldScreen = ({
|
|
|
272
199
|
label: t('editProfile.items.username.label') || 'Username',
|
|
273
200
|
placeholder: t('editProfile.items.username.placeholder') || 'Choose a username',
|
|
274
201
|
validation: value => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
if (value.length < 3) {
|
|
279
|
-
return t('editProfile.items.username.tooShort') || 'Username must be at least 3 characters';
|
|
280
|
-
}
|
|
281
|
-
return undefined;
|
|
202
|
+
const parsed = _contracts.usernameSchema.safeParse(value);
|
|
203
|
+
return parsed.success ? undefined : parsed.error.issues[0]?.message;
|
|
282
204
|
},
|
|
283
205
|
inputProps: {
|
|
284
206
|
autoCapitalize: 'none',
|
|
@@ -337,10 +259,7 @@ const EditProfileFieldScreen = ({
|
|
|
337
259
|
return {
|
|
338
260
|
title: t('editProfile.items.birthday.title') || 'Birthday',
|
|
339
261
|
subtitle: t('editProfile.items.birthday.subtitle') || 'Your date of birth',
|
|
340
|
-
//
|
|
341
|
-
// (`fieldConfig.fields[0]?.key`) — `renderBirthdayPicker` renders the
|
|
342
|
-
// actual day/month/year controls; this array is never mapped through
|
|
343
|
-
// `renderField` for this field type (see `isDatePicker` below).
|
|
262
|
+
// The shared date picker writes the same date-only API field.
|
|
344
263
|
fields: [{
|
|
345
264
|
key: 'dateOfBirth',
|
|
346
265
|
label: t('editProfile.items.birthday.label') || 'Birthday',
|
|
@@ -384,48 +303,6 @@ const EditProfileFieldScreen = ({
|
|
|
384
303
|
}
|
|
385
304
|
}, [fieldErrors]);
|
|
386
305
|
|
|
387
|
-
// The birthday picker's three pieces, seeded once from the same
|
|
388
|
-
// one-time-mount value `fieldValues.dateOfBirth` already carries (empty
|
|
389
|
-
// string parts when unset). Kept separate from `fieldValues` because a
|
|
390
|
-
// `Select` needs its OWN current value per control; each change handler
|
|
391
|
-
// below composes the three back into the single `dateOfBirth` field
|
|
392
|
-
// `handleSave` actually writes, in the event handler itself rather than
|
|
393
|
-
// an effect.
|
|
394
|
-
const [dobYear, setDobYear] = (0, _react.useState)(() => (fieldValues.dateOfBirth || '').split('-')[0] || '');
|
|
395
|
-
const [dobMonth, setDobMonth] = (0, _react.useState)(() => (fieldValues.dateOfBirth || '').split('-')[1] || '');
|
|
396
|
-
const [dobDay, setDobDay] = (0, _react.useState)(() => (fieldValues.dateOfBirth || '').split('-')[2] || '');
|
|
397
|
-
|
|
398
|
-
// A partial selection (e.g. year and month but no day yet) writes ''`,
|
|
399
|
-
// which `updateField`/the API's `dateOfBirth` write path already treats
|
|
400
|
-
// as "clear" — the same behaviour a fully-erased text field would have
|
|
401
|
-
// had. There is deliberately no separate "incomplete date" error: the
|
|
402
|
-
// three controls are either all filled (a real date) or the field is
|
|
403
|
-
// unset, and both are valid states to save.
|
|
404
|
-
const commitDateOfBirth = (0, _react.useCallback)((year, month, day) => {
|
|
405
|
-
handleFieldChange('dateOfBirth', year && month && day ? `${year}-${month}-${day}` : '');
|
|
406
|
-
}, [handleFieldChange]);
|
|
407
|
-
|
|
408
|
-
// Changing the year or month can strand a selected day past the new
|
|
409
|
-
// month's length (31 March -> April has none) — clamped down to the new
|
|
410
|
-
// last day rather than left pointing at a day `dayOptions` no longer
|
|
411
|
-
// lists, the same way a native date picker behaves.
|
|
412
|
-
const handleDobYearChange = (0, _react.useCallback)(year => {
|
|
413
|
-
const clampedDay = dobDay && dobMonth && Number(dobDay) > daysInMonth(Number(year), Number(dobMonth)) ? String(daysInMonth(Number(year), Number(dobMonth))).padStart(2, '0') : dobDay;
|
|
414
|
-
setDobYear(year);
|
|
415
|
-
setDobDay(clampedDay);
|
|
416
|
-
commitDateOfBirth(year, dobMonth, clampedDay);
|
|
417
|
-
}, [dobMonth, dobDay, commitDateOfBirth]);
|
|
418
|
-
const handleDobMonthChange = (0, _react.useCallback)(month => {
|
|
419
|
-
const clampedDay = dobDay && dobYear && Number(dobDay) > daysInMonth(Number(dobYear), Number(month)) ? String(daysInMonth(Number(dobYear), Number(month))).padStart(2, '0') : dobDay;
|
|
420
|
-
setDobMonth(month);
|
|
421
|
-
setDobDay(clampedDay);
|
|
422
|
-
commitDateOfBirth(dobYear, month, clampedDay);
|
|
423
|
-
}, [dobYear, dobDay, commitDateOfBirth]);
|
|
424
|
-
const handleDobDayChange = (0, _react.useCallback)(day => {
|
|
425
|
-
setDobDay(day);
|
|
426
|
-
commitDateOfBirth(dobYear, dobMonth, day);
|
|
427
|
-
}, [dobYear, dobMonth, commitDateOfBirth]);
|
|
428
|
-
|
|
429
306
|
// Validate all fields
|
|
430
307
|
const validateFields = (0, _react.useCallback)(() => {
|
|
431
308
|
const errors = {};
|
|
@@ -471,6 +348,7 @@ const EditProfileFieldScreen = ({
|
|
|
471
348
|
|
|
472
349
|
// Save handler
|
|
473
350
|
const handleSave = async () => {
|
|
351
|
+
if (isSaving || fieldType === 'username' && !usernameCheck.canSave) return;
|
|
474
352
|
if (fieldConfig.isList) {
|
|
475
353
|
let success = false;
|
|
476
354
|
if (fieldType === 'locations') {
|
|
@@ -515,7 +393,7 @@ const EditProfileFieldScreen = ({
|
|
|
515
393
|
} else {
|
|
516
394
|
const key = fieldConfig.fields[0]?.key;
|
|
517
395
|
if (key) {
|
|
518
|
-
success = await updateField(key, fieldValues[key]);
|
|
396
|
+
success = await updateField(key, key === 'username' ? usernameCheck.candidate : fieldValues[key]);
|
|
519
397
|
}
|
|
520
398
|
}
|
|
521
399
|
if (success) {
|
|
@@ -524,130 +402,98 @@ const EditProfileFieldScreen = ({
|
|
|
524
402
|
}
|
|
525
403
|
}
|
|
526
404
|
};
|
|
527
|
-
|
|
528
|
-
// Contribute the field title/subtitle + a Save action into the Dialog's own
|
|
529
|
-
// nav header (this screen renders no header of its own). `handleSave` closes
|
|
530
|
-
// over the live form values, so route it through a ref to keep the Save node
|
|
531
|
-
// stable across keystrokes (only re-created when the saving state flips).
|
|
532
|
-
const handleSaveRef = (0, _react.useRef)(handleSave);
|
|
533
|
-
handleSaveRef.current = handleSave;
|
|
534
|
-
const onSavePress = (0, _react.useCallback)(() => {
|
|
535
|
-
void handleSaveRef.current();
|
|
536
|
-
}, []);
|
|
537
|
-
const saveAction = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_SurfaceHeaderAction.SurfaceHeaderAction, {
|
|
538
|
-
label: isSaving ? t('common.saving') || 'Saving…' : t('common.save') || 'Save',
|
|
539
|
-
onPress: onSavePress,
|
|
540
|
-
loading: isSaving,
|
|
541
|
-
disabled: isSaving
|
|
542
|
-
}), [isSaving, onSavePress, t]);
|
|
405
|
+
const saveDisabled = isSaving || fieldType === 'username' && !usernameCheck.canSave;
|
|
543
406
|
(0, _useSurfaceHeader.useSurfaceHeader)({
|
|
544
407
|
title: fieldConfig.title,
|
|
545
408
|
subtitle: fieldConfig.subtitle,
|
|
546
|
-
|
|
409
|
+
primaryAction: {
|
|
410
|
+
label: t('common.save') || 'Save',
|
|
411
|
+
onPress: () => void handleSave(),
|
|
412
|
+
loading: isSaving,
|
|
413
|
+
disabled: saveDisabled
|
|
414
|
+
}
|
|
547
415
|
});
|
|
548
416
|
|
|
549
417
|
// Render a single field input
|
|
550
418
|
const renderField = (field, index) => {
|
|
551
|
-
const error = fieldErrors[field.key];
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
419
|
+
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);
|
|
420
|
+
if (field.key === 'phone') {
|
|
421
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_phoneInput.PhoneInput, {
|
|
422
|
+
label: field.label,
|
|
423
|
+
placeholder: field.placeholder,
|
|
424
|
+
country: phoneCountry,
|
|
425
|
+
value: phoneNumber,
|
|
426
|
+
disabled: isSaving,
|
|
427
|
+
isInvalid: Boolean(error),
|
|
428
|
+
hint: error,
|
|
429
|
+
onCountryChange: (iso2, country) => {
|
|
430
|
+
setPhoneCountry(iso2);
|
|
431
|
+
handleFieldChange('phone', phoneNumber.trim() ? `+${country.dial}${phoneNumber}` : '');
|
|
432
|
+
},
|
|
433
|
+
onValueChange: value => {
|
|
434
|
+
const trimmed = value.trim();
|
|
435
|
+
if (trimmed.startsWith('+')) {
|
|
436
|
+
const international = trimmed.replace(/[\s()-]/g, '');
|
|
437
|
+
const country = [..._phoneInput.COUNTRIES].sort((a, b) => b.dial.length - a.dial.length).find(candidate => international.startsWith(`+${candidate.dial}`));
|
|
438
|
+
if (country) setPhoneCountry(country.iso2);
|
|
439
|
+
handleFieldChange('phone', international);
|
|
440
|
+
} else {
|
|
441
|
+
handleFieldChange('phone', trimmed ? `+${phoneDial}${value}` : '');
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}, field.key);
|
|
445
|
+
}
|
|
446
|
+
if (field.type === 'textarea') {
|
|
447
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_textarea.Textarea, {
|
|
448
|
+
label: field.label,
|
|
449
|
+
placeholder: field.placeholder,
|
|
450
|
+
value: fieldValues[field.key] || '',
|
|
451
|
+
onValueChange: value => handleFieldChange(field.key, value),
|
|
452
|
+
rows: field.key === 'bio' ? 6 : 3,
|
|
453
|
+
disabled: isSaving,
|
|
555
454
|
isInvalid: Boolean(error),
|
|
455
|
+
hint: error,
|
|
456
|
+
autoFocus: index === 0
|
|
457
|
+
}, field.key);
|
|
458
|
+
}
|
|
459
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_field.Field, {
|
|
460
|
+
label: field.label,
|
|
461
|
+
error: error,
|
|
462
|
+
disabled: isSaving,
|
|
463
|
+
description: field.key === 'username' ? usernameCheck.status === 'checking' ? t('editProfile.items.username.checking') : usernameCheck.status === 'available' ? t('accounts.create.username.available') : _contracts.USERNAME_INVALID_MESSAGE : undefined,
|
|
464
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextField, {
|
|
556
465
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldInput, {
|
|
557
|
-
floatingLabel: true,
|
|
558
466
|
label: field.label,
|
|
467
|
+
placeholder: field.placeholder,
|
|
559
468
|
value: fieldValues[field.key] || '',
|
|
560
469
|
onChangeText: value => handleFieldChange(field.key, value),
|
|
561
470
|
isInvalid: Boolean(error),
|
|
562
471
|
autoFocus: index === 0,
|
|
563
472
|
...field.inputProps
|
|
564
473
|
})
|
|
565
|
-
})
|
|
566
|
-
className: "text-caption px-space-4",
|
|
567
|
-
style: {
|
|
568
|
-
color: bloomTheme.colors.negative
|
|
569
|
-
},
|
|
570
|
-
children: error
|
|
571
|
-
})]
|
|
474
|
+
})
|
|
572
475
|
}, field.key);
|
|
573
476
|
};
|
|
574
477
|
|
|
575
|
-
//
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
label: t('editProfile.items.birthday.month') || 'Month',
|
|
595
|
-
items: MONTH_OPTIONS,
|
|
596
|
-
renderItem: item => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.SelectItem, {
|
|
597
|
-
value: item.value,
|
|
598
|
-
label: item.label,
|
|
599
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectItemIndicator, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectItemText, {
|
|
600
|
-
children: item.label
|
|
601
|
-
})]
|
|
602
|
-
})
|
|
603
|
-
})]
|
|
604
|
-
})
|
|
605
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
606
|
-
className: "flex-1",
|
|
607
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.Select, {
|
|
608
|
-
value: dobDay,
|
|
609
|
-
onValueChange: handleDobDayChange,
|
|
610
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.SelectTrigger, {
|
|
611
|
-
label: t('editProfile.items.birthday.day') || 'Day',
|
|
612
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectValue, {
|
|
613
|
-
placeholder: t('editProfile.items.birthday.day') || 'Day'
|
|
614
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectIcon, {})]
|
|
615
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectContent, {
|
|
616
|
-
label: t('editProfile.items.birthday.day') || 'Day',
|
|
617
|
-
items: dayOptions(dobYear, dobMonth),
|
|
618
|
-
renderItem: item => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.SelectItem, {
|
|
619
|
-
value: item.value,
|
|
620
|
-
label: item.label,
|
|
621
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectItemIndicator, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectItemText, {
|
|
622
|
-
children: item.label
|
|
623
|
-
})]
|
|
624
|
-
})
|
|
625
|
-
})]
|
|
626
|
-
})
|
|
627
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
628
|
-
className: "flex-1",
|
|
629
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.Select, {
|
|
630
|
-
value: dobYear,
|
|
631
|
-
onValueChange: handleDobYearChange,
|
|
632
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.SelectTrigger, {
|
|
633
|
-
label: t('editProfile.items.birthday.year') || 'Year',
|
|
634
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectValue, {
|
|
635
|
-
placeholder: t('editProfile.items.birthday.year') || 'Year'
|
|
636
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectIcon, {})]
|
|
637
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectContent, {
|
|
638
|
-
label: t('editProfile.items.birthday.year') || 'Year',
|
|
639
|
-
items: birthYearOptions(),
|
|
640
|
-
renderItem: item => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_select.SelectItem, {
|
|
641
|
-
value: item.value,
|
|
642
|
-
label: item.label,
|
|
643
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectItemIndicator, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.SelectItemText, {
|
|
644
|
-
children: item.label
|
|
645
|
-
})]
|
|
646
|
-
})
|
|
647
|
-
})]
|
|
648
|
-
})
|
|
649
|
-
})]
|
|
650
|
-
});
|
|
478
|
+
// Keep birthdays date-only: local calendar components avoid UTC day shifts.
|
|
479
|
+
const renderBirthdayPicker = () => {
|
|
480
|
+
const value = fieldValues.dateOfBirth;
|
|
481
|
+
const parts = value ? value.split('-').map(Number) : null;
|
|
482
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
483
|
+
className: "gap-space-8",
|
|
484
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldLabel, {
|
|
485
|
+
children: fieldConfig.title
|
|
486
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_datePicker.DatePicker, {
|
|
487
|
+
value: parts ? new Date(parts[0], parts[1] - 1, parts[2]) : null,
|
|
488
|
+
minDate: new Date(MIN_BIRTH_YEAR, 0, 1),
|
|
489
|
+
maxDate: new Date(),
|
|
490
|
+
accessibilityLabel: fieldConfig.title,
|
|
491
|
+
placeholder: fieldConfig.fields[0].placeholder,
|
|
492
|
+
disabled: isSaving,
|
|
493
|
+
onChange: date => handleFieldChange('dateOfBirth', date ? `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}` : '')
|
|
494
|
+
})]
|
|
495
|
+
});
|
|
496
|
+
};
|
|
651
497
|
|
|
652
498
|
// Render list content (locations or links)
|
|
653
499
|
const renderListContent = () => {
|
|
@@ -656,11 +502,13 @@ const EditProfileFieldScreen = ({
|
|
|
656
502
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
657
503
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
658
504
|
className: "flex-row items-center gap-space-8",
|
|
659
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
505
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
660
506
|
className: "flex-1",
|
|
661
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.
|
|
507
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldLabel, {
|
|
508
|
+
children: addLabel
|
|
509
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextField, {
|
|
510
|
+
disabled: isSaving,
|
|
662
511
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldInput, {
|
|
663
|
-
floatingLabel: true,
|
|
664
512
|
label: addLabel,
|
|
665
513
|
value: newItemValue,
|
|
666
514
|
onChangeText: setNewItemValue,
|
|
@@ -670,10 +518,10 @@ const EditProfileFieldScreen = ({
|
|
|
670
518
|
returnKeyType: "done",
|
|
671
519
|
keyboardType: fieldType === 'links' ? 'url' : 'default'
|
|
672
520
|
})
|
|
673
|
-
})
|
|
521
|
+
})]
|
|
674
522
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
675
523
|
onPress: handleAddItem,
|
|
676
|
-
disabled: !newItemValue.trim(),
|
|
524
|
+
disabled: isSaving || !newItemValue.trim(),
|
|
677
525
|
accessibilityLabel: addLabel,
|
|
678
526
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Ionicons.default, {
|
|
679
527
|
name: "add",
|
|
@@ -684,49 +532,53 @@ const EditProfileFieldScreen = ({
|
|
|
684
532
|
tone: "neutral",
|
|
685
533
|
appearance: "outline"
|
|
686
534
|
})]
|
|
687
|
-
}), listItems.length > 0 && /*#__PURE__*/(0, _jsxRuntime.
|
|
688
|
-
|
|
689
|
-
children:
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
className: "flex-row items-center gap-space-12 p-space-16 rounded-radius-12 border-hairline border-border-image bg-fill",
|
|
694
|
-
children: [fieldType === 'links' && item.image && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
535
|
+
}), listItems.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_groupedSection.GroupedSection, {
|
|
536
|
+
title: `${listTitle} (${listItems.length})`,
|
|
537
|
+
children: listItems.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_groupedSection.GroupedSectionItem, {
|
|
538
|
+
title: String(fieldType === 'locations' ? item.name : item.title || item.url),
|
|
539
|
+
description: fieldType === 'links' ? String(item.url) : undefined,
|
|
540
|
+
icon: fieldType === 'links' && item.image ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
695
541
|
source: {
|
|
696
542
|
uri: item.image
|
|
697
543
|
},
|
|
698
544
|
style: styles.linkImage
|
|
699
|
-
})
|
|
700
|
-
|
|
701
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
702
|
-
className: "text-subtitle font-subtitle text-text",
|
|
703
|
-
numberOfLines: 1,
|
|
704
|
-
children: fieldType === 'locations' ? item.name : item.title || item.url
|
|
705
|
-
}), fieldType === 'links' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
706
|
-
className: "text-bodySmall font-bodySmall text-text-secondary",
|
|
707
|
-
numberOfLines: 1,
|
|
708
|
-
children: item.url
|
|
709
|
-
})]
|
|
710
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
545
|
+
}) : undefined,
|
|
546
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
711
547
|
onPress: () => handleRemoveItem(item.id),
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Ionicons.default, {
|
|
548
|
+
disabled: isSaving,
|
|
549
|
+
accessibilityLabel: `${t('common.remove') || 'Remove'} ${fieldType === 'locations' ? item.name : item.title || item.url}`,
|
|
550
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Ionicons.default, {
|
|
716
551
|
name: "trash-outline",
|
|
717
552
|
size: 18,
|
|
718
553
|
color: bloomTheme.colors.negative
|
|
719
|
-
})
|
|
720
|
-
|
|
721
|
-
|
|
554
|
+
}),
|
|
555
|
+
iconOnly: true,
|
|
556
|
+
tone: "danger",
|
|
557
|
+
appearance: "plain"
|
|
558
|
+
})
|
|
559
|
+
}, item.id))
|
|
722
560
|
})]
|
|
723
561
|
});
|
|
724
562
|
};
|
|
725
563
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
726
564
|
className: "px-screen-margin pt-space-16 pb-space-32 gap-space-24",
|
|
727
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
728
|
-
|
|
729
|
-
|
|
565
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
566
|
+
style: {
|
|
567
|
+
gap: 20
|
|
568
|
+
},
|
|
569
|
+
children: [fieldConfig.isList ? renderListContent() : fieldConfig.isDatePicker ? renderBirthdayPicker() : fieldConfig.fields.map(renderField), fieldType === 'username' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
570
|
+
style: {
|
|
571
|
+
gap: 12
|
|
572
|
+
},
|
|
573
|
+
children: [usernameCheck.status === 'error' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
574
|
+
appearance: "plain",
|
|
575
|
+
tone: "neutral",
|
|
576
|
+
onPress: usernameCheck.retry,
|
|
577
|
+
children: t('common.retry')
|
|
578
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldHint, {
|
|
579
|
+
children: t('editProfile.items.username.changeHint')
|
|
580
|
+
})]
|
|
581
|
+
})]
|
|
730
582
|
})
|
|
731
583
|
});
|
|
732
584
|
};
|