@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,25 +1,36 @@
1
1
  import type React from 'react';
2
- import { useEffect, useState } from 'react';
3
- import { View, Text, StyleSheet, ScrollView, ActivityIndicator } from 'react-native';
4
- import type { ReputationRule } from '@oxyhq/core';
2
+ import { useEffect, useMemo, useState } from 'react';
3
+ import { View, Text, ScrollView } from 'react-native';
4
+ import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
5
+ import { Chip } from '@oxyhq/bloom/chip';
6
+ import { useTheme } from '@oxyhq/bloom/theme';
7
+ import type { ReputationRule, ReputationCategory } from '@oxyhq/core';
5
8
  import type { BaseScreenProps } from '../../types/navigation';
6
9
  import Header from '../../components/Header';
10
+ import LoadingState from '../../components/LoadingState';
7
11
  import { useI18n } from '../../hooks/useI18n';
8
- import { useTheme } from '@oxyhq/bloom/theme';
9
12
  import { useOxy } from '../../context/OxyContext';
10
13
 
11
- const TrustRulesScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
12
- // Use useOxy() hook for OxyContext values
14
+ /** Stable display order for rule category sections. */
15
+ const CATEGORY_ORDER: ReputationCategory[] = [
16
+ 'content',
17
+ 'social',
18
+ 'trust',
19
+ 'moderation',
20
+ 'physical',
21
+ 'penalty',
22
+ 'other',
23
+ ];
24
+
25
+ const TrustRulesScreen: React.FC<BaseScreenProps> = ({ goBack }) => {
13
26
  const { oxyServices } = useOxy();
14
27
  const { t } = useI18n();
28
+ const bloomTheme = useTheme();
29
+
15
30
  const [rules, setRules] = useState<ReputationRule[]>([]);
16
31
  const [isLoading, setIsLoading] = useState(true);
17
32
  const [error, setError] = useState<string | null>(null);
18
33
 
19
- const bloomTheme = useTheme();
20
- // Override primaryColor for Oxy Trust screens (purple instead of blue)
21
- const primaryColor = '#d169e5';
22
-
23
34
  useEffect(() => {
24
35
  setIsLoading(true);
25
36
  setError(null);
@@ -29,60 +40,76 @@ const TrustRulesScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
29
40
  .finally(() => setIsLoading(false));
30
41
  }, [oxyServices]);
31
42
 
43
+ // Group rules by category, preserving a stable section order. Categories
44
+ // with no rules are dropped; unknown categories fall back to "other".
45
+ const groupedRules = useMemo(() => {
46
+ const buckets = new Map<ReputationCategory, ReputationRule[]>();
47
+ for (const rule of rules) {
48
+ const category: ReputationCategory = CATEGORY_ORDER.includes(rule.category)
49
+ ? rule.category
50
+ : 'other';
51
+ const bucket = buckets.get(category);
52
+ if (bucket) {
53
+ bucket.push(rule);
54
+ } else {
55
+ buckets.set(category, [rule]);
56
+ }
57
+ }
58
+ return CATEGORY_ORDER
59
+ .filter((category) => buckets.has(category))
60
+ .map((category) => ({ category, items: buckets.get(category) ?? [] }));
61
+ }, [rules]);
62
+
32
63
  return (
33
- <View style={[styles.container, { backgroundColor: bloomTheme.colors.background }]}>
64
+ <View className="flex-1 bg-bg">
34
65
  <Header
35
66
  title={t('trust.rules.title') || 'Trust Rules'}
36
67
  subtitle={t('trust.rules.subtitle') || 'How to earn reputation'}
37
-
38
68
  onBack={goBack}
39
69
  elevation="subtle"
40
70
  />
41
71
  {isLoading ? (
42
- <ActivityIndicator size="large" color={primaryColor} style={{ marginTop: 40 }} />
72
+ <LoadingState color={bloomTheme.colors.primary} />
43
73
  ) : error ? (
44
- <Text style={[styles.error, { color: bloomTheme.colors.error }]}>{error}</Text>
74
+ <Text className="text-text-secondary text-base text-center px-screen-margin pt-space-40">
75
+ {error}
76
+ </Text>
77
+ ) : rules.length === 0 ? (
78
+ <Text className="text-text-secondary text-base text-center px-screen-margin pt-space-40">
79
+ {t('trust.rules.empty') || 'No rules found.'}
80
+ </Text>
45
81
  ) : (
46
- <ScrollView contentContainerStyle={styles.listContainer}>
47
- {rules.length === 0 ? (
48
- <Text style={[styles.placeholder, { color: bloomTheme.colors.text }]}>{t('trust.rules.empty') || 'No rules found.'}</Text>
49
- ) : (
50
- rules.map((rule) => (
51
- <View key={rule.id} style={[styles.ruleRow, { borderColor: bloomTheme.colors.border }]}>
52
- <View style={styles.ruleTextColumn}>
53
- <Text style={[styles.ruleDesc, { color: bloomTheme.colors.text }]}>{rule.description}</Text>
54
- <Text style={[styles.ruleCategory, { color: bloomTheme.colors.textTertiary }]}>{rule.category}</Text>
55
- </View>
56
- <Text style={[styles.rulePoints, { color: rule.points >= 0 ? primaryColor : bloomTheme.colors.error }]}>
57
- {rule.points > 0 ? '+' : ''}{rule.points}
58
- </Text>
59
- </View>
60
- ))
61
- )}
82
+ <ScrollView className="flex-1">
83
+ <View className="px-screen-margin pb-space-24 pt-space-12">
84
+ {groupedRules.map(({ category, items }) => (
85
+ <SettingsListGroup
86
+ key={category}
87
+ title={t(`trust.rules.categories.${category}`) || category}
88
+ >
89
+ {items.map((rule) => (
90
+ <SettingsListItem
91
+ key={rule.id}
92
+ title={rule.description}
93
+ showChevron={false}
94
+ rightElement={
95
+ <Chip
96
+ variant="soft"
97
+ size="small"
98
+ color={rule.points > 0 ? 'success' : rule.points < 0 ? 'error' : 'default'}
99
+ >
100
+ {rule.points > 0 ? `+${rule.points}` : `${rule.points}`}
101
+ </Chip>
102
+ }
103
+ accessibilityLabel={`${rule.description}, ${rule.points > 0 ? '+' : ''}${rule.points} ${t('trust.center.balance') || 'reputation points'}`}
104
+ />
105
+ ))}
106
+ </SettingsListGroup>
107
+ ))}
108
+ </View>
62
109
  </ScrollView>
63
110
  )}
64
111
  </View>
65
112
  );
66
113
  };
67
114
 
68
- const styles = StyleSheet.create({
69
- container: { flex: 1 },
70
- listContainer: { paddingBottom: 40, paddingTop: 20 },
71
- ruleRow: {
72
- flexDirection: 'row',
73
- alignItems: 'center',
74
- justifyContent: 'space-between',
75
- paddingVertical: 14,
76
- paddingHorizontal: 24,
77
- borderBottomWidth: 1,
78
- gap: 12,
79
- },
80
- ruleTextColumn: { flex: 1 },
81
- ruleDesc: { fontSize: 16 },
82
- ruleCategory: { fontSize: 12, marginTop: 2, textTransform: 'capitalize' },
83
- rulePoints: { fontSize: 16, fontWeight: '700' },
84
- placeholder: { fontSize: 16, textAlign: 'center', marginTop: 40 },
85
- error: { fontSize: 16, textAlign: 'center', marginTop: 40 },
86
- });
87
-
88
115
  export default TrustRulesScreen;
@@ -32,8 +32,13 @@ function hasLocalStorage(): boolean {
32
32
  return typeof window !== 'undefined' && typeof window.localStorage !== 'undefined';
33
33
  }
34
34
 
35
- function hasSessionStorage(): boolean {
36
- return typeof window !== 'undefined' && typeof window.sessionStorage !== 'undefined';
35
+ function getSessionStorage(): Storage | null {
36
+ if (typeof window === 'undefined') return null;
37
+ try {
38
+ return window.sessionStorage ?? null;
39
+ } catch {
40
+ return null;
41
+ }
37
42
  }
38
43
 
39
44
  /**
@@ -96,14 +101,15 @@ export function clearActiveAuthuser(): void {
96
101
  * No-ops on native and on any storage failure (best-effort).
97
102
  */
98
103
  export function clearSsoBounceState(): void {
99
- if (!hasSessionStorage()) return;
100
- const origin = window.location.origin;
104
+ const storage = getSessionStorage();
105
+ if (!storage) return;
101
106
  try {
102
- window.sessionStorage.removeItem(ssoAttemptedKey(origin));
103
- window.sessionStorage.removeItem(ssoNoSessionKey(origin));
104
- window.sessionStorage.removeItem(ssoGuardKey(origin));
105
- window.sessionStorage.removeItem(ssoStateKey(origin));
106
- window.sessionStorage.removeItem(ssoDestKey(origin));
107
+ const origin = window.location.origin;
108
+ storage.removeItem(ssoAttemptedKey(origin));
109
+ storage.removeItem(ssoNoSessionKey(origin));
110
+ storage.removeItem(ssoGuardKey(origin));
111
+ storage.removeItem(ssoStateKey(origin));
112
+ storage.removeItem(ssoDestKey(origin));
107
113
  } catch {
108
114
  // Best-effort; swallow SecurityError (e.g. Safari private mode).
109
115
  }
@@ -52,7 +52,7 @@ export async function updateProfileWithAvatar(
52
52
  );
53
53
 
54
54
  // Update cache with server response
55
- queryClient.setQueryData(queryKeys.accounts.current(), data);
55
+ queryClient.setQueryData(queryKeys.accounts.current(activeSessionId), data);
56
56
  if (activeSessionId) {
57
57
  queryClient.setQueryData(queryKeys.users.profile(activeSessionId), data);
58
58
  }
@@ -1,72 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _vectorIcons = require("@expo/vector-icons");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const FormInput = /*#__PURE__*/_react.default.memo(({
13
- icon,
14
- label,
15
- value,
16
- onChangeText,
17
- placeholder,
18
- multiline = false,
19
- numberOfLines = 1,
20
- testID,
21
- colors,
22
- styles,
23
- borderColor,
24
- accessibilityLabel,
25
- accessibilityHint
26
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
27
- style: styles.inputContainer,
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
29
- style: [multiline ? styles.textAreaWrapper : styles.premiumInputWrapper, {
30
- borderColor: borderColor || colors.border,
31
- backgroundColor: colors.inputBackground,
32
- shadowColor: colors.primary,
33
- shadowOffset: {
34
- width: 0,
35
- height: 4
36
- },
37
- shadowOpacity: 0.1,
38
- shadowRadius: 12,
39
- elevation: 3
40
- }],
41
- children: [!multiline && /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
42
- name: icon,
43
- size: 22,
44
- color: colors.secondaryText,
45
- style: styles.inputIcon
46
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
47
- style: styles.inputContent,
48
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
49
- style: [styles.modernLabel, {
50
- color: colors.secondaryText
51
- }],
52
- children: label
53
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
54
- style: [multiline ? styles.textArea : styles.modernInput, {
55
- color: colors.text
56
- }],
57
- value: value,
58
- onChangeText: onChangeText,
59
- placeholder: placeholder,
60
- placeholderTextColor: `${colors.secondaryText}60`,
61
- multiline: multiline,
62
- numberOfLines: multiline ? numberOfLines : undefined,
63
- testID: testID,
64
- accessibilityLabel: accessibilityLabel || label,
65
- accessibilityHint: accessibilityHint
66
- })]
67
- })]
68
- })
69
- }));
70
- FormInput.displayName = 'FormInput';
71
- var _default = exports.default = FormInput;
72
- //# sourceMappingURL=FormInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_vectorIcons","_jsxRuntime","e","__esModule","default","FormInput","React","memo","icon","label","value","onChangeText","placeholder","multiline","numberOfLines","testID","colors","styles","borderColor","accessibilityLabel","accessibilityHint","jsx","View","style","inputContainer","children","jsxs","textAreaWrapper","premiumInputWrapper","border","backgroundColor","inputBackground","shadowColor","primary","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","Ionicons","name","size","color","secondaryText","inputIcon","inputContent","Text","modernLabel","TextInput","textArea","modernInput","text","placeholderTextColor","undefined","displayName","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/FormInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA8C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAmB9C,MAAMG,SAAmC,gBAAGC,cAAK,CAACC,IAAI,CAAC,CAAC;EACpDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,YAAY;EACZC,WAAW;EACXC,SAAS,GAAG,KAAK;EACjBC,aAAa,GAAG,CAAC;EACjBC,MAAM;EACNC,MAAM;EACNC,MAAM;EACNC,WAAW;EACXC,kBAAkB;EAClBC;AACJ,CAAC,kBACG,IAAAnB,WAAA,CAAAoB,GAAA,EAACtB,YAAA,CAAAuB,IAAI;EAACC,KAAK,EAAEN,MAAM,CAACO,cAAe;EAAAC,QAAA,eAC/B,IAAAxB,WAAA,CAAAyB,IAAA,EAAC3B,YAAA,CAAAuB,IAAI;IAACC,KAAK,EAAE,CACTV,SAAS,GAAGI,MAAM,CAACU,eAAe,GAAGV,MAAM,CAACW,mBAAmB,EAC/D;MACIV,WAAW,EAAEA,WAAW,IAAIF,MAAM,CAACa,MAAM;MACzCC,eAAe,EAAEd,MAAM,CAACe,eAAe;MACvCC,WAAW,EAAEhB,MAAM,CAACiB,OAAO;MAC3BC,YAAY,EAAE;QAAEC,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;MACrCC,aAAa,EAAE,GAAG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S,CAACkD,WAAW,GAAG,WAAW;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAArD,OAAA,GAErBC,SAAS","ignoreList":[]}
@@ -1,261 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createFeedbackStyles = void 0;
7
- var _reactNative = require("react-native");
8
- var _spacing = require("../../constants/spacing.js");
9
- const createFeedbackStyles = colors => _reactNative.StyleSheet.create({
10
- container: {
11
- flex: 1
12
- },
13
- fullBleed: {
14
- width: '100%',
15
- alignSelf: 'stretch'
16
- },
17
- scrollContent: {
18
- flexGrow: 1,
19
- ..._spacing.screenContentStyle
20
- },
21
- stepContainer: {
22
- flex: 1,
23
- justifyContent: 'flex-start',
24
- alignItems: 'flex-start'
25
- },
26
- modernHeader: {
27
- alignItems: 'flex-start',
28
- width: '100%',
29
- marginBottom: 24
30
- },
31
- stepTitle: {
32
- fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
33
- fontSize: 42,
34
- lineHeight: 48,
35
- marginBottom: 12,
36
- textAlign: 'left',
37
- letterSpacing: -1
38
- },
39
- modernSubtitle: {
40
- fontSize: 18,
41
- lineHeight: 24,
42
- textAlign: 'left',
43
- opacity: 0.8,
44
- marginBottom: 24
45
- },
46
- inputContainer: {
47
- width: '100%',
48
- marginBottom: 24
49
- },
50
- premiumInputWrapper: {
51
- flexDirection: 'row',
52
- alignItems: 'center',
53
- height: 56,
54
- borderRadius: 16,
55
- paddingHorizontal: 20,
56
- borderWidth: 2,
57
- backgroundColor: colors.inputBackground
58
- },
59
- textAreaWrapper: {
60
- flexDirection: 'column',
61
- alignItems: 'flex-start',
62
- minHeight: 120,
63
- borderRadius: 16,
64
- paddingHorizontal: 20,
65
- paddingVertical: 16,
66
- borderWidth: 2,
67
- backgroundColor: colors.inputBackground
68
- },
69
- inputIcon: {
70
- marginRight: 12
71
- },
72
- inputContent: {
73
- flex: 1
74
- },
75
- modernLabel: {
76
- fontSize: 12,
77
- fontWeight: '500',
78
- marginBottom: 2
79
- },
80
- modernInput: {
81
- flex: 1,
82
- fontSize: 16,
83
- height: '100%'
84
- },
85
- textArea: {
86
- flex: 1,
87
- fontSize: 16,
88
- textAlignVertical: 'top',
89
- minHeight: 80
90
- },
91
- categoryContainer: {
92
- marginBottom: 24
93
- },
94
- checkboxContainer: {
95
- flexDirection: 'row',
96
- alignItems: 'center',
97
- marginBottom: 24
98
- },
99
- checkbox: {
100
- width: 24,
101
- height: 24,
102
- borderRadius: 6,
103
- borderWidth: 2,
104
- marginRight: 12,
105
- alignItems: 'center',
106
- justifyContent: 'center'
107
- },
108
- checkboxText: {
109
- fontSize: 16,
110
- flex: 1
111
- },
112
- button: {
113
- flexDirection: 'row',
114
- alignItems: 'center',
115
- justifyContent: 'center',
116
- paddingVertical: 18,
117
- paddingHorizontal: 32,
118
- borderRadius: 16,
119
- marginVertical: 8,
120
- gap: 8,
121
- width: '100%',
122
- ..._reactNative.Platform.select({
123
- web: {
124
- boxShadow: '0 4px 8px rgba(0,0,0,0.3)'
125
- },
126
- default: {
127
- shadowOffset: {
128
- width: 0,
129
- height: 4
130
- },
131
- shadowOpacity: 0.3,
132
- shadowRadius: 8,
133
- elevation: 6
134
- }
135
- })
136
- },
137
- buttonText: {
138
- color: colors.background,
139
- fontSize: 16,
140
- fontWeight: '600',
141
- letterSpacing: 0.5
142
- },
143
- navigationButtons: {
144
- flexDirection: 'row',
145
- justifyContent: 'center',
146
- marginTop: 16,
147
- marginBottom: 8,
148
- width: '100%',
149
- gap: 8
150
- },
151
- navButton: {
152
- flexDirection: 'row',
153
- alignItems: 'center',
154
- paddingVertical: 6,
155
- paddingHorizontal: 12,
156
- gap: 6,
157
- minWidth: 70,
158
- borderWidth: 1,
159
- ..._reactNative.Platform.select({
160
- web: {
161
- boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
162
- },
163
- default: {
164
- shadowOffset: {
165
- width: 0,
166
- height: 2
167
- },
168
- shadowOpacity: 0.1,
169
- shadowRadius: 4,
170
- elevation: 2
171
- }
172
- })
173
- },
174
- backButton: {
175
- backgroundColor: 'transparent',
176
- borderTopLeftRadius: 35,
177
- borderBottomLeftRadius: 35,
178
- borderTopRightRadius: 12,
179
- borderBottomRightRadius: 12
180
- },
181
- nextButton: {
182
- backgroundColor: 'transparent',
183
- borderTopRightRadius: 35,
184
- borderBottomRightRadius: 35,
185
- borderTopLeftRadius: 12,
186
- borderBottomLeftRadius: 12
187
- },
188
- navButtonText: {
189
- fontSize: 13,
190
- fontWeight: '500'
191
- },
192
- progressContainer: {
193
- flexDirection: 'row',
194
- justifyContent: 'center',
195
- marginBottom: 20,
196
- marginTop: 8
197
- },
198
- progressDot: {
199
- height: 10,
200
- width: 10,
201
- borderRadius: 5,
202
- marginHorizontal: 6,
203
- borderWidth: 2,
204
- borderColor: colors.background,
205
- ..._reactNative.Platform.select({
206
- web: {
207
- boxShadow: '0 1px 2px rgba(0,0,0,0.08)'
208
- },
209
- default: {
210
- shadowColor: colors.primary,
211
- shadowOpacity: 0.08,
212
- shadowOffset: {
213
- width: 0,
214
- height: 1
215
- },
216
- shadowRadius: 2,
217
- elevation: 1
218
- }
219
- })
220
- },
221
- summaryContainer: {
222
- padding: 0,
223
- marginBottom: 24,
224
- width: '100%'
225
- },
226
- summaryRow: {
227
- flexDirection: 'row',
228
- marginBottom: 10
229
- },
230
- summaryLabel: {
231
- fontSize: 15,
232
- width: 90
233
- },
234
- summaryValue: {
235
- fontSize: 15,
236
- fontWeight: '600',
237
- flex: 1
238
- },
239
- successContainer: {
240
- alignItems: 'center',
241
- justifyContent: 'center',
242
- padding: 40
243
- },
244
- successIcon: {
245
- marginBottom: 24
246
- },
247
- successTitle: {
248
- fontSize: 24,
249
- fontWeight: 'bold',
250
- marginBottom: 12,
251
- textAlign: 'center'
252
- },
253
- successMessage: {
254
- fontSize: 16,
255
- textAlign: 'center',
256
- opacity: 0.8,
257
- marginBottom: 24
258
- }
259
- });
260
- exports.createFeedbackStyles = createFeedbackStyles;
261
- //# sourceMappingURL=feedbackStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_spacing","createFeedbackStyles","colors","StyleSheet","create","container","flex","fullBleed","width","alignSelf","scrollContent","flexGrow","screenContentStyle","stepContainer","justifyContent","alignItems","modernHeader","marginBottom","stepTitle","fontWeight","Platform","OS","undefined","fontSize","lineHeight","textAlign","letterSpacing","modernSubtitle","opacity","inputContainer","premiumInputWrapper","flexDirection","height","borderRadius","paddingHorizontal","borderWidth","backgroundColor","inputBackground","textAreaWrapper","minHeight","paddingVertical","inputIcon","marginRight","inputContent","modernLabel","modernInput","textArea","textAlignVertical","categoryContainer","checkboxContainer","checkbox","checkboxText","button","marginVertical","gap","select","web","boxShadow","default","shadowOffset","shadowOpacity","shadowRadius","elevation","buttonText","color","background","navigationButtons","marginTop","navButton","minWidth","backButton","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","nextButton","navButtonText","progressContainer","progressDot","marginHorizontal","borderColor","shadowColor","primary","summaryContainer","padding","summaryRow","summaryLabel","summaryValue","successContainer","successIcon","successTitle","successMessage","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/feedbackStyles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGO,MAAME,oBAAoB,GAAIC,MAAsB,IAAKC,uBAAU,CAACC,MAAM,CAAC;EAC9EC,SAAS,EAAE;IACPC,IAAI,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACPC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE;EACf,CAAC;EACDC,aAAa,EAAE;IACXC,QAAQ,EAAE,CAAC;IACX,GAAGC;EACP,CAAC;EACDC,aAAa,EAAE;IACXP,IAAI,EAAE,CAAC;IACPQ,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EAChB,CAAC;EACDC,YAAY,EAAE;IACVD,UAAU,EAAE,Y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EAAE,QAAQ;IACnBG,OAAO,EAAE,GAAG;IACZX,YAAY,EAAE;EAClB;AACJ,CAAC,CAAC;AAAC2E,OAAA,CAAA3F,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,67 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, Text, TextInput } from 'react-native';
5
- import { Ionicons } from '@expo/vector-icons';
6
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const FormInput = /*#__PURE__*/React.memo(({
8
- icon,
9
- label,
10
- value,
11
- onChangeText,
12
- placeholder,
13
- multiline = false,
14
- numberOfLines = 1,
15
- testID,
16
- colors,
17
- styles,
18
- borderColor,
19
- accessibilityLabel,
20
- accessibilityHint
21
- }) => /*#__PURE__*/_jsx(View, {
22
- style: styles.inputContainer,
23
- children: /*#__PURE__*/_jsxs(View, {
24
- style: [multiline ? styles.textAreaWrapper : styles.premiumInputWrapper, {
25
- borderColor: borderColor || colors.border,
26
- backgroundColor: colors.inputBackground,
27
- shadowColor: colors.primary,
28
- shadowOffset: {
29
- width: 0,
30
- height: 4
31
- },
32
- shadowOpacity: 0.1,
33
- shadowRadius: 12,
34
- elevation: 3
35
- }],
36
- children: [!multiline && /*#__PURE__*/_jsx(Ionicons, {
37
- name: icon,
38
- size: 22,
39
- color: colors.secondaryText,
40
- style: styles.inputIcon
41
- }), /*#__PURE__*/_jsxs(View, {
42
- style: styles.inputContent,
43
- children: [/*#__PURE__*/_jsx(Text, {
44
- style: [styles.modernLabel, {
45
- color: colors.secondaryText
46
- }],
47
- children: label
48
- }), /*#__PURE__*/_jsx(TextInput, {
49
- style: [multiline ? styles.textArea : styles.modernInput, {
50
- color: colors.text
51
- }],
52
- value: value,
53
- onChangeText: onChangeText,
54
- placeholder: placeholder,
55
- placeholderTextColor: `${colors.secondaryText}60`,
56
- multiline: multiline,
57
- numberOfLines: multiline ? numberOfLines : undefined,
58
- testID: testID,
59
- accessibilityLabel: accessibilityLabel || label,
60
- accessibilityHint: accessibilityHint
61
- })]
62
- })]
63
- })
64
- }));
65
- FormInput.displayName = 'FormInput';
66
- export default FormInput;
67
- //# sourceMappingURL=FormInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Text","TextInput","Ionicons","jsx","_jsx","jsxs","_jsxs","FormInput","memo","icon","label","value","onChangeText","placeholder","multiline","numberOfLines","testID","colors","styles","borderColor","accessibilityLabel","accessibilityHint","style","inputContainer","children","textAreaWrapper","premiumInputWrapper","border","backgroundColor","inputBackground","shadowColor","primary","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","name","size","color","secondaryText","inputIcon","inputContent","modernLabel","textArea","modernInput","text","placeholderTextColor","undefined","displayName"],"sourceRoot":"../../../../../src","sources":["ui/components/feedback/FormInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;AACpD,SAASC,QAAQ,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAmB9C,MAAMC,SAAmC,gBAAGT,KAAK,CAACU,IAAI,CAAC,CAAC;EACpDC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,YAAY;EACZC,WAAW;EACXC,SAAS,GAAG,KAAK;EACjBC,aAAa,GAAG,CAAC;EACjBC,MAAM;EACNC,MAAM;EACNC,MAAM;EACNC,WAAW;EACXC,kBAAkB;EAClBC;AACJ,CAAC,kBACGjB,IAAA,CAACL,IAAI;EAACuB,KAAK,EAAEJ,MAAM,CAACK,cAAe;EAAAC,QAAA,eAC/BlB,KAAA,CAACP,IAAI;IAACuB,KAAK,EAAE,CACTR,SAAS,GAAGI,MAAM,CAACO,eAAe,GAAGP,MAAM,CAACQ,mBAAmB,EAC/D;MACIP,WAAW,EAAEA,WAAW,IAAIF,MAAM,CAACU,MAAM;MACzCC,eAAe,EAAEX,MAAM,CAACY,eAAe;MACvCC,WAA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