@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
@@ -8,14 +8,18 @@ var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
9
  var _fonts = require("../styles/fonts.js");
10
10
  var _sonner = require("../../lib/sonner");
11
- var _confirmAction = require("../utils/confirmAction.js");
11
+ var _prompt = _interopRequireWildcard(require("@oxyhq/bloom/prompt"));
12
+ var Prompt = _prompt;
12
13
  var _OxyIcon = _interopRequireDefault(require("../components/icon/OxyIcon.js"));
13
14
  var _index = require("../components/index.js");
15
+ var _settingsList = require("@oxyhq/bloom/settings-list");
16
+ var _SettingsIcon = require("../components/SettingsIcon.js");
14
17
  var _useI18n = require("../hooks/useI18n.js");
15
18
  var _theme = require("@oxyhq/bloom/theme");
16
19
  var _OxyContext = require("../context/OxyContext.js");
17
20
  var _jsxRuntime = require("react/jsx-runtime");
18
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
23
  const ModernAccountSwitcherScreen = ({
20
24
  onClose,
21
25
  theme,
@@ -50,6 +54,16 @@ const ModernAccountSwitcherScreen = ({
50
54
  const [loadingDeviceSessions, setLoadingDeviceSessions] = (0, _react.useState)(false);
51
55
  const [remotingLogoutSessionId, setRemoteLogoutSessionId] = (0, _react.useState)(null);
52
56
  const [loggingOutAllDevices, setLoggingOutAllDevices] = (0, _react.useState)(false);
57
+
58
+ // Pending state for prompts
59
+ const [pendingRemoveSession, setPendingRemoveSession] = (0, _react.useState)(null);
60
+ const [pendingRemoteLogout, setPendingRemoteLogout] = (0, _react.useState)(null);
61
+
62
+ // Prompt controls
63
+ const removeSessionPrompt = (0, _prompt.usePromptControl)();
64
+ const logoutAllPrompt = (0, _prompt.usePromptControl)();
65
+ const remoteLogoutPrompt = (0, _prompt.usePromptControl)();
66
+ const logoutAllDevicesPrompt = (0, _prompt.usePromptControl)();
53
67
  const screenWidth = _reactNative.Dimensions.get('window').width;
54
68
  const {
55
69
  t
@@ -144,44 +158,52 @@ const ModernAccountSwitcherScreen = ({
144
158
  setSwitchingToUserId(null);
145
159
  }
146
160
  }, [activeSessionId, switchSession, onClose, t, switchingToUserId]);
147
- const handleRemoveSession = (0, _react.useCallback)(async (sessionId, displayName) => {
148
- if (removingUserId) return; // Already removing
149
-
150
- (0, _confirmAction.confirmAction)(t('accountSwitcher.confirms.remove', {
161
+ const confirmRemoveSession = (0, _react.useCallback)((sessionId, displayName) => {
162
+ if (removingUserId) return;
163
+ setPendingRemoveSession({
164
+ sessionId,
151
165
  displayName
152
- }) || `Are you sure you want to remove ${displayName} from this device? You'll need to sign in again to access this account.`, async () => {
153
- setRemovingUserId(sessionId);
154
- try {
155
- await removeSession(sessionId);
156
- _sonner.toast.success(t('accountSwitcher.toasts.removeSuccess') || 'Account removed successfully!');
157
- } catch (error) {
158
- if (__DEV__) {
159
- console.error('Remove session failed:', error);
160
- }
161
- _sonner.toast.error(t('accountSwitcher.toasts.removeFailed') || 'There was a problem removing the account. Please try again.');
162
- } finally {
163
- setRemovingUserId(null);
164
- }
165
166
  });
166
- }, [removeSession, t, removingUserId]);
167
- const handleLogoutAll = (0, _react.useCallback)(() => {
168
- (0, _confirmAction.confirmAction)(t('accountSwitcher.confirms.logoutAll') || 'Are you sure you want to sign out of all accounts? This will remove all saved accounts from this device.', async () => {
169
- try {
170
- await logoutAll();
171
- _sonner.toast.success(t('accountSwitcher.toasts.signOutAllSuccess') || 'All accounts signed out successfully!');
172
- if (onClose) {
173
- onClose();
174
- }
175
- } catch (error) {
176
- if (__DEV__) {
177
- console.error('Logout all failed:', error);
178
- }
179
- const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
180
- _sonner.toast.error(t('accountSwitcher.toasts.signOutAllFailed', {
181
- error: errorMessage
182
- }) || `There was a problem signing out: ${errorMessage}`);
167
+ removeSessionPrompt.open();
168
+ }, [removingUserId, removeSessionPrompt]);
169
+ const handleRemoveSession = (0, _react.useCallback)(async () => {
170
+ if (!pendingRemoveSession) return;
171
+ const {
172
+ sessionId
173
+ } = pendingRemoveSession;
174
+ setRemovingUserId(sessionId);
175
+ try {
176
+ await removeSession(sessionId);
177
+ _sonner.toast.success(t('accountSwitcher.toasts.removeSuccess') || 'Account removed successfully!');
178
+ } catch (error) {
179
+ if (__DEV__) {
180
+ console.error('Remove session failed:', error);
183
181
  }
184
- });
182
+ _sonner.toast.error(t('accountSwitcher.toasts.removeFailed') || 'There was a problem removing the account. Please try again.');
183
+ } finally {
184
+ setRemovingUserId(null);
185
+ setPendingRemoveSession(null);
186
+ }
187
+ }, [pendingRemoveSession, removeSession, t]);
188
+ const confirmLogoutAll = (0, _react.useCallback)(() => {
189
+ logoutAllPrompt.open();
190
+ }, [logoutAllPrompt]);
191
+ const handleLogoutAll = (0, _react.useCallback)(async () => {
192
+ try {
193
+ await logoutAll();
194
+ _sonner.toast.success(t('accountSwitcher.toasts.signOutAllSuccess') || 'All accounts signed out successfully!');
195
+ if (onClose) {
196
+ onClose();
197
+ }
198
+ } catch (error) {
199
+ if (__DEV__) {
200
+ console.error('Logout all failed:', error);
201
+ }
202
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
203
+ _sonner.toast.error(t('accountSwitcher.toasts.signOutAllFailed', {
204
+ error: errorMessage
205
+ }) || `There was a problem signing out: ${errorMessage}`);
206
+ }
185
207
  }, [logoutAll, onClose, t]);
186
208
  const handleSwitchToManagedAccount = (0, _react.useCallback)(async accountId => {
187
209
  if (actingAs === accountId) return; // Already acting as this account
@@ -223,58 +245,64 @@ const ModernAccountSwitcherScreen = ({
223
245
  setLoadingDeviceSessions(false);
224
246
  }
225
247
  }, [oxyServices, activeSessionId, t]);
226
- const handleRemoteSessionLogout = (0, _react.useCallback)((sessionId, deviceName) => {
227
- if (remotingLogoutSessionId) return; // Already processing
228
-
229
- (0, _confirmAction.confirmAction)(t('accountSwitcher.confirms.remoteLogout', {
248
+ const confirmRemoteSessionLogout = (0, _react.useCallback)((sessionId, deviceName) => {
249
+ if (remotingLogoutSessionId) return;
250
+ setPendingRemoteLogout({
251
+ sessionId,
230
252
  deviceName
231
- }) || `Are you sure you want to sign out from "${deviceName}"? This will end the session on that device.`, async () => {
232
- setRemoteLogoutSessionId(sessionId);
233
- try {
234
- await oxyServices?.logoutSession((activeSessionId ?? null) || '', sessionId);
235
- await loadAllDeviceSessions();
236
- _sonner.toast.success(t('accountSwitcher.toasts.remoteSignOutSuccess', {
237
- deviceName
238
- }) || `Signed out from ${deviceName} successfully!`);
239
- } catch (error) {
240
- if (__DEV__) {
241
- console.error('Remote logout failed:', error);
242
- }
243
- _sonner.toast.error(t('accountSwitcher.toasts.remoteSignOutFailed') || 'There was a problem signing out from the device. Please try again.');
244
- } finally {
245
- setRemoteLogoutSessionId(null);
246
- }
247
253
  });
248
- }, [activeSessionId, oxyServices, loadAllDeviceSessions, t, remotingLogoutSessionId]);
249
- const handleLogoutAllDevices = (0, _react.useCallback)(() => {
254
+ remoteLogoutPrompt.open();
255
+ }, [remotingLogoutSessionId, remoteLogoutPrompt]);
256
+ const handleRemoteSessionLogout = (0, _react.useCallback)(async () => {
257
+ if (!pendingRemoteLogout) return;
258
+ const {
259
+ sessionId
260
+ } = pendingRemoteLogout;
261
+ setRemoteLogoutSessionId(sessionId);
262
+ try {
263
+ await oxyServices?.logoutSession((activeSessionId ?? null) || '', sessionId);
264
+ await loadAllDeviceSessions();
265
+ _sonner.toast.success(t('accountSwitcher.toasts.remoteSignOutSuccess', {
266
+ deviceName: pendingRemoteLogout.deviceName
267
+ }) || `Signed out from ${pendingRemoteLogout.deviceName} successfully!`);
268
+ } catch (error) {
269
+ if (__DEV__) {
270
+ console.error('Remote logout failed:', error);
271
+ }
272
+ _sonner.toast.error(t('accountSwitcher.toasts.remoteSignOutFailed') || 'There was a problem signing out from the device. Please try again.');
273
+ } finally {
274
+ setRemoteLogoutSessionId(null);
275
+ setPendingRemoteLogout(null);
276
+ }
277
+ }, [pendingRemoteLogout, activeSessionId, oxyServices, loadAllDeviceSessions, t]);
278
+ const confirmLogoutAllDevices = (0, _react.useCallback)(() => {
250
279
  const otherDevicesCount = deviceSessions.filter(session => !session.isCurrent).length;
251
280
  if (otherDevicesCount === 0) {
252
281
  _sonner.toast.info(t('accountSwitcher.toasts.noOtherDeviceSessions') || 'No other device sessions found to sign out from.');
253
282
  return;
254
283
  }
255
- if (loggingOutAllDevices) return; // Already processing
256
-
257
- (0, _confirmAction.confirmAction)(t('accountSwitcher.confirms.logoutOthers', {
258
- count: otherDevicesCount
259
- }) || `Are you sure you want to sign out from all ${otherDevicesCount} other device(s)? This will end sessions on all other devices except this one.`, async () => {
260
- setLoggingOutAllDevices(true);
261
- try {
262
- await oxyServices?.logoutAllDeviceSessions((activeSessionId ?? null) || '');
263
- await loadAllDeviceSessions();
264
- _sonner.toast.success(t('accountSwitcher.toasts.signOutOthersSuccess') || 'Signed out from all other devices successfully!');
265
- } catch (error) {
266
- if (__DEV__) {
267
- console.error('Logout all devices failed:', error);
268
- }
269
- _sonner.toast.error(t('accountSwitcher.toasts.signOutOthersFailed') || 'There was a problem signing out from other devices. Please try again.');
270
- } finally {
271
- setLoggingOutAllDevices(false);
284
+ if (loggingOutAllDevices) return;
285
+ logoutAllDevicesPrompt.open();
286
+ }, [deviceSessions, loggingOutAllDevices, logoutAllDevicesPrompt, t]);
287
+ const handleLogoutAllDevices = (0, _react.useCallback)(async () => {
288
+ setLoggingOutAllDevices(true);
289
+ try {
290
+ await oxyServices?.logoutAllDeviceSessions((activeSessionId ?? null) || '');
291
+ await loadAllDeviceSessions();
292
+ _sonner.toast.success(t('accountSwitcher.toasts.signOutOthersSuccess') || 'Signed out from all other devices successfully!');
293
+ } catch (error) {
294
+ if (__DEV__) {
295
+ console.error('Logout all devices failed:', error);
272
296
  }
273
- });
274
- }, [deviceSessions, activeSessionId, oxyServices, loadAllDeviceSessions, t, loggingOutAllDevices]);
297
+ _sonner.toast.error(t('accountSwitcher.toasts.signOutOthersFailed') || 'There was a problem signing out from other devices. Please try again.');
298
+ } finally {
299
+ setLoggingOutAllDevices(false);
300
+ }
301
+ }, [activeSessionId, oxyServices, loadAllDeviceSessions, t]);
275
302
 
276
303
  // Memoize filtered sessions for performance
277
304
  const otherSessions = (0, _react.useMemo)(() => sessionsWithUsers.filter(s => s.sessionId !== (activeSessionId ?? null)), [sessionsWithUsers, activeSessionId]);
305
+ const otherDevicesCount = (0, _react.useMemo)(() => deviceSessions.filter(session => !session.isCurrent).length, [deviceSessions]);
278
306
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
279
307
  style: [styles.container, {
280
308
  backgroundColor: bloomTheme.colors.background
@@ -408,7 +436,7 @@ const ModernAccountSwitcherScreen = ({
408
436
  })
409
437
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
410
438
  style: styles.removeButton,
411
- onPress: () => handleRemoveSession(sessionWithUser.sessionId, displayName),
439
+ onPress: () => confirmRemoveSession(sessionWithUser.sessionId, displayName),
412
440
  disabled: isSwitching || isRemoving,
413
441
  children: isRemoving ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
414
442
  size: "small",
@@ -594,80 +622,85 @@ const ModernAccountSwitcherScreen = ({
594
622
  })]
595
623
  })]
596
624
  })]
597
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
625
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
598
626
  style: styles.section,
599
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
600
- style: styles.sectionTitle,
601
- children: "Quick Actions"
602
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
603
- items: [{
604
- id: 'add-account',
605
- icon: 'account-plus',
606
- iconColor: '#007AFF',
607
- title: 'Add Another Account',
608
- subtitle: 'Sign in with a different account',
627
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
628
+ title: "Quick Actions",
629
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
630
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
631
+ name: "account-plus",
632
+ color: "#007AFF"
633
+ }),
634
+ title: "Add Another Account",
635
+ description: "Sign in with a different account",
609
636
  onPress: () => navigate?.('OxyAuth')
610
- }, {
611
- id: 'device-management',
612
- icon: 'cellphone',
613
- iconColor: '#5856D6',
637
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
638
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
639
+ name: "cellphone",
640
+ color: "#5856D6"
641
+ }),
614
642
  title: `${showDeviceManagement ? 'Hide' : 'Manage'} Device Sessions`,
615
- subtitle: 'View and manage sessions on other devices',
643
+ description: "View and manage sessions on other devices",
616
644
  onPress: () => setShowDeviceManagement(!showDeviceManagement)
617
- }, {
618
- id: 'sign-out-all',
619
- icon: 'logout',
620
- iconColor: '#FF3B30',
621
- title: 'Sign Out All Accounts',
622
- subtitle: 'Remove all accounts from this device',
623
- onPress: handleLogoutAll,
624
- disabled: sessionsWithUsers.length === 0
625
- }]
626
- })]
645
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
646
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
647
+ name: "logout",
648
+ color: "#FF3B30"
649
+ }),
650
+ title: "Sign Out All Accounts",
651
+ description: "Remove all accounts from this device",
652
+ onPress: confirmLogoutAll,
653
+ disabled: sessionsWithUsers.length === 0,
654
+ destructive: true
655
+ })]
656
+ })
627
657
  }), showDeviceManagement && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
628
658
  style: styles.section,
629
659
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
630
660
  style: styles.sectionTitle,
631
661
  children: t('accountSwitcher.sections.deviceSessions') || 'Device Sessions'
632
- }), loadingDeviceSessions ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
633
- items: [{
634
- id: 'loading-device-sessions',
635
- icon: 'sync',
636
- iconColor: '#007AFF',
662
+ }), loadingDeviceSessions ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
663
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
664
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
665
+ name: "sync",
666
+ color: "#007AFF"
667
+ }),
637
668
  title: t('accountSwitcher.device.loadingTitle') || 'Loading device sessions...',
638
- subtitle: t('accountSwitcher.device.loadingSubtitle') || 'Please wait while we fetch your device sessions',
669
+ description: t('accountSwitcher.device.loadingSubtitle') || 'Please wait while we fetch your device sessions',
639
670
  disabled: true,
640
- customContent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
671
+ rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
641
672
  size: "small",
642
- color: "#007AFF",
643
- style: {
644
- marginRight: 16
645
- }
646
- })
647
- }]
648
- }) : deviceSessions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
649
- items: [{
650
- id: 'no-device-sessions',
651
- icon: 'cellphone',
652
- iconColor: '#ccc',
673
+ color: "#007AFF"
674
+ }),
675
+ showChevron: false
676
+ })
677
+ }) : deviceSessions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
678
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
679
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
680
+ name: "cellphone",
681
+ color: "#ccc"
682
+ }),
653
683
  title: t('accountSwitcher.device.noneTitle') || 'No device sessions found',
654
- subtitle: t('accountSwitcher.device.noneSubtitle') || 'Device session management not available',
655
- disabled: true
656
- }]
657
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
658
- items: deviceSessions.map((session, index) => ({
659
- id: `device-session-${session.sessionId}`,
660
- icon: session.isCurrent ? 'cellphone' : 'cellphone-basic',
661
- iconColor: session.isCurrent ? '#34C759' : '#8E8E93',
684
+ description: t('accountSwitcher.device.noneSubtitle') || 'Device session management not available',
685
+ disabled: true,
686
+ showChevron: false
687
+ })
688
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
689
+ children: deviceSessions.map(session => /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
690
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
691
+ name: session.isCurrent ? 'cellphone' : 'cellphone-basic',
692
+ color: session.isCurrent ? '#34C759' : '#8E8E93'
693
+ }),
662
694
  title: `${session.deviceName} ${session.isCurrent ? `(${t('accountSwitcher.device.thisDevice') || 'This device'})` : ''}`,
663
- subtitle: t('accountSwitcher.device.lastActive', {
695
+ description: t('accountSwitcher.device.lastActive', {
664
696
  date: new Date(session.lastActive).toLocaleDateString()
665
697
  }) || `Last active: ${new Date(session.lastActive).toLocaleDateString()}`,
666
- onPress: session.isCurrent ? undefined : () => handleRemoteSessionLogout(session.sessionId, session.deviceName),
698
+ onPress: session.isCurrent ? undefined : () => confirmRemoteSessionLogout(session.sessionId, session.deviceName),
667
699
  disabled: session.isCurrent || remotingLogoutSessionId === session.sessionId,
668
- customContent: !session.isCurrent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
700
+ showChevron: false,
701
+ rightElement: !session.isCurrent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
669
702
  style: styles.removeButton,
670
- onPress: () => handleRemoteSessionLogout(session.sessionId, session.deviceName),
703
+ onPress: () => confirmRemoteSessionLogout(session.sessionId, session.deviceName),
671
704
  disabled: remotingLogoutSessionId === session.sessionId,
672
705
  children: remotingLogoutSessionId === session.sessionId ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
673
706
  size: "small",
@@ -678,19 +711,20 @@ const ModernAccountSwitcherScreen = ({
678
711
  color: "#FF3B30"
679
712
  })
680
713
  }) : undefined
681
- }))
714
+ }, `device-session-${session.sessionId}`))
682
715
  })]
683
716
  }), sessionsWithUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
684
717
  style: styles.section,
685
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
686
- items: [{
687
- id: 'empty-state',
688
- icon: 'account-outline',
689
- iconColor: '#ccc',
718
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
719
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
720
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
721
+ name: "account-outline",
722
+ color: "#ccc"
723
+ }),
690
724
  title: t('accountSwitcher.empty.title') || 'No saved accounts',
691
- subtitle: t('accountSwitcher.empty.subtitle') || 'Add another account to switch between them quickly',
725
+ description: t('accountSwitcher.empty.subtitle') || 'Add another account to switch between them quickly',
692
726
  onPress: () => navigate?.('OxyAuth'),
693
- customContent: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
727
+ rightElement: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
694
728
  style: styles.emptyStateContainer,
695
729
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
696
730
  name: "person-outline",
@@ -710,11 +744,46 @@ const ModernAccountSwitcherScreen = ({
710
744
  children: t('accountCenter.sections.addAccount') || 'Add Account'
711
745
  })
712
746
  })]
713
- })
714
- }]
747
+ }),
748
+ showChevron: false
749
+ })
715
750
  })
716
751
  })]
717
752
  })
753
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
754
+ control: removeSessionPrompt,
755
+ title: t('accountSwitcher.confirms.removeTitle') || 'Remove Account',
756
+ description: pendingRemoveSession ? t('accountSwitcher.confirms.remove', {
757
+ displayName: pendingRemoveSession.displayName
758
+ }) || `Are you sure you want to remove ${pendingRemoveSession.displayName} from this device? You'll need to sign in again to access this account.` : '',
759
+ onConfirm: handleRemoveSession,
760
+ confirmButtonCta: t('common.remove') || 'Remove',
761
+ confirmButtonColor: "negative"
762
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
763
+ control: logoutAllPrompt,
764
+ title: t('accountSwitcher.confirms.logoutAllTitle') || 'Sign Out All',
765
+ description: t('accountSwitcher.confirms.logoutAll') || 'Are you sure you want to sign out of all accounts? This will remove all saved accounts from this device.',
766
+ onConfirm: handleLogoutAll,
767
+ confirmButtonCta: t('common.signOutAll') || 'Sign Out All',
768
+ confirmButtonColor: "negative"
769
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
770
+ control: remoteLogoutPrompt,
771
+ title: t('accountSwitcher.confirms.remoteLogoutTitle') || 'Remote Sign Out',
772
+ description: pendingRemoteLogout ? t('accountSwitcher.confirms.remoteLogout', {
773
+ deviceName: pendingRemoteLogout.deviceName
774
+ }) || `Are you sure you want to sign out from "${pendingRemoteLogout.deviceName}"? This will end the session on that device.` : '',
775
+ onConfirm: handleRemoteSessionLogout,
776
+ confirmButtonCta: t('common.signOut') || 'Sign Out',
777
+ confirmButtonColor: "negative"
778
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Prompt.Basic, {
779
+ control: logoutAllDevicesPrompt,
780
+ title: t('accountSwitcher.confirms.logoutOthersTitle') || 'Sign Out Other Devices',
781
+ description: t('accountSwitcher.confirms.logoutOthers', {
782
+ count: otherDevicesCount
783
+ }) || `Are you sure you want to sign out from all ${otherDevicesCount} other device(s)? This will end sessions on all other devices except this one.`,
784
+ onConfirm: handleLogoutAllDevices,
785
+ confirmButtonCta: t('common.signOutAll') || 'Sign Out All',
786
+ confirmButtonColor: "negative"
718
787
  })]
719
788
  });
720
789
  };