@oxyhq/services 5.4.0 → 5.4.2

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 (395) hide show
  1. package/package.json +3 -2
  2. package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +8 -8
  3. package/src/core/index.ts +103 -0
  4. package/src/lib/sonner.ts +9 -4
  5. package/src/ui/components/OxyProvider.tsx +5 -5
  6. package/src/ui/context/OxyContext.tsx +61 -41
  7. package/src/ui/screens/AccountManagementDemo.tsx +1 -1
  8. package/src/ui/screens/AccountOverviewScreen.tsx +44 -26
  9. package/src/ui/screens/AccountSettingsScreen.tsx +25 -19
  10. package/src/ui/screens/AppInfoScreen.tsx +5 -5
  11. package/src/ui/screens/FileManagementScreen.tsx +246 -211
  12. package/src/ui/screens/SignInScreen.tsx +382 -326
  13. package/src/ui/screens/SignUpScreen.tsx +443 -273
  14. package/src/ui/screens/karma/KarmaFAQScreen.tsx +50 -29
  15. package/lib/commonjs/assets/OxyLogo.svg +0 -1
  16. package/lib/commonjs/assets/assets/OxyLogo.svg +0 -1
  17. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  18. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  19. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  20. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  21. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  22. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  23. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  24. package/lib/commonjs/assets/assets/icons/OxyServices.tsx +0 -67
  25. package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +0 -1
  26. package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  27. package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  28. package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  29. package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  30. package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  31. package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  32. package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  33. package/lib/commonjs/assets/icons/OxyServices.js +0 -53
  34. package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
  35. package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
  36. package/lib/commonjs/constants/version.js +0 -28
  37. package/lib/commonjs/constants/version.js.map +0 -1
  38. package/lib/commonjs/core/index.js +0 -1543
  39. package/lib/commonjs/core/index.js.map +0 -1
  40. package/lib/commonjs/index.js +0 -160
  41. package/lib/commonjs/index.js.map +0 -1
  42. package/lib/commonjs/lib/react-native-polyfills.js +0 -181
  43. package/lib/commonjs/lib/react-native-polyfills.js.map +0 -1
  44. package/lib/commonjs/lib/sonner-safe.js +0 -41
  45. package/lib/commonjs/lib/sonner-safe.js.map +0 -1
  46. package/lib/commonjs/lib/sonner.js +0 -18
  47. package/lib/commonjs/lib/sonner.js.map +0 -1
  48. package/lib/commonjs/lib/sonner.web.js +0 -17
  49. package/lib/commonjs/lib/sonner.web.js.map +0 -1
  50. package/lib/commonjs/models/interfaces.js +0 -2
  51. package/lib/commonjs/models/interfaces.js.map +0 -1
  52. package/lib/commonjs/models/secureSession.js +0 -2
  53. package/lib/commonjs/models/secureSession.js.map +0 -1
  54. package/lib/commonjs/node/index.js +0 -54
  55. package/lib/commonjs/node/index.js.map +0 -1
  56. package/lib/commonjs/package.json +0 -1
  57. package/lib/commonjs/ui/components/Avatar.js +0 -98
  58. package/lib/commonjs/ui/components/Avatar.js.map +0 -1
  59. package/lib/commonjs/ui/components/FollowButton.js +0 -246
  60. package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
  61. package/lib/commonjs/ui/components/FontLoader.js +0 -181
  62. package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
  63. package/lib/commonjs/ui/components/GroupedItem.js +0 -109
  64. package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
  65. package/lib/commonjs/ui/components/GroupedSection.js +0 -33
  66. package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
  67. package/lib/commonjs/ui/components/OxyLogo.js +0 -56
  68. package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
  69. package/lib/commonjs/ui/components/OxyProvider.js +0 -517
  70. package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
  71. package/lib/commonjs/ui/components/OxySignInButton.js +0 -178
  72. package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
  73. package/lib/commonjs/ui/components/ProfileCard.js +0 -124
  74. package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
  75. package/lib/commonjs/ui/components/QuickActions.js +0 -87
  76. package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
  77. package/lib/commonjs/ui/components/Section.js +0 -36
  78. package/lib/commonjs/ui/components/Section.js.map +0 -1
  79. package/lib/commonjs/ui/components/SectionTitle.js +0 -35
  80. package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
  81. package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
  82. package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
  83. package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -27
  84. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
  85. package/lib/commonjs/ui/components/icon/index.js +0 -14
  86. package/lib/commonjs/ui/components/icon/index.js.map +0 -1
  87. package/lib/commonjs/ui/components/index.js +0 -97
  88. package/lib/commonjs/ui/components/index.js.map +0 -1
  89. package/lib/commonjs/ui/context/OxyContext.js +0 -568
  90. package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
  91. package/lib/commonjs/ui/index.js +0 -128
  92. package/lib/commonjs/ui/index.js.map +0 -1
  93. package/lib/commonjs/ui/navigation/OxyRouter.js +0 -264
  94. package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
  95. package/lib/commonjs/ui/navigation/types.js +0 -6
  96. package/lib/commonjs/ui/navigation/types.js.map +0 -1
  97. package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -313
  98. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
  99. package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -299
  100. package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
  101. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -837
  102. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
  103. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -836
  104. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
  105. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -788
  106. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
  107. package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -664
  108. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
  109. package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
  110. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
  111. package/lib/commonjs/ui/screens/FileManagementScreen.js +0 -2497
  112. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
  113. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1620
  114. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  115. package/lib/commonjs/ui/screens/ProfileScreen.js +0 -450
  116. package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
  117. package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -449
  118. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
  119. package/lib/commonjs/ui/screens/SignInScreen.js +0 -956
  120. package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
  121. package/lib/commonjs/ui/screens/SignUpScreen.js +0 -762
  122. package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
  123. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -88
  124. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
  125. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -364
  126. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
  127. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -202
  128. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
  129. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -148
  130. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
  131. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -127
  132. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
  133. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -105
  134. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
  135. package/lib/commonjs/ui/styles/FONTS.md +0 -126
  136. package/lib/commonjs/ui/styles/fonts.js +0 -84
  137. package/lib/commonjs/ui/styles/fonts.js.map +0 -1
  138. package/lib/commonjs/ui/styles/index.js +0 -28
  139. package/lib/commonjs/ui/styles/index.js.map +0 -1
  140. package/lib/commonjs/ui/styles/theme.js +0 -121
  141. package/lib/commonjs/ui/styles/theme.js.map +0 -1
  142. package/lib/commonjs/utils/deviceManager.js +0 -173
  143. package/lib/commonjs/utils/deviceManager.js.map +0 -1
  144. package/lib/commonjs/utils/index.js +0 -13
  145. package/lib/commonjs/utils/index.js.map +0 -1
  146. package/lib/commonjs/utils/polyfills.js +0 -42
  147. package/lib/commonjs/utils/polyfills.js.map +0 -1
  148. package/lib/module/assets/OxyLogo.svg +0 -1
  149. package/lib/module/assets/assets/OxyLogo.svg +0 -1
  150. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  151. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  152. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  153. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  154. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  155. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  156. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  157. package/lib/module/assets/assets/icons/OxyServices.tsx +0 -67
  158. package/lib/module/assets/assets/icons/logo_OxyServices.svg +0 -1
  159. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  160. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  161. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  162. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  163. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  164. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  165. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  166. package/lib/module/assets/icons/OxyServices.js +0 -46
  167. package/lib/module/assets/icons/OxyServices.js.map +0 -1
  168. package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
  169. package/lib/module/constants/version.js +0 -21
  170. package/lib/module/constants/version.js.map +0 -1
  171. package/lib/module/core/index.js +0 -1517
  172. package/lib/module/core/index.js.map +0 -1
  173. package/lib/module/index.js +0 -48
  174. package/lib/module/index.js.map +0 -1
  175. package/lib/module/lib/react-native-polyfills.js +0 -179
  176. package/lib/module/lib/react-native-polyfills.js.map +0 -1
  177. package/lib/module/lib/sonner-safe.js +0 -37
  178. package/lib/module/lib/sonner-safe.js.map +0 -1
  179. package/lib/module/lib/sonner.js +0 -8
  180. package/lib/module/lib/sonner.js.map +0 -1
  181. package/lib/module/lib/sonner.web.js +0 -4
  182. package/lib/module/lib/sonner.web.js.map +0 -1
  183. package/lib/module/models/interfaces.js +0 -2
  184. package/lib/module/models/interfaces.js.map +0 -1
  185. package/lib/module/models/secureSession.js +0 -2
  186. package/lib/module/models/secureSession.js.map +0 -1
  187. package/lib/module/node/index.js +0 -23
  188. package/lib/module/node/index.js.map +0 -1
  189. package/lib/module/package.json +0 -1
  190. package/lib/module/ui/components/Avatar.js +0 -93
  191. package/lib/module/ui/components/Avatar.js.map +0 -1
  192. package/lib/module/ui/components/FollowButton.js +0 -241
  193. package/lib/module/ui/components/FollowButton.js.map +0 -1
  194. package/lib/module/ui/components/FontLoader.js +0 -176
  195. package/lib/module/ui/components/FontLoader.js.map +0 -1
  196. package/lib/module/ui/components/GroupedItem.js +0 -104
  197. package/lib/module/ui/components/GroupedItem.js.map +0 -1
  198. package/lib/module/ui/components/GroupedSection.js +0 -28
  199. package/lib/module/ui/components/GroupedSection.js.map +0 -1
  200. package/lib/module/ui/components/OxyLogo.js +0 -49
  201. package/lib/module/ui/components/OxyLogo.js.map +0 -1
  202. package/lib/module/ui/components/OxyProvider.js +0 -511
  203. package/lib/module/ui/components/OxyProvider.js.map +0 -1
  204. package/lib/module/ui/components/OxySignInButton.js +0 -172
  205. package/lib/module/ui/components/OxySignInButton.js.map +0 -1
  206. package/lib/module/ui/components/ProfileCard.js +0 -119
  207. package/lib/module/ui/components/ProfileCard.js.map +0 -1
  208. package/lib/module/ui/components/QuickActions.js +0 -82
  209. package/lib/module/ui/components/QuickActions.js.map +0 -1
  210. package/lib/module/ui/components/Section.js +0 -31
  211. package/lib/module/ui/components/Section.js.map +0 -1
  212. package/lib/module/ui/components/SectionTitle.js +0 -30
  213. package/lib/module/ui/components/SectionTitle.js.map +0 -1
  214. package/lib/module/ui/components/bottomSheet/index.js +0 -5
  215. package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
  216. package/lib/module/ui/components/icon/OxyIcon.js +0 -22
  217. package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
  218. package/lib/module/ui/components/icon/index.js +0 -4
  219. package/lib/module/ui/components/icon/index.js.map +0 -1
  220. package/lib/module/ui/components/index.js +0 -18
  221. package/lib/module/ui/components/index.js.map +0 -1
  222. package/lib/module/ui/context/OxyContext.js +0 -563
  223. package/lib/module/ui/context/OxyContext.js.map +0 -1
  224. package/lib/module/ui/index.js +0 -24
  225. package/lib/module/ui/index.js.map +0 -1
  226. package/lib/module/ui/navigation/OxyRouter.js +0 -257
  227. package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
  228. package/lib/module/ui/navigation/types.js +0 -4
  229. package/lib/module/ui/navigation/types.js.map +0 -1
  230. package/lib/module/ui/screens/AccountCenterScreen.js +0 -308
  231. package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
  232. package/lib/module/ui/screens/AccountManagementDemo.js +0 -296
  233. package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
  234. package/lib/module/ui/screens/AccountOverviewScreen.js +0 -831
  235. package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
  236. package/lib/module/ui/screens/AccountSettingsScreen.js +0 -830
  237. package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
  238. package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -782
  239. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
  240. package/lib/module/ui/screens/AppInfoScreen.js +0 -658
  241. package/lib/module/ui/screens/AppInfoScreen.js.map +0 -1
  242. package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
  243. package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
  244. package/lib/module/ui/screens/FileManagementScreen.js +0 -2492
  245. package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
  246. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1615
  247. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  248. package/lib/module/ui/screens/ProfileScreen.js +0 -444
  249. package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
  250. package/lib/module/ui/screens/SessionManagementScreen.js +0 -444
  251. package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
  252. package/lib/module/ui/screens/SignInScreen.js +0 -950
  253. package/lib/module/ui/screens/SignInScreen.js.map +0 -1
  254. package/lib/module/ui/screens/SignUpScreen.js +0 -755
  255. package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
  256. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -83
  257. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
  258. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -358
  259. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
  260. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -197
  261. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
  262. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -142
  263. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
  264. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -122
  265. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
  266. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -100
  267. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
  268. package/lib/module/ui/styles/FONTS.md +0 -126
  269. package/lib/module/ui/styles/fonts.js +0 -81
  270. package/lib/module/ui/styles/fonts.js.map +0 -1
  271. package/lib/module/ui/styles/index.js +0 -5
  272. package/lib/module/ui/styles/index.js.map +0 -1
  273. package/lib/module/ui/styles/theme.js +0 -114
  274. package/lib/module/ui/styles/theme.js.map +0 -1
  275. package/lib/module/utils/deviceManager.js +0 -167
  276. package/lib/module/utils/deviceManager.js.map +0 -1
  277. package/lib/module/utils/index.js +0 -4
  278. package/lib/module/utils/index.js.map +0 -1
  279. package/lib/module/utils/polyfills.js +0 -36
  280. package/lib/module/utils/polyfills.js.map +0 -1
  281. package/lib/typescript/assets/icons/OxyServices.d.ts +0 -29
  282. package/lib/typescript/assets/icons/OxyServices.d.ts.map +0 -1
  283. package/lib/typescript/constants/version.d.ts +0 -14
  284. package/lib/typescript/constants/version.d.ts.map +0 -1
  285. package/lib/typescript/core/index.d.ts +0 -563
  286. package/lib/typescript/core/index.d.ts.map +0 -1
  287. package/lib/typescript/index.d.ts +0 -20
  288. package/lib/typescript/index.d.ts.map +0 -1
  289. package/lib/typescript/lib/react-native-polyfills.d.ts +0 -8
  290. package/lib/typescript/lib/react-native-polyfills.d.ts.map +0 -1
  291. package/lib/typescript/lib/sonner-safe.d.ts +0 -11
  292. package/lib/typescript/lib/sonner-safe.d.ts.map +0 -1
  293. package/lib/typescript/lib/sonner.d.ts +0 -3
  294. package/lib/typescript/lib/sonner.d.ts.map +0 -1
  295. package/lib/typescript/lib/sonner.web.d.ts +0 -2
  296. package/lib/typescript/lib/sonner.web.d.ts.map +0 -1
  297. package/lib/typescript/models/interfaces.d.ts +0 -179
  298. package/lib/typescript/models/interfaces.d.ts.map +0 -1
  299. package/lib/typescript/models/secureSession.d.ts +0 -27
  300. package/lib/typescript/models/secureSession.d.ts.map +0 -1
  301. package/lib/typescript/node/index.d.ts +0 -11
  302. package/lib/typescript/node/index.d.ts.map +0 -1
  303. package/lib/typescript/ui/components/Avatar.d.ts +0 -62
  304. package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
  305. package/lib/typescript/ui/components/FollowButton.d.ts +0 -92
  306. package/lib/typescript/ui/components/FollowButton.d.ts.map +0 -1
  307. package/lib/typescript/ui/components/FontLoader.d.ts +0 -15
  308. package/lib/typescript/ui/components/FontLoader.d.ts.map +0 -1
  309. package/lib/typescript/ui/components/GroupedItem.d.ts +0 -17
  310. package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
  311. package/lib/typescript/ui/components/GroupedSection.d.ts +0 -19
  312. package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
  313. package/lib/typescript/ui/components/OxyLogo.d.ts +0 -29
  314. package/lib/typescript/ui/components/OxyLogo.d.ts.map +0 -1
  315. package/lib/typescript/ui/components/OxyProvider.d.ts +0 -12
  316. package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
  317. package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -70
  318. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
  319. package/lib/typescript/ui/components/ProfileCard.d.ts +0 -20
  320. package/lib/typescript/ui/components/ProfileCard.d.ts.map +0 -1
  321. package/lib/typescript/ui/components/QuickActions.d.ts +0 -15
  322. package/lib/typescript/ui/components/QuickActions.d.ts.map +0 -1
  323. package/lib/typescript/ui/components/Section.d.ts +0 -11
  324. package/lib/typescript/ui/components/Section.d.ts.map +0 -1
  325. package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
  326. package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
  327. package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
  328. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
  329. package/lib/typescript/ui/components/icon/OxyIcon.d.ts +0 -10
  330. package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +0 -1
  331. package/lib/typescript/ui/components/icon/index.d.ts +0 -3
  332. package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
  333. package/lib/typescript/ui/components/index.d.ts +0 -13
  334. package/lib/typescript/ui/components/index.d.ts.map +0 -1
  335. package/lib/typescript/ui/context/OxyContext.d.ts +0 -42
  336. package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
  337. package/lib/typescript/ui/index.d.ts +0 -15
  338. package/lib/typescript/ui/index.d.ts.map +0 -1
  339. package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -5
  340. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
  341. package/lib/typescript/ui/navigation/types.d.ts +0 -116
  342. package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
  343. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -5
  344. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +0 -1
  345. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
  346. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
  347. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -5
  348. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
  349. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -5
  350. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
  351. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -5
  352. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
  353. package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -5
  354. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +0 -1
  355. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
  356. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
  357. package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -8
  358. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
  359. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  360. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  361. package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -9
  362. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +0 -1
  363. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -5
  364. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +0 -1
  365. package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
  366. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
  367. package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
  368. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
  369. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -5
  370. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +0 -1
  371. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -5
  372. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +0 -1
  373. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -5
  374. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +0 -1
  375. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -5
  376. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +0 -1
  377. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -5
  378. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +0 -1
  379. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -5
  380. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +0 -1
  381. package/lib/typescript/ui/styles/fonts.d.ts +0 -21
  382. package/lib/typescript/ui/styles/fonts.d.ts.map +0 -1
  383. package/lib/typescript/ui/styles/index.d.ts +0 -3
  384. package/lib/typescript/ui/styles/index.d.ts.map +0 -1
  385. package/lib/typescript/ui/styles/theme.d.ts +0 -68
  386. package/lib/typescript/ui/styles/theme.d.ts.map +0 -1
  387. package/lib/typescript/utils/deviceManager.d.ts +0 -66
  388. package/lib/typescript/utils/deviceManager.d.ts.map +0 -1
  389. package/lib/typescript/utils/index.d.ts +0 -3
  390. package/lib/typescript/utils/index.d.ts.map +0 -1
  391. package/lib/typescript/utils/polyfills.d.ts +0 -6
  392. package/lib/typescript/utils/polyfills.d.ts.map +0 -1
  393. package/src/lib/react-native-polyfills.ts +0 -219
  394. package/src/lib/sonner-safe.ts +0 -37
  395. package/src/lib/sonner.web.ts +0 -1
@@ -1,831 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState } from 'react';
4
- import { View, Text, TouchableOpacity, StyleSheet, ActivityIndicator, ScrollView, Alert, Image } from 'react-native';
5
- import { useOxy } from '../context/OxyContext';
6
- import Avatar from '../components/Avatar';
7
- import OxyIcon from '../components/icon/OxyIcon';
8
- import { toast } from '../../lib/sonner';
9
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
10
- const AccountOverviewScreen = ({
11
- onClose,
12
- theme,
13
- navigate
14
- }) => {
15
- const {
16
- user,
17
- logout,
18
- isLoading,
19
- sessions,
20
- activeSessionId,
21
- oxyServices
22
- } = useOxy();
23
- const [showMoreAccounts, setShowMoreAccounts] = useState(false);
24
- const [additionalAccountsData, setAdditionalAccountsData] = useState([]);
25
- const [loadingAdditionalAccounts, setLoadingAdditionalAccounts] = useState(false);
26
- const isDarkTheme = theme === 'dark';
27
- const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
28
- const backgroundColor = isDarkTheme ? '#121212' : '#FFFFFF';
29
- const secondaryBackgroundColor = isDarkTheme ? '#222222' : '#F5F5F5';
30
- const borderColor = isDarkTheme ? '#444444' : '#E0E0E0';
31
- const primaryColor = '#d169e5';
32
- const dangerColor = '#D32F2F';
33
- const iconColor = isDarkTheme ? '#BBBBBB' : '#666666';
34
-
35
- // Get additional accounts from sessions (excluding current user)
36
- const additionalAccounts = sessions.filter(session => session.sessionId !== activeSessionId && session.userId !== user?.id);
37
-
38
- // Load user profiles for additional accounts
39
- React.useEffect(() => {
40
- const loadAdditionalAccountsData = async () => {
41
- if (!oxyServices || additionalAccounts.length === 0) {
42
- setAdditionalAccountsData([]);
43
- return;
44
- }
45
- setLoadingAdditionalAccounts(true);
46
- try {
47
- const accountsData = await Promise.all(additionalAccounts.map(async session => {
48
- try {
49
- const userProfile = await oxyServices.getUserBySession(session.sessionId);
50
- return {
51
- id: session.sessionId,
52
- sessionId: session.sessionId,
53
- username: userProfile.username,
54
- email: userProfile.email,
55
- name: userProfile.name,
56
- avatar: userProfile.avatar,
57
- userProfile
58
- };
59
- } catch (error) {
60
- console.error(`Failed to load profile for session ${session.sessionId}:`, error);
61
- return {
62
- id: session.sessionId,
63
- sessionId: session.sessionId,
64
- username: session.username || 'Unknown User',
65
- email: 'No email available',
66
- avatar: null,
67
- userProfile: null
68
- };
69
- }
70
- }));
71
- setAdditionalAccountsData(accountsData);
72
- } catch (error) {
73
- console.error('Failed to load additional accounts:', error);
74
- setAdditionalAccountsData([]);
75
- } finally {
76
- setLoadingAdditionalAccounts(false);
77
- }
78
- };
79
- loadAdditionalAccountsData();
80
- }, [sessions, activeSessionId, user?.id, oxyServices]);
81
-
82
- // Feature settings (with mock values)
83
- const features = {
84
- safeSearch: false,
85
- language: 'English'
86
- };
87
- const handleLogout = async () => {
88
- try {
89
- await logout();
90
- if (onClose) {
91
- onClose();
92
- }
93
- } catch (error) {
94
- console.error('Logout failed:', error);
95
- toast.error('There was a problem signing you out. Please try again.');
96
- }
97
- };
98
- const confirmLogout = () => {
99
- Alert.alert('Sign Out', 'Are you sure you want to sign out?', [{
100
- text: 'Cancel',
101
- style: 'cancel'
102
- }, {
103
- text: 'Sign Out',
104
- onPress: handleLogout,
105
- style: 'destructive'
106
- }], {
107
- cancelable: true
108
- });
109
- };
110
- const handleAddAccount = () => {
111
- toast.info('Add another account feature coming soon!');
112
- };
113
- const handleSignOutAll = () => {
114
- Alert.alert('Sign Out of All Accounts', 'Are you sure you want to sign out of all accounts?', [{
115
- text: 'Cancel',
116
- style: 'cancel'
117
- }, {
118
- text: 'Sign Out All',
119
- onPress: handleLogout,
120
- style: 'destructive'
121
- }], {
122
- cancelable: true
123
- });
124
- };
125
- if (!user) {
126
- return /*#__PURE__*/_jsx(View, {
127
- style: [styles.container, {
128
- backgroundColor
129
- }],
130
- children: /*#__PURE__*/_jsx(Text, {
131
- style: [styles.message, {
132
- color: textColor
133
- }],
134
- children: "Not signed in"
135
- })
136
- });
137
- }
138
- if (isLoading) {
139
- return /*#__PURE__*/_jsx(View, {
140
- style: [styles.container, {
141
- backgroundColor,
142
- justifyContent: 'center'
143
- }],
144
- children: /*#__PURE__*/_jsx(ActivityIndicator, {
145
- size: "large",
146
- color: primaryColor
147
- })
148
- });
149
- }
150
- return /*#__PURE__*/_jsxs(View, {
151
- style: [styles.container, {
152
- backgroundColor: '#f2f2f2'
153
- }],
154
- children: [/*#__PURE__*/_jsxs(View, {
155
- style: styles.header,
156
- children: [/*#__PURE__*/_jsx(Text, {
157
- style: styles.headerTitle,
158
- children: "Account"
159
- }), onClose && /*#__PURE__*/_jsx(TouchableOpacity, {
160
- style: styles.closeButton,
161
- onPress: onClose,
162
- children: /*#__PURE__*/_jsx(Text, {
163
- style: styles.closeButtonText,
164
- children: "\xD7"
165
- })
166
- })]
167
- }), /*#__PURE__*/_jsxs(ScrollView, {
168
- style: styles.content,
169
- children: [/*#__PURE__*/_jsxs(View, {
170
- style: styles.section,
171
- children: [/*#__PURE__*/_jsx(Text, {
172
- style: styles.sectionTitle,
173
- children: "Profile"
174
- }), /*#__PURE__*/_jsxs(View, {
175
- style: [styles.settingItem, styles.firstSettingItem, styles.lastSettingItem],
176
- children: [/*#__PURE__*/_jsx(View, {
177
- style: styles.userIcon,
178
- children: /*#__PURE__*/_jsx(Avatar, {
179
- uri: user?.avatar?.url,
180
- name: user?.name?.full,
181
- size: 40,
182
- theme: theme
183
- })
184
- }), /*#__PURE__*/_jsx(View, {
185
- style: styles.settingInfo,
186
- children: /*#__PURE__*/_jsxs(View, {
187
- children: [/*#__PURE__*/_jsx(Text, {
188
- style: styles.settingLabel,
189
- children: typeof user.name === 'string' ? user.name : user.name?.full || user.name?.first || user.username
190
- }), /*#__PURE__*/_jsx(Text, {
191
- style: styles.settingDescription,
192
- children: user.email || user.username
193
- })]
194
- })
195
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
196
- style: styles.manageButton,
197
- onPress: () => toast.info('Manage your Oxy Account feature coming soon!'),
198
- children: /*#__PURE__*/_jsx(Text, {
199
- style: styles.manageButtonText,
200
- children: "Manage"
201
- })
202
- })]
203
- })]
204
- }), /*#__PURE__*/_jsxs(View, {
205
- style: styles.section,
206
- children: [/*#__PURE__*/_jsx(Text, {
207
- style: styles.sectionTitle,
208
- children: "Account Settings"
209
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
210
- style: [styles.settingItem, styles.firstSettingItem],
211
- onPress: () => navigate?.('AccountSettings', {
212
- activeTab: 'profile'
213
- }),
214
- children: [/*#__PURE__*/_jsxs(View, {
215
- style: styles.settingInfo,
216
- children: [/*#__PURE__*/_jsx(OxyIcon, {
217
- name: "person-circle",
218
- size: 20,
219
- color: "#007AFF",
220
- style: styles.settingIcon
221
- }), /*#__PURE__*/_jsxs(View, {
222
- children: [/*#__PURE__*/_jsx(Text, {
223
- style: styles.settingLabel,
224
- children: "Edit Profile"
225
- }), /*#__PURE__*/_jsx(Text, {
226
- style: styles.settingDescription,
227
- children: "Update your personal information"
228
- })]
229
- })]
230
- }), /*#__PURE__*/_jsx(OxyIcon, {
231
- name: "chevron-forward",
232
- size: 16,
233
- color: "#ccc"
234
- })]
235
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
236
- style: styles.settingItem,
237
- onPress: () => navigate?.('AccountSettings', {
238
- activeTab: 'password'
239
- }),
240
- children: [/*#__PURE__*/_jsxs(View, {
241
- style: styles.settingInfo,
242
- children: [/*#__PURE__*/_jsx(OxyIcon, {
243
- name: "shield-checkmark",
244
- size: 20,
245
- color: "#30D158",
246
- style: styles.settingIcon
247
- }), /*#__PURE__*/_jsxs(View, {
248
- children: [/*#__PURE__*/_jsx(Text, {
249
- style: styles.settingLabel,
250
- children: "Security & Privacy"
251
- }), /*#__PURE__*/_jsx(Text, {
252
- style: styles.settingDescription,
253
- children: "Password, 2FA, and privacy settings"
254
- })]
255
- })]
256
- }), /*#__PURE__*/_jsx(OxyIcon, {
257
- name: "chevron-forward",
258
- size: 16,
259
- color: "#ccc"
260
- })]
261
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
262
- style: styles.settingItem,
263
- onPress: () => navigate?.('AccountSettings', {
264
- activeTab: 'notifications'
265
- }),
266
- children: [/*#__PURE__*/_jsxs(View, {
267
- style: styles.settingInfo,
268
- children: [/*#__PURE__*/_jsx(OxyIcon, {
269
- name: "notifications",
270
- size: 20,
271
- color: "#FF9500",
272
- style: styles.settingIcon
273
- }), /*#__PURE__*/_jsxs(View, {
274
- children: [/*#__PURE__*/_jsx(Text, {
275
- style: styles.settingLabel,
276
- children: "Notifications"
277
- }), /*#__PURE__*/_jsx(Text, {
278
- style: styles.settingDescription,
279
- children: "Manage your notification preferences"
280
- })]
281
- })]
282
- }), /*#__PURE__*/_jsx(OxyIcon, {
283
- name: "chevron-forward",
284
- size: 16,
285
- color: "#ccc"
286
- })]
287
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
288
- style: [styles.settingItem],
289
- onPress: () => navigate?.('PremiumSubscription'),
290
- children: [/*#__PURE__*/_jsxs(View, {
291
- style: styles.settingInfo,
292
- children: [/*#__PURE__*/_jsx(OxyIcon, {
293
- name: "star",
294
- size: 20,
295
- color: "#FFD700",
296
- style: styles.settingIcon
297
- }), /*#__PURE__*/_jsxs(View, {
298
- children: [/*#__PURE__*/_jsx(Text, {
299
- style: styles.settingLabel,
300
- children: "Oxy+ Subscriptions"
301
- }), /*#__PURE__*/_jsx(Text, {
302
- style: styles.settingDescription,
303
- children: user.isPremium ? 'Manage your premium plan' : 'Upgrade to premium features'
304
- })]
305
- })]
306
- }), /*#__PURE__*/_jsx(OxyIcon, {
307
- name: "chevron-forward",
308
- size: 16,
309
- color: "#ccc"
310
- })]
311
- }), user.isPremium && /*#__PURE__*/_jsxs(TouchableOpacity, {
312
- style: [styles.settingItem, styles.lastSettingItem],
313
- onPress: () => navigate?.('BillingManagement'),
314
- children: [/*#__PURE__*/_jsxs(View, {
315
- style: styles.settingInfo,
316
- children: [/*#__PURE__*/_jsx(OxyIcon, {
317
- name: "card",
318
- size: 20,
319
- color: "#34C759",
320
- style: styles.settingIcon
321
- }), /*#__PURE__*/_jsxs(View, {
322
- children: [/*#__PURE__*/_jsx(Text, {
323
- style: styles.settingLabel,
324
- children: "Billing Management"
325
- }), /*#__PURE__*/_jsx(Text, {
326
- style: styles.settingDescription,
327
- children: "Payment methods and invoices"
328
- })]
329
- })]
330
- }), /*#__PURE__*/_jsx(OxyIcon, {
331
- name: "chevron-forward",
332
- size: 16,
333
- color: "#ccc"
334
- })]
335
- })]
336
- }), showMoreAccounts && /*#__PURE__*/_jsxs(View, {
337
- style: styles.section,
338
- children: [/*#__PURE__*/_jsxs(Text, {
339
- style: styles.sectionTitle,
340
- children: ["Additional Accounts", additionalAccountsData.length > 0 ? ` (${additionalAccountsData.length})` : '']
341
- }), loadingAdditionalAccounts ? /*#__PURE__*/_jsx(View, {
342
- style: [styles.settingItem, styles.firstSettingItem, styles.lastSettingItem],
343
- children: /*#__PURE__*/_jsxs(View, {
344
- style: styles.loadingContainer,
345
- children: [/*#__PURE__*/_jsx(ActivityIndicator, {
346
- size: "small",
347
- color: "#007AFF"
348
- }), /*#__PURE__*/_jsx(Text, {
349
- style: styles.loadingText,
350
- children: "Loading accounts..."
351
- })]
352
- })
353
- }) : additionalAccountsData.length > 0 ? /*#__PURE__*/_jsx(_Fragment, {
354
- children: additionalAccountsData.map((account, index) => /*#__PURE__*/_jsxs(TouchableOpacity, {
355
- style: [styles.settingItem, index === 0 && styles.firstSettingItem, index === additionalAccountsData.length - 1 && styles.lastSettingItem],
356
- onPress: () => {
357
- toast.info(`Switch to ${account.username}?`);
358
- // TODO: Implement account switching logic
359
- // switchSession(account.sessionId);
360
- },
361
- children: [/*#__PURE__*/_jsx(View, {
362
- style: styles.userIcon,
363
- children: account.avatar?.url ? /*#__PURE__*/_jsx(Image, {
364
- source: {
365
- uri: account.avatar.url
366
- },
367
- style: styles.accountAvatarImage
368
- }) : /*#__PURE__*/_jsx(View, {
369
- style: styles.accountAvatarFallback,
370
- children: /*#__PURE__*/_jsx(Text, {
371
- style: styles.accountAvatarText,
372
- children: account.username?.charAt(0).toUpperCase() || '?'
373
- })
374
- })
375
- }), /*#__PURE__*/_jsx(View, {
376
- style: styles.settingInfo,
377
- children: /*#__PURE__*/_jsxs(View, {
378
- children: [/*#__PURE__*/_jsx(Text, {
379
- style: styles.settingLabel,
380
- children: typeof account.name === 'object' ? account.name?.full || account.name?.first || account.username : account.name || account.username
381
- }), /*#__PURE__*/_jsx(Text, {
382
- style: styles.settingDescription,
383
- children: account.email || account.username
384
- })]
385
- })
386
- }), /*#__PURE__*/_jsx(OxyIcon, {
387
- name: "chevron-forward",
388
- size: 16,
389
- color: "#ccc"
390
- })]
391
- }, account.id))
392
- }) : /*#__PURE__*/_jsx(View, {
393
- style: [styles.settingItem, styles.firstSettingItem, styles.lastSettingItem],
394
- children: /*#__PURE__*/_jsxs(View, {
395
- style: styles.settingInfo,
396
- children: [/*#__PURE__*/_jsx(OxyIcon, {
397
- name: "person-outline",
398
- size: 20,
399
- color: "#ccc",
400
- style: styles.settingIcon
401
- }), /*#__PURE__*/_jsxs(View, {
402
- children: [/*#__PURE__*/_jsx(Text, {
403
- style: styles.settingLabel,
404
- children: "No other accounts"
405
- }), /*#__PURE__*/_jsx(Text, {
406
- style: styles.settingDescription,
407
- children: "Add another account to switch between them"
408
- })]
409
- })]
410
- })
411
- })]
412
- }), showMoreAccounts && /*#__PURE__*/_jsxs(View, {
413
- style: styles.section,
414
- children: [/*#__PURE__*/_jsx(Text, {
415
- style: styles.sectionTitle,
416
- children: "Account Management"
417
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
418
- style: [styles.settingItem, styles.firstSettingItem],
419
- onPress: handleAddAccount,
420
- children: [/*#__PURE__*/_jsxs(View, {
421
- style: styles.settingInfo,
422
- children: [/*#__PURE__*/_jsx(OxyIcon, {
423
- name: "add",
424
- size: 20,
425
- color: "#007AFF",
426
- style: styles.settingIcon
427
- }), /*#__PURE__*/_jsxs(View, {
428
- children: [/*#__PURE__*/_jsx(Text, {
429
- style: styles.settingLabel,
430
- children: "Add another account"
431
- }), /*#__PURE__*/_jsx(Text, {
432
- style: styles.settingDescription,
433
- children: "Sign in with a different account"
434
- })]
435
- })]
436
- }), /*#__PURE__*/_jsx(OxyIcon, {
437
- name: "chevron-forward",
438
- size: 16,
439
- color: "#ccc"
440
- })]
441
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
442
- style: [styles.settingItem, styles.lastSettingItem],
443
- onPress: handleSignOutAll,
444
- children: [/*#__PURE__*/_jsxs(View, {
445
- style: styles.settingInfo,
446
- children: [/*#__PURE__*/_jsx(OxyIcon, {
447
- name: "log-out",
448
- size: 20,
449
- color: "#FF3B30",
450
- style: styles.settingIcon
451
- }), /*#__PURE__*/_jsxs(View, {
452
- children: [/*#__PURE__*/_jsx(Text, {
453
- style: styles.settingLabel,
454
- children: "Sign out of all accounts"
455
- }), /*#__PURE__*/_jsx(Text, {
456
- style: styles.settingDescription,
457
- children: "Remove all accounts from this device"
458
- })]
459
- })]
460
- }), /*#__PURE__*/_jsx(OxyIcon, {
461
- name: "chevron-forward",
462
- size: 16,
463
- color: "#ccc"
464
- })]
465
- })]
466
- }), /*#__PURE__*/_jsxs(View, {
467
- style: styles.section,
468
- children: [/*#__PURE__*/_jsx(Text, {
469
- style: styles.sectionTitle,
470
- children: "Quick Actions"
471
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
472
- style: [styles.settingItem, styles.firstSettingItem],
473
- onPress: () => setShowMoreAccounts(!showMoreAccounts),
474
- children: [/*#__PURE__*/_jsxs(View, {
475
- style: styles.settingInfo,
476
- children: [/*#__PURE__*/_jsx(OxyIcon, {
477
- name: "people",
478
- size: 20,
479
- color: "#5856D6",
480
- style: styles.settingIcon
481
- }), /*#__PURE__*/_jsxs(View, {
482
- children: [/*#__PURE__*/_jsxs(Text, {
483
- style: styles.settingLabel,
484
- children: [showMoreAccounts ? 'Hide' : 'Show', " Account Switcher"]
485
- }), /*#__PURE__*/_jsx(Text, {
486
- style: styles.settingDescription,
487
- children: showMoreAccounts ? 'Hide account switcher' : additionalAccountsData.length > 0 ? `Switch between ${additionalAccountsData.length + 1} accounts` : loadingAdditionalAccounts ? 'Loading additional accounts...' : 'Manage multiple accounts'
488
- })]
489
- })]
490
- }), /*#__PURE__*/_jsx(OxyIcon, {
491
- name: "chevron-forward",
492
- size: 16,
493
- color: "#ccc"
494
- })]
495
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
496
- style: styles.settingItem,
497
- onPress: () => toast.info('Download account data feature coming soon!'),
498
- children: [/*#__PURE__*/_jsxs(View, {
499
- style: styles.settingInfo,
500
- children: [/*#__PURE__*/_jsx(OxyIcon, {
501
- name: "download",
502
- size: 20,
503
- color: "#34C759",
504
- style: styles.settingIcon
505
- }), /*#__PURE__*/_jsxs(View, {
506
- children: [/*#__PURE__*/_jsx(Text, {
507
- style: styles.settingLabel,
508
- children: "Download My Data"
509
- }), /*#__PURE__*/_jsx(Text, {
510
- style: styles.settingDescription,
511
- children: "Export your account information"
512
- })]
513
- })]
514
- }), /*#__PURE__*/_jsx(OxyIcon, {
515
- name: "chevron-forward",
516
- size: 16,
517
- color: "#ccc"
518
- })]
519
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
520
- style: [styles.settingItem, styles.lastSettingItem],
521
- onPress: () => toast.info('Delete account feature coming soon!'),
522
- children: [/*#__PURE__*/_jsxs(View, {
523
- style: styles.settingInfo,
524
- children: [/*#__PURE__*/_jsx(OxyIcon, {
525
- name: "trash",
526
- size: 20,
527
- color: "#FF3B30",
528
- style: styles.settingIcon
529
- }), /*#__PURE__*/_jsxs(View, {
530
- children: [/*#__PURE__*/_jsx(Text, {
531
- style: styles.settingLabel,
532
- children: "Delete Account"
533
- }), /*#__PURE__*/_jsx(Text, {
534
- style: styles.settingDescription,
535
- children: "Permanently delete your account"
536
- })]
537
- })]
538
- }), /*#__PURE__*/_jsx(OxyIcon, {
539
- name: "chevron-forward",
540
- size: 16,
541
- color: "#ccc"
542
- })]
543
- })]
544
- }), /*#__PURE__*/_jsxs(View, {
545
- style: styles.section,
546
- children: [/*#__PURE__*/_jsx(Text, {
547
- style: styles.sectionTitle,
548
- children: "Support & Settings"
549
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
550
- style: [styles.settingItem, styles.firstSettingItem],
551
- onPress: () => toast.info('Account preferences coming soon!'),
552
- children: [/*#__PURE__*/_jsxs(View, {
553
- style: styles.settingInfo,
554
- children: [/*#__PURE__*/_jsx(OxyIcon, {
555
- name: "settings",
556
- size: 20,
557
- color: "#8E8E93",
558
- style: styles.settingIcon
559
- }), /*#__PURE__*/_jsxs(View, {
560
- children: [/*#__PURE__*/_jsx(Text, {
561
- style: styles.settingLabel,
562
- children: "Account Preferences"
563
- }), /*#__PURE__*/_jsx(Text, {
564
- style: styles.settingDescription,
565
- children: "Customize your account experience"
566
- })]
567
- })]
568
- }), /*#__PURE__*/_jsx(OxyIcon, {
569
- name: "chevron-forward",
570
- size: 16,
571
- color: "#ccc"
572
- })]
573
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
574
- style: styles.settingItem,
575
- onPress: () => toast.info('Help & support feature coming soon!'),
576
- children: [/*#__PURE__*/_jsxs(View, {
577
- style: styles.settingInfo,
578
- children: [/*#__PURE__*/_jsx(OxyIcon, {
579
- name: "help-circle",
580
- size: 20,
581
- color: "#007AFF",
582
- style: styles.settingIcon
583
- }), /*#__PURE__*/_jsxs(View, {
584
- children: [/*#__PURE__*/_jsx(Text, {
585
- style: styles.settingLabel,
586
- children: "Help & Support"
587
- }), /*#__PURE__*/_jsx(Text, {
588
- style: styles.settingDescription,
589
- children: "Get help with your account"
590
- })]
591
- })]
592
- }), /*#__PURE__*/_jsx(OxyIcon, {
593
- name: "chevron-forward",
594
- size: 16,
595
- color: "#ccc"
596
- })]
597
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
598
- style: styles.settingItem,
599
- onPress: () => toast.info('Connected apps feature coming soon!'),
600
- children: [/*#__PURE__*/_jsxs(View, {
601
- style: styles.settingInfo,
602
- children: [/*#__PURE__*/_jsx(OxyIcon, {
603
- name: "link",
604
- size: 20,
605
- color: "#32D74B",
606
- style: styles.settingIcon
607
- }), /*#__PURE__*/_jsxs(View, {
608
- children: [/*#__PURE__*/_jsx(Text, {
609
- style: styles.settingLabel,
610
- children: "Connected Apps"
611
- }), /*#__PURE__*/_jsx(Text, {
612
- style: styles.settingDescription,
613
- children: "Manage third-party app access"
614
- })]
615
- })]
616
- }), /*#__PURE__*/_jsx(OxyIcon, {
617
- name: "chevron-forward",
618
- size: 16,
619
- color: "#ccc"
620
- })]
621
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
622
- style: styles.settingItem,
623
- onPress: () => toast.info('Privacy Policy feature coming soon!'),
624
- children: [/*#__PURE__*/_jsxs(View, {
625
- style: styles.settingInfo,
626
- children: [/*#__PURE__*/_jsx(OxyIcon, {
627
- name: "document-lock",
628
- size: 20,
629
- color: "#FF9F0A",
630
- style: styles.settingIcon
631
- }), /*#__PURE__*/_jsxs(View, {
632
- children: [/*#__PURE__*/_jsx(Text, {
633
- style: styles.settingLabel,
634
- children: "Privacy Policy"
635
- }), /*#__PURE__*/_jsx(Text, {
636
- style: styles.settingDescription,
637
- children: "Learn about data protection"
638
- })]
639
- })]
640
- }), /*#__PURE__*/_jsx(OxyIcon, {
641
- name: "chevron-forward",
642
- size: 16,
643
- color: "#ccc"
644
- })]
645
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
646
- style: [styles.settingItem, styles.lastSettingItem],
647
- onPress: () => toast.info('Terms of Service feature coming soon!'),
648
- children: [/*#__PURE__*/_jsxs(View, {
649
- style: styles.settingInfo,
650
- children: [/*#__PURE__*/_jsx(OxyIcon, {
651
- name: "document-text",
652
- size: 20,
653
- color: "#5856D6",
654
- style: styles.settingIcon
655
- }), /*#__PURE__*/_jsxs(View, {
656
- children: [/*#__PURE__*/_jsx(Text, {
657
- style: styles.settingLabel,
658
- children: "Terms of Service"
659
- }), /*#__PURE__*/_jsx(Text, {
660
- style: styles.settingDescription,
661
- children: "Read our terms and conditions"
662
- })]
663
- })]
664
- }), /*#__PURE__*/_jsx(OxyIcon, {
665
- name: "chevron-forward",
666
- size: 16,
667
- color: "#ccc"
668
- })]
669
- })]
670
- }), /*#__PURE__*/_jsx(View, {
671
- style: styles.section,
672
- children: /*#__PURE__*/_jsx(TouchableOpacity, {
673
- style: [styles.settingItem, styles.firstSettingItem, styles.lastSettingItem, styles.signOutButton],
674
- onPress: confirmLogout,
675
- children: /*#__PURE__*/_jsxs(View, {
676
- style: styles.settingInfo,
677
- children: [/*#__PURE__*/_jsx(OxyIcon, {
678
- name: "log-out",
679
- size: 20,
680
- color: "#ff4757",
681
- style: styles.settingIcon
682
- }), /*#__PURE__*/_jsxs(View, {
683
- children: [/*#__PURE__*/_jsx(Text, {
684
- style: [styles.settingLabel, {
685
- color: '#ff4757'
686
- }],
687
- children: "Sign Out"
688
- }), /*#__PURE__*/_jsx(Text, {
689
- style: styles.settingDescription,
690
- children: "Sign out of your account"
691
- })]
692
- })]
693
- })
694
- })
695
- })]
696
- })]
697
- });
698
- };
699
- const styles = StyleSheet.create({
700
- container: {
701
- flex: 1,
702
- backgroundColor: '#f2f2f2'
703
- },
704
- header: {
705
- paddingHorizontal: 20,
706
- paddingTop: 60,
707
- paddingBottom: 16,
708
- backgroundColor: '#fff',
709
- borderBottomWidth: 1,
710
- borderBottomColor: '#e0e0e0',
711
- flexDirection: 'row',
712
- justifyContent: 'space-between',
713
- alignItems: 'center'
714
- },
715
- headerTitle: {
716
- fontSize: 24,
717
- fontWeight: 'bold',
718
- color: '#000'
719
- },
720
- closeButton: {
721
- padding: 8
722
- },
723
- closeButtonText: {
724
- fontSize: 24,
725
- color: '#000',
726
- fontWeight: '300'
727
- },
728
- content: {
729
- flex: 1,
730
- padding: 16
731
- },
732
- section: {
733
- marginBottom: 24
734
- },
735
- sectionTitle: {
736
- fontSize: 16,
737
- fontWeight: '600',
738
- color: '#333',
739
- marginBottom: 12
740
- },
741
- settingItem: {
742
- backgroundColor: '#fff',
743
- padding: 16,
744
- flexDirection: 'row',
745
- alignItems: 'center',
746
- justifyContent: 'space-between',
747
- marginBottom: 2
748
- },
749
- firstSettingItem: {
750
- borderTopLeftRadius: 24,
751
- borderTopRightRadius: 24
752
- },
753
- lastSettingItem: {
754
- borderBottomLeftRadius: 24,
755
- borderBottomRightRadius: 24,
756
- marginBottom: 8
757
- },
758
- settingInfo: {
759
- flexDirection: 'row',
760
- alignItems: 'center',
761
- flex: 1
762
- },
763
- settingIcon: {
764
- marginRight: 12
765
- },
766
- settingLabel: {
767
- fontSize: 16,
768
- fontWeight: '500',
769
- color: '#333',
770
- marginBottom: 2
771
- },
772
- settingDescription: {
773
- fontSize: 14,
774
- color: '#666'
775
- },
776
- userIcon: {
777
- marginRight: 12
778
- },
779
- manageButton: {
780
- backgroundColor: '#007AFF',
781
- paddingHorizontal: 16,
782
- paddingVertical: 8,
783
- borderRadius: 16
784
- },
785
- manageButtonText: {
786
- color: '#fff',
787
- fontSize: 14,
788
- fontWeight: '500'
789
- },
790
- accountAvatarImage: {
791
- width: 40,
792
- height: 40,
793
- borderRadius: 20
794
- },
795
- accountAvatarFallback: {
796
- width: 40,
797
- height: 40,
798
- borderRadius: 20,
799
- backgroundColor: '#d169e5',
800
- alignItems: 'center',
801
- justifyContent: 'center'
802
- },
803
- accountAvatarText: {
804
- color: 'white',
805
- fontSize: 18,
806
- fontWeight: 'bold'
807
- },
808
- signOutButton: {
809
- borderWidth: 1,
810
- borderColor: '#ff4757'
811
- },
812
- message: {
813
- fontSize: 16,
814
- textAlign: 'center',
815
- marginTop: 24,
816
- color: '#333'
817
- },
818
- loadingContainer: {
819
- flexDirection: 'row',
820
- alignItems: 'center',
821
- justifyContent: 'center',
822
- paddingVertical: 20,
823
- gap: 12
824
- },
825
- loadingText: {
826
- fontSize: 16,
827
- color: '#666'
828
- }
829
- });
830
- export default AccountOverviewScreen;
831
- //# sourceMappingURL=AccountOverviewScreen.js.map