@oxyhq/services 10.5.0 → 11.1.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 (427) hide show
  1. package/lib/commonjs/index.js.map +1 -1
  2. package/lib/commonjs/ui/components/AccountMenu.js +9 -5
  3. package/lib/commonjs/ui/components/AccountMenu.js.map +1 -1
  4. package/lib/commonjs/ui/components/AnotherDeviceQR.js +51 -56
  5. package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +1 -1
  6. package/lib/commonjs/ui/components/BottomSheetRouter.js +1 -0
  7. package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
  8. package/lib/commonjs/ui/components/FollowButton.js +18 -5
  9. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  10. package/lib/commonjs/ui/components/OxyProvider.js +23 -7
  11. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  12. package/lib/commonjs/ui/components/SignInModal.js +20 -1
  13. package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
  14. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +19 -9
  15. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  16. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +4 -2
  17. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
  18. package/lib/commonjs/ui/context/OxyContext.js +153 -19
  19. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  20. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +6 -17
  21. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  22. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +5 -5
  23. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
  24. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +38 -38
  25. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  26. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +2 -2
  27. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  28. package/lib/commonjs/ui/hooks/queries/queryKeys.js +3 -3
  29. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  30. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +1 -1
  31. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  32. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +16 -12
  33. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  34. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +10 -6
  35. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  36. package/lib/commonjs/ui/hooks/queryClient.js +6 -5
  37. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
  38. package/lib/commonjs/ui/hooks/useOxyAuthSession.js +40 -2
  39. package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +1 -1
  40. package/lib/commonjs/ui/hooks/useProfileEditing.js +21 -0
  41. package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
  42. package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
  43. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  44. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +100 -108
  45. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  46. package/lib/commonjs/ui/screens/AppInfoScreen.js +227 -273
  47. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  48. package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -4
  49. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  50. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +20 -37
  51. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  52. package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +89 -201
  53. package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
  54. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +80 -208
  55. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  56. package/lib/commonjs/ui/screens/FAQScreen.js +56 -208
  57. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  58. package/lib/commonjs/ui/screens/FeedbackScreen.js +303 -352
  59. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  60. package/lib/commonjs/ui/screens/FileManagementScreen.js +20 -20
  61. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  62. package/lib/commonjs/ui/screens/HelpSupportScreen.js +77 -89
  63. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/HistoryViewScreen.js +43 -58
  65. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +67 -90
  67. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  68. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +77 -177
  69. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +113 -107
  71. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/ManageAccountScreen.js +55 -114
  73. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/NotificationsScreen.js +67 -85
  75. package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/OxyAuthScreen.js +71 -135
  77. package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
  78. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +15 -9
  79. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/PreferencesScreen.js +65 -83
  81. package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +378 -1023
  83. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +294 -242
  85. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/ProfileScreen.js +192 -305
  87. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +57 -97
  89. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +41 -41
  91. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/UserLinksScreen.js +17 -24
  93. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  94. package/lib/commonjs/ui/screens/UserListScreen.js +83 -214
  95. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  96. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +115 -77
  97. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  98. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +70 -57
  99. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  100. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +136 -332
  101. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  102. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +47 -137
  103. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  104. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +182 -115
  105. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  106. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +138 -214
  107. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  108. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +54 -92
  109. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  110. package/lib/commonjs/ui/utils/activeAuthuser.js +15 -9
  111. package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -1
  112. package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
  113. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  114. package/lib/module/index.js.map +1 -1
  115. package/lib/module/ui/components/AccountMenu.js +10 -6
  116. package/lib/module/ui/components/AccountMenu.js.map +1 -1
  117. package/lib/module/ui/components/AnotherDeviceQR.js +50 -56
  118. package/lib/module/ui/components/AnotherDeviceQR.js.map +1 -1
  119. package/lib/module/ui/components/BottomSheetRouter.js +2 -1
  120. package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
  121. package/lib/module/ui/components/FollowButton.js +18 -5
  122. package/lib/module/ui/components/FollowButton.js.map +1 -1
  123. package/lib/module/ui/components/OxyProvider.js +23 -7
  124. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  125. package/lib/module/ui/components/SignInModal.js +20 -1
  126. package/lib/module/ui/components/SignInModal.js.map +1 -1
  127. package/lib/module/ui/components/fileManagement/FileViewer.js +19 -9
  128. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  129. package/lib/module/ui/components/fileManagement/UploadPreview.js +4 -2
  130. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  131. package/lib/module/ui/context/OxyContext.js +154 -20
  132. package/lib/module/ui/context/OxyContext.js.map +1 -1
  133. package/lib/module/ui/context/hooks/useAuthOperations.js +6 -17
  134. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  135. package/lib/module/ui/hooks/mutations/mutationFactory.js +5 -5
  136. package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
  137. package/lib/module/ui/hooks/mutations/useAccountMutations.js +38 -38
  138. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  139. package/lib/module/ui/hooks/mutations/useServicesMutations.js +2 -2
  140. package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  141. package/lib/module/ui/hooks/queries/queryKeys.js +3 -3
  142. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  143. package/lib/module/ui/hooks/queries/useAccountQueries.js +1 -1
  144. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  145. package/lib/module/ui/hooks/queries/usePaymentQueries.js +16 -12
  146. package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  147. package/lib/module/ui/hooks/queries/useServicesQueries.js +9 -6
  148. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  149. package/lib/module/ui/hooks/queryClient.js +6 -5
  150. package/lib/module/ui/hooks/queryClient.js.map +1 -1
  151. package/lib/module/ui/hooks/useOxyAuthSession.js +40 -2
  152. package/lib/module/ui/hooks/useOxyAuthSession.js.map +1 -1
  153. package/lib/module/ui/hooks/useProfileEditing.js +21 -0
  154. package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
  155. package/lib/module/ui/hooks/useSessionManagement.js +4 -3
  156. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  157. package/lib/module/ui/screens/AccountVerificationScreen.js +101 -109
  158. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  159. package/lib/module/ui/screens/AppInfoScreen.js +228 -275
  160. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  161. package/lib/module/ui/screens/AvatarCropScreen.js +10 -4
  162. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  163. package/lib/module/ui/screens/ConnectedAppsScreen.js +19 -39
  164. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  165. package/lib/module/ui/screens/CreateManagedAccountScreen.js +90 -202
  166. package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
  167. package/lib/module/ui/screens/EditProfileFieldScreen.js +77 -205
  168. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  169. package/lib/module/ui/screens/FAQScreen.js +55 -207
  170. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  171. package/lib/module/ui/screens/FeedbackScreen.js +301 -350
  172. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  173. package/lib/module/ui/screens/FileManagementScreen.js +20 -20
  174. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  175. package/lib/module/ui/screens/HelpSupportScreen.js +78 -90
  176. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  177. package/lib/module/ui/screens/HistoryViewScreen.js +44 -59
  178. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  179. package/lib/module/ui/screens/LanguageSelectorScreen.js +68 -91
  180. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  181. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +75 -177
  182. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  183. package/lib/module/ui/screens/LegalDocumentsScreen.js +116 -108
  184. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  185. package/lib/module/ui/screens/ManageAccountScreen.js +52 -112
  186. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  187. package/lib/module/ui/screens/NotificationsScreen.js +68 -86
  188. package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
  189. package/lib/module/ui/screens/OxyAuthScreen.js +69 -134
  190. package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
  191. package/lib/module/ui/screens/PaymentGatewayScreen.js +16 -10
  192. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  193. package/lib/module/ui/screens/PreferencesScreen.js +66 -84
  194. package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
  195. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +366 -1012
  196. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  197. package/lib/module/ui/screens/PrivacySettingsScreen.js +295 -243
  198. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  199. package/lib/module/ui/screens/ProfileScreen.js +189 -302
  200. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  201. package/lib/module/ui/screens/SavesCollectionsScreen.js +58 -98
  202. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  203. package/lib/module/ui/screens/SearchSettingsScreen.js +42 -42
  204. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  205. package/lib/module/ui/screens/UserLinksScreen.js +18 -25
  206. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  207. package/lib/module/ui/screens/UserListScreen.js +81 -212
  208. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  209. package/lib/module/ui/screens/WelcomeNewUserScreen.js +114 -76
  210. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  211. package/lib/module/ui/screens/trust/TrustAboutScreen.js +69 -57
  212. package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  213. package/lib/module/ui/screens/trust/TrustCenterScreen.js +135 -332
  214. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  215. package/lib/module/ui/screens/trust/TrustFAQScreen.js +48 -138
  216. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  217. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +184 -117
  218. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  219. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +132 -208
  220. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  221. package/lib/module/ui/screens/trust/TrustRulesScreen.js +58 -94
  222. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  223. package/lib/module/ui/utils/activeAuthuser.js +15 -9
  224. package/lib/module/ui/utils/activeAuthuser.js.map +1 -1
  225. package/lib/module/ui/utils/avatarUtils.js +1 -1
  226. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  227. package/lib/typescript/commonjs/index.d.ts +1 -0
  228. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +2 -0
  230. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +12 -2
  232. package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +3 -2
  236. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
  239. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +34 -0
  241. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +3 -0
  244. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +3 -3
  246. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +22 -0
  250. package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +3 -0
  252. package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +2 -1
  254. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -1
  288. package/lib/typescript/module/index.d.ts +1 -0
  289. package/lib/typescript/module/index.d.ts.map +1 -1
  290. package/lib/typescript/module/ui/components/AccountMenu.d.ts +2 -0
  291. package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -1
  292. package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +12 -2
  293. package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +1 -1
  294. package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
  295. package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
  296. package/lib/typescript/module/ui/components/OxyProvider.d.ts +3 -2
  297. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  298. package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
  299. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
  300. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
  301. package/lib/typescript/module/ui/context/OxyContext.d.ts +34 -0
  302. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  303. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  304. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +3 -0
  305. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  306. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +3 -3
  307. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  308. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  309. package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
  310. package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +22 -0
  311. package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
  312. package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +3 -0
  313. package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
  314. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +2 -1
  315. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
  316. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  317. package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
  318. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  319. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  320. package/lib/typescript/module/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
  321. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  322. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  323. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  324. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  325. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  326. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  327. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  328. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  329. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  330. package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
  331. package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
  332. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  333. package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
  334. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  335. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  336. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  337. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  338. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  339. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  340. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  341. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  342. package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  343. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  344. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  345. package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  346. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  347. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  348. package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -1
  349. package/lib/typescript/types/expo-haptics.d.ts +42 -0
  350. package/package.json +24 -31
  351. package/src/index.ts +1 -0
  352. package/src/types/expo-haptics.d.ts +42 -0
  353. package/src/ui/components/AccountMenu.tsx +11 -5
  354. package/src/ui/components/AnotherDeviceQR.tsx +53 -45
  355. package/src/ui/components/BottomSheetRouter.tsx +2 -1
  356. package/src/ui/components/FollowButton.tsx +24 -5
  357. package/src/ui/components/OxyProvider.tsx +22 -8
  358. package/src/ui/components/SignInModal.tsx +21 -2
  359. package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +1 -1
  360. package/src/ui/components/fileManagement/FileViewer.tsx +9 -9
  361. package/src/ui/components/fileManagement/UploadPreview.tsx +2 -2
  362. package/src/ui/context/OxyContext.tsx +178 -21
  363. package/src/ui/context/hooks/useAuthOperations.ts +6 -17
  364. package/src/ui/hooks/mutations/mutationFactory.ts +5 -5
  365. package/src/ui/hooks/mutations/useAccountMutations.ts +38 -38
  366. package/src/ui/hooks/mutations/useServicesMutations.ts +2 -2
  367. package/src/ui/hooks/queries/queryKeys.ts +6 -3
  368. package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
  369. package/src/ui/hooks/queries/usePaymentQueries.ts +12 -12
  370. package/src/ui/hooks/queries/useServicesQueries.ts +9 -6
  371. package/src/ui/hooks/queryClient.ts +5 -5
  372. package/src/ui/hooks/useOxyAuthSession.ts +76 -2
  373. package/src/ui/hooks/useProfileEditing.ts +24 -0
  374. package/src/ui/hooks/useSessionManagement.ts +9 -6
  375. package/src/ui/screens/AccountVerificationScreen.tsx +101 -113
  376. package/src/ui/screens/AppInfoScreen.tsx +200 -238
  377. package/src/ui/screens/AvatarCropScreen.tsx +17 -4
  378. package/src/ui/screens/ConnectedAppsScreen.tsx +16 -34
  379. package/src/ui/screens/CreateManagedAccountScreen.tsx +94 -170
  380. package/src/ui/screens/EditProfileFieldScreen.tsx +77 -190
  381. package/src/ui/screens/FAQScreen.tsx +77 -208
  382. package/src/ui/screens/FeedbackScreen.tsx +330 -239
  383. package/src/ui/screens/FileManagementScreen.tsx +20 -20
  384. package/src/ui/screens/HelpSupportScreen.tsx +67 -82
  385. package/src/ui/screens/HistoryViewScreen.tsx +32 -38
  386. package/src/ui/screens/LanguageSelectorScreen.tsx +79 -93
  387. package/src/ui/screens/LearnMoreUsernamesScreen.tsx +81 -164
  388. package/src/ui/screens/LegalDocumentsScreen.tsx +184 -123
  389. package/src/ui/screens/ManageAccountScreen.tsx +48 -114
  390. package/src/ui/screens/NotificationsScreen.tsx +107 -106
  391. package/src/ui/screens/OxyAuthScreen.tsx +76 -109
  392. package/src/ui/screens/PaymentGatewayScreen.tsx +16 -7
  393. package/src/ui/screens/PreferencesScreen.tsx +96 -116
  394. package/src/ui/screens/PremiumSubscriptionScreen.tsx +419 -872
  395. package/src/ui/screens/PrivacySettingsScreen.tsx +203 -185
  396. package/src/ui/screens/ProfileScreen.tsx +158 -200
  397. package/src/ui/screens/SavesCollectionsScreen.tsx +78 -125
  398. package/src/ui/screens/SearchSettingsScreen.tsx +52 -41
  399. package/src/ui/screens/UserLinksScreen.tsx +18 -25
  400. package/src/ui/screens/UserListScreen.tsx +95 -188
  401. package/src/ui/screens/WelcomeNewUserScreen.tsx +109 -36
  402. package/src/ui/screens/trust/TrustAboutScreen.tsx +52 -41
  403. package/src/ui/screens/trust/TrustCenterScreen.tsx +184 -222
  404. package/src/ui/screens/trust/TrustFAQScreen.tsx +64 -124
  405. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +190 -67
  406. package/src/ui/screens/trust/TrustRewardsScreen.tsx +147 -182
  407. package/src/ui/screens/trust/TrustRulesScreen.tsx +77 -50
  408. package/src/ui/utils/activeAuthuser.ts +15 -9
  409. package/src/ui/utils/avatarUtils.ts +1 -1
  410. package/lib/commonjs/ui/components/feedback/FormInput.js +0 -72
  411. package/lib/commonjs/ui/components/feedback/FormInput.js.map +0 -1
  412. package/lib/commonjs/ui/components/feedback/feedbackStyles.js +0 -261
  413. package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +0 -1
  414. package/lib/module/ui/components/feedback/FormInput.js +0 -67
  415. package/lib/module/ui/components/feedback/FormInput.js.map +0 -1
  416. package/lib/module/ui/components/feedback/feedbackStyles.js +0 -256
  417. package/lib/module/ui/components/feedback/feedbackStyles.js.map +0 -1
  418. package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts +0 -20
  419. package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts.map +0 -1
  420. package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts +0 -279
  421. package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
  422. package/lib/typescript/module/ui/components/feedback/FormInput.d.ts +0 -20
  423. package/lib/typescript/module/ui/components/feedback/FormInput.d.ts.map +0 -1
  424. package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts +0 -279
  425. package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
  426. package/src/ui/components/feedback/FormInput.tsx +0 -84
  427. package/src/ui/components/feedback/feedbackStyles.ts +0 -246
@@ -10,20 +10,27 @@ var _theme = require("@oxyhq/bloom/theme");
10
10
  var _core = require("@oxyhq/core");
11
11
  var _vectorIcons = require("@expo/vector-icons");
12
12
  var _bloom = require("@oxyhq/bloom");
13
- var _Header = _interopRequireDefault(require("../components/Header.js"));
13
+ var _typography = require("@oxyhq/bloom/typography");
14
+ var _searchInput = require("@oxyhq/bloom/search-input");
14
15
  var _settingsList = require("@oxyhq/bloom/settings-list");
16
+ var _Header = _interopRequireDefault(require("../components/Header.js"));
15
17
  var _useI18n = require("../hooks/useI18n.js");
16
18
  var _OxyContext = require("../context/OxyContext.js");
17
19
  var _jsxRuntime = require("react/jsx-runtime");
18
20
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
21
  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); }
22
+ // Size (in dp) of the circular flag chip rendered as each row's leading icon.
23
+ const FLAG_CHIP_SIZE = 40;
24
+ // Selected-row check indicator size (dp).
25
+ const CHECK_ICON_SIZE = 24;
26
+
20
27
  /**
21
28
  * LanguageSelectorScreen - Optimized for performance
22
- *
29
+ *
23
30
  * Performance optimizations:
24
- * - useMemo for language items to prevent recreation on every render
31
+ * - useMemo for the filtered language list to prevent recreation on every render
25
32
  * - useCallback for handlers to prevent unnecessary re-renders
26
- * - Memoized current language section
33
+ * - Memoized component to prevent unnecessary re-renders
27
34
  */
28
35
  const LanguageSelectorScreen = ({
29
36
  goBack,
@@ -44,6 +51,7 @@ const LanguageSelectorScreen = ({
44
51
  const bloomTheme = (0, _theme.useTheme)();
45
52
  const normalizedTheme = (0, _core.normalizeTheme)(theme);
46
53
  const [isLoading, setIsLoading] = (0, _react.useState)(false);
54
+ const [query, setQuery] = (0, _react.useState)('');
47
55
 
48
56
  // Memoize the language select handler to prevent recreation on every render
49
57
  const handleLanguageSelect = (0, _react.useCallback)(async languageId => {
@@ -95,35 +103,16 @@ const LanguageSelectorScreen = ({
95
103
  }
96
104
  }, [currentLanguage, isLoading, isAuthenticated, user?.id, oxyServices, setLanguage, t, onClose, goBack]);
97
105
 
98
- // Memoize language items to prevent recreation on every render
99
- const languageItems = (0, _react.useMemo)(() => _core.SUPPORTED_LANGUAGES.map(language => {
100
- const isSelected = currentLanguage === language.id;
101
- return {
102
- id: language.id,
103
- title: language.name,
104
- description: language.nativeName,
105
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
106
- style: [styles.languageFlag, {
107
- backgroundColor: `${language.color}15`
108
- }],
109
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
110
- style: styles.flagEmoji,
111
- children: language.flag
112
- })
113
- }),
114
- onPress: () => handleLanguageSelect(language.id),
115
- rightElement: isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
116
- name: "checkmark-circle",
117
- size: 24,
118
- color: bloomTheme.colors.primary
119
- }) : undefined,
120
- showChevron: false
121
- };
122
- }), [currentLanguage, handleLanguageSelect, bloomTheme]);
106
+ // Filter the supported languages by the search query (name + native name).
107
+ const filteredLanguages = (0, _react.useMemo)(() => {
108
+ const normalized = query.trim().toLowerCase();
109
+ if (!normalized) {
110
+ return _core.SUPPORTED_LANGUAGES;
111
+ }
112
+ return _core.SUPPORTED_LANGUAGES.filter(language => language.name.toLowerCase().includes(normalized) || language.nativeName.toLowerCase().includes(normalized));
113
+ }, [query]);
123
114
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
124
- style: [styles.container, {
125
- backgroundColor: bloomTheme.colors.background
126
- }],
115
+ className: "flex-1 bg-bg",
127
116
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
128
117
  title: "",
129
118
  subtitle: "",
@@ -132,85 +121,73 @@ const LanguageSelectorScreen = ({
132
121
  variant: "minimal",
133
122
  elevation: "none"
134
123
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
135
- style: styles.content,
136
- contentContainerStyle: styles.contentContainer,
124
+ className: "flex-1",
125
+ contentContainerClassName: "px-screen-margin pt-space-24 pb-space-24",
137
126
  showsVerticalScrollIndicator: false,
138
127
  removeClippedSubviews: true,
128
+ keyboardShouldPersistTaps: "handled",
139
129
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
140
- style: styles.titleContainer,
141
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
142
- style: [styles.bigTitle, {
143
- color: bloomTheme.colors.text
144
- }],
130
+ className: "mb-space-16",
131
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H1, {
132
+ className: "text-text",
133
+ style: styles.bigTitle,
145
134
  children: t('language.title')
146
- }), t('language.subtitle') && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
147
- style: [styles.bigSubtitle, {
148
- color: bloomTheme.colors.textSecondary
149
- }],
135
+ }), t('language.subtitle') ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
136
+ className: "text-text-secondary mt-space-2",
137
+ style: styles.bigSubtitle,
150
138
  children: t('language.subtitle')
151
- })]
139
+ }) : null]
152
140
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
153
- style: styles.sectionContainer,
154
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
155
- style: [styles.materialCard, {
156
- backgroundColor: bloomTheme.colors.card
157
- }],
158
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
159
- children: languageItems.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
160
- icon: item.icon,
161
- title: item.title,
162
- description: item.description,
163
- onPress: item.onPress,
164
- rightElement: item.rightElement,
165
- showChevron: false
166
- }, item.id))
167
- })
141
+ className: "mb-space-16",
142
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_searchInput.SearchInput, {
143
+ value: query,
144
+ onChangeText: setQuery,
145
+ onClearText: () => setQuery(''),
146
+ label: t('language.search') || 'Search languages'
147
+ })
148
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
149
+ children: filteredLanguages.map(language => {
150
+ const isSelected = currentLanguage === language.id;
151
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
152
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
153
+ className: "bg-fill-secondary items-center justify-center",
154
+ style: styles.languageFlag,
155
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
156
+ style: styles.flagEmoji,
157
+ children: language.flag
158
+ })
159
+ }),
160
+ title: language.name,
161
+ description: language.nativeName,
162
+ onPress: () => handleLanguageSelect(language.id),
163
+ rightElement: isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
164
+ name: "checkmark-circle",
165
+ size: CHECK_ICON_SIZE,
166
+ color: bloomTheme.colors.primary
167
+ }) : undefined,
168
+ showChevron: false
169
+ }, language.id);
168
170
  })
169
171
  })]
170
172
  })]
171
173
  });
172
174
  };
175
+
176
+ // StyleSheet retained ONLY for measured layout (sizes / line metrics) — no colors.
173
177
  const styles = _reactNative.StyleSheet.create({
174
- container: {
175
- flex: 1
176
- },
177
- content: {
178
- flex: 1
179
- },
180
- contentContainer: {
181
- padding: 16,
182
- paddingTop: 24
183
- },
184
- titleContainer: {
185
- marginBottom: 32,
186
- paddingTop: 0
187
- },
188
178
  bigTitle: {
189
179
  fontSize: 34,
190
- fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
191
180
  lineHeight: 40,
192
- marginBottom: 8,
193
181
  letterSpacing: -0.5
194
182
  },
195
183
  bigSubtitle: {
196
184
  fontSize: 16,
197
- lineHeight: 22,
198
- opacity: 0.7,
199
- marginTop: 4
200
- },
201
- sectionContainer: {
202
- marginBottom: 8
203
- },
204
- materialCard: {
205
- borderRadius: 12,
206
- overflow: 'hidden'
185
+ lineHeight: 22
207
186
  },
208
187
  languageFlag: {
209
- width: 40,
210
- height: 40,
211
- borderRadius: 20,
212
- alignItems: 'center',
213
- justifyContent: 'center'
188
+ width: FLAG_CHIP_SIZE,
189
+ height: FLAG_CHIP_SIZE,
190
+ borderRadius: FLAG_CHIP_SIZE / 2
214
191
  },
215
192
  flagEmoji: {
216
193
  fontSize: 20
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_theme","_core","_vectorIcons","_bloom","_Header","_interopRequireDefault","_settingsList","_useI18n","_OxyContext","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LanguageSelectorScreen","goBack","onClose","theme","user","currentLanguage","setLanguage","oxyServices","isAuthenticated","useOxy","useI18n","bloomTheme","useTheme","normalizedTheme","normalizeTheme","isLoading","setIsLoading","useState","handleLanguageSelect","useCallback","languageId","serverSyncFailed","id","updateProfile","language","__DEV__","console","warn","Error","message","selectedLang","SUPPORTED_LANGUAGES","find","lang","toast","success","name","error","languageItems","useMemo","map","isSelected","title","description","nativeName","icon","jsx","View","style","styles","languageFlag","backgroundColor","color","children","Text","flagEmoji","flag","onPress","rightElement","Ionicons","size","colors","primary","undefined","showChevron","jsxs","container","background","subtitle","onBack","variant","elevation","ScrollView","content","contentContainerStyle","contentContainer","showsVerticalScrollIndicator","removeClippedSubviews","titleContainer","bigTitle","text","bigSubtitle","textSecondary","sectionContainer","materialCard","card","SettingsListGroup","item","SettingsListItem","StyleSheet","create","flex","padding","paddingTop","marginBottom","fontSize","fontWeight","Platform","OS","lineHeight","letterSpacing","opacity","marginTop","borderRadius","overflow","width","height","alignItems","justifyContent","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LanguageSelectorScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAA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I,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDrD,SAAS,EAAE;IACPwC,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;;AAEF;AAAA,IAAAc,QAAA,GAAAC,OAAA,CAAA/H,OAAA,gBACegI,cAAK,CAACC,IAAI,CAAChH,sBAAsB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_theme","_core","_vectorIcons","_bloom","_typography","_searchInput","_settingsList","_Header","_interopRequireDefault","_useI18n","_OxyContext","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FLAG_CHIP_SIZE","CHECK_ICON_SIZE","LanguageSelectorScreen","goBack","onClose","theme","user","currentLanguage","setLanguage","oxyServices","isAuthenticated","useOxy","useI18n","bloomTheme","useTheme","normalizedTheme","normalizeTheme","isLoading","setIsLoading","useState","query","setQuery","handleLanguageSelect","useCallback","languageId","serverSyncFailed","id","updateProfile","language","__DEV__","console","warn","Error","message","selectedLang","SUPPORTED_LANGUAGES","find","lang","toast","success","name","error","filteredLanguages","useMemo","normalized","trim","toLowerCase","filter","includes","nativeName","jsxs","View","className","children","jsx","title","subtitle","onBack","variant","elevation","ScrollView","contentContainerClassName","showsVerticalScrollIndicator","removeClippedSubviews","keyboardShouldPersistTaps","H1","style","styles","bigTitle","Text","bigSubtitle","SearchInput","value","onChangeText","onClearText","label","SettingsListGroup","map","isSelected","SettingsListItem","icon","languageFlag","flagEmoji","flag","description","onPress","rightElement","Ionicons","size","color","colors","primary","undefined","showChevron","StyleSheet","create","fontSize","lineHeight","letterSpacing","width","height","borderRadius","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LanguageSelectorScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IA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K;YACrB4C,WAAW,EAAExD,QAAQ,CAACqB,UAAW;YACjCoC,OAAO,EAAEA,CAAA,KAAM/D,oBAAoB,CAACM,QAAQ,CAACF,EAAE,CAAE;YACjD4D,YAAY,EACRR,UAAU,gBACN,IAAAlG,WAAA,CAAA0E,GAAA,EAACnF,YAAA,CAAAoH,QAAQ;cACL/C,IAAI,EAAC,kBAAkB;cACvBgD,IAAI,EAAEvF,eAAgB;cACtBwF,KAAK,EAAE5E,UAAU,CAAC6E,MAAM,CAACC;YAAQ,CACpC,CAAC,GACFC,SACP;YACDC,WAAW,EAAE;UAAM,GArBdjE,QAAQ,CAACF,EAsBjB,CAAC;QAEV,CAAC;MAAC,CACa,CAAC;IAAA,CACZ,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;;AAED;AACA,MAAMyC,MAAM,GAAG2B,uBAAU,CAACC,MAAM,CAAC;EAC7B3B,QAAQ,EAAE;IACN4B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,CAAC;EACpB,CAAC;EACD5B,WAAW,EAAE;IACT0B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDhB,YAAY,EAAE;IACVkB,KAAK,EAAEnG,cAAc;IACrBoG,MAAM,EAAEpG,cAAc;IACtBqG,YAAY,EAAErG,cAAc,GAAG;EACnC,CAAC;EACDkF,SAAS,EAAE;IACPc,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;;AAEF;AAAA,IAAAM,QAAA,GAAAC,OAAA,CAAAxH,OAAA,gBACeyH,cAAK,CAACC,IAAI,CAACvG,sBAAsB,CAAC","ignoreList":[]}
@@ -6,227 +6,127 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
- var _vectorIcons = require("@expo/vector-icons");
10
9
  var _theme = require("@oxyhq/bloom/theme");
10
+ var _typography = require("@oxyhq/bloom/typography");
11
+ var _iconCircle = require("@oxyhq/bloom/icon-circle");
12
+ var _accordion = require("@oxyhq/bloom/accordion");
13
+ var Icons = _interopRequireWildcard(require("@oxyhq/bloom/icons"));
14
+ var _Header = _interopRequireDefault(require("../components/Header.js"));
11
15
  var _useI18n = require("../hooks/useI18n.js");
12
16
  var _jsxRuntime = require("react/jsx-runtime");
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
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); }
13
19
  const INFO_SECTIONS = [{
14
20
  id: 'what',
15
21
  titleKey: 'learnMoreUsernames.sections.what.title',
16
22
  contentKey: 'learnMoreUsernames.sections.what.content',
17
- icon: 'at-outline'
23
+ Icon: Icons.At_Stroke2_Corner0_Rounded
18
24
  }, {
19
25
  id: 'rules',
20
26
  titleKey: 'learnMoreUsernames.sections.rules.title',
21
27
  contentKey: 'learnMoreUsernames.sections.rules.content',
22
- icon: 'list-outline'
28
+ Icon: Icons.BulletList_Stroke2_Corner0_Rounded
23
29
  }, {
24
30
  id: 'unique',
25
31
  titleKey: 'learnMoreUsernames.sections.unique.title',
26
32
  contentKey: 'learnMoreUsernames.sections.unique.content',
27
- icon: 'finger-print-outline'
33
+ Icon: Icons.Key_Stroke2_Corner2_Rounded
28
34
  }, {
29
35
  id: 'change',
30
36
  titleKey: 'learnMoreUsernames.sections.change.title',
31
37
  contentKey: 'learnMoreUsernames.sections.change.content',
32
- icon: 'refresh-outline'
38
+ Icon: Icons.ArrowRotateClockwise_Stroke2_Corner0_Rounded
33
39
  }, {
34
40
  id: 'tips',
35
41
  titleKey: 'learnMoreUsernames.sections.tips.title',
36
42
  contentKey: 'learnMoreUsernames.sections.tips.content',
37
- icon: 'bulb-outline'
43
+ Icon: Icons.Sparkle_Stroke2_Corner0_Rounded
38
44
  }];
39
45
  const LearnMoreUsernamesScreen = ({
40
- theme
46
+ onClose,
47
+ goBack
41
48
  }) => {
42
49
  const bloomTheme = (0, _theme.useTheme)();
43
50
  const {
44
51
  t
45
52
  } = (0, _useI18n.useI18n)();
46
- const [expandedIds, setExpandedIds] = (0, _react.useState)(new Set(['what'])); // Start with first section expanded
47
-
48
- const toggleExpanded = (0, _react.useCallback)(id => {
49
- setExpandedIds(prev => {
50
- const next = new Set(prev);
51
- if (next.has(id)) {
52
- next.delete(id);
53
- } else {
54
- next.add(id);
55
- }
56
- return next;
57
- });
53
+ // Start with the first section expanded.
54
+ const [expandedIds, setExpandedIds] = (0, _react.useState)(['what']);
55
+ const handleAccordionChange = (0, _react.useCallback)(value => {
56
+ if (Array.isArray(value)) {
57
+ setExpandedIds(value);
58
+ } else if (value == null) {
59
+ setExpandedIds([]);
60
+ } else {
61
+ setExpandedIds([value]);
62
+ }
58
63
  }, []);
59
- const styles = (0, _react.useMemo)(() => createStyles(), []);
60
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
61
- style: [styles.container, {
62
- backgroundColor: bloomTheme.colors.background
63
- }],
64
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
65
- style: styles.content,
64
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
65
+ className: "flex-1 bg-bg",
66
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
67
+ title: t('learnMoreUsernames.introTitle'),
68
+ onBack: goBack || onClose,
69
+ variant: "minimal",
70
+ elevation: "subtle"
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
72
+ className: "flex-1 px-screen-margin",
66
73
  showsVerticalScrollIndicator: false,
67
- contentContainerStyle: styles.contentContainer,
74
+ contentContainerClassName: "pb-space-32",
68
75
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
69
- style: styles.introSection,
70
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
71
- style: [styles.introIcon, {
72
- backgroundColor: `${bloomTheme.colors.primary}15`
73
- }],
74
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
75
- name: "at",
76
- size: 32,
77
- color: bloomTheme.colors.primary
78
- })
79
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
80
- style: [styles.introTitle, {
81
- color: bloomTheme.colors.text
82
- }],
83
- children: t('learnMoreUsernames.introTitle')
84
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
85
- style: [styles.introText, {
86
- color: bloomTheme.colors.textSecondary
87
- }],
76
+ className: "items-center py-space-24 gap-space-12",
77
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconCircle.IconCircle, {
78
+ icon: Icons.At_Stroke2_Corner0_Rounded
79
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
80
+ className: "font-sans text-body text-text-secondary text-center",
88
81
  children: t('learnMoreUsernames.introText')
89
82
  })]
90
- }), INFO_SECTIONS.map((section, index) => {
91
- const isExpanded = expandedIds.has(section.id);
92
- const sectionTitle = t(section.titleKey);
93
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
94
- style: [styles.section, {
95
- backgroundColor: bloomTheme.colors.backgroundSecondary,
96
- borderColor: bloomTheme.colors.border
97
- }, index === 0 && styles.sectionFirst],
98
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
99
- style: styles.sectionHeader,
100
- onPress: () => toggleExpanded(section.id),
101
- accessibilityRole: "button",
102
- accessibilityLabel: sectionTitle,
103
- accessibilityHint: isExpanded ? t('learnMoreUsernames.collapseHint') : t('learnMoreUsernames.expandHint'),
104
- accessibilityState: {
105
- expanded: isExpanded
106
- },
107
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
108
- style: [styles.sectionIconContainer, {
109
- backgroundColor: `${bloomTheme.colors.primary}15`
110
- }],
111
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
112
- name: section.icon,
113
- size: 20,
114
- color: bloomTheme.colors.primary
83
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accordion.Accordion, {
84
+ type: "multiple",
85
+ value: expandedIds,
86
+ onValueChange: handleAccordionChange,
87
+ children: INFO_SECTIONS.map(({
88
+ id,
89
+ titleKey,
90
+ contentKey,
91
+ Icon
92
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_accordion.AccordionItem, {
93
+ value: id,
94
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_accordion.AccordionTrigger, {
95
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
96
+ className: "bg-fill-secondary rounded-radius-12",
97
+ style: styles.iconSquare,
98
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
99
+ size: "md",
100
+ style: {
101
+ color: bloomTheme.colors.primary
102
+ }
115
103
  })
116
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
117
- style: [styles.sectionTitle, {
118
- color: bloomTheme.colors.text
119
- }],
120
- children: sectionTitle
121
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
122
- name: isExpanded ? 'chevron-up' : 'chevron-down',
123
- size: 20,
124
- color: bloomTheme.colors.textSecondary
125
- })]
126
- }), isExpanded && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
127
- style: [styles.sectionContent, {
128
- borderTopColor: bloomTheme.colors.border
129
- }],
130
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
131
- style: [styles.sectionText, {
132
- color: bloomTheme.colors.textSecondary
133
- }],
134
- children: t(section.contentKey)
104
+ }),
105
+ children: t(titleKey)
106
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accordion.AccordionContent, {
107
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
108
+ className: "font-sans text-bodyMedium text-text-secondary",
109
+ children: t(contentKey)
135
110
  })
136
111
  })]
137
- }, section.id);
138
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
139
- style: styles.footer,
140
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
141
- style: [styles.footerText, {
142
- color: bloomTheme.colors.textSecondary
143
- }],
144
- children: t('learnMoreUsernames.footer')
145
- })
112
+ }, id))
113
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
114
+ className: "font-sans text-caption text-text-tertiary text-center mt-space-16",
115
+ children: t('learnMoreUsernames.footer')
146
116
  })]
147
- })
117
+ })]
148
118
  });
149
119
  };
150
- const createStyles = () => _reactNative.StyleSheet.create({
151
- container: {
152
- flex: 1
153
- },
154
- content: {
155
- flex: 1
156
- },
157
- contentContainer: {
158
- padding: 16,
159
- paddingBottom: 32
160
- },
161
- introSection: {
162
- alignItems: 'center',
163
- paddingVertical: 24,
164
- paddingHorizontal: 16
165
- },
166
- introIcon: {
167
- width: 64,
168
- height: 64,
169
- borderRadius: 32,
170
- alignItems: 'center',
171
- justifyContent: 'center',
172
- marginBottom: 16
173
- },
174
- introTitle: {
175
- fontSize: 24,
176
- fontWeight: '700',
177
- marginBottom: 8,
178
- textAlign: 'center'
179
- },
180
- introText: {
181
- fontSize: 16,
182
- lineHeight: 24,
183
- textAlign: 'center'
184
- },
185
- section: {
186
- borderRadius: 12,
187
- borderWidth: 1,
188
- marginBottom: 12,
189
- overflow: 'hidden'
190
- },
191
- sectionFirst: {
192
- marginTop: 8
193
- },
194
- sectionHeader: {
195
- flexDirection: 'row',
196
- alignItems: 'center',
197
- padding: 16
198
- },
199
- sectionIconContainer: {
120
+
121
+ // Measured layout only (no color): fixed-size square that hosts the leading
122
+ // section icon inside the accordion trigger. Color comes from the
123
+ // `bg-fill-secondary` token class on the View.
124
+ const styles = _reactNative.StyleSheet.create({
125
+ iconSquare: {
200
126
  width: 36,
201
127
  height: 36,
202
- borderRadius: 18,
203
128
  alignItems: 'center',
204
- justifyContent: 'center',
205
- marginRight: 12
206
- },
207
- sectionTitle: {
208
- flex: 1,
209
- fontSize: 16,
210
- fontWeight: '600',
211
- marginRight: 12
212
- },
213
- sectionContent: {
214
- padding: 16,
215
- paddingTop: 12,
216
- borderTopWidth: 1
217
- },
218
- sectionText: {
219
- fontSize: 14,
220
- lineHeight: 22
221
- },
222
- footer: {
223
- marginTop: 16,
224
- paddingHorizontal: 16
225
- },
226
- footerText: {
227
- fontSize: 14,
228
- textAlign: 'center',
229
- lineHeight: 20
129
+ justifyContent: 'center'
230
130
  }
231
131
  });
232
132
  var _default = exports.default = LearnMoreUsernamesScreen;