@oxyhq/services 6.9.44 → 6.9.46

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 (342) hide show
  1. package/lib/commonjs/ui/components/OxyPayButton.js +4 -2
  2. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
  3. package/lib/commonjs/ui/components/OxyProvider.js +6 -5
  4. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  5. package/lib/commonjs/ui/components/OxySignInButton.js +83 -82
  6. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  7. package/lib/commonjs/ui/components/SignInModal.js +271 -102
  8. package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
  9. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +76 -121
  10. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  11. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +24 -15
  12. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  13. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +32 -18
  14. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
  15. package/lib/commonjs/ui/components/icon/OxyIcon.js +5 -4
  16. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
  17. package/lib/commonjs/ui/components/index.js +0 -35
  18. package/lib/commonjs/ui/components/index.js.map +1 -1
  19. package/lib/commonjs/ui/components/internal/PinInput.js +3 -2
  20. package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
  21. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +83 -219
  22. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
  23. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +26 -13
  24. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  25. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +50 -28
  26. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
  27. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +83 -48
  28. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
  29. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +11 -10
  30. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  31. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +38 -23
  32. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  33. package/lib/commonjs/ui/constants/theme.js +2 -2
  34. package/lib/commonjs/ui/constants/theme.js.map +1 -1
  35. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +4 -3
  36. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  37. package/lib/commonjs/ui/screens/AccountCenterScreen.js +13 -13
  38. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  39. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +117 -142
  40. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  41. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +112 -78
  42. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  43. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +213 -144
  44. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  45. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +26 -14
  46. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  47. package/lib/commonjs/ui/screens/FeedbackScreen.js +57 -51
  48. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  49. package/lib/commonjs/ui/screens/FileManagementScreen.js +108 -86
  50. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  51. package/lib/commonjs/ui/screens/HistoryViewScreen.js +109 -130
  52. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  53. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +15 -8
  54. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  55. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +60 -54
  56. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  57. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +12 -9
  58. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  59. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +66 -93
  60. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  61. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +159 -190
  62. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  63. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +20 -22
  64. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  65. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +16 -17
  66. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  67. package/lib/commonjs/ui/screens/SessionManagementScreen.js +127 -70
  68. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  69. package/lib/commonjs/ui/screens/UserLinksScreen.js +13 -29
  70. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  71. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +110 -52
  72. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  73. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +3 -5
  74. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  75. package/lib/commonjs/ui/utils/fileManagement.js +0 -21
  76. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
  77. package/lib/module/ui/components/OxyPayButton.js +4 -2
  78. package/lib/module/ui/components/OxyPayButton.js.map +1 -1
  79. package/lib/module/ui/components/OxyProvider.js +6 -5
  80. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  81. package/lib/module/ui/components/OxySignInButton.js +84 -83
  82. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  83. package/lib/module/ui/components/SignInModal.js +271 -100
  84. package/lib/module/ui/components/SignInModal.js.map +1 -1
  85. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +76 -122
  86. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  87. package/lib/module/ui/components/fileManagement/FileViewer.js +24 -15
  88. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  89. package/lib/module/ui/components/fileManagement/UploadPreview.js +32 -19
  90. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  91. package/lib/module/ui/components/icon/OxyIcon.js +5 -4
  92. package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
  93. package/lib/module/ui/components/index.js +0 -5
  94. package/lib/module/ui/components/index.js.map +1 -1
  95. package/lib/module/ui/components/internal/PinInput.js +3 -2
  96. package/lib/module/ui/components/internal/PinInput.js.map +1 -1
  97. package/lib/module/ui/components/modals/DeleteAccountModal.js +83 -220
  98. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  99. package/lib/module/ui/components/payment/PaymentDetailsStep.js +26 -13
  100. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  101. package/lib/module/ui/components/payment/PaymentMethodStep.js +49 -26
  102. package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
  103. package/lib/module/ui/components/payment/PaymentReviewStep.js +84 -48
  104. package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
  105. package/lib/module/ui/components/payment/PaymentSuccessStep.js +11 -9
  106. package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  107. package/lib/module/ui/components/payment/PaymentSummaryStep.js +38 -22
  108. package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  109. package/lib/module/ui/constants/theme.js +2 -2
  110. package/lib/module/ui/constants/theme.js.map +1 -1
  111. package/lib/module/ui/context/hooks/useAuthOperations.js +4 -3
  112. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  113. package/lib/module/ui/screens/AccountCenterScreen.js +12 -13
  114. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  115. package/lib/module/ui/screens/AccountOverviewScreen.js +117 -142
  116. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  117. package/lib/module/ui/screens/AccountSettingsScreen.js +112 -78
  118. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  119. package/lib/module/ui/screens/AccountSwitcherScreen.js +213 -145
  120. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  121. package/lib/module/ui/screens/AccountVerificationScreen.js +28 -16
  122. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  123. package/lib/module/ui/screens/FeedbackScreen.js +48 -42
  124. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  125. package/lib/module/ui/screens/FileManagementScreen.js +110 -88
  126. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  127. package/lib/module/ui/screens/HistoryViewScreen.js +110 -131
  128. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  129. package/lib/module/ui/screens/LanguageSelectorScreen.js +16 -9
  130. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  131. package/lib/module/ui/screens/LegalDocumentsScreen.js +61 -55
  132. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  133. package/lib/module/ui/screens/PaymentGatewayScreen.js +12 -9
  134. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  135. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +66 -94
  136. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  137. package/lib/module/ui/screens/PrivacySettingsScreen.js +161 -192
  138. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  139. package/lib/module/ui/screens/SavesCollectionsScreen.js +21 -23
  140. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  141. package/lib/module/ui/screens/SearchSettingsScreen.js +17 -18
  142. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  143. package/lib/module/ui/screens/SessionManagementScreen.js +128 -72
  144. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  145. package/lib/module/ui/screens/UserLinksScreen.js +15 -31
  146. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  147. package/lib/module/ui/screens/WelcomeNewUserScreen.js +110 -52
  148. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  149. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +4 -6
  150. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  151. package/lib/module/ui/utils/fileManagement.js +0 -20
  152. package/lib/module/ui/utils/fileManagement.js.map +1 -1
  153. package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -1
  156. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +3 -4
  159. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  160. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  161. package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +2 -3
  162. package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/ui/components/index.d.ts +0 -5
  165. package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts.map +1 -1
  167. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +2 -2
  168. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  170. package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  171. package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  172. package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  174. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +1 -1
  176. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  178. package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +0 -4
  196. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
  197. package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
  198. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  199. package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -1
  200. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  201. package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
  202. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +3 -4
  203. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  204. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  205. package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +2 -3
  206. package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
  207. package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +1 -1
  208. package/lib/typescript/module/ui/components/index.d.ts +0 -5
  209. package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
  210. package/lib/typescript/module/ui/components/internal/PinInput.d.ts.map +1 -1
  211. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +2 -2
  212. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  213. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  214. package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  215. package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  216. package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  217. package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  218. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  219. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +1 -1
  220. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  221. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  222. package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  223. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  224. package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  225. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  226. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  227. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  228. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  229. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  230. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  231. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  232. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  233. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  234. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  235. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  236. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  237. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  238. package/lib/typescript/module/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
  239. package/lib/typescript/module/ui/utils/fileManagement.d.ts +0 -4
  240. package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
  241. package/package.json +3 -3
  242. package/src/ui/components/OxyPayButton.tsx +5 -3
  243. package/src/ui/components/OxyProvider.tsx +6 -5
  244. package/src/ui/components/OxySignInButton.tsx +82 -81
  245. package/src/ui/components/SignInModal.tsx +186 -42
  246. package/src/ui/components/fileManagement/FileDetailsModal.tsx +69 -99
  247. package/src/ui/components/fileManagement/FileViewer.tsx +25 -15
  248. package/src/ui/components/fileManagement/UploadPreview.tsx +58 -46
  249. package/src/ui/components/icon/OxyIcon.tsx +5 -4
  250. package/src/ui/components/index.ts +0 -5
  251. package/src/ui/components/internal/PinInput.tsx +4 -3
  252. package/src/ui/components/modals/DeleteAccountModal.tsx +79 -221
  253. package/src/ui/components/payment/PaymentDetailsStep.tsx +16 -19
  254. package/src/ui/components/payment/PaymentMethodStep.tsx +33 -35
  255. package/src/ui/components/payment/PaymentReviewStep.tsx +63 -67
  256. package/src/ui/components/payment/PaymentSuccessStep.tsx +4 -12
  257. package/src/ui/components/payment/PaymentSummaryStep.tsx +26 -33
  258. package/src/ui/constants/theme.ts +2 -2
  259. package/src/ui/context/hooks/useAuthOperations.ts +4 -3
  260. package/src/ui/screens/AccountCenterScreen.tsx +36 -139
  261. package/src/ui/screens/AccountOverviewScreen.tsx +107 -163
  262. package/src/ui/screens/AccountSettingsScreen.tsx +142 -156
  263. package/src/ui/screens/AccountSwitcherScreen.tsx +226 -199
  264. package/src/ui/screens/AccountVerificationScreen.tsx +34 -25
  265. package/src/ui/screens/FeedbackScreen.tsx +50 -38
  266. package/src/ui/screens/FileManagementScreen.tsx +88 -88
  267. package/src/ui/screens/HistoryViewScreen.tsx +79 -207
  268. package/src/ui/screens/LanguageSelectorScreen.tsx +19 -7
  269. package/src/ui/screens/LegalDocumentsScreen.tsx +46 -63
  270. package/src/ui/screens/PaymentGatewayScreen.tsx +11 -12
  271. package/src/ui/screens/PremiumSubscriptionScreen.tsx +73 -93
  272. package/src/ui/screens/PrivacySettingsScreen.tsx +81 -193
  273. package/src/ui/screens/SavesCollectionsScreen.tsx +23 -23
  274. package/src/ui/screens/SearchSettingsScreen.tsx +11 -19
  275. package/src/ui/screens/SessionManagementScreen.tsx +130 -76
  276. package/src/ui/screens/UserLinksScreen.tsx +15 -32
  277. package/src/ui/screens/WelcomeNewUserScreen.tsx +46 -20
  278. package/src/ui/screens/karma/KarmaFAQScreen.tsx +4 -6
  279. package/src/ui/utils/fileManagement.ts +0 -30
  280. package/lib/commonjs/ui/components/GroupedItem.js +0 -138
  281. package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
  282. package/lib/commonjs/ui/components/GroupedSection.js +0 -41
  283. package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
  284. package/lib/commonjs/ui/components/Section.js +0 -39
  285. package/lib/commonjs/ui/components/Section.js.map +0 -1
  286. package/lib/commonjs/ui/components/SectionTitle.js +0 -29
  287. package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
  288. package/lib/commonjs/ui/components/SettingRow.js +0 -90
  289. package/lib/commonjs/ui/components/SettingRow.js.map +0 -1
  290. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +0 -206
  291. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +0 -1
  292. package/lib/commonjs/ui/utils/confirmAction.js +0 -28
  293. package/lib/commonjs/ui/utils/confirmAction.js.map +0 -1
  294. package/lib/module/ui/components/GroupedItem.js +0 -135
  295. package/lib/module/ui/components/GroupedItem.js.map +0 -1
  296. package/lib/module/ui/components/GroupedSection.js +0 -37
  297. package/lib/module/ui/components/GroupedSection.js.map +0 -1
  298. package/lib/module/ui/components/Section.js +0 -34
  299. package/lib/module/ui/components/Section.js.map +0 -1
  300. package/lib/module/ui/components/SectionTitle.js +0 -25
  301. package/lib/module/ui/components/SectionTitle.js.map +0 -1
  302. package/lib/module/ui/components/SettingRow.js +0 -85
  303. package/lib/module/ui/components/SettingRow.js.map +0 -1
  304. package/lib/module/ui/components/internal/GroupedPillButtons.js +0 -202
  305. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +0 -1
  306. package/lib/module/ui/utils/confirmAction.js +0 -25
  307. package/lib/module/ui/utils/confirmAction.js.map +0 -1
  308. package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts +0 -24
  309. package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +0 -1
  310. package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts +0 -30
  311. package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts.map +0 -1
  312. package/lib/typescript/commonjs/ui/components/Section.d.ts +0 -12
  313. package/lib/typescript/commonjs/ui/components/Section.d.ts.map +0 -1
  314. package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts +0 -10
  315. package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts.map +0 -1
  316. package/lib/typescript/commonjs/ui/components/SettingRow.d.ts +0 -20
  317. package/lib/typescript/commonjs/ui/components/SettingRow.d.ts.map +0 -1
  318. package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts +0 -24
  319. package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
  320. package/lib/typescript/commonjs/ui/utils/confirmAction.d.ts +0 -7
  321. package/lib/typescript/commonjs/ui/utils/confirmAction.d.ts.map +0 -1
  322. package/lib/typescript/module/ui/components/GroupedItem.d.ts +0 -24
  323. package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +0 -1
  324. package/lib/typescript/module/ui/components/GroupedSection.d.ts +0 -30
  325. package/lib/typescript/module/ui/components/GroupedSection.d.ts.map +0 -1
  326. package/lib/typescript/module/ui/components/Section.d.ts +0 -12
  327. package/lib/typescript/module/ui/components/Section.d.ts.map +0 -1
  328. package/lib/typescript/module/ui/components/SectionTitle.d.ts +0 -10
  329. package/lib/typescript/module/ui/components/SectionTitle.d.ts.map +0 -1
  330. package/lib/typescript/module/ui/components/SettingRow.d.ts +0 -20
  331. package/lib/typescript/module/ui/components/SettingRow.d.ts.map +0 -1
  332. package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts +0 -24
  333. package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
  334. package/lib/typescript/module/ui/utils/confirmAction.d.ts +0 -7
  335. package/lib/typescript/module/ui/utils/confirmAction.d.ts.map +0 -1
  336. package/src/ui/components/GroupedItem.tsx +0 -161
  337. package/src/ui/components/GroupedSection.tsx +0 -60
  338. package/src/ui/components/Section.tsx +0 -42
  339. package/src/ui/components/SectionTitle.tsx +0 -27
  340. package/src/ui/components/SettingRow.tsx +0 -98
  341. package/src/ui/components/internal/GroupedPillButtons.tsx +0 -250
  342. package/src/ui/utils/confirmAction.ts +0 -23
@@ -9,12 +9,14 @@ import {
9
9
  Platform,
10
10
  Image,
11
11
  } from 'react-native';
12
+ import { MaterialCommunityIcons } from '@expo/vector-icons';
12
13
  import type { BaseScreenProps } from '../types/navigation';
13
14
  import { toast } from '../../lib/sonner';
14
15
  import { fontFamilies } from '../styles/fonts';
15
- import { confirmAction } from '../utils/confirmAction';
16
+ import * as Prompt from '@oxyhq/bloom/prompt';
17
+ import { usePromptControl } from '@oxyhq/bloom/prompt';
16
18
  import { useAuthStore } from '../stores/authStore';
17
- import { GroupedSection } from '../components';
19
+ import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
18
20
  import { useI18n } from '../hooks/useI18n';
19
21
  import { useTheme } from '@oxyhq/bloom/theme';
20
22
  import { useColorScheme } from '../hooks/useColorScheme';
@@ -54,6 +56,9 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
54
56
  const { data: user, isLoading: userLoading } = useCurrentUser({ enabled: isAuthenticated });
55
57
  const uploadAvatarMutation = useUploadAvatar();
56
58
 
59
+ // Prompt controls
60
+ const removeAvatarPrompt = usePromptControl();
61
+
57
62
  // Fallback to store for backward compatibility
58
63
  const userFromStore = useAuthStore((state) => state.user);
59
64
  const finalUser = user || userFromStore;
@@ -259,12 +264,14 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
259
264
  }
260
265
  }, [initialSection, sectionYPositions]);
261
266
 
262
- const handleAvatarRemove = () => {
263
- confirmAction(t('editProfile.confirms.removeAvatar') || 'Remove your profile picture?', () => {
264
- setAvatarFileId('');
265
- toast.success(t('editProfile.toasts.avatarRemoved') || 'Avatar removed');
266
- });
267
- };
267
+ const handleAvatarRemoveConfirmed = useCallback(() => {
268
+ setAvatarFileId('');
269
+ toast.success(t('editProfile.toasts.avatarRemoved') || 'Avatar removed');
270
+ }, [t]);
271
+
272
+ const handleAvatarRemove = useCallback(() => {
273
+ removeAvatarPrompt.open();
274
+ }, [removeAvatarPrompt]);
268
275
 
269
276
  const { openAvatarPicker } = useOxy();
270
277
 
@@ -356,64 +363,59 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
356
363
  {t('editProfile.sections.profilePicture') || 'PROFILE PICTURE'}
357
364
  </Text>
358
365
  <View style={styles.groupedSectionWrapper}>
359
- <GroupedSection
360
- items={[
361
- {
362
- id: 'profile-photo',
363
- customIcon: (optimisticAvatarId || avatarFileId) ? (
364
- isUpdatingAvatar ? (
365
- <Animated.View style={{ position: 'relative', width: 36, height: 36 }}>
366
- <Animated.Image
367
- source={{ uri: oxyServices.getFileDownloadUrl(optimisticAvatarId || avatarFileId, 'thumb') }}
368
- style={{
369
- width: 36,
370
- height: 36,
371
- borderRadius: 18,
372
- opacity: 0.6
373
- }}
374
- />
375
- <View style={{
376
- position: 'absolute',
377
- top: 0,
378
- left: 0,
379
- right: 0,
380
- bottom: 0,
381
- justifyContent: 'center',
382
- alignItems: 'center',
383
- backgroundColor: colorScheme === 'dark' ? 'rgba(0, 0, 0, 0.4)' : 'rgba(255, 255, 255, 0.7)',
384
- borderRadius: 18,
385
- }}>
386
- <ActivityIndicator size="small" color={colors.tint} />
387
- </View>
388
- </Animated.View>
389
- ) : (
390
- <Image
366
+ <SettingsListGroup>
367
+ <SettingsListItem
368
+ icon={(optimisticAvatarId || avatarFileId) ? (
369
+ isUpdatingAvatar ? (
370
+ <Animated.View style={{ position: 'relative', width: 36, height: 36 }}>
371
+ <Animated.Image
391
372
  source={{ uri: oxyServices.getFileDownloadUrl(optimisticAvatarId || avatarFileId, 'thumb') }}
392
- style={{ width: 36, height: 36, borderRadius: 18 }}
373
+ style={{
374
+ width: 36,
375
+ height: 36,
376
+ borderRadius: 18,
377
+ opacity: 0.6
378
+ }}
393
379
  />
394
- )
395
- ) : undefined,
396
- icon: !(optimisticAvatarId || avatarFileId) ? 'account-outline' : undefined,
397
- iconColor: colors.sidebarIconPersonalInfo,
398
- title: 'Profile Photo',
399
- subtitle: isUpdatingAvatar
400
- ? 'Updating profile picture...'
401
- : (avatarFileId ? 'Tap to change your profile picture' : 'Tap to add a profile picture'),
402
- onPress: isUpdatingAvatar ? undefined : openAvatarPicker,
403
- disabled: isUpdatingAvatar,
404
- },
405
- ...(avatarFileId && !isUpdatingAvatar ? [
406
- {
407
- id: 'remove-profile-photo',
408
- icon: 'delete-outline',
409
- iconColor: colors.sidebarIconSharing,
410
- title: 'Remove Photo',
411
- subtitle: 'Delete current profile picture',
412
- onPress: handleAvatarRemove,
413
- }
414
- ] : []),
415
- ]}
416
- />
380
+ <View style={{
381
+ position: 'absolute',
382
+ top: 0,
383
+ left: 0,
384
+ right: 0,
385
+ bottom: 0,
386
+ justifyContent: 'center',
387
+ alignItems: 'center',
388
+ backgroundColor: colorScheme === 'dark' ? 'rgba(0, 0, 0, 0.4)' : 'rgba(255, 255, 255, 0.7)',
389
+ borderRadius: 18,
390
+ }}>
391
+ <ActivityIndicator size="small" color={colors.tint} />
392
+ </View>
393
+ </Animated.View>
394
+ ) : (
395
+ <Image
396
+ source={{ uri: oxyServices.getFileDownloadUrl(optimisticAvatarId || avatarFileId, 'thumb') }}
397
+ style={{ width: 36, height: 36, borderRadius: 18 }}
398
+ />
399
+ )
400
+ ) : (
401
+ <MaterialCommunityIcons name="account-outline" size={20} color={colors.sidebarIconPersonalInfo} />
402
+ )}
403
+ title="Profile Photo"
404
+ description={isUpdatingAvatar
405
+ ? 'Updating profile picture...'
406
+ : (avatarFileId ? 'Tap to change your profile picture' : 'Tap to add a profile picture')}
407
+ onPress={isUpdatingAvatar ? undefined : openAvatarPicker}
408
+ disabled={isUpdatingAvatar}
409
+ />
410
+ {avatarFileId && !isUpdatingAvatar ? (
411
+ <SettingsListItem
412
+ icon={<MaterialCommunityIcons name="delete-outline" size={20} color={colors.sidebarIconSharing} />}
413
+ title="Remove Photo"
414
+ description="Delete current profile picture"
415
+ onPress={handleAvatarRemove}
416
+ />
417
+ ) : null}
418
+ </SettingsListGroup>
417
419
  </View>
418
420
  </View>
419
421
 
@@ -430,34 +432,26 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
430
432
  {t('editProfile.sections.basicInfo') || 'BASIC INFORMATION'}
431
433
  </Text>
432
434
  <View style={styles.groupedSectionWrapper}>
433
- <GroupedSection
434
- items={[
435
- {
436
- id: 'display-name',
437
- icon: 'account-outline',
438
- iconColor: colors.sidebarIconPersonalInfo,
439
- title: t('editProfile.items.displayName.title') || 'Display Name',
440
- subtitle: [displayName, lastName].filter(Boolean).join(' ') || (t('editProfile.items.displayName.add') || 'Add your display name'),
441
- onPress: handleOpenDisplayNameModal,
442
- },
443
- {
444
- id: 'username',
445
- icon: 'at',
446
- iconColor: colors.sidebarIconData,
447
- title: t('editProfile.items.username.title') || 'Username',
448
- subtitle: username || (t('editProfile.items.username.choose') || 'Choose a username'),
449
- onPress: handleOpenUsernameModal,
450
- },
451
- {
452
- id: 'email',
453
- icon: 'email-outline',
454
- iconColor: colors.sidebarIconSecurity,
455
- title: t('editProfile.items.email.title') || 'Email',
456
- subtitle: email || (t('editProfile.items.email.add') || 'Add your email address'),
457
- onPress: handleOpenEmailModal,
458
- },
459
- ]}
460
- />
435
+ <SettingsListGroup>
436
+ <SettingsListItem
437
+ icon={<MaterialCommunityIcons name="account-outline" size={20} color={colors.sidebarIconPersonalInfo} />}
438
+ title={t('editProfile.items.displayName.title') || 'Display Name'}
439
+ description={[displayName, lastName].filter(Boolean).join(' ') || (t('editProfile.items.displayName.add') || 'Add your display name')}
440
+ onPress={handleOpenDisplayNameModal}
441
+ />
442
+ <SettingsListItem
443
+ icon={<MaterialCommunityIcons name="at" size={20} color={colors.sidebarIconData} />}
444
+ title={t('editProfile.items.username.title') || 'Username'}
445
+ description={username || (t('editProfile.items.username.choose') || 'Choose a username')}
446
+ onPress={handleOpenUsernameModal}
447
+ />
448
+ <SettingsListItem
449
+ icon={<MaterialCommunityIcons name="email-outline" size={20} color={colors.sidebarIconSecurity} />}
450
+ title={t('editProfile.items.email.title') || 'Email'}
451
+ description={email || (t('editProfile.items.email.add') || 'Add your email address')}
452
+ onPress={handleOpenEmailModal}
453
+ />
454
+ </SettingsListGroup>
461
455
  </View>
462
456
  </View>
463
457
 
@@ -474,42 +468,34 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
474
468
  {t('editProfile.sections.about') || 'ABOUT YOU'}
475
469
  </Text>
476
470
  <View style={styles.groupedSectionWrapper}>
477
- <GroupedSection
478
- items={[
479
- {
480
- id: 'bio',
481
- icon: 'text-box-outline',
482
- iconColor: colors.sidebarIconPersonalInfo,
483
- title: t('editProfile.items.bio.title') || 'Bio',
484
- subtitle: bio || (t('editProfile.items.bio.placeholder') || 'Tell people about yourself'),
485
- onPress: handleOpenBioModal,
486
- },
487
- {
488
- id: 'locations',
489
- icon: 'map-marker-outline',
490
- iconColor: colors.sidebarIconSharing,
491
- title: t('editProfile.items.locations.title') || 'Locations',
492
- subtitle: locations.length > 0
493
- ? (locations.length === 1
494
- ? (t('editProfile.items.locations.count', { count: locations.length }) || `${locations.length} location added`)
495
- : (t('editProfile.items.locations.count_plural', { count: locations.length }) || `${locations.length} locations added`))
496
- : (t('editProfile.items.locations.add') || 'Add your locations'),
497
- onPress: handleOpenLocationModal,
498
- },
499
- {
500
- id: 'links',
501
- icon: 'link-variant',
502
- iconColor: colors.sidebarIconSharing,
503
- title: t('editProfile.items.links.title') || 'Links',
504
- subtitle: linksMetadata.length > 0
505
- ? (linksMetadata.length === 1
506
- ? (t('editProfile.items.links.count', { count: linksMetadata.length }) || `${linksMetadata.length} link added`)
507
- : (t('editProfile.items.links.count_plural', { count: linksMetadata.length }) || `${linksMetadata.length} links added`))
508
- : (t('editProfile.items.links.add') || 'Add your links'),
509
- onPress: handleOpenLinksModal,
510
- },
511
- ]}
512
- />
471
+ <SettingsListGroup>
472
+ <SettingsListItem
473
+ icon={<MaterialCommunityIcons name="text-box-outline" size={20} color={colors.sidebarIconPersonalInfo} />}
474
+ title={t('editProfile.items.bio.title') || 'Bio'}
475
+ description={bio || (t('editProfile.items.bio.placeholder') || 'Tell people about yourself')}
476
+ onPress={handleOpenBioModal}
477
+ />
478
+ <SettingsListItem
479
+ icon={<MaterialCommunityIcons name="map-marker-outline" size={20} color={colors.sidebarIconSharing} />}
480
+ title={t('editProfile.items.locations.title') || 'Locations'}
481
+ description={locations.length > 0
482
+ ? (locations.length === 1
483
+ ? (t('editProfile.items.locations.count', { count: locations.length }) || `${locations.length} location added`)
484
+ : (t('editProfile.items.locations.count_plural', { count: locations.length }) || `${locations.length} locations added`))
485
+ : (t('editProfile.items.locations.add') || 'Add your locations')}
486
+ onPress={handleOpenLocationModal}
487
+ />
488
+ <SettingsListItem
489
+ icon={<MaterialCommunityIcons name="link-variant" size={20} color={colors.sidebarIconSharing} />}
490
+ title={t('editProfile.items.links.title') || 'Links'}
491
+ description={linksMetadata.length > 0
492
+ ? (linksMetadata.length === 1
493
+ ? (t('editProfile.items.links.count', { count: linksMetadata.length }) || `${linksMetadata.length} link added`)
494
+ : (t('editProfile.items.links.count_plural', { count: linksMetadata.length }) || `${linksMetadata.length} links added`))
495
+ : (t('editProfile.items.links.add') || 'Add your links')}
496
+ onPress={handleOpenLinksModal}
497
+ />
498
+ </SettingsListGroup>
513
499
  </View>
514
500
  </View>
515
501
 
@@ -526,34 +512,26 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
526
512
  {t('editProfile.sections.quickActions') || 'QUICK ACTIONS'}
527
513
  </Text>
528
514
  <View style={styles.groupedSectionWrapper}>
529
- <GroupedSection
530
- items={[
531
- {
532
- id: 'preview-profile',
533
- icon: 'eye',
534
- iconColor: colors.sidebarIconHome,
535
- title: t('editProfile.items.previewProfile.title') || 'Preview Profile',
536
- subtitle: t('editProfile.items.previewProfile.subtitle') || 'See how your profile looks to others',
537
- onPress: () => navigate?.('Profile', { userId: finalUser?.id }),
538
- },
539
- {
540
- id: 'privacy-settings',
541
- icon: 'shield-check',
542
- iconColor: colors.sidebarIconSecurity,
543
- title: t('editProfile.items.privacySettings.title') || 'Privacy Settings',
544
- subtitle: t('editProfile.items.privacySettings.subtitle') || 'Control who can see your profile',
545
- onPress: () => navigate?.('PrivacySettings'),
546
- },
547
- {
548
- id: 'verify-account',
549
- icon: 'check-circle',
550
- iconColor: colors.sidebarIconPersonalInfo,
551
- title: t('editProfile.items.verifyAccount.title') || 'Verify Account',
552
- subtitle: t('editProfile.items.verifyAccount.subtitle') || 'Get a verified badge',
553
- onPress: () => navigate?.('AccountVerification'),
554
- },
555
- ]}
556
- />
515
+ <SettingsListGroup>
516
+ <SettingsListItem
517
+ icon={<MaterialCommunityIcons name="eye" size={20} color={colors.sidebarIconHome} />}
518
+ title={t('editProfile.items.previewProfile.title') || 'Preview Profile'}
519
+ description={t('editProfile.items.previewProfile.subtitle') || 'See how your profile looks to others'}
520
+ onPress={() => navigate?.('Profile', { userId: finalUser?.id })}
521
+ />
522
+ <SettingsListItem
523
+ icon={<MaterialCommunityIcons name="shield-check" size={20} color={colors.sidebarIconSecurity} />}
524
+ title={t('editProfile.items.privacySettings.title') || 'Privacy Settings'}
525
+ description={t('editProfile.items.privacySettings.subtitle') || 'Control who can see your profile'}
526
+ onPress={() => navigate?.('PrivacySettings')}
527
+ />
528
+ <SettingsListItem
529
+ icon={<MaterialCommunityIcons name="check-circle" size={20} color={colors.sidebarIconPersonalInfo} />}
530
+ title={t('editProfile.items.verifyAccount.title') || 'Verify Account'}
531
+ description={t('editProfile.items.verifyAccount.subtitle') || 'Get a verified badge'}
532
+ onPress={() => navigate?.('AccountVerification')}
533
+ />
534
+ </SettingsListGroup>
557
535
  </View>
558
536
  </View>
559
537
 
@@ -573,6 +551,14 @@ const AccountSettingsScreen: React.FC<BaseScreenProps & { initialField?: string;
573
551
  </View>
574
552
  </View>
575
553
  </ScrollView>
554
+ <Prompt.Basic
555
+ control={removeAvatarPrompt}
556
+ title={t('editProfile.confirms.removeAvatarTitle') || 'Remove Avatar'}
557
+ description={t('editProfile.confirms.removeAvatar') || 'Remove your profile picture?'}
558
+ onConfirm={handleAvatarRemoveConfirmed}
559
+ confirmButtonCta={t('common.remove') || 'Remove'}
560
+ confirmButtonColor='negative'
561
+ />
576
562
  </View>
577
563
  );
578
564
  };