@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,658 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState, useEffect } from 'react';
4
- import { View, Text, TouchableOpacity, StyleSheet, Platform, Dimensions, Alert, Clipboard, ScrollView } from 'react-native';
5
- import { useOxy } from '../context/OxyContext';
6
- import { fontFamilies } from '../styles/fonts';
7
- import { packageInfo } from '../../constants/version';
8
- import { toast } from '../../lib/sonner';
9
- import OxyIcon from '../components/icon/OxyIcon';
10
- import { Ionicons } from '@expo/vector-icons';
11
- import OxyServicesLogo from '../../assets/icons/OxyServices';
12
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
- const AppInfoScreen = ({
14
- onClose,
15
- theme,
16
- navigate
17
- }) => {
18
- const {
19
- user,
20
- sessions,
21
- oxyServices
22
- } = useOxy();
23
- const [systemInfo, setSystemInfo] = useState(null);
24
- const [isRunningSystemCheck, setIsRunningSystemCheck] = useState(false);
25
- const [connectionStatus, setConnectionStatus] = useState('unknown');
26
- const isDarkTheme = theme === 'dark';
27
- const backgroundColor = isDarkTheme ? '#121212' : '#f2f2f2';
28
- const primaryColor = '#007AFF';
29
- useEffect(() => {
30
- const updateDimensions = () => {
31
- const dimensions = Dimensions.get('window');
32
- setSystemInfo(prev => ({
33
- ...prev,
34
- platform: Platform.OS,
35
- version: Platform.Version?.toString() || 'Unknown',
36
- screenDimensions: {
37
- width: dimensions.width,
38
- height: dimensions.height
39
- },
40
- timestamp: new Date().toISOString()
41
- }));
42
- };
43
-
44
- // Set initial dimensions
45
- updateDimensions();
46
-
47
- // Listen for dimension changes
48
- const subscription = Dimensions.addEventListener('change', updateDimensions);
49
-
50
- // Check API connection on mount
51
- const checkConnection = async () => {
52
- setConnectionStatus('checking');
53
- const apiBaseUrl = 'http://localhost:3001';
54
- try {
55
- const response = await fetch(`${apiBaseUrl}/`, {
56
- method: 'GET',
57
- timeout: 3000
58
- });
59
- if (response.ok) {
60
- setConnectionStatus('connected');
61
- } else {
62
- setConnectionStatus('disconnected');
63
- }
64
- } catch (error) {
65
- setConnectionStatus('disconnected');
66
- }
67
- };
68
- checkConnection();
69
-
70
- // Cleanup listener on unmount
71
- return () => {
72
- subscription?.remove();
73
- };
74
- }, []);
75
- const copyToClipboard = async (text, label) => {
76
- try {
77
- await Clipboard.setString(text);
78
- toast.success(`${label} copied to clipboard`);
79
- } catch (error) {
80
- toast.error('Failed to copy to clipboard');
81
- }
82
- };
83
- const runSystemCheck = async () => {
84
- if (!oxyServices) {
85
- toast.error('OxyServices not initialized');
86
- return;
87
- }
88
- setIsRunningSystemCheck(true);
89
- const checks = [];
90
-
91
- // Get the API base URL from the services instance
92
- const apiBaseUrl = 'http://localhost:3001'; // Default for now, could be made configurable
93
-
94
- try {
95
- // Check 1: API Server Health
96
- checks.push('🔍 Checking API server connection...');
97
- toast.info('Running system checks...', {
98
- duration: 2000
99
- });
100
- try {
101
- const response = await fetch(`${apiBaseUrl}/`, {
102
- method: 'GET',
103
- timeout: 5000
104
- });
105
- if (response.ok) {
106
- const data = await response.json();
107
- checks.push('✅ API server is responding');
108
- checks.push(`📊 Server stats: ${data.users || 0} users`);
109
- checks.push(`🌐 API URL: ${apiBaseUrl}`);
110
- setConnectionStatus('connected');
111
- } else {
112
- checks.push('❌ API server returned error status');
113
- checks.push(` Status: ${response.status} ${response.statusText}`);
114
- setConnectionStatus('disconnected');
115
- }
116
- } catch (error) {
117
- checks.push('❌ API server connection failed');
118
- checks.push(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
119
- checks.push(` URL: ${apiBaseUrl}`);
120
- setConnectionStatus('disconnected');
121
- }
122
-
123
- // Check 2: Authentication Status
124
- checks.push('🔍 Checking authentication...');
125
- if (oxyServices.isAuthenticated()) {
126
- checks.push('✅ User is authenticated');
127
-
128
- // Check 3: Token Validation
129
- try {
130
- const isValid = await oxyServices.validate();
131
- if (isValid) {
132
- checks.push('✅ Authentication token is valid');
133
- } else {
134
- checks.push('❌ Authentication token is invalid');
135
- }
136
- } catch (error) {
137
- checks.push('❌ Token validation failed');
138
- checks.push(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
139
- }
140
- } else {
141
- checks.push('⚠️ User is not authenticated');
142
- }
143
-
144
- // Check 4: Session Validation (if user has active sessions)
145
- if (user && sessions && sessions.length > 0) {
146
- checks.push('🔍 Checking active sessions...');
147
- try {
148
- // Just check if we can fetch sessions
149
- const userSessions = await oxyServices.getUserSessions();
150
- checks.push(`✅ Session validation successful (${userSessions.length} sessions)`);
151
- } catch (error) {
152
- checks.push('❌ Session validation failed');
153
- checks.push(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
154
- }
155
- }
156
-
157
- // Check 5: Platform Information
158
- checks.push('🔍 Checking platform information...');
159
- checks.push(`✅ Platform: ${Platform.OS} ${Platform.Version || 'Unknown'}`);
160
- checks.push(`✅ Screen: ${systemInfo?.screenDimensions.width || 0}x${systemInfo?.screenDimensions.height || 0}`);
161
- checks.push(`✅ Environment: ${__DEV__ ? 'Development' : 'Production'}`);
162
-
163
- // Check 6: Package Information
164
- checks.push('🔍 Checking package information...');
165
- checks.push(`✅ Package: ${packageInfo.name}@${packageInfo.version}`);
166
-
167
- // Check 7: Memory and Performance (basic)
168
- checks.push('🔍 Checking performance metrics...');
169
- const memoryUsage = performance.memory;
170
- if (memoryUsage) {
171
- const usedMB = Math.round(memoryUsage.usedJSHeapSize / 1024 / 1024);
172
- const totalMB = Math.round(memoryUsage.totalJSHeapSize / 1024 / 1024);
173
- checks.push(`✅ Memory usage: ${usedMB}MB / ${totalMB}MB`);
174
- } else {
175
- checks.push('✅ Performance metrics not available on this platform');
176
- }
177
-
178
- // Final summary
179
- const errorCount = checks.filter(check => check.includes('❌')).length;
180
- const warningCount = checks.filter(check => check.includes('⚠️')).length;
181
- checks.push('');
182
- checks.push('📋 SYSTEM CHECK SUMMARY:');
183
- if (errorCount === 0 && warningCount === 0) {
184
- checks.push('✅ All systems operational');
185
- toast.success('System check completed - All systems operational!');
186
- } else if (errorCount === 0) {
187
- checks.push(`⚠️ ${warningCount} warning(s) found`);
188
- toast.warning(`System check completed with ${warningCount} warning(s)`);
189
- } else {
190
- checks.push(`❌ ${errorCount} error(s) and ${warningCount} warning(s) found`);
191
- toast.error(`System check failed with ${errorCount} error(s)`);
192
- }
193
-
194
- // Show results in an alert and copy to clipboard
195
- const report = checks.join('\n');
196
- Alert.alert('System Check Results', `Check completed. Results copied to clipboard.\n\nSummary: ${errorCount} errors, ${warningCount} warnings`, [{
197
- text: 'View Full Report',
198
- onPress: () => copyToClipboard(report, 'System check report')
199
- }, {
200
- text: 'OK',
201
- style: 'default'
202
- }]);
203
- } catch (error) {
204
- toast.error('System check failed to run');
205
- console.error('System check error:', error);
206
- } finally {
207
- setIsRunningSystemCheck(false);
208
- }
209
- };
210
- const generateFullReport = () => {
211
- const report = {
212
- packageInfo: {
213
- name: packageInfo.name,
214
- version: packageInfo.version,
215
- description: packageInfo.description
216
- },
217
- systemInfo,
218
- userInfo: {
219
- isAuthenticated: !!user,
220
- userId: user?.id || 'Not authenticated',
221
- username: user?.username || 'N/A',
222
- totalUsers: sessions?.length || 0
223
- },
224
- apiConfiguration: {
225
- apiUrl: 'http://localhost:3001'
226
- },
227
- buildInfo: {
228
- timestamp: new Date().toISOString(),
229
- environment: __DEV__ ? 'Development' : 'Production'
230
- }
231
- };
232
- return JSON.stringify(report, null, 2);
233
- };
234
- const handleCopyFullReport = () => {
235
- const report = generateFullReport();
236
- copyToClipboard(report, 'Full application report');
237
- };
238
- const InfoRow = ({
239
- label,
240
- value,
241
- copyable = false,
242
- icon = 'information-circle',
243
- iconComponent,
244
- color = '#8E8E93',
245
- isFirst = false,
246
- isLast = false,
247
- onPress,
248
- showChevron = false
249
- }) => {
250
- const handlePress = () => {
251
- if (onPress) {
252
- onPress();
253
- } else if (copyable) {
254
- copyToClipboard(value, label);
255
- }
256
- };
257
- const isInteractive = copyable || !!onPress;
258
- return /*#__PURE__*/_jsxs(TouchableOpacity, {
259
- style: [styles.settingItem, isFirst && styles.firstSettingItem, isLast && styles.lastSettingItem],
260
- onPress: isInteractive ? handlePress : undefined,
261
- disabled: !isInteractive,
262
- children: [/*#__PURE__*/_jsxs(View, {
263
- style: styles.settingInfo,
264
- children: [iconComponent ? (/*#__PURE__*/React.cloneElement(iconComponent, {
265
- style: styles.settingIcon
266
- })) : /*#__PURE__*/_jsx(OxyIcon, {
267
- name: icon,
268
- size: 20,
269
- color: color,
270
- style: styles.settingIcon
271
- }), /*#__PURE__*/_jsxs(View, {
272
- style: styles.settingDetails,
273
- children: [/*#__PURE__*/_jsx(Text, {
274
- style: styles.settingLabel,
275
- children: label
276
- }), /*#__PURE__*/_jsx(Text, {
277
- style: [styles.settingValue, (copyable || onPress) && {
278
- color: primaryColor
279
- }],
280
- children: value
281
- })]
282
- })]
283
- }), copyable && /*#__PURE__*/_jsx(OxyIcon, {
284
- name: "copy",
285
- size: 16,
286
- color: "#ccc"
287
- }), showChevron && /*#__PURE__*/_jsx(OxyIcon, {
288
- name: "chevron-forward",
289
- size: 16,
290
- color: "#ccc"
291
- })]
292
- });
293
- };
294
- return /*#__PURE__*/_jsxs(View, {
295
- style: [styles.container, {
296
- backgroundColor
297
- }],
298
- children: [/*#__PURE__*/_jsxs(View, {
299
- style: styles.header,
300
- children: [/*#__PURE__*/_jsx(TouchableOpacity, {
301
- style: styles.cancelButton,
302
- onPress: onClose,
303
- children: /*#__PURE__*/_jsx(Ionicons, {
304
- name: "close",
305
- size: 24,
306
- color: "#666"
307
- })
308
- }), /*#__PURE__*/_jsx(Text, {
309
- style: styles.headerTitle,
310
- children: "App Information"
311
- }), /*#__PURE__*/_jsx(View, {
312
- style: styles.placeholder
313
- })]
314
- }), /*#__PURE__*/_jsxs(ScrollView, {
315
- style: styles.content,
316
- showsVerticalScrollIndicator: false,
317
- children: [/*#__PURE__*/_jsxs(View, {
318
- style: styles.section,
319
- children: [/*#__PURE__*/_jsx(Text, {
320
- style: styles.sectionTitle,
321
- children: "Package Information"
322
- }), /*#__PURE__*/_jsx(InfoRow, {
323
- label: "Name",
324
- value: packageInfo.name,
325
- copyable: true,
326
- iconComponent: /*#__PURE__*/_jsx(OxyServicesLogo, {
327
- width: 20,
328
- height: 20
329
- }),
330
- color: "#007AFF",
331
- isFirst: true
332
- }), /*#__PURE__*/_jsx(InfoRow, {
333
- label: "Version",
334
- value: packageInfo.version,
335
- copyable: true,
336
- icon: "pricetag",
337
- color: "#5856D6"
338
- }), /*#__PURE__*/_jsx(InfoRow, {
339
- label: "Description",
340
- value: packageInfo.description || 'No description',
341
- icon: "document-text",
342
- color: "#34C759"
343
- }), /*#__PURE__*/_jsx(InfoRow, {
344
- label: "Main Entry",
345
- value: packageInfo.main || 'N/A',
346
- icon: "code",
347
- color: "#FF9500"
348
- }), /*#__PURE__*/_jsx(InfoRow, {
349
- label: "Module Entry",
350
- value: packageInfo.module || 'N/A',
351
- icon: "library",
352
- color: "#FF3B30"
353
- }), /*#__PURE__*/_jsx(InfoRow, {
354
- label: "Types Entry",
355
- value: packageInfo.types || 'N/A',
356
- icon: "construct",
357
- color: "#32D74B",
358
- isLast: true
359
- })]
360
- }), /*#__PURE__*/_jsxs(View, {
361
- style: styles.section,
362
- children: [/*#__PURE__*/_jsx(Text, {
363
- style: styles.sectionTitle,
364
- children: "System Information"
365
- }), /*#__PURE__*/_jsx(InfoRow, {
366
- label: "Platform",
367
- value: Platform.OS,
368
- icon: "phone-portrait",
369
- color: "#007AFF",
370
- isFirst: true
371
- }), /*#__PURE__*/_jsx(InfoRow, {
372
- label: "Platform Version",
373
- value: systemInfo?.version || 'Loading...',
374
- icon: "hardware-chip",
375
- color: "#5856D6"
376
- }), /*#__PURE__*/_jsx(InfoRow, {
377
- label: "Screen Width",
378
- value: `${systemInfo?.screenDimensions.width || 0}px`,
379
- icon: "resize",
380
- color: "#FF9500"
381
- }), /*#__PURE__*/_jsx(InfoRow, {
382
- label: "Screen Height",
383
- value: `${systemInfo?.screenDimensions.height || 0}px`,
384
- icon: "resize",
385
- color: "#FF3B30"
386
- }), /*#__PURE__*/_jsx(InfoRow, {
387
- label: "Environment",
388
- value: __DEV__ ? 'Development' : 'Production',
389
- icon: "settings",
390
- color: "#34C759",
391
- isLast: true
392
- })]
393
- }), /*#__PURE__*/_jsxs(View, {
394
- style: styles.section,
395
- children: [/*#__PURE__*/_jsx(Text, {
396
- style: styles.sectionTitle,
397
- children: "User Information"
398
- }), /*#__PURE__*/_jsx(InfoRow, {
399
- label: "Authentication Status",
400
- value: user ? 'Authenticated' : 'Not Authenticated',
401
- icon: "shield-checkmark",
402
- color: user ? '#34C759' : '#FF3B30',
403
- isFirst: true
404
- }), user && /*#__PURE__*/_jsxs(_Fragment, {
405
- children: [/*#__PURE__*/_jsx(InfoRow, {
406
- label: "User ID",
407
- value: user.id,
408
- copyable: true,
409
- icon: "person",
410
- color: "#007AFF"
411
- }), /*#__PURE__*/_jsx(InfoRow, {
412
- label: "Username",
413
- value: user.username || 'N/A',
414
- icon: "at",
415
- color: "#5856D6",
416
- onPress: () => {
417
- if (user?.username && navigate) {
418
- navigate('Profile', {
419
- userId: user.id
420
- });
421
- } else {
422
- toast.info('No username available or navigation not supported');
423
- }
424
- },
425
- showChevron: true
426
- }), /*#__PURE__*/_jsx(InfoRow, {
427
- label: "Email",
428
- value: user.email || 'N/A',
429
- icon: "mail",
430
- color: "#FF9500"
431
- }), /*#__PURE__*/_jsx(InfoRow, {
432
- label: "Premium Status",
433
- value: user.isPremium ? 'Premium' : 'Standard',
434
- icon: "star",
435
- color: user.isPremium ? '#FFD700' : '#8E8E93'
436
- })]
437
- }), /*#__PURE__*/_jsx(InfoRow, {
438
- label: "Total Active Sessions",
439
- value: sessions?.length?.toString() || '0',
440
- icon: "people",
441
- color: "#32D74B",
442
- isLast: true
443
- })]
444
- }), /*#__PURE__*/_jsxs(View, {
445
- style: styles.section,
446
- children: [/*#__PURE__*/_jsx(Text, {
447
- style: styles.sectionTitle,
448
- children: "API Configuration"
449
- }), /*#__PURE__*/_jsx(InfoRow, {
450
- label: "API Base URL",
451
- value: "http://localhost:3001",
452
- copyable: true,
453
- icon: "server",
454
- color: "#007AFF",
455
- isFirst: true
456
- }), /*#__PURE__*/_jsx(InfoRow, {
457
- label: "Connection Status",
458
- value: connectionStatus === 'checking' ? 'Checking...' : connectionStatus === 'connected' ? 'Connected' : connectionStatus === 'disconnected' ? 'Disconnected' : 'Unknown',
459
- icon: connectionStatus === 'checking' ? 'sync' : connectionStatus === 'connected' ? 'wifi' : 'wifi-off',
460
- color: connectionStatus === 'checking' ? '#FF9500' : connectionStatus === 'connected' ? '#34C759' : '#FF3B30',
461
- onPress: async () => {
462
- setConnectionStatus('checking');
463
- const apiBaseUrl = 'http://localhost:3001';
464
- try {
465
- const response = await fetch(`${apiBaseUrl}/`, {
466
- method: 'GET',
467
- timeout: 3000
468
- });
469
- if (response.ok) {
470
- setConnectionStatus('connected');
471
- toast.success('API connection successful');
472
- } else {
473
- setConnectionStatus('disconnected');
474
- toast.error(`API server error: ${response.status}`);
475
- }
476
- } catch (error) {
477
- setConnectionStatus('disconnected');
478
- toast.error('Failed to connect to API server');
479
- }
480
- },
481
- showChevron: true,
482
- isLast: true
483
- })]
484
- }), /*#__PURE__*/_jsxs(View, {
485
- style: styles.section,
486
- children: [/*#__PURE__*/_jsx(Text, {
487
- style: styles.sectionTitle,
488
- children: "Build Information"
489
- }), /*#__PURE__*/_jsx(InfoRow, {
490
- label: "Build Timestamp",
491
- value: systemInfo?.timestamp || 'Loading...',
492
- copyable: true,
493
- icon: "time",
494
- color: "#007AFF",
495
- isFirst: true
496
- }), /*#__PURE__*/_jsx(InfoRow, {
497
- label: "React Native",
498
- value: "Expo/React Native",
499
- icon: "logo-react",
500
- color: "#61DAFB"
501
- }), /*#__PURE__*/_jsx(InfoRow, {
502
- label: "JavaScript Engine",
503
- value: "Hermes",
504
- icon: "flash",
505
- color: "#FF3B30",
506
- isLast: true
507
- })]
508
- }), /*#__PURE__*/_jsxs(View, {
509
- style: styles.section,
510
- children: [/*#__PURE__*/_jsx(Text, {
511
- style: styles.sectionTitle,
512
- children: "Quick Actions"
513
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
514
- style: [styles.settingItem, styles.firstSettingItem],
515
- onPress: handleCopyFullReport,
516
- children: [/*#__PURE__*/_jsxs(View, {
517
- style: styles.settingInfo,
518
- children: [/*#__PURE__*/_jsx(OxyIcon, {
519
- name: "copy",
520
- size: 20,
521
- color: "#007AFF",
522
- style: styles.settingIcon
523
- }), /*#__PURE__*/_jsxs(View, {
524
- style: styles.settingDetails,
525
- children: [/*#__PURE__*/_jsx(Text, {
526
- style: styles.settingLabel,
527
- children: "Copy Full Report"
528
- }), /*#__PURE__*/_jsx(Text, {
529
- style: styles.settingDescription,
530
- children: "Copy complete application information to clipboard"
531
- })]
532
- })]
533
- }), /*#__PURE__*/_jsx(OxyIcon, {
534
- name: "chevron-forward",
535
- size: 16,
536
- color: "#ccc"
537
- })]
538
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
539
- style: [styles.settingItem, styles.lastSettingItem, isRunningSystemCheck && styles.disabledSettingItem],
540
- onPress: runSystemCheck,
541
- disabled: isRunningSystemCheck,
542
- children: [/*#__PURE__*/_jsxs(View, {
543
- style: styles.settingInfo,
544
- children: [/*#__PURE__*/_jsx(OxyIcon, {
545
- name: isRunningSystemCheck ? "sync" : "checkmark-circle",
546
- size: 20,
547
- color: isRunningSystemCheck ? "#FF9500" : "#34C759",
548
- style: [styles.settingIcon, isRunningSystemCheck && styles.spinningIcon]
549
- }), /*#__PURE__*/_jsxs(View, {
550
- style: styles.settingDetails,
551
- children: [/*#__PURE__*/_jsx(Text, {
552
- style: styles.settingLabel,
553
- children: isRunningSystemCheck ? 'Running System Check...' : 'Run System Check'
554
- }), /*#__PURE__*/_jsx(Text, {
555
- style: styles.settingDescription,
556
- children: isRunningSystemCheck ? 'Checking API, authentication, and platform status...' : 'Verify application health and status'
557
- })]
558
- })]
559
- }), !isRunningSystemCheck && /*#__PURE__*/_jsx(OxyIcon, {
560
- name: "chevron-forward",
561
- size: 16,
562
- color: "#ccc"
563
- })]
564
- })]
565
- })]
566
- })]
567
- });
568
- };
569
- const styles = StyleSheet.create({
570
- container: {
571
- flex: 1
572
- },
573
- header: {
574
- flexDirection: 'row',
575
- alignItems: 'center',
576
- justifyContent: 'space-between',
577
- paddingHorizontal: 16,
578
- paddingVertical: 12,
579
- backgroundColor: '#fff'
580
- },
581
- cancelButton: {
582
- padding: 5
583
- },
584
- headerTitle: {
585
- fontSize: 24,
586
- fontWeight: 'bold',
587
- color: '#000',
588
- fontFamily: fontFamilies.phuduBold
589
- },
590
- placeholder: {
591
- width: 34 // Same width as cancel button to center title
592
- },
593
- content: {
594
- flex: 1,
595
- padding: 16
596
- },
597
- section: {
598
- marginBottom: 24
599
- },
600
- sectionTitle: {
601
- fontSize: 16,
602
- fontWeight: '600',
603
- color: '#333',
604
- marginBottom: 12,
605
- fontFamily: fontFamilies.phuduSemiBold
606
- },
607
- settingItem: {
608
- backgroundColor: '#fff',
609
- padding: 16,
610
- flexDirection: 'row',
611
- alignItems: 'center',
612
- justifyContent: 'space-between',
613
- marginBottom: 2
614
- },
615
- firstSettingItem: {
616
- borderTopLeftRadius: 24,
617
- borderTopRightRadius: 24
618
- },
619
- lastSettingItem: {
620
- borderBottomLeftRadius: 24,
621
- borderBottomRightRadius: 24,
622
- marginBottom: 8
623
- },
624
- settingInfo: {
625
- flexDirection: 'row',
626
- alignItems: 'center',
627
- flex: 1
628
- },
629
- settingIcon: {
630
- marginRight: 12
631
- },
632
- settingDetails: {
633
- flex: 1
634
- },
635
- settingLabel: {
636
- fontSize: 16,
637
- fontWeight: '500',
638
- color: '#333',
639
- marginBottom: 2
640
- },
641
- settingValue: {
642
- fontSize: 14,
643
- color: '#666'
644
- },
645
- settingDescription: {
646
- fontSize: 14,
647
- color: '#999'
648
- },
649
- disabledSettingItem: {
650
- opacity: 0.6
651
- },
652
- spinningIcon: {
653
- // Note: Animation would need to be implemented with Animated API
654
- // For now, just showing the sync icon to indicate loading
655
- }
656
- });
657
- export default AppInfoScreen;
658
- //# sourceMappingURL=AppInfoScreen.js.map