@oxyhq/services 11.0.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 +8 -3
  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
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  import React, { useState, useCallback, useEffect } from 'react';
4
- import { View, Text, StyleSheet, ScrollView, TouchableOpacity } from 'react-native';
4
+ import { View, ScrollView } from 'react-native';
5
5
  import { toast } from '@oxyhq/bloom';
6
+ import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
7
+ import { Switch } from '@oxyhq/bloom/switch';
8
+ import { Button } from '@oxyhq/bloom/button';
9
+ import { useTheme } from '@oxyhq/bloom/theme';
6
10
  import Header from "../components/Header.js";
7
11
  import Avatar from "../components/Avatar.js";
8
12
  import LoadingState from "../components/LoadingState.js";
9
13
  import EmptyState from "../components/EmptyState.js";
10
- import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
11
- import { Switch } from '@oxyhq/bloom/switch';
14
+ import { SettingsIcon } from "../components/SettingsIcon.js";
12
15
  import { useI18n } from "../hooks/useI18n.js";
13
- import { useTheme } from '@oxyhq/bloom/theme';
14
16
  import { useSettingToggles } from "../hooks/useSettingToggle.js";
15
17
  import { getAccountDisplayName } from '@oxyhq/core';
16
18
  import { useOxy } from "../context/OxyContext.js";
@@ -38,7 +40,6 @@ const DEFAULT_PRIVACY_SETTINGS = {
38
40
  };
39
41
  const PrivacySettingsScreen = ({
40
42
  onClose,
41
- theme,
42
43
  goBack
43
44
  }) => {
44
45
  const {
@@ -49,6 +50,7 @@ const PrivacySettingsScreen = ({
49
50
  t,
50
51
  locale
51
52
  } = useI18n();
53
+ const bloomTheme = useTheme();
52
54
  const [isLoading, setIsLoading] = useState(true);
53
55
  const [blockedUsers, setBlockedUsers] = useState([]);
54
56
  const [restrictedUsers, setRestrictedUsers] = useState([]);
@@ -184,12 +186,9 @@ const PrivacySettingsScreen = ({
184
186
  avatar
185
187
  };
186
188
  }, [locale]);
187
- const bloomTheme = useTheme();
188
189
  if (isLoading) {
189
190
  return /*#__PURE__*/_jsxs(View, {
190
- style: [styles.container, {
191
- backgroundColor: bloomTheme.colors.background
192
- }],
191
+ className: "flex-1 bg-bg",
193
192
  children: [/*#__PURE__*/_jsx(Header, {
194
193
  title: t('privacySettings.title') || 'Privacy Settings',
195
194
  onBack: goBack || onClose,
@@ -201,250 +200,303 @@ const PrivacySettingsScreen = ({
201
200
  });
202
201
  }
203
202
  return /*#__PURE__*/_jsxs(View, {
204
- style: [styles.container, {
205
- backgroundColor: bloomTheme.colors.background
206
- }],
203
+ className: "flex-1 bg-bg",
207
204
  children: [/*#__PURE__*/_jsx(Header, {
208
205
  title: t('privacySettings.title') || 'Privacy Settings',
209
206
  onBack: goBack || onClose,
210
207
  variant: "minimal",
211
208
  elevation: "subtle"
212
- }), /*#__PURE__*/_jsxs(ScrollView, {
213
- style: styles.content,
214
- children: [/*#__PURE__*/_jsxs(SettingsListGroup, {
215
- title: t('privacySettings.sections.account') || 'ACCOUNT PRIVACY',
216
- children: [/*#__PURE__*/_jsx(SettingsListItem, {
217
- title: t('privacySettings.isPrivateAccount') || 'Private Account',
218
- description: t('privacySettings.isPrivateAccountDesc') || 'Only approved followers can see your posts',
219
- rightElement: /*#__PURE__*/_jsx(Switch, {
220
- value: settings.isPrivateAccount,
221
- onValueChange: () => toggle('isPrivateAccount'),
222
- disabled: isSaving
223
- })
224
- }), /*#__PURE__*/_jsx(SettingsListItem, {
225
- title: t('privacySettings.profileVisibility') || 'Profile Visibility',
226
- description: t('privacySettings.profileVisibilityDesc') || 'Control who can view your profile',
227
- rightElement: /*#__PURE__*/_jsx(Switch, {
228
- value: settings.profileVisibility,
229
- onValueChange: () => toggle('profileVisibility'),
230
- disabled: isSaving
231
- })
232
- }), /*#__PURE__*/_jsx(SettingsListItem, {
233
- title: t('privacySettings.hideOnlineStatus') || 'Hide Online Status',
234
- description: t('privacySettings.hideOnlineStatusDesc') || 'Don\'t show when you\'re online',
235
- rightElement: /*#__PURE__*/_jsx(Switch, {
236
- value: settings.hideOnlineStatus,
237
- onValueChange: () => toggle('hideOnlineStatus'),
238
- disabled: isSaving
239
- })
240
- }), /*#__PURE__*/_jsx(SettingsListItem, {
241
- title: t('privacySettings.hideLastSeen') || 'Hide Last Seen',
242
- description: t('privacySettings.hideLastSeenDesc') || 'Don\'t show when you were last active',
243
- rightElement: /*#__PURE__*/_jsx(Switch, {
244
- value: settings.hideLastSeen,
245
- onValueChange: () => toggle('hideLastSeen'),
246
- disabled: isSaving
247
- })
248
- })]
249
- }), /*#__PURE__*/_jsxs(SettingsListGroup, {
250
- title: t('privacySettings.sections.interactions') || 'INTERACTIONS',
251
- children: [/*#__PURE__*/_jsx(SettingsListItem, {
252
- title: t('privacySettings.allowTagging') || 'Allow Tagging',
253
- description: t('privacySettings.allowTaggingDesc') || 'Let others tag you in posts',
254
- rightElement: /*#__PURE__*/_jsx(Switch, {
255
- value: settings.allowTagging,
256
- onValueChange: () => toggle('allowTagging'),
257
- disabled: isSaving
258
- })
259
- }), /*#__PURE__*/_jsx(SettingsListItem, {
260
- title: t('privacySettings.allowMentions') || 'Allow Mentions',
261
- description: t('privacySettings.allowMentionsDesc') || 'Let others mention you',
262
- rightElement: /*#__PURE__*/_jsx(Switch, {
263
- value: settings.allowMentions,
264
- onValueChange: () => toggle('allowMentions'),
265
- disabled: isSaving
266
- })
267
- }), /*#__PURE__*/_jsx(SettingsListItem, {
268
- title: t('privacySettings.allowDirectMessages') || 'Allow Direct Messages',
269
- description: t('privacySettings.allowDirectMessagesDesc') || 'Let others send you direct messages',
270
- rightElement: /*#__PURE__*/_jsx(Switch, {
271
- value: settings.allowDirectMessages,
272
- onValueChange: () => toggle('allowDirectMessages'),
273
- disabled: isSaving
274
- })
275
- }), /*#__PURE__*/_jsx(SettingsListItem, {
276
- title: t('privacySettings.hideReadReceipts') || 'Hide Read Receipts',
277
- description: t('privacySettings.hideReadReceiptsDesc') || 'Don\'t show read receipts in messages',
278
- rightElement: /*#__PURE__*/_jsx(Switch, {
279
- value: settings.hideReadReceipts,
280
- onValueChange: () => toggle('hideReadReceipts'),
281
- disabled: isSaving
282
- })
283
- })]
284
- }), /*#__PURE__*/_jsxs(SettingsListGroup, {
285
- title: t('privacySettings.sections.activity') || 'ACTIVITY & DATA',
286
- children: [/*#__PURE__*/_jsx(SettingsListItem, {
287
- title: t('privacySettings.showActivity') || 'Show Activity Status',
288
- description: t('privacySettings.showActivityDesc') || 'Display your activity on your profile',
289
- rightElement: /*#__PURE__*/_jsx(Switch, {
290
- value: settings.showActivity,
291
- onValueChange: () => toggle('showActivity'),
292
- disabled: isSaving
293
- })
294
- }), /*#__PURE__*/_jsx(SettingsListItem, {
295
- title: t('privacySettings.dataSharing') || 'Data Sharing',
296
- description: t('privacySettings.dataSharingDesc') || 'Allow sharing data for personalization',
297
- rightElement: /*#__PURE__*/_jsx(Switch, {
298
- value: settings.dataSharing,
299
- onValueChange: () => toggle('dataSharing'),
300
- disabled: isSaving
301
- })
302
- }), /*#__PURE__*/_jsx(SettingsListItem, {
303
- title: t('privacySettings.locationSharing') || 'Location Sharing',
304
- description: t('privacySettings.locationSharingDesc') || 'Share your location',
305
- rightElement: /*#__PURE__*/_jsx(Switch, {
306
- value: settings.locationSharing,
307
- onValueChange: () => toggle('locationSharing'),
308
- disabled: isSaving
309
- })
310
- }), /*#__PURE__*/_jsx(SettingsListItem, {
311
- title: t('privacySettings.analyticsSharing') || 'Analytics Sharing',
312
- description: t('privacySettings.analyticsSharingDesc') || 'Allow analytics data collection',
313
- rightElement: /*#__PURE__*/_jsx(Switch, {
314
- value: settings.analyticsSharing,
315
- onValueChange: () => toggle('analyticsSharing'),
316
- disabled: isSaving
317
- })
318
- })]
319
- }), /*#__PURE__*/_jsxs(SettingsListGroup, {
320
- title: t('privacySettings.sections.content') || 'CONTENT & SAFETY',
321
- children: [/*#__PURE__*/_jsx(SettingsListItem, {
322
- title: t('privacySettings.sensitiveContent') || 'Show Sensitive Content',
323
- description: t('privacySettings.sensitiveContentDesc') || 'Allow sensitive or explicit content',
324
- rightElement: /*#__PURE__*/_jsx(Switch, {
325
- value: settings.sensitiveContent,
326
- onValueChange: () => toggle('sensitiveContent'),
327
- disabled: isSaving
328
- })
329
- }), /*#__PURE__*/_jsx(SettingsListItem, {
330
- title: t('privacySettings.autoFilter') || 'Auto Filter',
331
- description: t('privacySettings.autoFilterDesc') || 'Automatically filter inappropriate content',
332
- rightElement: /*#__PURE__*/_jsx(Switch, {
333
- value: settings.autoFilter,
334
- onValueChange: () => toggle('autoFilter'),
335
- disabled: isSaving
336
- })
337
- }), /*#__PURE__*/_jsx(SettingsListItem, {
338
- title: t('privacySettings.muteKeywords') || 'Mute Keywords',
339
- description: t('privacySettings.muteKeywordsDesc') || 'Hide posts containing muted keywords',
340
- rightElement: /*#__PURE__*/_jsx(Switch, {
341
- value: settings.muteKeywords,
342
- onValueChange: () => toggle('muteKeywords'),
343
- disabled: isSaving
209
+ }), /*#__PURE__*/_jsx(ScrollView, {
210
+ className: "flex-1",
211
+ children: /*#__PURE__*/_jsxs(View, {
212
+ className: "px-screen-margin pb-space-24",
213
+ children: [/*#__PURE__*/_jsxs(SettingsListGroup, {
214
+ title: t('privacySettings.sections.account') || 'ACCOUNT PRIVACY',
215
+ children: [/*#__PURE__*/_jsx(SettingsListItem, {
216
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
217
+ name: "lock-outline",
218
+ color: bloomTheme.colors.primary
219
+ }),
220
+ title: t('privacySettings.isPrivateAccount') || 'Private Account',
221
+ description: t('privacySettings.isPrivateAccountDesc') || 'Only approved followers can see your posts',
222
+ rightElement: /*#__PURE__*/_jsx(Switch, {
223
+ value: settings.isPrivateAccount,
224
+ onValueChange: () => toggle('isPrivateAccount'),
225
+ disabled: isSaving
226
+ }),
227
+ showChevron: false
228
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
229
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
230
+ name: "account-eye-outline",
231
+ color: bloomTheme.colors.info
232
+ }),
233
+ title: t('privacySettings.profileVisibility') || 'Profile Visibility',
234
+ description: t('privacySettings.profileVisibilityDesc') || 'Control who can view your profile',
235
+ rightElement: /*#__PURE__*/_jsx(Switch, {
236
+ value: settings.profileVisibility,
237
+ onValueChange: () => toggle('profileVisibility'),
238
+ disabled: isSaving
239
+ }),
240
+ showChevron: false
241
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
242
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
243
+ name: "circle-outline",
244
+ color: bloomTheme.colors.success
245
+ }),
246
+ title: t('privacySettings.hideOnlineStatus') || 'Hide Online Status',
247
+ description: t('privacySettings.hideOnlineStatusDesc') || 'Don\'t show when you\'re online',
248
+ rightElement: /*#__PURE__*/_jsx(Switch, {
249
+ value: settings.hideOnlineStatus,
250
+ onValueChange: () => toggle('hideOnlineStatus'),
251
+ disabled: isSaving
252
+ }),
253
+ showChevron: false
254
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
255
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
256
+ name: "clock-outline",
257
+ color: bloomTheme.colors.secondary
258
+ }),
259
+ title: t('privacySettings.hideLastSeen') || 'Hide Last Seen',
260
+ description: t('privacySettings.hideLastSeenDesc') || 'Don\'t show when you were last active',
261
+ rightElement: /*#__PURE__*/_jsx(Switch, {
262
+ value: settings.hideLastSeen,
263
+ onValueChange: () => toggle('hideLastSeen'),
264
+ disabled: isSaving
265
+ }),
266
+ showChevron: false
267
+ })]
268
+ }), /*#__PURE__*/_jsxs(SettingsListGroup, {
269
+ title: t('privacySettings.sections.interactions') || 'INTERACTIONS',
270
+ children: [/*#__PURE__*/_jsx(SettingsListItem, {
271
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
272
+ name: "tag-outline",
273
+ color: bloomTheme.colors.primary
274
+ }),
275
+ title: t('privacySettings.allowTagging') || 'Allow Tagging',
276
+ description: t('privacySettings.allowTaggingDesc') || 'Let others tag you in posts',
277
+ rightElement: /*#__PURE__*/_jsx(Switch, {
278
+ value: settings.allowTagging,
279
+ onValueChange: () => toggle('allowTagging'),
280
+ disabled: isSaving
281
+ }),
282
+ showChevron: false
283
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
284
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
285
+ name: "at",
286
+ color: bloomTheme.colors.info
287
+ }),
288
+ title: t('privacySettings.allowMentions') || 'Allow Mentions',
289
+ description: t('privacySettings.allowMentionsDesc') || 'Let others mention you',
290
+ rightElement: /*#__PURE__*/_jsx(Switch, {
291
+ value: settings.allowMentions,
292
+ onValueChange: () => toggle('allowMentions'),
293
+ disabled: isSaving
294
+ }),
295
+ showChevron: false
296
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
297
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
298
+ name: "message-outline",
299
+ color: bloomTheme.colors.success
300
+ }),
301
+ title: t('privacySettings.allowDirectMessages') || 'Allow Direct Messages',
302
+ description: t('privacySettings.allowDirectMessagesDesc') || 'Let others send you direct messages',
303
+ rightElement: /*#__PURE__*/_jsx(Switch, {
304
+ value: settings.allowDirectMessages,
305
+ onValueChange: () => toggle('allowDirectMessages'),
306
+ disabled: isSaving
307
+ }),
308
+ showChevron: false
309
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
310
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
311
+ name: "check-all",
312
+ color: bloomTheme.colors.secondary
313
+ }),
314
+ title: t('privacySettings.hideReadReceipts') || 'Hide Read Receipts',
315
+ description: t('privacySettings.hideReadReceiptsDesc') || 'Don\'t show read receipts in messages',
316
+ rightElement: /*#__PURE__*/_jsx(Switch, {
317
+ value: settings.hideReadReceipts,
318
+ onValueChange: () => toggle('hideReadReceipts'),
319
+ disabled: isSaving
320
+ }),
321
+ showChevron: false
322
+ })]
323
+ }), /*#__PURE__*/_jsxs(SettingsListGroup, {
324
+ title: t('privacySettings.sections.activity') || 'ACTIVITY & DATA',
325
+ children: [/*#__PURE__*/_jsx(SettingsListItem, {
326
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
327
+ name: "pulse",
328
+ color: bloomTheme.colors.primary
329
+ }),
330
+ title: t('privacySettings.showActivity') || 'Show Activity Status',
331
+ description: t('privacySettings.showActivityDesc') || 'Display your activity on your profile',
332
+ rightElement: /*#__PURE__*/_jsx(Switch, {
333
+ value: settings.showActivity,
334
+ onValueChange: () => toggle('showActivity'),
335
+ disabled: isSaving
336
+ }),
337
+ showChevron: false
338
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
339
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
340
+ name: "database-outline",
341
+ color: bloomTheme.colors.info
342
+ }),
343
+ title: t('privacySettings.dataSharing') || 'Data Sharing',
344
+ description: t('privacySettings.dataSharingDesc') || 'Allow sharing data for personalization',
345
+ rightElement: /*#__PURE__*/_jsx(Switch, {
346
+ value: settings.dataSharing,
347
+ onValueChange: () => toggle('dataSharing'),
348
+ disabled: isSaving
349
+ }),
350
+ showChevron: false
351
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
352
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
353
+ name: "map-marker-outline",
354
+ color: bloomTheme.colors.warning
355
+ }),
356
+ title: t('privacySettings.locationSharing') || 'Location Sharing',
357
+ description: t('privacySettings.locationSharingDesc') || 'Share your location',
358
+ rightElement: /*#__PURE__*/_jsx(Switch, {
359
+ value: settings.locationSharing,
360
+ onValueChange: () => toggle('locationSharing'),
361
+ disabled: isSaving
362
+ }),
363
+ showChevron: false
364
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
365
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
366
+ name: "chart-line",
367
+ color: bloomTheme.colors.secondary
368
+ }),
369
+ title: t('privacySettings.analyticsSharing') || 'Analytics Sharing',
370
+ description: t('privacySettings.analyticsSharingDesc') || 'Allow analytics data collection',
371
+ rightElement: /*#__PURE__*/_jsx(Switch, {
372
+ value: settings.analyticsSharing,
373
+ onValueChange: () => toggle('analyticsSharing'),
374
+ disabled: isSaving
375
+ }),
376
+ showChevron: false
377
+ })]
378
+ }), /*#__PURE__*/_jsxs(SettingsListGroup, {
379
+ title: t('privacySettings.sections.content') || 'CONTENT & SAFETY',
380
+ children: [/*#__PURE__*/_jsx(SettingsListItem, {
381
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
382
+ name: "eye-off-outline",
383
+ color: bloomTheme.colors.warning
384
+ }),
385
+ title: t('privacySettings.sensitiveContent') || 'Show Sensitive Content',
386
+ description: t('privacySettings.sensitiveContentDesc') || 'Allow sensitive or explicit content',
387
+ rightElement: /*#__PURE__*/_jsx(Switch, {
388
+ value: settings.sensitiveContent,
389
+ onValueChange: () => toggle('sensitiveContent'),
390
+ disabled: isSaving
391
+ }),
392
+ showChevron: false
393
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
394
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
395
+ name: "filter-outline",
396
+ color: bloomTheme.colors.success
397
+ }),
398
+ title: t('privacySettings.autoFilter') || 'Auto Filter',
399
+ description: t('privacySettings.autoFilterDesc') || 'Automatically filter inappropriate content',
400
+ rightElement: /*#__PURE__*/_jsx(Switch, {
401
+ value: settings.autoFilter,
402
+ onValueChange: () => toggle('autoFilter'),
403
+ disabled: isSaving
404
+ }),
405
+ showChevron: false
406
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
407
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
408
+ name: "volume-off",
409
+ color: bloomTheme.colors.info
410
+ }),
411
+ title: t('privacySettings.muteKeywords') || 'Mute Keywords',
412
+ description: t('privacySettings.muteKeywordsDesc') || 'Hide posts containing muted keywords',
413
+ rightElement: /*#__PURE__*/_jsx(Switch, {
414
+ value: settings.muteKeywords,
415
+ onValueChange: () => toggle('muteKeywords'),
416
+ disabled: isSaving
417
+ }),
418
+ showChevron: false
419
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
420
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
421
+ name: "cellphone-screenshot",
422
+ color: bloomTheme.colors.secondary
423
+ }),
424
+ title: t('privacySettings.blockScreenshots') || 'Block Screenshots',
425
+ description: t('privacySettings.blockScreenshotsDesc') || 'Prevent screenshots of your content',
426
+ rightElement: /*#__PURE__*/_jsx(Switch, {
427
+ value: settings.blockScreenshots,
428
+ onValueChange: () => toggle('blockScreenshots'),
429
+ disabled: isSaving
430
+ }),
431
+ showChevron: false
432
+ })]
433
+ }), /*#__PURE__*/_jsx(SettingsListGroup, {
434
+ title: t('privacySettings.sections.blockedUsers') || 'BLOCKED USERS',
435
+ children: isLoadingUsers ? /*#__PURE__*/_jsx(LoadingState, {
436
+ color: bloomTheme.colors.text,
437
+ size: "small"
438
+ }) : blockedUsers.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
439
+ message: t('privacySettings.noBlockedUsers') || 'No blocked users',
440
+ textColor: bloomTheme.colors.textSecondary
441
+ }) : blockedUsers.map(blocked => {
442
+ const {
443
+ userId,
444
+ displayName,
445
+ avatar
446
+ } = extractUserInfo(blocked, 'blockedId');
447
+ const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
448
+ return /*#__PURE__*/_jsx(SettingsListItem, {
449
+ icon: /*#__PURE__*/_jsx(Avatar, {
450
+ uri: avatarUri,
451
+ name: displayName,
452
+ size: 20
453
+ }),
454
+ title: displayName,
455
+ rightElement: /*#__PURE__*/_jsx(Button, {
456
+ variant: "destructive",
457
+ size: "small",
458
+ onPress: () => handleUnblock(userId),
459
+ children: t('privacySettings.unblock') || 'Unblock'
460
+ }),
461
+ showChevron: false
462
+ }, userId);
344
463
  })
345
- }), /*#__PURE__*/_jsx(SettingsListItem, {
346
- title: t('privacySettings.blockScreenshots') || 'Block Screenshots',
347
- description: t('privacySettings.blockScreenshotsDesc') || 'Prevent screenshots of your content',
348
- rightElement: /*#__PURE__*/_jsx(Switch, {
349
- value: settings.blockScreenshots,
350
- onValueChange: () => toggle('blockScreenshots'),
351
- disabled: isSaving
464
+ }), /*#__PURE__*/_jsx(SettingsListGroup, {
465
+ title: t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS',
466
+ children: isLoadingUsers ? /*#__PURE__*/_jsx(LoadingState, {
467
+ color: bloomTheme.colors.text,
468
+ size: "small"
469
+ }) : restrictedUsers.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
470
+ message: t('privacySettings.noRestrictedUsers') || 'No restricted users',
471
+ textColor: bloomTheme.colors.textSecondary
472
+ }) : restrictedUsers.map(restricted => {
473
+ const {
474
+ userId,
475
+ displayName,
476
+ avatar
477
+ } = extractUserInfo(restricted, 'restrictedId');
478
+ const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
479
+ return /*#__PURE__*/_jsx(SettingsListItem, {
480
+ icon: /*#__PURE__*/_jsx(Avatar, {
481
+ uri: avatarUri,
482
+ name: displayName,
483
+ size: 20
484
+ }),
485
+ title: displayName,
486
+ description: t('privacySettings.restrictedDescription') || 'Limited interactions',
487
+ rightElement: /*#__PURE__*/_jsx(Button, {
488
+ variant: "secondary",
489
+ size: "small",
490
+ onPress: () => handleUnrestrict(userId),
491
+ children: t('privacySettings.unrestrict') || 'Unrestrict'
492
+ }),
493
+ showChevron: false
494
+ }, userId);
352
495
  })
353
496
  })]
354
- }), /*#__PURE__*/_jsx(SettingsListGroup, {
355
- title: t('privacySettings.sections.blockedUsers') || 'BLOCKED USERS',
356
- children: isLoadingUsers ? /*#__PURE__*/_jsx(LoadingState, {
357
- color: bloomTheme.colors.text,
358
- size: "small"
359
- }) : blockedUsers.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
360
- message: t('privacySettings.noBlockedUsers') || 'No blocked users',
361
- textColor: bloomTheme.colors.textSecondary
362
- }) : blockedUsers.map(blocked => {
363
- const {
364
- userId,
365
- displayName,
366
- avatar
367
- } = extractUserInfo(blocked, 'blockedId');
368
- const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
369
- return /*#__PURE__*/_jsx(SettingsListItem, {
370
- icon: /*#__PURE__*/_jsx(Avatar, {
371
- uri: avatarUri,
372
- name: displayName,
373
- size: 20
374
- }),
375
- title: displayName,
376
- rightElement: /*#__PURE__*/_jsx(TouchableOpacity, {
377
- onPress: () => handleUnblock(userId),
378
- style: [styles.actionButton, {
379
- backgroundColor: bloomTheme.colors.backgroundSecondary
380
- }],
381
- children: /*#__PURE__*/_jsx(Text, {
382
- style: [styles.actionButtonText, {
383
- color: bloomTheme.colors.error
384
- }],
385
- children: t('privacySettings.unblock') || 'Unblock'
386
- })
387
- })
388
- }, userId);
389
- })
390
- }), /*#__PURE__*/_jsx(SettingsListGroup, {
391
- title: t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS',
392
- children: isLoadingUsers ? /*#__PURE__*/_jsx(LoadingState, {
393
- color: bloomTheme.colors.text,
394
- size: "small"
395
- }) : restrictedUsers.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
396
- message: t('privacySettings.noRestrictedUsers') || 'No restricted users',
397
- textColor: bloomTheme.colors.textSecondary
398
- }) : restrictedUsers.map(restricted => {
399
- const {
400
- userId,
401
- displayName,
402
- avatar
403
- } = extractUserInfo(restricted, 'restrictedId');
404
- const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
405
- return /*#__PURE__*/_jsx(SettingsListItem, {
406
- icon: /*#__PURE__*/_jsx(Avatar, {
407
- uri: avatarUri,
408
- name: displayName,
409
- size: 20
410
- }),
411
- title: displayName,
412
- description: t('privacySettings.restrictedDescription') || 'Limited interactions',
413
- rightElement: /*#__PURE__*/_jsx(TouchableOpacity, {
414
- onPress: () => handleUnrestrict(userId),
415
- style: [styles.actionButton, {
416
- backgroundColor: bloomTheme.colors.backgroundSecondary
417
- }],
418
- children: /*#__PURE__*/_jsx(Text, {
419
- style: [styles.actionButtonText, {
420
- color: bloomTheme.colors.primary
421
- }],
422
- children: t('privacySettings.unrestrict') || 'Unrestrict'
423
- })
424
- })
425
- }, userId);
426
- })
427
- })]
497
+ })
428
498
  })]
429
499
  });
430
500
  };
431
- const styles = StyleSheet.create({
432
- container: {
433
- flex: 1
434
- },
435
- content: {
436
- flex: 1,
437
- padding: 16
438
- },
439
- actionButton: {
440
- paddingHorizontal: 16,
441
- paddingVertical: 8,
442
- borderRadius: 8
443
- },
444
- actionButtonText: {
445
- fontSize: 14,
446
- fontWeight: '600'
447
- }
448
- });
449
501
  export default /*#__PURE__*/React.memo(PrivacySettingsScreen);
450
502
  //# sourceMappingURL=PrivacySettingsScreen.js.map