@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.
Files changed (584) hide show
  1. package/lib/commonjs/index.js +24 -5
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/ui/components/AvatarCameraBadge.js +42 -0
  4. package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -0
  5. package/lib/commonjs/ui/components/{OxyAccountDialog.js → OxyAccountDialogScreen.js} +55 -133
  6. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -0
  7. package/lib/commonjs/ui/components/OxyAuthChooser.js +657 -88
  8. package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
  9. package/lib/commonjs/ui/components/OxyConsentScreen.js +1 -1
  10. package/lib/commonjs/ui/components/ProfileButton.js +15 -1
  11. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  12. package/lib/commonjs/ui/components/ProfileSummaryCard.js +3 -23
  13. package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
  14. package/lib/commonjs/ui/components/RequireOxyAuth.js +1 -1
  15. package/lib/commonjs/ui/components/SurfaceHeaderAction.js +63 -0
  16. package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -0
  17. package/lib/commonjs/ui/components/SurfaceScreen.js +91 -8
  18. package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
  19. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +46 -29
  20. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  21. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +47 -23
  22. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
  23. package/lib/commonjs/ui/components/oxyAuthChooserStyles.js +81 -19
  24. package/lib/commonjs/ui/components/oxyAuthChooserStyles.js.map +1 -1
  25. package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +83 -23
  26. package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
  27. package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +83 -0
  28. package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
  29. package/lib/commonjs/ui/context/OxyContext.js +79 -29
  30. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  31. package/lib/commonjs/ui/hooks/queries/queryKeys.js +18 -1
  32. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  33. package/lib/commonjs/ui/hooks/queries/useFileQueries.js +129 -0
  34. package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -0
  35. package/lib/commonjs/ui/hooks/useAvatarPicker.js +38 -55
  36. package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
  37. package/lib/commonjs/ui/hooks/useReduceMotion.js +57 -0
  38. package/lib/commonjs/ui/hooks/useReduceMotion.js.map +1 -0
  39. package/lib/commonjs/ui/hooks/useSurfaceHeader.js +46 -0
  40. package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -0
  41. package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +1 -1
  42. package/lib/commonjs/ui/navigation/accountDialogManager.js +36 -2
  43. package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
  44. package/lib/commonjs/ui/navigation/bottomSheetManager.js +5 -6
  45. package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
  46. package/lib/commonjs/ui/navigation/routes.js +4 -3
  47. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  48. package/lib/commonjs/ui/navigation/surfaceBackBridge.js +68 -0
  49. package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -0
  50. package/lib/commonjs/ui/navigation/surfaceNavStack.js +62 -15
  51. package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -1
  52. package/lib/commonjs/ui/navigation/surfaceRegistry.js +84 -19
  53. package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
  54. package/lib/commonjs/ui/navigation/surfaces.js +139 -25
  55. package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
  56. package/lib/commonjs/ui/screens/AccountMembersScreen.js +214 -283
  57. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  58. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +88 -118
  59. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  60. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +22 -36
  61. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  62. package/lib/commonjs/ui/screens/AppInfoScreen.js +219 -226
  63. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/AvatarCropScreen.js +287 -289
  65. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +301 -0
  67. package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -0
  68. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +24 -39
  69. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/CreateAccountScreen.js +136 -158
  71. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +29 -36
  73. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/EditProfileScreen.js +101 -109
  75. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/FAQScreen.js +10 -15
  77. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  78. package/lib/commonjs/ui/screens/FeedbackScreen.js +8 -16
  79. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/FileManagementScreen.js +403 -627
  81. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/HelpSupportScreen.js +62 -69
  83. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/HistoryViewScreen.js +63 -79
  85. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +69 -98
  87. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +8 -14
  89. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +77 -94
  91. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/ManageAccountScreen.js +99 -134
  93. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  94. package/lib/commonjs/ui/screens/NotificationsScreen.js +69 -76
  95. package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
  96. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +3 -8
  97. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  98. package/lib/commonjs/ui/screens/PreferencesScreen.js +67 -74
  99. package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
  100. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +55 -91
  101. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  102. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +291 -304
  103. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  104. package/lib/commonjs/ui/screens/ProfileScreen.js +100 -114
  105. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  106. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +38 -45
  107. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  108. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +44 -57
  109. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  110. package/lib/commonjs/ui/screens/UserLinksScreen.js +24 -31
  111. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  112. package/lib/commonjs/ui/screens/UserListScreen.js +14 -24
  113. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  114. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +16 -48
  115. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  116. package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +63 -0
  117. package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
  118. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +54 -41
  119. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
  120. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +44 -81
  121. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
  122. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +66 -75
  123. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  124. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +111 -139
  125. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  126. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +13 -20
  127. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  128. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +14 -27
  129. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  130. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +68 -85
  131. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  132. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +28 -36
  133. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  134. package/lib/commonjs/ui/stores/resetSessionScopedStores.js +8 -3
  135. package/lib/commonjs/ui/stores/resetSessionScopedStores.js.map +1 -1
  136. package/lib/commonjs/ui/utils/avatarUtils.js +11 -2
  137. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  138. package/lib/commonjs/ui/utils/fileManagement.js +0 -79
  139. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
  140. package/lib/module/index.js +12 -5
  141. package/lib/module/index.js.map +1 -1
  142. package/lib/module/ui/components/AvatarCameraBadge.js +40 -0
  143. package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -0
  144. package/lib/module/ui/components/{OxyAccountDialog.js → OxyAccountDialogScreen.js} +57 -135
  145. package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -0
  146. package/lib/module/ui/components/OxyAuthChooser.js +659 -91
  147. package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
  148. package/lib/module/ui/components/OxyConsentScreen.js +1 -1
  149. package/lib/module/ui/components/ProfileButton.js +16 -2
  150. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  151. package/lib/module/ui/components/ProfileSummaryCard.js +2 -23
  152. package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
  153. package/lib/module/ui/components/RequireOxyAuth.js +1 -1
  154. package/lib/module/ui/components/SurfaceHeaderAction.js +58 -0
  155. package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -0
  156. package/lib/module/ui/components/SurfaceScreen.js +93 -10
  157. package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
  158. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +46 -29
  159. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  160. package/lib/module/ui/components/modals/DeleteAccountModal.js +46 -23
  161. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  162. package/lib/module/ui/components/oxyAuthChooserStyles.js +81 -19
  163. package/lib/module/ui/components/oxyAuthChooserStyles.js.map +1 -1
  164. package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +83 -25
  165. package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
  166. package/lib/module/ui/components/surfaces/ActionSheetSurface.js +78 -0
  167. package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
  168. package/lib/module/ui/context/OxyContext.js +80 -30
  169. package/lib/module/ui/context/OxyContext.js.map +1 -1
  170. package/lib/module/ui/hooks/queries/queryKeys.js +16 -0
  171. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  172. package/lib/module/ui/hooks/queries/useFileQueries.js +120 -0
  173. package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -0
  174. package/lib/module/ui/hooks/useAvatarPicker.js +38 -55
  175. package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
  176. package/lib/module/ui/hooks/useReduceMotion.js +53 -0
  177. package/lib/module/ui/hooks/useReduceMotion.js.map +1 -0
  178. package/lib/module/ui/hooks/useSurfaceHeader.js +42 -0
  179. package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -0
  180. package/lib/module/ui/hooks/useSwitchableAccounts.js +1 -1
  181. package/lib/module/ui/navigation/accountDialogManager.js +34 -2
  182. package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
  183. package/lib/module/ui/navigation/bottomSheetManager.js +6 -7
  184. package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
  185. package/lib/module/ui/navigation/routes.js +4 -3
  186. package/lib/module/ui/navigation/routes.js.map +1 -1
  187. package/lib/module/ui/navigation/surfaceBackBridge.js +63 -0
  188. package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -0
  189. package/lib/module/ui/navigation/surfaceNavStack.js +62 -15
  190. package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -1
  191. package/lib/module/ui/navigation/surfaceRegistry.js +84 -19
  192. package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
  193. package/lib/module/ui/navigation/surfaces.js +138 -26
  194. package/lib/module/ui/navigation/surfaces.js.map +1 -1
  195. package/lib/module/ui/screens/AccountMembersScreen.js +218 -286
  196. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  197. package/lib/module/ui/screens/AccountSettingsScreen.js +92 -121
  198. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  199. package/lib/module/ui/screens/AccountVerificationScreen.js +25 -38
  200. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  201. package/lib/module/ui/screens/AppInfoScreen.js +220 -227
  202. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  203. package/lib/module/ui/screens/AvatarCropScreen.js +289 -291
  204. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  205. package/lib/module/ui/screens/ChangeAvatarScreen.js +298 -0
  206. package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -0
  207. package/lib/module/ui/screens/ConnectedAppsScreen.js +26 -40
  208. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  209. package/lib/module/ui/screens/CreateAccountScreen.js +139 -160
  210. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  211. package/lib/module/ui/screens/EditProfileFieldScreen.js +32 -38
  212. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  213. package/lib/module/ui/screens/EditProfileScreen.js +102 -110
  214. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  215. package/lib/module/ui/screens/FAQScreen.js +11 -15
  216. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  217. package/lib/module/ui/screens/FeedbackScreen.js +10 -17
  218. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  219. package/lib/module/ui/screens/FileManagementScreen.js +408 -631
  220. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  221. package/lib/module/ui/screens/HelpSupportScreen.js +64 -70
  222. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  223. package/lib/module/ui/screens/HistoryViewScreen.js +65 -81
  224. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  225. package/lib/module/ui/screens/LanguageSelectorScreen.js +71 -99
  226. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  227. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +10 -15
  228. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  229. package/lib/module/ui/screens/LegalDocumentsScreen.js +78 -94
  230. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  231. package/lib/module/ui/screens/ManageAccountScreen.js +102 -137
  232. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  233. package/lib/module/ui/screens/NotificationsScreen.js +71 -77
  234. package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
  235. package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -9
  236. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  237. package/lib/module/ui/screens/PreferencesScreen.js +69 -75
  238. package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
  239. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +58 -93
  240. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  241. package/lib/module/ui/screens/PrivacySettingsScreen.js +293 -305
  242. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  243. package/lib/module/ui/screens/ProfileScreen.js +102 -116
  244. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  245. package/lib/module/ui/screens/SavesCollectionsScreen.js +40 -46
  246. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  247. package/lib/module/ui/screens/SearchSettingsScreen.js +46 -58
  248. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  249. package/lib/module/ui/screens/UserLinksScreen.js +26 -32
  250. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  251. package/lib/module/ui/screens/UserListScreen.js +14 -24
  252. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  253. package/lib/module/ui/screens/WelcomeNewUserScreen.js +17 -49
  254. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  255. package/lib/module/ui/screens/fileManagement/FileLibraryError.js +59 -0
  256. package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
  257. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +54 -42
  258. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
  259. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +45 -81
  260. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
  261. package/lib/module/ui/screens/trust/TrustAboutScreen.js +67 -75
  262. package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  263. package/lib/module/ui/screens/trust/TrustCenterScreen.js +112 -139
  264. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  265. package/lib/module/ui/screens/trust/TrustFAQScreen.js +15 -21
  266. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  267. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +14 -26
  268. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  269. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +69 -85
  270. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  271. package/lib/module/ui/screens/trust/TrustRulesScreen.js +30 -37
  272. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  273. package/lib/module/ui/stores/resetSessionScopedStores.js +8 -3
  274. package/lib/module/ui/stores/resetSessionScopedStores.js.map +1 -1
  275. package/lib/module/ui/utils/avatarUtils.js +11 -2
  276. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  277. package/lib/module/ui/utils/fileManagement.js +0 -78
  278. package/lib/module/ui/utils/fileManagement.js.map +1 -1
  279. package/lib/typescript/commonjs/index.d.ts +2 -0
  280. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts +4 -0
  282. package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts.map +1 -0
  283. package/lib/typescript/{module/ui/components/OxyAccountDialog.d.ts → commonjs/ui/components/OxyAccountDialogScreen.d.ts} +5 -4
  284. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +3 -3
  286. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +2 -2
  288. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +1 -1
  291. package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +16 -0
  292. package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +3 -4
  294. package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
  296. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +17 -2
  298. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts +75 -13
  300. package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts +10 -8
  302. package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
  304. package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +9 -0
  307. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +50 -0
  309. package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +17 -16
  311. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts +14 -0
  313. package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +31 -0
  315. package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +1 -1
  317. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +27 -2
  318. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  319. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +4 -5
  320. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  322. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  323. package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts +16 -0
  324. package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +21 -0
  326. package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +101 -23
  328. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  329. package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +42 -11
  330. package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
  331. package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  333. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  334. package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
  335. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts +18 -9
  336. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  337. package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts +34 -0
  338. package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  340. package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  342. package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
  343. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  344. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  346. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  348. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  349. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  350. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  351. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +1 -1
  352. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  353. package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
  354. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  355. package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
  356. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  357. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  358. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  359. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  360. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  361. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  362. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  363. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  364. package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
  365. package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +4 -0
  367. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
  368. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +10 -2
  369. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
  370. package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  371. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  372. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  373. package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  374. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  375. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  376. package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts +8 -1
  377. package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts.map +1 -1
  378. package/lib/typescript/commonjs/ui/types/navigation.d.ts +10 -0
  379. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  380. package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
  381. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +0 -48
  382. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
  383. package/lib/typescript/module/index.d.ts +2 -0
  384. package/lib/typescript/module/index.d.ts.map +1 -1
  385. package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts +4 -0
  386. package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts.map +1 -0
  387. package/lib/typescript/{commonjs/ui/components/OxyAccountDialog.d.ts → module/ui/components/OxyAccountDialogScreen.d.ts} +5 -4
  388. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
  389. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +3 -3
  390. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
  391. package/lib/typescript/module/ui/components/ProfileButton.d.ts +2 -2
  392. package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
  393. package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -1
  394. package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +1 -1
  395. package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +16 -0
  396. package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
  397. package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +3 -4
  398. package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
  399. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
  400. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  401. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +17 -2
  402. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  403. package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts +75 -13
  404. package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
  405. package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts +10 -8
  406. package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
  407. package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
  408. package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
  409. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  410. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +9 -0
  411. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  412. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +50 -0
  413. package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
  414. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +17 -16
  415. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
  416. package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts +14 -0
  417. package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts.map +1 -0
  418. package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +31 -0
  419. package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
  420. package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +1 -1
  421. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +27 -2
  422. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  423. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +4 -5
  424. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  425. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  426. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  427. package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts +16 -0
  428. package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
  429. package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +21 -0
  430. package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -1
  431. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +101 -23
  432. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
  433. package/lib/typescript/module/ui/navigation/surfaces.d.ts +42 -11
  434. package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
  435. package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  436. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  437. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  438. package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
  439. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts +18 -9
  440. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  441. package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts +34 -0
  442. package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
  443. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  444. package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -1
  445. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  446. package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
  447. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  448. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  449. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  450. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  451. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  452. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  453. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  454. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  455. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +1 -1
  456. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  457. package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
  458. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  459. package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
  460. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  461. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  462. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  463. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  464. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  465. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  466. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  467. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  468. package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
  469. package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
  470. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +4 -0
  471. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
  472. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +10 -2
  473. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
  474. package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  475. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  476. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  477. package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  478. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  479. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  480. package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts +8 -1
  481. package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts.map +1 -1
  482. package/lib/typescript/module/ui/types/navigation.d.ts +10 -0
  483. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  484. package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
  485. package/lib/typescript/module/ui/utils/fileManagement.d.ts +0 -48
  486. package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
  487. package/package.json +9 -5
  488. package/src/index.ts +12 -5
  489. package/src/ui/components/AvatarCameraBadge.tsx +35 -0
  490. package/src/ui/components/{OxyAccountDialog.tsx → OxyAccountDialogScreen.tsx} +50 -116
  491. package/src/ui/components/OxyAuthChooser.tsx +743 -86
  492. package/src/ui/components/OxyConsentScreen.tsx +1 -1
  493. package/src/ui/components/ProfileButton.tsx +18 -3
  494. package/src/ui/components/ProfileSummaryCard.tsx +2 -25
  495. package/src/ui/components/RequireOxyAuth.tsx +1 -1
  496. package/src/ui/components/SurfaceHeaderAction.tsx +60 -0
  497. package/src/ui/components/SurfaceScreen.tsx +108 -14
  498. package/src/ui/components/fileManagement/FileDetailsModal.tsx +50 -36
  499. package/src/ui/components/modals/DeleteAccountModal.tsx +47 -26
  500. package/src/ui/components/oxyAuthChooserStyles.ts +78 -16
  501. package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +158 -84
  502. package/src/ui/components/photogrid/__tests__/chunkPhotos.test.ts +51 -0
  503. package/src/ui/components/surfaces/ActionSheetSurface.tsx +98 -0
  504. package/src/ui/context/OxyContext.tsx +79 -25
  505. package/src/ui/hooks/queries/queryKeys.ts +15 -0
  506. package/src/ui/hooks/queries/useFileQueries.ts +162 -0
  507. package/src/ui/hooks/useAvatarPicker.ts +46 -74
  508. package/src/ui/hooks/useReduceMotion.ts +58 -0
  509. package/src/ui/hooks/useSurfaceHeader.ts +57 -0
  510. package/src/ui/hooks/useSwitchableAccounts.ts +1 -1
  511. package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +55 -7
  512. package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +149 -0
  513. package/src/ui/navigation/accountDialogManager.ts +42 -2
  514. package/src/ui/navigation/bottomSheetManager.ts +6 -7
  515. package/src/ui/navigation/routes.ts +6 -4
  516. package/src/ui/navigation/surfaceBackBridge.ts +69 -0
  517. package/src/ui/navigation/surfaceNavStack.ts +72 -9
  518. package/src/ui/navigation/surfaceRegistry.ts +164 -24
  519. package/src/ui/navigation/surfaces.ts +137 -30
  520. package/src/ui/screens/AccountMembersScreen.tsx +39 -100
  521. package/src/ui/screens/AccountSettingsScreen.tsx +32 -54
  522. package/src/ui/screens/AccountVerificationScreen.tsx +23 -51
  523. package/src/ui/screens/AppInfoScreen.tsx +6 -13
  524. package/src/ui/screens/AvatarCropScreen.tsx +340 -311
  525. package/src/ui/screens/ChangeAvatarScreen.tsx +359 -0
  526. package/src/ui/screens/ConnectedAppsScreen.tsx +39 -60
  527. package/src/ui/screens/CreateAccountScreen.tsx +13 -39
  528. package/src/ui/screens/EditProfileFieldScreen.tsx +30 -48
  529. package/src/ui/screens/EditProfileScreen.tsx +7 -16
  530. package/src/ui/screens/FAQScreen.tsx +9 -13
  531. package/src/ui/screens/FeedbackScreen.tsx +8 -22
  532. package/src/ui/screens/FileManagementScreen.tsx +370 -610
  533. package/src/ui/screens/HelpSupportScreen.tsx +7 -13
  534. package/src/ui/screens/HistoryViewScreen.tsx +26 -31
  535. package/src/ui/screens/LanguageSelectorScreen.tsx +12 -46
  536. package/src/ui/screens/LearnMoreUsernamesScreen.tsx +8 -16
  537. package/src/ui/screens/LegalDocumentsScreen.tsx +7 -22
  538. package/src/ui/screens/ManageAccountScreen.tsx +96 -165
  539. package/src/ui/screens/NotificationsScreen.tsx +7 -13
  540. package/src/ui/screens/PaymentGatewayScreen.tsx +3 -10
  541. package/src/ui/screens/PreferencesScreen.tsx +7 -13
  542. package/src/ui/screens/PremiumSubscriptionScreen.tsx +52 -90
  543. package/src/ui/screens/PrivacySettingsScreen.tsx +9 -21
  544. package/src/ui/screens/ProfileScreen.tsx +9 -11
  545. package/src/ui/screens/SavesCollectionsScreen.tsx +7 -13
  546. package/src/ui/screens/SearchSettingsScreen.tsx +9 -21
  547. package/src/ui/screens/UserLinksScreen.tsx +7 -14
  548. package/src/ui/screens/UserListScreen.tsx +2 -5
  549. package/src/ui/screens/WelcomeNewUserScreen.tsx +18 -48
  550. package/src/ui/screens/fileManagement/FileLibraryError.tsx +56 -0
  551. package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +56 -46
  552. package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +55 -71
  553. package/src/ui/screens/trust/TrustAboutScreen.tsx +10 -17
  554. package/src/ui/screens/trust/TrustCenterScreen.tsx +9 -28
  555. package/src/ui/screens/trust/TrustFAQScreen.tsx +15 -18
  556. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +3 -5
  557. package/src/ui/screens/trust/TrustRewardsScreen.tsx +11 -26
  558. package/src/ui/screens/trust/TrustRulesScreen.tsx +10 -13
  559. package/src/ui/stores/resetSessionScopedStores.ts +8 -3
  560. package/src/ui/types/navigation.ts +10 -0
  561. package/src/ui/utils/avatarUtils.ts +11 -2
  562. package/src/ui/utils/fileManagement.ts +1 -101
  563. package/lib/commonjs/ui/components/Header.js +0 -305
  564. package/lib/commonjs/ui/components/Header.js.map +0 -1
  565. package/lib/commonjs/ui/components/OxyAccountDialog.js.map +0 -1
  566. package/lib/commonjs/ui/stores/fileStore.js +0 -153
  567. package/lib/commonjs/ui/stores/fileStore.js.map +0 -1
  568. package/lib/module/ui/components/Header.js +0 -299
  569. package/lib/module/ui/components/Header.js.map +0 -1
  570. package/lib/module/ui/components/OxyAccountDialog.js.map +0 -1
  571. package/lib/module/ui/stores/fileStore.js +0 -145
  572. package/lib/module/ui/stores/fileStore.js.map +0 -1
  573. package/lib/typescript/commonjs/ui/components/Header.d.ts +0 -33
  574. package/lib/typescript/commonjs/ui/components/Header.d.ts.map +0 -1
  575. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +0 -1
  576. package/lib/typescript/commonjs/ui/stores/fileStore.d.ts +0 -31
  577. package/lib/typescript/commonjs/ui/stores/fileStore.d.ts.map +0 -1
  578. package/lib/typescript/module/ui/components/Header.d.ts +0 -33
  579. package/lib/typescript/module/ui/components/Header.d.ts.map +0 -1
  580. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +0 -1
  581. package/lib/typescript/module/ui/stores/fileStore.d.ts +0 -31
  582. package/lib/typescript/module/ui/stores/fileStore.d.ts.map +0 -1
  583. package/src/ui/components/Header.tsx +0 -224
  584. package/src/ui/stores/fileStore.ts +0 -118
@@ -10,12 +10,11 @@ var _bloom = require("@oxyhq/bloom");
10
10
  var _theme = require("@oxyhq/bloom/theme");
11
11
  var _settingsList = require("@oxyhq/bloom/settings-list");
12
12
  var _core = require("@oxyhq/core");
13
- var _Header = _interopRequireDefault(require("../components/Header.js"));
13
+ var _useSurfaceHeader = require("../hooks/useSurfaceHeader.js");
14
14
  var _loading = require("@oxyhq/bloom/loading");
15
15
  var _SettingsIcon = require("../components/SettingsIcon.js");
16
16
  var _useI18n = require("../hooks/useI18n.js");
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
19
  /** Component name used in `logger` context for filtered diagnostics. */const LOG_COMPONENT = 'LegalDocumentsScreen';
21
20
 
@@ -100,105 +99,89 @@ const LegalDocumentsScreen = ({
100
99
  };
101
100
  return titles[key];
102
101
  };
102
+ (0, _useSurfaceHeader.useSurfaceHeader)({
103
+ title: documentType ? getPolicyTitle(documentType) : t('legal.title') || 'Legal Documents'
104
+ });
103
105
 
104
106
  // Deep-link entry: show loading state while the document opens.
105
107
  if (documentType) {
106
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
107
- className: "flex-1 bg-bg",
108
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
109
- title: getPolicyTitle(documentType),
110
- onBack: goBack || onClose,
111
- variant: "minimal",
112
- elevation: "subtle"
113
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
114
- size: "large",
115
- color: bloomTheme.colors.text,
116
- text: t('legal.opening') || 'Opening document...'
117
- })]
108
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
109
+ size: "large",
110
+ color: bloomTheme.colors.text,
111
+ text: t('legal.opening') || 'Opening document...'
118
112
  });
119
113
  }
120
114
 
121
115
  // Default: show the full list of policies & guidelines.
122
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
123
- className: "flex-1 bg-bg",
124
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
125
- title: t('legal.title') || 'Legal Documents',
126
- onBack: goBack || onClose,
127
- variant: "minimal",
128
- elevation: "subtle"
129
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
130
- className: "flex-1",
131
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
132
- className: "px-screen-margin py-space-16",
133
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
134
- title: t('legal.policies') || 'Policies & Guidelines',
135
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
136
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
137
- name: "shield-check",
138
- color: bloomTheme.colors.success
139
- }),
140
- title: t('legal.privacyPolicy.title') || 'Privacy Policy',
141
- description: t('legal.privacyPolicy.subtitle') || 'How we handle your data',
142
- onPress: handleOpenPolicy('privacy'),
143
- disabled: loading
144
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
145
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
146
- name: "file-document",
147
- color: bloomTheme.colors.primary
148
- }),
149
- title: t('legal.termsOfService.title') || 'Terms of Service',
150
- description: t('legal.termsOfService.subtitle') || 'Terms and conditions of use',
151
- onPress: handleOpenPolicy('terms'),
152
- disabled: loading
153
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
154
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
155
- name: "account-group",
156
- color: bloomTheme.colors.secondary
157
- }),
158
- title: t('legal.communityGuidelines.title') || 'Community Guidelines',
159
- description: t('legal.communityGuidelines.subtitle') || 'Rules and expectations for our community',
160
- onPress: handleOpenPolicy('community'),
161
- disabled: loading
162
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
163
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
164
- name: "clock",
165
- color: bloomTheme.colors.warning
166
- }),
167
- title: t('legal.dataRetention.title') || 'Data Retention Policy',
168
- description: t('legal.dataRetention.subtitle') || 'How long we keep your data',
169
- onPress: handleOpenPolicy('dataRetention'),
170
- disabled: loading
171
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
172
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
173
- name: "eye",
174
- color: bloomTheme.colors.info
175
- }),
176
- title: t('legal.contentModeration.title') || 'Content Moderation Policy',
177
- description: t('legal.contentModeration.subtitle') || 'How we moderate content',
178
- onPress: handleOpenPolicy('contentModeration'),
179
- disabled: loading
180
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
181
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
182
- name: "heart",
183
- color: bloomTheme.colors.error
184
- }),
185
- title: t('legal.childSafety.title') || 'Child Safety Policy',
186
- description: t('legal.childSafety.subtitle') || 'Protecting minors on our platform',
187
- onPress: handleOpenPolicy('childSafety'),
188
- disabled: loading
189
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
190
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
191
- name: "cookie",
192
- color: bloomTheme.colors.textTertiary
193
- }),
194
- title: t('legal.cookiePolicy.title') || 'Cookie Policy',
195
- description: t('legal.cookiePolicy.subtitle') || 'How we use cookies and similar technologies',
196
- onPress: handleOpenPolicy('cookie'),
197
- disabled: loading
198
- })]
199
- })
200
- })
201
- })]
116
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
117
+ className: "px-screen-margin py-space-16",
118
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
119
+ title: t('legal.policies') || 'Policies & Guidelines',
120
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
121
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
122
+ name: "shield-check",
123
+ color: bloomTheme.colors.success
124
+ }),
125
+ title: t('legal.privacyPolicy.title') || 'Privacy Policy',
126
+ description: t('legal.privacyPolicy.subtitle') || 'How we handle your data',
127
+ onPress: handleOpenPolicy('privacy'),
128
+ disabled: loading
129
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
130
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
131
+ name: "file-document",
132
+ color: bloomTheme.colors.primary
133
+ }),
134
+ title: t('legal.termsOfService.title') || 'Terms of Service',
135
+ description: t('legal.termsOfService.subtitle') || 'Terms and conditions of use',
136
+ onPress: handleOpenPolicy('terms'),
137
+ disabled: loading
138
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
139
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
140
+ name: "account-group",
141
+ color: bloomTheme.colors.secondary
142
+ }),
143
+ title: t('legal.communityGuidelines.title') || 'Community Guidelines',
144
+ description: t('legal.communityGuidelines.subtitle') || 'Rules and expectations for our community',
145
+ onPress: handleOpenPolicy('community'),
146
+ disabled: loading
147
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
148
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
149
+ name: "clock",
150
+ color: bloomTheme.colors.warning
151
+ }),
152
+ title: t('legal.dataRetention.title') || 'Data Retention Policy',
153
+ description: t('legal.dataRetention.subtitle') || 'How long we keep your data',
154
+ onPress: handleOpenPolicy('dataRetention'),
155
+ disabled: loading
156
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
157
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
158
+ name: "eye",
159
+ color: bloomTheme.colors.info
160
+ }),
161
+ title: t('legal.contentModeration.title') || 'Content Moderation Policy',
162
+ description: t('legal.contentModeration.subtitle') || 'How we moderate content',
163
+ onPress: handleOpenPolicy('contentModeration'),
164
+ disabled: loading
165
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
166
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
167
+ name: "heart",
168
+ color: bloomTheme.colors.error
169
+ }),
170
+ title: t('legal.childSafety.title') || 'Child Safety Policy',
171
+ description: t('legal.childSafety.subtitle') || 'Protecting minors on our platform',
172
+ onPress: handleOpenPolicy('childSafety'),
173
+ disabled: loading
174
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
175
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
176
+ name: "cookie",
177
+ color: bloomTheme.colors.textTertiary
178
+ }),
179
+ title: t('legal.cookiePolicy.title') || 'Cookie Policy',
180
+ description: t('legal.cookiePolicy.subtitle') || 'How we use cookies and similar technologies',
181
+ onPress: handleOpenPolicy('cookie'),
182
+ disabled: loading
183
+ })]
184
+ })
202
185
  });
203
186
  };
204
187
  var _default = exports.default = /*#__PURE__*/_react.default.memo(LegalDocumentsScreen);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bloom","_theme","_settingsList","_core","_Header","_interopRequireDefault","_loading","_SettingsIcon","_useI18n","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LOG_COMPONENT","POLICY_URLS","privacy","terms","community","dataRetention","contentModeration","childSafety","cookie","STEP_TO_DOCUMENT","LegalDocumentsScreen","onClose","goBack","initialStep","useI18n","bloomTheme","useTheme","loading","setLoading","useState","documentType","handleOpenPolicy","useCallback","policyKey","url","canOpen","Linking","canOpenURL","openURL","toast","error","logger","component","React","useEffect","getPolicyTitle","key","titles","jsxs","View","className","children","jsx","title","onBack","variant","elevation","Loading","size","color","colors","text","ScrollView","SettingsListGroup","SettingsListItem","icon","SettingsIcon","name","success","description","onPress","disabled","primary","secondary","warning","info","textTertiary","_default","exports","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LegalDocumentsScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAEA,IAAAM,OAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AAA2C,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAO,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAa,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA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D2E,WAAW,EACP3E,CAAC,CAAC,6BAA6B,CAAC,IAC7B,6CACN;YACD4E,OAAO,EAAEvC,gBAAgB,CAAC,QAAQ,CAAE;YACpCwC,QAAQ,EAAE5C;UAAQ,CACrB,CAAC;QAAA,CACa;MAAC,CAClB;IAAC,CACC,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;AAAC,IAAAkD,QAAA,GAAAC,OAAA,CAAArF,OAAA,gBAEakD,cAAK,CAACoC,IAAI,CAAC3D,oBAAoB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bloom","_theme","_settingsList","_core","_useSurfaceHeader","_loading","_SettingsIcon","_useI18n","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LOG_COMPONENT","POLICY_URLS","privacy","terms","community","dataRetention","contentModeration","childSafety","cookie","STEP_TO_DOCUMENT","LegalDocumentsScreen","onClose","goBack","initialStep","useI18n","bloomTheme","useTheme","loading","setLoading","useState","documentType","handleOpenPolicy","useCallback","policyKey","url","canOpen","Linking","canOpenURL","openURL","toast","error","logger","component","React","useEffect","getPolicyTitle","key","titles","useSurfaceHeader","title","jsx","Loading","size","color","colors","text","View","className","children","jsxs","SettingsListGroup","SettingsListItem","icon","SettingsIcon","name","success","description","onPress","disabled","primary","secondary","warning","info","textTertiary","_default","exports","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LegalDocumentsScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAEA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,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18 @@ var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
9
  var _vectorIcons = require("@expo/vector-icons");
10
10
  var _bloom = require("@oxyhq/bloom");
11
+ var _surfaces = require("@oxyhq/bloom/surfaces");
11
12
  var _theme = require("@oxyhq/bloom/theme");
12
13
  var _typography = require("@oxyhq/bloom/typography");
13
14
  var _settingsList = require("@oxyhq/bloom/settings-list");
14
15
  var _core = require("@oxyhq/core");
15
- var _Header = _interopRequireDefault(require("../components/Header.js"));
16
16
  var _ProfileSummaryCard = _interopRequireDefault(require("../components/ProfileSummaryCard.js"));
17
17
  var _SettingsIcon = require("../components/SettingsIcon.js");
18
- var _DeleteAccountModal = _interopRequireDefault(require("../components/modals/DeleteAccountModal.js"));
18
+ var _DeleteAccountModal = require("../components/modals/DeleteAccountModal.js");
19
+ var _ActionSheetSurface = require("../components/surfaces/ActionSheetSurface.js");
19
20
  var _OxyContext = require("../context/OxyContext.js");
20
21
  var _useI18n = require("../hooks/useI18n.js");
22
+ var _useSurfaceHeader = require("../hooks/useSurfaceHeader.js");
21
23
  var _useAccountQueries = require("../hooks/queries/useAccountQueries.js");
22
24
  var _usePaymentQueries = require("../hooks/queries/usePaymentQueries.js");
23
25
  var _useServicesQueries = require("../hooks/queries/useServicesQueries.js");
@@ -59,7 +61,7 @@ const formatRelative = dateString => {
59
61
  * Replaces AccountOverview + AccountSettings + the per-account half of
60
62
  * SessionManagement. Lists ONLY the active user's profile, sessions on this
61
63
  * device, and security/destructive actions for THIS account. Multi-account
62
- * surface lives in the unified `OxyAccountDialog` — keep these concerns separate.
64
+ * surface lives in the unified `OxyAccountDialogScreen` — keep these concerns separate.
63
65
  */
64
66
  const ManageAccountScreen = ({
65
67
  onClose,
@@ -71,6 +73,9 @@ const ManageAccountScreen = ({
71
73
  t,
72
74
  locale
73
75
  } = (0, _useI18n.useI18n)();
76
+ (0, _useSurfaceHeader.useSurfaceHeader)({
77
+ title: t('manageAccount.title') || 'Manage your Oxy Account'
78
+ });
74
79
  const {
75
80
  user: contextUser,
76
81
  isAuthenticated,
@@ -101,17 +106,10 @@ const ManageAccountScreen = ({
101
106
  const {
102
107
  data: deviceSessions,
103
108
  isLoading: deviceSessionsLoading,
104
- refetch: refetchDeviceSessions,
105
- isRefetching: deviceSessionsRefetching
109
+ refetch: refetchDeviceSessions
106
110
  } = (0, _useServicesQueries.useDeviceSessions)({
107
111
  enabled: isAuthenticated && !!activeSessionId
108
112
  });
109
- const signOutDialog = (0, _bloom.useDialogControl)();
110
- const signOutAllDevicesDialog = (0, _bloom.useDialogControl)();
111
- const removeDeviceDialog = (0, _bloom.useDialogControl)();
112
- const downloadDataDialog = (0, _bloom.useDialogControl)();
113
- const deleteAccountDialog = (0, _bloom.useDialogControl)();
114
- const [pendingRemoveDevice, setPendingRemoveDevice] = (0, _react.useState)(null);
115
113
  const [removingDeviceId, setRemovingDeviceId] = (0, _react.useState)(null);
116
114
  const [signingOutAllDevices, setSigningOutAllDevices] = (0, _react.useState)(false);
117
115
  const [signingOut, setSigningOut] = (0, _react.useState)(false);
@@ -124,6 +122,16 @@ const ManageAccountScreen = ({
124
122
  if (signingOut) {
125
123
  return;
126
124
  }
125
+ const confirmed = await _surfaces.surfaces.confirm({
126
+ title: t('common.actions.signOut') || 'Sign out',
127
+ message: t('common.confirms.signOut') || 'Are you sure you want to sign out?',
128
+ confirmLabel: t('common.actions.signOut') || 'Sign out',
129
+ cancelLabel: t('common.cancel') || 'Cancel',
130
+ destructive: true
131
+ });
132
+ if (!confirmed) {
133
+ return;
134
+ }
127
135
  setSigningOut(true);
128
136
  try {
129
137
  await logout();
@@ -138,22 +146,29 @@ const ManageAccountScreen = ({
138
146
  setSigningOut(false);
139
147
  }
140
148
  }, [signingOut, logout, t, onClose]);
141
- const confirmRemoveDevice = (0, _react.useCallback)(device => {
142
- setPendingRemoveDevice(device);
143
- removeDeviceDialog.open();
144
- }, [removeDeviceDialog]);
145
- const handleRemoveDevice = (0, _react.useCallback)(async () => {
146
- if (!pendingRemoveDevice || !activeSessionId) {
149
+ const confirmRemoveDevice = (0, _react.useCallback)(async device => {
150
+ if (!activeSessionId) {
147
151
  return;
148
152
  }
149
- const target = pendingRemoveDevice;
150
- setRemovingDeviceId(target.sessionId);
153
+ const confirmed = await _surfaces.surfaces.confirm({
154
+ title: t('manageAccount.confirms.removeDeviceTitle') || 'Remove device',
155
+ message: t('manageAccount.confirms.removeDevice', {
156
+ name: device.deviceName
157
+ }) || `Sign out from "${device.deviceName}"?`,
158
+ confirmLabel: t('common.remove') || 'Remove',
159
+ cancelLabel: t('common.cancel') || 'Cancel',
160
+ destructive: true
161
+ });
162
+ if (!confirmed) {
163
+ return;
164
+ }
165
+ setRemovingDeviceId(device.sessionId);
151
166
  try {
152
- await oxyServices.logoutSession(activeSessionId, target.sessionId);
167
+ await oxyServices.logoutSession(activeSessionId, device.sessionId);
153
168
  await refetchDeviceSessions();
154
169
  _bloom.toast.success(t('manageAccount.toasts.deviceRemoved', {
155
- name: target.deviceName
156
- }) || `Signed out from ${target.deviceName}`);
170
+ name: device.deviceName
171
+ }) || `Signed out from ${device.deviceName}`);
157
172
  } catch (error) {
158
173
  _core.logger.warn('Remove device failed', {
159
174
  component: 'ManageAccountScreen'
@@ -161,13 +176,25 @@ const ManageAccountScreen = ({
161
176
  _bloom.toast.error(t('manageAccount.toasts.deviceRemoveFailed') || 'Failed to remove device');
162
177
  } finally {
163
178
  setRemovingDeviceId(null);
164
- setPendingRemoveDevice(null);
165
179
  }
166
- }, [pendingRemoveDevice, activeSessionId, oxyServices, refetchDeviceSessions, t]);
180
+ }, [activeSessionId, oxyServices, refetchDeviceSessions, t]);
167
181
  const handleSignOutAllDevices = (0, _react.useCallback)(async () => {
168
182
  if (!activeSessionId || signingOutAllDevices) {
169
183
  return;
170
184
  }
185
+ const otherDeviceCount = (deviceSessions ?? []).filter(device => !device.isCurrent).length;
186
+ const confirmed = await _surfaces.surfaces.confirm({
187
+ title: t('manageAccount.confirms.signOutAllDevicesTitle') || 'Sign out of all other devices',
188
+ message: t('manageAccount.confirms.signOutAllDevices', {
189
+ count: otherDeviceCount
190
+ }) || `End ${otherDeviceCount} other device session(s)? This won't sign you out here.`,
191
+ confirmLabel: t('common.actions.signOut') || 'Sign out',
192
+ cancelLabel: t('common.cancel') || 'Cancel',
193
+ destructive: true
194
+ });
195
+ if (!confirmed) {
196
+ return;
197
+ }
171
198
  setSigningOutAllDevices(true);
172
199
  try {
173
200
  await oxyServices.logoutAllDeviceSessions(activeSessionId);
@@ -181,7 +208,7 @@ const ManageAccountScreen = ({
181
208
  } finally {
182
209
  setSigningOutAllDevices(false);
183
210
  }
184
- }, [activeSessionId, signingOutAllDevices, oxyServices, refetchDeviceSessions, t]);
211
+ }, [activeSessionId, signingOutAllDevices, deviceSessions, oxyServices, refetchDeviceSessions, t]);
185
212
  const performDownload = (0, _react.useCallback)(async format => {
186
213
  if (!user) {
187
214
  _bloom.toast.error(t('accountOverview.items.downloadData.error') || 'Service not available');
@@ -208,78 +235,80 @@ const ManageAccountScreen = ({
208
235
  _bloom.toast.error((error instanceof Error ? error.message : null) || t('accountOverview.items.downloadData.error') || 'Failed to download data');
209
236
  }
210
237
  }, [oxyServices, user, t]);
238
+
239
+ // Runs the actual deletion from inside the delete-account surface; it throws
240
+ // on failure so the surface can surface the error and stay open. Sign-out +
241
+ // close happen in `handleDeleteAccount` once the surface resolves `true`.
211
242
  const handleConfirmDelete = (0, _react.useCallback)(async confirmText => {
212
243
  if (!user) {
213
244
  throw new Error(t('accountOverview.items.deleteAccount.error') || 'Service not available');
214
245
  }
215
246
  await oxyServices.deleteAccount(confirmText);
216
247
  _bloom.toast.success(t('accountOverview.items.deleteAccount.success') || 'Account deleted successfully');
217
- deleteAccountDialog.close();
218
- await logout();
219
- onClose?.();
220
- }, [oxyServices, user, logout, onClose, t, deleteAccountDialog]);
221
- const handleDownloadData = (0, _react.useCallback)(() => {
248
+ }, [oxyServices, user, t]);
249
+ const handleDownloadData = (0, _react.useCallback)(async () => {
222
250
  if (!user) {
223
251
  _bloom.toast.error(t('accountOverview.items.downloadData.error') || 'Service not available');
224
252
  return;
225
253
  }
226
- downloadDataDialog.open();
227
- }, [user, t, downloadDataDialog]);
228
- const handleDeleteAccount = (0, _react.useCallback)(() => {
254
+ const format = await (0, _ActionSheetSurface.presentActionSheet)({
255
+ title: t('accountOverview.items.downloadData.confirmTitle') || 'Download account data',
256
+ message: t('accountOverview.items.downloadData.confirmMessage') || 'Choose the format for your account data export:',
257
+ options: [{
258
+ label: 'JSON',
259
+ value: 'json'
260
+ }, {
261
+ label: 'CSV',
262
+ value: 'csv'
263
+ }],
264
+ cancelLabel: t('common.cancel') || 'Cancel'
265
+ });
266
+ if (format) {
267
+ await performDownload(format);
268
+ }
269
+ }, [user, t, performDownload]);
270
+ const handleDeleteAccount = (0, _react.useCallback)(async () => {
229
271
  if (!user) {
230
272
  _bloom.toast.error(t('accountOverview.items.deleteAccount.error') || 'User not available');
231
273
  return;
232
274
  }
233
- deleteAccountDialog.open();
234
- }, [user, t, deleteAccountDialog]);
275
+ const deleted = await (0, _DeleteAccountModal.presentDeleteAccount)({
276
+ username: user.username || '',
277
+ onDelete: handleConfirmDelete,
278
+ t
279
+ });
280
+ if (deleted) {
281
+ await logout();
282
+ onClose?.();
283
+ }
284
+ }, [user, t, handleConfirmDelete, logout, onClose]);
235
285
  if (!isAuthenticated) {
236
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
237
- className: "flex-1 bg-bg",
238
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
239
- title: t('manageAccount.title') || 'Manage your Oxy Account',
240
- onBack: goBack || onClose,
241
- elevation: "subtle"
242
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
243
- style: styles.center,
286
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
287
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
288
+ className: "items-center py-space-40",
244
289
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
245
290
  className: "text-text font-medium text-base",
246
291
  children: t('common.status.notSignedIn') || 'Not signed in'
247
292
  })
248
- })]
293
+ })
249
294
  });
250
295
  }
251
296
  if (userLoading && !user) {
252
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
253
- className: "flex-1 bg-bg",
254
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
255
- title: t('manageAccount.title') || 'Manage your Oxy Account',
256
- onBack: goBack || onClose,
257
- elevation: "subtle"
258
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
259
- style: styles.center,
297
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
298
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
299
+ className: "items-center py-space-40",
260
300
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
261
301
  color: bloomTheme.colors.primary,
262
302
  size: "large"
263
303
  })
264
- })]
304
+ })
265
305
  });
266
306
  }
267
307
  const deviceRows = deviceSessions ?? [];
268
308
  const otherDevices = deviceRows.filter(d => !d.isCurrent);
269
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
270
- className: "flex-1 bg-bg",
271
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
272
- title: t('manageAccount.title') || 'Manage your Oxy Account',
273
- onBack: goBack || onClose,
274
- elevation: "subtle"
275
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
276
- className: "flex-1",
277
- contentContainerClassName: "px-screen-margin pb-space-24",
278
- refreshControl: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.RefreshControl, {
279
- refreshing: deviceSessionsRefetching,
280
- onRefresh: refetchDeviceSessions,
281
- tintColor: bloomTheme.colors.primary
282
- }),
309
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
310
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
311
+ className: "px-screen-margin pb-space-24",
283
312
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileSummaryCard.default, {
284
313
  displayName: displayName,
285
314
  avatarUri: avatarUri,
@@ -377,7 +406,7 @@ const ManageAccountScreen = ({
377
406
  description: t('manageAccount.sessions.signOutAllSubtitle', {
378
407
  count: otherDevices.length
379
408
  }) || `End ${otherDevices.length} other device session(s)`,
380
- onPress: () => signOutAllDevicesDialog.open(),
409
+ onPress: handleSignOutAllDevices,
381
410
  destructive: true,
382
411
  showChevron: false,
383
412
  disabled: signingOutAllDevices,
@@ -581,7 +610,7 @@ const ManageAccountScreen = ({
581
610
  color: bloomTheme.colors.error
582
611
  }),
583
612
  title: t('manageAccount.signOutOfThisAccount') || 'Sign out of this account',
584
- onPress: () => signOutDialog.open(),
613
+ onPress: handleSignOut,
585
614
  destructive: true,
586
615
  showChevron: false,
587
616
  disabled: signingOut,
@@ -601,66 +630,7 @@ const ManageAccountScreen = ({
601
630
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
602
631
  style: styles.footerSpacer
603
632
  })]
604
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
605
- control: signOutDialog,
606
- title: t('common.actions.signOut') || 'Sign out',
607
- description: t('common.confirms.signOut') || 'Are you sure you want to sign out?',
608
- actions: [{
609
- label: t('common.actions.signOut') || 'Sign out',
610
- color: 'destructive',
611
- onPress: handleSignOut
612
- }, {
613
- label: t('common.cancel') || 'Cancel',
614
- color: 'cancel'
615
- }]
616
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
617
- control: signOutAllDevicesDialog,
618
- title: t('manageAccount.confirms.signOutAllDevicesTitle') || 'Sign out of all other devices',
619
- description: t('manageAccount.confirms.signOutAllDevices', {
620
- count: otherDevices.length
621
- }) || `End ${otherDevices.length} other device session(s)? This won't sign you out here.`,
622
- actions: [{
623
- label: t('common.actions.signOut') || 'Sign out',
624
- color: 'destructive',
625
- onPress: handleSignOutAllDevices
626
- }, {
627
- label: t('common.cancel') || 'Cancel',
628
- color: 'cancel'
629
- }]
630
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
631
- control: removeDeviceDialog,
632
- title: t('manageAccount.confirms.removeDeviceTitle') || 'Remove device',
633
- description: pendingRemoveDevice ? t('manageAccount.confirms.removeDevice', {
634
- name: pendingRemoveDevice.deviceName
635
- }) || `Sign out from "${pendingRemoveDevice.deviceName}"?` : '',
636
- actions: [{
637
- label: t('common.remove') || 'Remove',
638
- color: 'destructive',
639
- onPress: handleRemoveDevice
640
- }, {
641
- label: t('common.cancel') || 'Cancel',
642
- color: 'cancel'
643
- }]
644
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
645
- control: downloadDataDialog,
646
- title: t('accountOverview.items.downloadData.confirmTitle') || 'Download account data',
647
- description: t('accountOverview.items.downloadData.confirmMessage') || 'Choose the format for your account data export:',
648
- actions: [{
649
- label: 'JSON',
650
- onPress: () => performDownload('json')
651
- }, {
652
- label: 'CSV',
653
- onPress: () => performDownload('csv')
654
- }, {
655
- label: t('common.cancel') || 'Cancel',
656
- color: 'cancel'
657
- }]
658
- }), user ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteAccountModal.default, {
659
- control: deleteAccountDialog,
660
- username: user.username || '',
661
- onDelete: handleConfirmDelete,
662
- t: t
663
- }) : null]
633
+ })
664
634
  });
665
635
  };
666
636
 
@@ -669,11 +639,6 @@ const ManageAccountScreen = ({
669
639
  // spacing, radius, and typography roles live on Bloom components + NativeWind
670
640
  // token classes.
671
641
  const styles = _reactNative.StyleSheet.create({
672
- center: {
673
- flex: 1,
674
- alignItems: 'center',
675
- justifyContent: 'center'
676
- },
677
642
  footerSpacer: {
678
643
  height: 24
679
644
  }