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