@oxyhq/services 22.9.0 → 22.11.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/index.js +24 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/AvatarCameraBadge.js +42 -0
- package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -0
- package/lib/commonjs/ui/components/{OxyAccountDialog.js → OxyAccountDialogScreen.js} +55 -133
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAuthChooser.js +657 -88
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +15 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +3 -23
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +63 -0
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js +91 -8
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +46 -29
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +47 -23
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/oxyAuthChooserStyles.js +81 -19
- package/lib/commonjs/ui/components/oxyAuthChooserStyles.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +83 -23
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +83 -0
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +79 -29
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +18 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +129 -0
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +38 -55
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useReduceMotion.js +57 -0
- package/lib/commonjs/ui/hooks/useReduceMotion.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js +46 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +36 -2
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +5 -6
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +4 -3
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js +68 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +62 -15
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +84 -19
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js +139 -25
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +214 -283
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +88 -118
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +22 -36
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +219 -226
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +287 -289
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +301 -0
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +24 -39
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +136 -158
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +29 -36
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +101 -109
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +10 -15
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +8 -16
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +403 -627
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +62 -69
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +63 -79
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +69 -98
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +8 -14
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +77 -94
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +99 -134
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +69 -76
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +3 -8
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +67 -74
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +55 -91
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +291 -304
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +100 -114
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +38 -45
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +44 -57
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +24 -31
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +14 -24
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +16 -48
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +63 -0
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +54 -41
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +44 -81
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +66 -75
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +111 -139
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +13 -20
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +14 -27
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +68 -85
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +28 -36
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js +8 -3
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +11 -2
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -79
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/index.js +12 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/AvatarCameraBadge.js +40 -0
- package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -0
- package/lib/module/ui/components/{OxyAccountDialog.js → OxyAccountDialogScreen.js} +57 -135
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/module/ui/components/OxyAuthChooser.js +659 -91
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +1 -1
- package/lib/module/ui/components/ProfileButton.js +16 -2
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +2 -23
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js +58 -0
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/module/ui/components/SurfaceScreen.js +93 -10
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +46 -29
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +46 -23
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/oxyAuthChooserStyles.js +81 -19
- package/lib/module/ui/components/oxyAuthChooserStyles.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +83 -25
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js +78 -0
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +80 -30
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +16 -0
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +120 -0
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -0
- package/lib/module/ui/hooks/useAvatarPicker.js +38 -55
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useReduceMotion.js +53 -0
- package/lib/module/ui/hooks/useReduceMotion.js.map +1 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js +42 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/module/ui/hooks/useSwitchableAccounts.js +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +34 -2
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +6 -7
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +4 -3
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaceBackBridge.js +63 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/module/ui/navigation/surfaceNavStack.js +62 -15
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js +84 -19
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js +138 -26
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +218 -286
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +92 -121
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +25 -38
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +220 -227
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +289 -291
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js +298 -0
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js +26 -40
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +139 -160
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +32 -38
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +102 -110
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +11 -15
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +10 -17
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +408 -631
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +64 -70
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +65 -81
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +71 -99
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +10 -15
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +78 -94
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +102 -137
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +71 -77
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -9
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +69 -75
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +58 -93
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +293 -305
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +102 -116
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +40 -46
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +46 -58
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +26 -32
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +14 -24
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +17 -49
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js +59 -0
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +54 -42
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +45 -81
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +67 -75
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +112 -139
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +15 -21
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +14 -26
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +69 -85
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +30 -37
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/stores/resetSessionScopedStores.js +8 -3
- package/lib/module/ui/stores/resetSessionScopedStores.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +11 -2
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -78
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts +4 -0
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts.map +1 -0
- package/lib/typescript/{module/ui/components/OxyAccountDialog.d.ts → commonjs/ui/components/OxyAccountDialogScreen.d.ts} +5 -4
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +3 -3
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +3 -4
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +17 -2
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts +75 -13
- package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts +10 -8
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +50 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +17 -16
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts +14 -0
- package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +31 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +27 -2
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +4 -5
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +21 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +101 -23
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +42 -11
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts +18 -9
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts +34 -0
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +4 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +10 -2
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts +8 -1
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +10 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +0 -48
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts +4 -0
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts.map +1 -0
- package/lib/typescript/{commonjs/ui/components/OxyAccountDialog.d.ts → module/ui/components/OxyAccountDialogScreen.d.ts} +5 -4
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +3 -3
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +2 -2
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +3 -4
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +17 -2
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts +75 -13
- package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts +10 -8
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +50 -0
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +17 -16
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts +14 -0
- package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +31 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +27 -2
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +4 -5
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +21 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +101 -23
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts +42 -11
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts +18 -9
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts +34 -0
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +4 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +10 -2
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts +8 -1
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +10 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +0 -48
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/package.json +9 -5
- package/src/index.ts +12 -5
- package/src/ui/components/AvatarCameraBadge.tsx +35 -0
- package/src/ui/components/{OxyAccountDialog.tsx → OxyAccountDialogScreen.tsx} +50 -116
- package/src/ui/components/OxyAuthChooser.tsx +743 -86
- package/src/ui/components/OxyConsentScreen.tsx +1 -1
- package/src/ui/components/ProfileButton.tsx +18 -3
- package/src/ui/components/ProfileSummaryCard.tsx +2 -25
- package/src/ui/components/RequireOxyAuth.tsx +1 -1
- package/src/ui/components/SurfaceHeaderAction.tsx +60 -0
- package/src/ui/components/SurfaceScreen.tsx +108 -14
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +50 -36
- package/src/ui/components/modals/DeleteAccountModal.tsx +47 -26
- package/src/ui/components/oxyAuthChooserStyles.ts +78 -16
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +158 -84
- package/src/ui/components/photogrid/__tests__/chunkPhotos.test.ts +51 -0
- package/src/ui/components/surfaces/ActionSheetSurface.tsx +98 -0
- package/src/ui/context/OxyContext.tsx +79 -25
- package/src/ui/hooks/queries/queryKeys.ts +15 -0
- package/src/ui/hooks/queries/useFileQueries.ts +162 -0
- package/src/ui/hooks/useAvatarPicker.ts +46 -74
- package/src/ui/hooks/useReduceMotion.ts +58 -0
- package/src/ui/hooks/useSurfaceHeader.ts +57 -0
- package/src/ui/hooks/useSwitchableAccounts.ts +1 -1
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +55 -7
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +149 -0
- package/src/ui/navigation/accountDialogManager.ts +42 -2
- package/src/ui/navigation/bottomSheetManager.ts +6 -7
- package/src/ui/navigation/routes.ts +6 -4
- package/src/ui/navigation/surfaceBackBridge.ts +69 -0
- package/src/ui/navigation/surfaceNavStack.ts +72 -9
- package/src/ui/navigation/surfaceRegistry.ts +164 -24
- package/src/ui/navigation/surfaces.ts +137 -30
- package/src/ui/screens/AccountMembersScreen.tsx +39 -100
- package/src/ui/screens/AccountSettingsScreen.tsx +32 -54
- package/src/ui/screens/AccountVerificationScreen.tsx +23 -51
- package/src/ui/screens/AppInfoScreen.tsx +6 -13
- package/src/ui/screens/AvatarCropScreen.tsx +340 -311
- package/src/ui/screens/ChangeAvatarScreen.tsx +359 -0
- package/src/ui/screens/ConnectedAppsScreen.tsx +39 -60
- package/src/ui/screens/CreateAccountScreen.tsx +13 -39
- package/src/ui/screens/EditProfileFieldScreen.tsx +30 -48
- package/src/ui/screens/EditProfileScreen.tsx +7 -16
- package/src/ui/screens/FAQScreen.tsx +9 -13
- package/src/ui/screens/FeedbackScreen.tsx +8 -22
- package/src/ui/screens/FileManagementScreen.tsx +370 -610
- package/src/ui/screens/HelpSupportScreen.tsx +7 -13
- package/src/ui/screens/HistoryViewScreen.tsx +26 -31
- package/src/ui/screens/LanguageSelectorScreen.tsx +12 -46
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +8 -16
- package/src/ui/screens/LegalDocumentsScreen.tsx +7 -22
- package/src/ui/screens/ManageAccountScreen.tsx +96 -165
- package/src/ui/screens/NotificationsScreen.tsx +7 -13
- package/src/ui/screens/PaymentGatewayScreen.tsx +3 -10
- package/src/ui/screens/PreferencesScreen.tsx +7 -13
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +52 -90
- package/src/ui/screens/PrivacySettingsScreen.tsx +9 -21
- package/src/ui/screens/ProfileScreen.tsx +9 -11
- package/src/ui/screens/SavesCollectionsScreen.tsx +7 -13
- package/src/ui/screens/SearchSettingsScreen.tsx +9 -21
- package/src/ui/screens/UserLinksScreen.tsx +7 -14
- package/src/ui/screens/UserListScreen.tsx +2 -5
- package/src/ui/screens/WelcomeNewUserScreen.tsx +18 -48
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +56 -0
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +56 -46
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +55 -71
- package/src/ui/screens/trust/TrustAboutScreen.tsx +10 -17
- package/src/ui/screens/trust/TrustCenterScreen.tsx +9 -28
- package/src/ui/screens/trust/TrustFAQScreen.tsx +15 -18
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +3 -5
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +11 -26
- package/src/ui/screens/trust/TrustRulesScreen.tsx +10 -13
- package/src/ui/stores/resetSessionScopedStores.ts +8 -3
- package/src/ui/types/navigation.ts +10 -0
- package/src/ui/utils/avatarUtils.ts +11 -2
- package/src/ui/utils/fileManagement.ts +1 -101
- package/lib/commonjs/ui/components/Header.js +0 -305
- package/lib/commonjs/ui/components/Header.js.map +0 -1
- package/lib/commonjs/ui/components/OxyAccountDialog.js.map +0 -1
- package/lib/commonjs/ui/stores/fileStore.js +0 -153
- package/lib/commonjs/ui/stores/fileStore.js.map +0 -1
- package/lib/module/ui/components/Header.js +0 -299
- package/lib/module/ui/components/Header.js.map +0 -1
- package/lib/module/ui/components/OxyAccountDialog.js.map +0 -1
- package/lib/module/ui/stores/fileStore.js +0 -145
- package/lib/module/ui/stores/fileStore.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/Header.d.ts +0 -33
- package/lib/typescript/commonjs/ui/components/Header.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/fileStore.d.ts +0 -31
- package/lib/typescript/commonjs/ui/stores/fileStore.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Header.d.ts +0 -33
- package/lib/typescript/module/ui/components/Header.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/fileStore.d.ts +0 -31
- package/lib/typescript/module/ui/stores/fileStore.d.ts.map +0 -1
- package/src/ui/components/Header.tsx +0 -224
- package/src/ui/stores/fileStore.ts +0 -118
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useEffect, useMemo, useState } from 'react';
|
|
4
|
-
import { View,
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
5
|
import { Ionicons } from '@expo/vector-icons';
|
|
6
6
|
import { Chip } from '@oxyhq/bloom/chip';
|
|
7
7
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
8
8
|
import { H1, Text } from '@oxyhq/bloom/typography';
|
|
9
9
|
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
10
|
-
import Header from "../../components/Header.js";
|
|
11
10
|
import { SettingsIcon } from "../../components/SettingsIcon.js";
|
|
12
11
|
import { Loading } from '@oxyhq/bloom/loading';
|
|
13
12
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
13
|
+
import { useSurfaceHeader } from "../../hooks/useSurfaceHeader.js";
|
|
14
14
|
import { useOxy } from "../../context/OxyContext.js";
|
|
15
15
|
import { getTrustTierLabel } from "./trustTier.js";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const TrustCenterScreen = ({
|
|
18
|
-
onClose,
|
|
19
|
-
goBack,
|
|
20
18
|
navigate
|
|
21
19
|
}) => {
|
|
22
20
|
// Reputation/trust is the ACTIVE account's standing (the org/project/bot
|
|
@@ -50,154 +48,129 @@ const TrustCenterScreen = ({
|
|
|
50
48
|
}, [user, oxyServices, t]);
|
|
51
49
|
const trustTierLabel = useMemo(() => trustTier ? getTrustTierLabel(trustTier, t) : null, [trustTier, t]);
|
|
52
50
|
const title = t('trust.center.title') || 'Trust Center';
|
|
51
|
+
useSurfaceHeader({
|
|
52
|
+
title
|
|
53
|
+
});
|
|
53
54
|
if (!isAuthenticated) {
|
|
54
|
-
return /*#__PURE__*/
|
|
55
|
-
className: "
|
|
56
|
-
children:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
61
|
-
style: styles.center,
|
|
62
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
63
|
-
className: "text-text font-medium text-base",
|
|
64
|
-
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
65
|
-
})
|
|
66
|
-
})]
|
|
55
|
+
return /*#__PURE__*/_jsx(View, {
|
|
56
|
+
className: "items-center py-space-40",
|
|
57
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
58
|
+
className: "text-text font-medium text-base",
|
|
59
|
+
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
60
|
+
})
|
|
67
61
|
});
|
|
68
62
|
}
|
|
69
63
|
if (isLoading) {
|
|
70
|
-
return /*#__PURE__*/
|
|
71
|
-
className: "
|
|
72
|
-
children:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
77
|
-
style: styles.center,
|
|
78
|
-
children: /*#__PURE__*/_jsx(Loading, {
|
|
79
|
-
size: "large",
|
|
80
|
-
color: primaryColor
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
64
|
+
return /*#__PURE__*/_jsx(View, {
|
|
65
|
+
className: "items-center py-space-40",
|
|
66
|
+
children: /*#__PURE__*/_jsx(Loading, {
|
|
67
|
+
size: "large",
|
|
68
|
+
color: primaryColor
|
|
69
|
+
})
|
|
83
70
|
});
|
|
84
71
|
}
|
|
85
72
|
return /*#__PURE__*/_jsxs(View, {
|
|
86
|
-
className: "
|
|
87
|
-
children: [/*#__PURE__*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
elevation: "subtle"
|
|
91
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
92
|
-
className: "flex-1",
|
|
93
|
-
contentContainerClassName: "px-screen-margin pb-space-24",
|
|
94
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
95
|
-
className: "items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16",
|
|
96
|
-
children: [/*#__PURE__*/_jsx(H1, {
|
|
97
|
-
style: {
|
|
98
|
-
color: primaryColor
|
|
99
|
-
},
|
|
100
|
-
children: reputationTotal ?? 0
|
|
101
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
102
|
-
className: "text-text-tertiary text-base mt-space-2 mb-space-12",
|
|
103
|
-
children: t('trust.center.balance') || 'Reputation Balance'
|
|
104
|
-
}), trustTierLabel ? /*#__PURE__*/_jsx(Chip, {
|
|
105
|
-
variant: "soft",
|
|
106
|
-
color: "primary",
|
|
107
|
-
startIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
108
|
-
name: "shield-checkmark-outline",
|
|
109
|
-
size: 14,
|
|
110
|
-
color: primaryColor
|
|
111
|
-
}),
|
|
112
|
-
children: trustTierLabel
|
|
113
|
-
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
114
|
-
className: "text-text-tertiary text-sm text-center mt-space-16",
|
|
115
|
-
style: styles.infoText,
|
|
116
|
-
children: t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'
|
|
117
|
-
})]
|
|
118
|
-
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
119
|
-
title: t('trust.center.actions.title') || 'Explore',
|
|
120
|
-
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
121
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
122
|
-
name: "trophy",
|
|
123
|
-
color: bloomTheme.colors.warning
|
|
124
|
-
}),
|
|
125
|
-
title: t('trust.center.actions.leaderboard') || 'Leaderboard',
|
|
126
|
-
onPress: () => navigate?.('TrustLeaderboard')
|
|
127
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
128
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
129
|
-
name: "file-document",
|
|
130
|
-
color: bloomTheme.colors.info
|
|
131
|
-
}),
|
|
132
|
-
title: t('trust.center.actions.rules') || 'Rules',
|
|
133
|
-
onPress: () => navigate?.('TrustRules')
|
|
134
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
135
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
136
|
-
name: "gift",
|
|
137
|
-
color: bloomTheme.colors.success
|
|
138
|
-
}),
|
|
139
|
-
title: t('trust.center.actions.rewards') || 'Rewards',
|
|
140
|
-
onPress: () => navigate?.('TrustRewards')
|
|
141
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
142
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
143
|
-
name: "star",
|
|
144
|
-
color: bloomTheme.colors.primary
|
|
145
|
-
}),
|
|
146
|
-
title: t('trust.center.actions.about') || 'About',
|
|
147
|
-
onPress: () => navigate?.('AboutTrust')
|
|
148
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
149
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
150
|
-
name: "help-circle",
|
|
151
|
-
color: bloomTheme.colors.secondary
|
|
152
|
-
}),
|
|
153
|
-
title: t('trust.center.actions.faq') || 'FAQ',
|
|
154
|
-
onPress: () => navigate?.('TrustFAQ')
|
|
155
|
-
})]
|
|
156
|
-
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
157
|
-
title: t('trust.center.history') || 'Reputation History',
|
|
158
|
-
children: transactions.length === 0 ? /*#__PURE__*/_jsx(SettingsListItem, {
|
|
159
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
160
|
-
name: "history",
|
|
161
|
-
color: bloomTheme.colors.textTertiary
|
|
162
|
-
}),
|
|
163
|
-
title: t('trust.center.noHistory') || 'No reputation history yet.',
|
|
164
|
-
showChevron: false,
|
|
165
|
-
disabled: true
|
|
166
|
-
}) : transactions.map(entry => /*#__PURE__*/_jsx(SettingsListItem, {
|
|
167
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
168
|
-
name: entry.points > 0 ? 'plus-circle' : 'minus-circle',
|
|
169
|
-
color: entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error
|
|
170
|
-
}),
|
|
171
|
-
title: entry.reason || entry.actionType || t('trust.center.noDescription') || 'No description',
|
|
172
|
-
description: `${entry.category}${entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''}`,
|
|
173
|
-
rightElement: /*#__PURE__*/_jsx(Chip, {
|
|
174
|
-
variant: "soft",
|
|
175
|
-
size: "small",
|
|
176
|
-
color: entry.points > 0 ? 'success' : 'error',
|
|
177
|
-
children: `${entry.points > 0 ? '+' : ''}${entry.points}`
|
|
178
|
-
}),
|
|
179
|
-
showChevron: false
|
|
180
|
-
}, entry.id))
|
|
181
|
-
}), error ? /*#__PURE__*/_jsx(Text, {
|
|
182
|
-
className: "text-sm text-center mt-space-16",
|
|
73
|
+
className: "px-screen-margin pt-space-16 pb-space-24",
|
|
74
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
75
|
+
className: "items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16",
|
|
76
|
+
children: [/*#__PURE__*/_jsx(H1, {
|
|
183
77
|
style: {
|
|
184
|
-
color:
|
|
78
|
+
color: primaryColor
|
|
185
79
|
},
|
|
186
|
-
children:
|
|
187
|
-
})
|
|
188
|
-
|
|
80
|
+
children: reputationTotal ?? 0
|
|
81
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
82
|
+
className: "text-text-tertiary text-base mt-space-2 mb-space-12",
|
|
83
|
+
children: t('trust.center.balance') || 'Reputation Balance'
|
|
84
|
+
}), trustTierLabel ? /*#__PURE__*/_jsx(Chip, {
|
|
85
|
+
variant: "soft",
|
|
86
|
+
color: "primary",
|
|
87
|
+
startIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
88
|
+
name: "shield-checkmark-outline",
|
|
89
|
+
size: 14,
|
|
90
|
+
color: primaryColor
|
|
91
|
+
}),
|
|
92
|
+
children: trustTierLabel
|
|
93
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
94
|
+
className: "text-text-tertiary text-sm text-center mt-space-16",
|
|
95
|
+
style: styles.infoText,
|
|
96
|
+
children: t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'
|
|
97
|
+
})]
|
|
98
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
99
|
+
title: t('trust.center.actions.title') || 'Explore',
|
|
100
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
101
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
102
|
+
name: "trophy",
|
|
103
|
+
color: bloomTheme.colors.warning
|
|
104
|
+
}),
|
|
105
|
+
title: t('trust.center.actions.leaderboard') || 'Leaderboard',
|
|
106
|
+
onPress: () => navigate?.('TrustLeaderboard')
|
|
107
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
108
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
109
|
+
name: "file-document",
|
|
110
|
+
color: bloomTheme.colors.info
|
|
111
|
+
}),
|
|
112
|
+
title: t('trust.center.actions.rules') || 'Rules',
|
|
113
|
+
onPress: () => navigate?.('TrustRules')
|
|
114
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
115
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
116
|
+
name: "gift",
|
|
117
|
+
color: bloomTheme.colors.success
|
|
118
|
+
}),
|
|
119
|
+
title: t('trust.center.actions.rewards') || 'Rewards',
|
|
120
|
+
onPress: () => navigate?.('TrustRewards')
|
|
121
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
122
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
123
|
+
name: "star",
|
|
124
|
+
color: bloomTheme.colors.primary
|
|
125
|
+
}),
|
|
126
|
+
title: t('trust.center.actions.about') || 'About',
|
|
127
|
+
onPress: () => navigate?.('AboutTrust')
|
|
128
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
129
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
130
|
+
name: "help-circle",
|
|
131
|
+
color: bloomTheme.colors.secondary
|
|
132
|
+
}),
|
|
133
|
+
title: t('trust.center.actions.faq') || 'FAQ',
|
|
134
|
+
onPress: () => navigate?.('TrustFAQ')
|
|
135
|
+
})]
|
|
136
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
137
|
+
title: t('trust.center.history') || 'Reputation History',
|
|
138
|
+
children: transactions.length === 0 ? /*#__PURE__*/_jsx(SettingsListItem, {
|
|
139
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
140
|
+
name: "history",
|
|
141
|
+
color: bloomTheme.colors.textTertiary
|
|
142
|
+
}),
|
|
143
|
+
title: t('trust.center.noHistory') || 'No reputation history yet.',
|
|
144
|
+
showChevron: false,
|
|
145
|
+
disabled: true
|
|
146
|
+
}) : transactions.map(entry => /*#__PURE__*/_jsx(SettingsListItem, {
|
|
147
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
148
|
+
name: entry.points > 0 ? 'plus-circle' : 'minus-circle',
|
|
149
|
+
color: entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error
|
|
150
|
+
}),
|
|
151
|
+
title: entry.reason || entry.actionType || t('trust.center.noDescription') || 'No description',
|
|
152
|
+
description: `${entry.category}${entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''}`,
|
|
153
|
+
rightElement: /*#__PURE__*/_jsx(Chip, {
|
|
154
|
+
variant: "soft",
|
|
155
|
+
size: "small",
|
|
156
|
+
color: entry.points > 0 ? 'success' : 'error',
|
|
157
|
+
children: `${entry.points > 0 ? '+' : ''}${entry.points}`
|
|
158
|
+
}),
|
|
159
|
+
showChevron: false
|
|
160
|
+
}, entry.id))
|
|
161
|
+
}), error ? /*#__PURE__*/_jsx(Text, {
|
|
162
|
+
className: "text-sm text-center mt-space-16",
|
|
163
|
+
style: {
|
|
164
|
+
color: bloomTheme.colors.error
|
|
165
|
+
},
|
|
166
|
+
children: error
|
|
167
|
+
}) : null]
|
|
189
168
|
});
|
|
190
169
|
};
|
|
191
170
|
|
|
192
|
-
// Layout-only styles:
|
|
193
|
-
//
|
|
194
|
-
// roles live here — those use Bloom token classes.
|
|
171
|
+
// Layout-only styles: the info caption's measured max width. No color, spacing,
|
|
172
|
+
// radius, or typography roles live here — those use Bloom token classes.
|
|
195
173
|
const styles = StyleSheet.create({
|
|
196
|
-
center: {
|
|
197
|
-
flex: 1,
|
|
198
|
-
alignItems: 'center',
|
|
199
|
-
justifyContent: 'center'
|
|
200
|
-
},
|
|
201
174
|
infoText: {
|
|
202
175
|
maxWidth: 320
|
|
203
176
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useMemo","useState","View","
|
|
1
|
+
{"version":3,"names":["useEffect","useMemo","useState","View","StyleSheet","Ionicons","Chip","useTheme","H1","Text","SettingsListGroup","SettingsListItem","SettingsIcon","Loading","useI18n","useSurfaceHeader","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","TrustCenterScreen","navigate","user","oxyServices","isAuthenticated","t","reputationTotal","setReputationTotal","trustTier","setTrustTier","transactions","setTransactions","isLoading","setIsLoading","error","setError","bloomTheme","primaryColor","colors","primary","Promise","all","getReputationBalance","id","getReputationTransactions","then","balance","txns","total","Array","isArray","catch","err","Error","message","finally","trustTierLabel","title","className","children","size","color","style","variant","startIcon","name","styles","infoText","icon","warning","onPress","info","success","secondary","length","textTertiary","showChevron","disabled","map","entry","points","reason","actionType","description","category","createdAt","Date","toLocaleString","rightElement","create","maxWidth"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustCenterScreen.tsx"],"mappings":";;AACA,SAASA,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAEhF,SAASC,YAAY,QAAQ,kCAA+B;AAC5D,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IA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M,GApCdG,KAAK,CAACpC,EAqCd,CACJ;IACJ,CACc,CAAC,EAEnBT,KAAK,gBACFjB,IAAA,CAACV,IAAI;MACDmD,SAAS,EAAC,iCAAiC;MAC3CI,KAAK,EAAE;QAAED,KAAK,EAAEzB,UAAU,CAACE,MAAM,CAACJ;MAAM,CAAE;MAAAyB,QAAA,EAEzCzB;IAAK,CACJ,CAAC,GACP,IAAI;EAAA,CACN,CAAC;AAEnB,CAAC;;AAED;AACA;AACA,MAAMgC,MAAM,GAAGhE,UAAU,CAACuF,MAAM,CAAC;EAC7BtB,QAAQ,EAAE;IACNuB,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;AAEF,eAAetE,iBAAiB","ignoreList":[]}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { View
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { useSurfaceHeader } from "../../hooks/useSurfaceHeader.js";
|
|
6
|
+
import { Search } from '@oxyhq/bloom/search';
|
|
7
7
|
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@oxyhq/bloom/accordion';
|
|
8
8
|
import { Text } from '@oxyhq/bloom/typography';
|
|
9
9
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
11
|
const FAQ_KEYS = ['what', 'earn', 'lose', 'use', 'transfer', 'support'];
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* TrustFAQScreen
|
|
15
15
|
*
|
|
16
16
|
* Frequently asked questions about Oxy Trust, rendered with the shared Bloom
|
|
17
|
-
* Accordion (single-expand) +
|
|
17
|
+
* Accordion (single-expand) + Search. Styling is centralized Bloom token
|
|
18
18
|
* classes; the Bloom Accordion owns its own expand/collapse animation, so no
|
|
19
19
|
* `LayoutAnimation` is used here.
|
|
20
20
|
*/
|
|
21
|
-
const TrustFAQScreen = ({
|
|
22
|
-
goBack
|
|
23
|
-
}) => {
|
|
21
|
+
const TrustFAQScreen = () => {
|
|
24
22
|
const {
|
|
25
23
|
t
|
|
26
24
|
} = useI18n();
|
|
25
|
+
useSurfaceHeader({
|
|
26
|
+
title: t('trust.faq.title') || 'Trust FAQ',
|
|
27
|
+
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust'
|
|
28
|
+
});
|
|
27
29
|
const [search, setSearch] = useState('');
|
|
28
30
|
const [expanded, setExpanded] = useState(undefined);
|
|
29
31
|
const faqs = useMemo(() => FAQ_KEYS.map(key => ({
|
|
@@ -39,26 +41,18 @@ const TrustFAQScreen = ({
|
|
|
39
41
|
const handleAccordionChange = useCallback(value => {
|
|
40
42
|
setExpanded(Array.isArray(value) ? value[0] : value);
|
|
41
43
|
}, []);
|
|
42
|
-
return /*#__PURE__*/_jsxs(
|
|
43
|
-
|
|
44
|
-
children: [/*#__PURE__*/_jsx(Header, {
|
|
45
|
-
title: t('trust.faq.title') || 'Trust FAQ',
|
|
46
|
-
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust',
|
|
47
|
-
subtitleVariant: "muted",
|
|
48
|
-
onBack: goBack,
|
|
49
|
-
elevation: "subtle"
|
|
50
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
44
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
45
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
51
46
|
className: "px-screen-margin pt-space-20 pb-space-12",
|
|
52
|
-
children: /*#__PURE__*/_jsx(
|
|
47
|
+
children: /*#__PURE__*/_jsx(Search, {
|
|
53
48
|
label: t('trust.faq.search') || 'Search FAQ...',
|
|
54
49
|
value: search,
|
|
55
50
|
onChangeText: setSearch,
|
|
56
51
|
onClearText: () => setSearch(''),
|
|
57
52
|
accessibilityLabel: "Search Trust FAQ"
|
|
58
53
|
})
|
|
59
|
-
}), /*#__PURE__*/_jsx(
|
|
60
|
-
className: "
|
|
61
|
-
showsVerticalScrollIndicator: false,
|
|
54
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
55
|
+
className: "px-screen-margin",
|
|
62
56
|
children: filteredFaqs.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
63
57
|
className: "text-text-secondary text-center p-space-40",
|
|
64
58
|
children: t('trust.faq.noResults', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useMemo","useCallback","View","
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","useCallback","View","useSurfaceHeader","Search","Accordion","AccordionItem","AccordionTrigger","AccordionContent","Text","useI18n","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","FAQ_KEYS","TrustFAQScreen","t","title","subtitle","search","setSearch","expanded","setExpanded","undefined","faqs","map","key","id","q","a","filteredFaqs","trim","searchLower","toLowerCase","filter","faq","includes","handleAccordionChange","value","Array","isArray","children","className","label","onChangeText","onClearText","accessibilityLabel","length","query","type","onValueChange","memo"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustFAQScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC7D,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SACIC,SAAS,EACTC,aAAa,EACbC,gBAAgB,EAChBC,gBAAgB,QACb,wBAAwB;AAC/B,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SAASC,OAAO,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAE9C,MAAMC,QAAQ,GAAG,CAAC,MAAM,EAA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AAgB;YAAAoC,QAAA,eACbhC,IAAA,CAACH,IAAI;cAACoC,SAAS,EAAC,+CAA+C;cAAAD,QAAA,EAC1DN,GAAG,CAACN;YAAC,CACJ;UAAC,CACO,CAAC;QAAA,GARHM,GAAG,CAACR,EAST,CAClB;MAAC,CACK;IACd,CACC,CAAC;EAAA,CACT,CAAC;AAEX,CAAC;AAED,4BAAehC,KAAK,CAACwD,IAAI,CAACpC,cAAc,CAAC","ignoreList":[]}
|
|
@@ -9,8 +9,8 @@ import { Chip } from '@oxyhq/bloom/chip';
|
|
|
9
9
|
import { Button } from '@oxyhq/bloom/button';
|
|
10
10
|
import { Ionicons } from '@expo/vector-icons';
|
|
11
11
|
import { Avatar } from '@oxyhq/bloom/avatar';
|
|
12
|
-
import Header from "../../components/Header.js";
|
|
13
12
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
13
|
+
import { useSurfaceHeader } from "../../hooks/useSurfaceHeader.js";
|
|
14
14
|
import { useOxy } from "../../context/OxyContext.js";
|
|
15
15
|
import { getTrustTierLabel } from "./trustTier.js";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -20,7 +20,6 @@ const ERROR_ICON_SIZE = 48;
|
|
|
20
20
|
/** Ranks within the podium (1–3) get a highlighted row surface. */
|
|
21
21
|
const PODIUM_RANK = 3;
|
|
22
22
|
const TrustLeaderboardScreen = ({
|
|
23
|
-
goBack,
|
|
24
23
|
navigate
|
|
25
24
|
}) => {
|
|
26
25
|
const {
|
|
@@ -51,6 +50,10 @@ const TrustLeaderboardScreen = ({
|
|
|
51
50
|
}, [loadLeaderboard]);
|
|
52
51
|
const title = t('trust.leaderboard.title') || 'Trust Leaderboard';
|
|
53
52
|
const subtitle = t('trust.leaderboard.subtitle') || 'Top contributors in the community';
|
|
53
|
+
useSurfaceHeader({
|
|
54
|
+
title,
|
|
55
|
+
subtitle
|
|
56
|
+
});
|
|
54
57
|
const handleEntryPress = useCallback(entry => {
|
|
55
58
|
navigate?.('Profile', {
|
|
56
59
|
userId: entry.user.id,
|
|
@@ -112,31 +115,21 @@ const TrustLeaderboardScreen = ({
|
|
|
112
115
|
className: "border-b border-border-image"
|
|
113
116
|
}), []);
|
|
114
117
|
if (isLoading) {
|
|
115
|
-
return /*#__PURE__*/
|
|
118
|
+
return /*#__PURE__*/_jsx(View, {
|
|
116
119
|
className: "flex-1 bg-bg",
|
|
117
|
-
children:
|
|
118
|
-
title: title,
|
|
119
|
-
subtitle: subtitle,
|
|
120
|
-
onBack: goBack,
|
|
121
|
-
elevation: "subtle"
|
|
122
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
120
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
123
121
|
style: styles.center,
|
|
124
122
|
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
125
123
|
size: "large",
|
|
126
124
|
color: bloomTheme.colors.primary
|
|
127
125
|
})
|
|
128
|
-
})
|
|
126
|
+
})
|
|
129
127
|
});
|
|
130
128
|
}
|
|
131
129
|
if (error) {
|
|
132
|
-
return /*#__PURE__*/
|
|
130
|
+
return /*#__PURE__*/_jsx(View, {
|
|
133
131
|
className: "flex-1 bg-bg",
|
|
134
|
-
children:
|
|
135
|
-
title: title,
|
|
136
|
-
subtitle: subtitle,
|
|
137
|
-
onBack: goBack,
|
|
138
|
-
elevation: "subtle"
|
|
139
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
132
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
140
133
|
style: styles.center,
|
|
141
134
|
className: "px-space-32 gap-space-16",
|
|
142
135
|
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
@@ -151,17 +144,12 @@ const TrustLeaderboardScreen = ({
|
|
|
151
144
|
onPress: loadLeaderboard,
|
|
152
145
|
children: t('common.retry') || 'Retry'
|
|
153
146
|
})]
|
|
154
|
-
})
|
|
147
|
+
})
|
|
155
148
|
});
|
|
156
149
|
}
|
|
157
|
-
return /*#__PURE__*/
|
|
150
|
+
return /*#__PURE__*/_jsx(View, {
|
|
158
151
|
className: "flex-1 bg-bg",
|
|
159
|
-
children:
|
|
160
|
-
title: title,
|
|
161
|
-
subtitle: subtitle,
|
|
162
|
-
onBack: goBack,
|
|
163
|
-
elevation: "subtle"
|
|
164
|
-
}), /*#__PURE__*/_jsx(FlatList, {
|
|
152
|
+
children: /*#__PURE__*/_jsx(FlatList, {
|
|
165
153
|
data: leaderboard,
|
|
166
154
|
renderItem: renderEntry,
|
|
167
155
|
keyExtractor: keyExtractor,
|
|
@@ -183,7 +171,7 @@ const TrustLeaderboardScreen = ({
|
|
|
183
171
|
children: t('trust.leaderboard.emptyDesc') || 'Top contributors will appear here as the community grows.'
|
|
184
172
|
})]
|
|
185
173
|
})
|
|
186
|
-
})
|
|
174
|
+
})
|
|
187
175
|
});
|
|
188
176
|
};
|
|
189
177
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useEffect","useMemo","useState","View","StyleSheet","ActivityIndicator","FlatList","TouchableOpacity","getAccountDisplayName","logger","useTheme","H6","Text","Chip","Button","Ionicons","Avatar","
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useMemo","useState","View","StyleSheet","ActivityIndicator","FlatList","TouchableOpacity","getAccountDisplayName","logger","useTheme","H6","Text","Chip","Button","Ionicons","Avatar","useI18n","useSurfaceHeader","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","AVATAR_SIZE","EMPTY_ICON_SIZE","ERROR_ICON_SIZE","PODIUM_RANK","TrustLeaderboardScreen","navigate","oxyServices","user","currentUser","t","locale","bloomTheme","leaderboard","setLeaderboard","isLoading","setIsLoading","error","setError","currentUserId","id","loadLeaderboard","getReputationLeaderboard","then","data","Array","isArray","catch","err","Error","String","component","message","finally","title","subtitle","handleEntryPress","entry","userId","username","renderEntry","item","displayName","isViewer","isPodium","rank","highlightClass","style","styles","row","className","onPress","activeOpacity","accessibilityRole","accessibilityLabel","children","numberOfLines","source","avatar","getFileDownloadUrl","undefined","name","size","userColumn","tierRow","variant","color","trustTier","total","keyExtractor","index","ItemSeparator","separator","center","colors","primary","renderItem","contentContainerStyle","listContent","ItemSeparatorComponent","ListEmptyComponent","emptyContainer","textSecondary","create","flex","justifyContent","alignItems","flexGrow","paddingBottom","flexDirection","width","marginLeft","paddingTop"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustLeaderboardScreen.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SACIC,IAAI,EACJC,UAAU,EACVC,iBAAiB,EACjBC,QAAQ,EACRC,gBAAgB,QACb,cAAc;AAErB,SAASC,qBAAqB,EAAEC,MAAM,QAAQ,aAAa;AAC3D,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,QAAQ,QAAQ,oBAAoB;AAE7C,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,WAAW,GAAG,EAAE;AACtB,MAAMC,eAAe,GAAG,EAAE;AAC1B,MAAMC,eAAe,GAAG,EAAE;AAC1B;AACA,MAAMC,WAAW,GAAG,CAAC;AAErB,MAAMC,sBAAiD,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACxE,MAAM;IAAEC,WAAW;IAAEC,IAAI,EAAEC;EAAY,CAAC,GAAGd,MAAM,CAAC,CAAC;EACnD,MAAM;IAAEe,CAAC;IAAEC;EAAO,CAAC,GAAGlB,OAAO,CAA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