@oxyhq/services 5.5.9 → 5.6.0

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 (393) hide show
  1. package/README.md +16 -2
  2. package/lib/commonjs/core/index.js +69 -82
  3. package/lib/commonjs/core/index.js.map +1 -1
  4. package/lib/commonjs/index.js +24 -183
  5. package/lib/commonjs/index.js.map +1 -1
  6. package/lib/commonjs/node/index.js +0 -2
  7. package/lib/commonjs/node/index.js.map +1 -1
  8. package/lib/commonjs/ui/components/FollowButton.js +100 -229
  9. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  10. package/lib/commonjs/ui/components/OxyPayButton.js +131 -0
  11. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -0
  12. package/lib/commonjs/ui/components/OxyProvider.js +41 -198
  13. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  14. package/lib/commonjs/ui/components/OxySignInButton.js +15 -2
  15. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  16. package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +66 -0
  17. package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
  18. package/lib/commonjs/ui/components/icon/index.js +7 -0
  19. package/lib/commonjs/ui/components/icon/index.js.map +1 -1
  20. package/lib/commonjs/ui/components/index.js +7 -0
  21. package/lib/commonjs/ui/components/index.js.map +1 -1
  22. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +14 -7
  23. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
  24. package/lib/commonjs/ui/components/internal/PinInput.js +108 -0
  25. package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -0
  26. package/lib/commonjs/ui/components/internal/TextField.js +20 -0
  27. package/lib/commonjs/ui/components/internal/TextField.js.map +1 -1
  28. package/lib/commonjs/ui/context/OxyContext.js +26 -36
  29. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  30. package/lib/commonjs/ui/hooks/index.js +2 -15
  31. package/lib/commonjs/ui/hooks/index.js.map +1 -1
  32. package/lib/commonjs/ui/hooks/useFollow.js +52 -136
  33. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  34. package/lib/commonjs/ui/hooks/useSessionSocket.js +52 -0
  35. package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -0
  36. package/lib/commonjs/ui/index.js +8 -191
  37. package/lib/commonjs/ui/index.js.map +1 -1
  38. package/lib/commonjs/ui/navigation/OxyRouter.js +52 -60
  39. package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
  40. package/lib/commonjs/ui/screens/AccountCenterScreen.js +18 -30
  41. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  42. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +4 -22
  43. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  44. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +6 -14
  45. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  46. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +37 -66
  47. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  48. package/lib/commonjs/ui/screens/AppInfoScreen.js +21 -44
  49. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  50. package/lib/commonjs/ui/screens/FeedbackScreen.js +44 -23
  51. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  52. package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -78
  53. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  54. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +1588 -0
  55. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -0
  56. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +22 -36
  57. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  58. package/lib/commonjs/ui/screens/RecoverAccountScreen.js +269 -0
  59. package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -0
  60. package/lib/commonjs/ui/screens/SessionManagementScreen.js +47 -69
  61. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  62. package/lib/commonjs/ui/screens/SignInScreen.js +99 -333
  63. package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/SignUpScreen.js +136 -340
  65. package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +192 -0
  67. package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -0
  68. package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +135 -0
  69. package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -0
  70. package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js +108 -0
  71. package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js.map +1 -0
  72. package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js +126 -0
  73. package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js.map +1 -0
  74. package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js +84 -0
  75. package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js.map +1 -0
  76. package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js +59 -0
  77. package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js.map +1 -0
  78. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +15 -2
  79. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  80. package/lib/commonjs/ui/stores/authStore.js +31 -0
  81. package/lib/commonjs/ui/stores/authStore.js.map +1 -0
  82. package/lib/commonjs/ui/stores/followStore.js +124 -0
  83. package/lib/commonjs/ui/stores/followStore.js.map +1 -0
  84. package/lib/commonjs/ui/styles/index.js +0 -11
  85. package/lib/commonjs/ui/styles/index.js.map +1 -1
  86. package/lib/commonjs/ui/utils/confirmAction.js +28 -0
  87. package/lib/commonjs/ui/utils/confirmAction.js.map +1 -0
  88. package/lib/module/core/index.js +69 -81
  89. package/lib/module/core/index.js.map +1 -1
  90. package/lib/module/index.js +14 -17
  91. package/lib/module/index.js.map +1 -1
  92. package/lib/module/node/index.js +0 -3
  93. package/lib/module/node/index.js.map +1 -1
  94. package/lib/module/ui/components/FollowButton.js +100 -229
  95. package/lib/module/ui/components/FollowButton.js.map +1 -1
  96. package/lib/module/ui/components/OxyPayButton.js +125 -0
  97. package/lib/module/ui/components/OxyPayButton.js.map +1 -0
  98. package/lib/module/ui/components/OxyProvider.js +42 -199
  99. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  100. package/lib/module/ui/components/OxySignInButton.js +15 -2
  101. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  102. package/lib/module/ui/components/icon/FAIRWalletIcon.js +60 -0
  103. package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
  104. package/lib/module/ui/components/icon/index.js +1 -0
  105. package/lib/module/ui/components/icon/index.js.map +1 -1
  106. package/lib/module/ui/components/index.js +1 -0
  107. package/lib/module/ui/components/index.js.map +1 -1
  108. package/lib/module/ui/components/internal/GroupedPillButtons.js +15 -8
  109. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
  110. package/lib/module/ui/components/internal/PinInput.js +103 -0
  111. package/lib/module/ui/components/internal/PinInput.js.map +1 -0
  112. package/lib/module/ui/components/internal/TextField.js +20 -0
  113. package/lib/module/ui/components/internal/TextField.js.map +1 -1
  114. package/lib/module/ui/context/OxyContext.js +26 -36
  115. package/lib/module/ui/context/OxyContext.js.map +1 -1
  116. package/lib/module/ui/hooks/index.js +1 -2
  117. package/lib/module/ui/hooks/index.js.map +1 -1
  118. package/lib/module/ui/hooks/useFollow.js +52 -137
  119. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  120. package/lib/module/ui/hooks/useSessionSocket.js +47 -0
  121. package/lib/module/ui/hooks/useSessionSocket.js.map +1 -0
  122. package/lib/module/ui/index.js +2 -13
  123. package/lib/module/ui/index.js.map +1 -1
  124. package/lib/module/ui/navigation/OxyRouter.js +53 -61
  125. package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
  126. package/lib/module/ui/screens/AccountCenterScreen.js +6 -18
  127. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  128. package/lib/module/ui/screens/AccountOverviewScreen.js +5 -23
  129. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  130. package/lib/module/ui/screens/AccountSettingsScreen.js +7 -15
  131. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  132. package/lib/module/ui/screens/AccountSwitcherScreen.js +38 -67
  133. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  134. package/lib/module/ui/screens/AppInfoScreen.js +22 -45
  135. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  136. package/lib/module/ui/screens/FeedbackScreen.js +44 -23
  137. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  138. package/lib/module/ui/screens/FileManagementScreen.js +59 -78
  139. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  140. package/lib/module/ui/screens/PaymentGatewayScreen.js +1583 -0
  141. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
  142. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +23 -37
  143. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  144. package/lib/module/ui/screens/RecoverAccountScreen.js +263 -0
  145. package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -0
  146. package/lib/module/ui/screens/SessionManagementScreen.js +47 -69
  147. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  148. package/lib/module/ui/screens/SignInScreen.js +100 -334
  149. package/lib/module/ui/screens/SignInScreen.js.map +1 -1
  150. package/lib/module/ui/screens/SignUpScreen.js +137 -341
  151. package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
  152. package/lib/module/ui/screens/internal/SignInPasswordStep.js +186 -0
  153. package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -0
  154. package/lib/module/ui/screens/internal/SignInUsernameStep.js +129 -0
  155. package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -0
  156. package/lib/module/ui/screens/internal/SignUpIdentityStep.js +102 -0
  157. package/lib/module/ui/screens/internal/SignUpIdentityStep.js.map +1 -0
  158. package/lib/module/ui/screens/internal/SignUpSecurityStep.js +120 -0
  159. package/lib/module/ui/screens/internal/SignUpSecurityStep.js.map +1 -0
  160. package/lib/module/ui/screens/internal/SignUpSummaryStep.js +79 -0
  161. package/lib/module/ui/screens/internal/SignUpSummaryStep.js.map +1 -0
  162. package/lib/module/ui/screens/internal/SignUpWelcomeStep.js +54 -0
  163. package/lib/module/ui/screens/internal/SignUpWelcomeStep.js.map +1 -0
  164. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +16 -3
  165. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  166. package/lib/module/ui/stores/authStore.js +27 -0
  167. package/lib/module/ui/stores/authStore.js.map +1 -0
  168. package/lib/module/ui/stores/followStore.js +120 -0
  169. package/lib/module/ui/stores/followStore.js.map +1 -0
  170. package/lib/module/ui/styles/index.js +0 -1
  171. package/lib/module/ui/styles/index.js.map +1 -1
  172. package/lib/module/ui/utils/confirmAction.js +25 -0
  173. package/lib/module/ui/utils/confirmAction.js.map +1 -0
  174. package/lib/typescript/core/index.d.ts +28 -10
  175. package/lib/typescript/core/index.d.ts.map +1 -1
  176. package/lib/typescript/index.d.ts +5 -4
  177. package/lib/typescript/index.d.ts.map +1 -1
  178. package/lib/typescript/models/secureSession.d.ts +0 -1
  179. package/lib/typescript/models/secureSession.d.ts.map +1 -1
  180. package/lib/typescript/node/index.d.ts +0 -1
  181. package/lib/typescript/node/index.d.ts.map +1 -1
  182. package/lib/typescript/ui/components/FollowButton.d.ts +1 -77
  183. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
  184. package/lib/typescript/ui/components/OxyPayButton.d.ts +29 -0
  185. package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -0
  186. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
  187. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -1
  188. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
  189. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
  190. package/lib/typescript/ui/components/icon/index.d.ts +1 -0
  191. package/lib/typescript/ui/components/icon/index.d.ts.map +1 -1
  192. package/lib/typescript/ui/components/index.d.ts +1 -0
  193. package/lib/typescript/ui/components/index.d.ts.map +1 -1
  194. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
  195. package/lib/typescript/ui/components/internal/PinInput.d.ts +12 -0
  196. package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -0
  197. package/lib/typescript/ui/components/internal/TextField.d.ts +1 -0
  198. package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
  199. package/lib/typescript/ui/context/OxyContext.d.ts +0 -2
  200. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
  201. package/lib/typescript/ui/hooks/index.d.ts +1 -2
  202. package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
  203. package/lib/typescript/ui/hooks/useFollow.d.ts +14 -15
  204. package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
  205. package/lib/typescript/ui/hooks/useSessionSocket.d.ts +11 -0
  206. package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -0
  207. package/lib/typescript/ui/index.d.ts +2 -5
  208. package/lib/typescript/ui/index.d.ts.map +1 -1
  209. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
  210. package/lib/typescript/ui/navigation/types.d.ts +5 -23
  211. package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
  212. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  213. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  214. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  215. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  216. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
  217. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
  218. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
  219. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +27 -0
  220. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
  221. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  222. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +8 -0
  223. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -0
  224. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  225. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
  226. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
  227. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +27 -0
  228. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -0
  229. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +26 -0
  230. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -0
  231. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts +20 -0
  232. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +1 -0
  233. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts +24 -0
  234. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +1 -0
  235. package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts +15 -0
  236. package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts.map +1 -0
  237. package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts +13 -0
  238. package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts.map +1 -0
  239. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
  240. package/lib/typescript/ui/stores/authStore.d.ts +14 -0
  241. package/lib/typescript/ui/stores/authStore.d.ts.map +1 -0
  242. package/lib/typescript/ui/stores/followStore.d.ts +15 -0
  243. package/lib/typescript/ui/stores/followStore.d.ts.map +1 -0
  244. package/lib/typescript/ui/styles/index.d.ts +0 -1
  245. package/lib/typescript/ui/styles/index.d.ts.map +1 -1
  246. package/lib/typescript/ui/utils/confirmAction.d.ts +7 -0
  247. package/lib/typescript/ui/utils/confirmAction.d.ts.map +1 -0
  248. package/package.json +12 -7
  249. package/src/core/index.ts +78 -88
  250. package/src/index.ts +8 -45
  251. package/src/models/secureSession.ts +1 -2
  252. package/src/node/index.ts +0 -3
  253. package/src/ui/components/FollowButton.tsx +100 -322
  254. package/src/ui/components/OxyPayButton.tsx +133 -0
  255. package/src/ui/components/OxyProvider.tsx +39 -201
  256. package/src/ui/components/OxySignInButton.tsx +13 -2
  257. package/src/ui/components/icon/FAIRWalletIcon.tsx +49 -0
  258. package/src/ui/components/icon/index.ts +1 -0
  259. package/src/ui/components/index.ts +1 -0
  260. package/src/ui/components/internal/GroupedPillButtons.tsx +12 -8
  261. package/src/ui/components/internal/PinInput.tsx +102 -0
  262. package/src/ui/components/internal/TextField.tsx +9 -0
  263. package/src/ui/context/OxyContext.tsx +26 -40
  264. package/src/ui/hooks/index.ts +1 -2
  265. package/src/ui/hooks/useFollow.ts +58 -129
  266. package/src/ui/hooks/useSessionSocket.ts +50 -0
  267. package/src/ui/index.ts +2 -37
  268. package/src/ui/navigation/OxyRouter.tsx +47 -63
  269. package/src/ui/navigation/types.ts +5 -26
  270. package/src/ui/screens/AccountCenterScreen.tsx +12 -21
  271. package/src/ui/screens/AccountOverviewScreen.tsx +6 -30
  272. package/src/ui/screens/AccountSettingsScreen.tsx +7 -22
  273. package/src/ui/screens/AccountSwitcherScreen.tsx +46 -88
  274. package/src/ui/screens/AppInfoScreen.tsx +27 -47
  275. package/src/ui/screens/FeedbackScreen.tsx +34 -19
  276. package/src/ui/screens/FileManagementScreen.tsx +293 -321
  277. package/src/ui/screens/PaymentGatewayScreen.tsx +1315 -0
  278. package/src/ui/screens/PremiumSubscriptionScreen.tsx +109 -124
  279. package/src/ui/screens/RecoverAccountScreen.tsx +260 -0
  280. package/src/ui/screens/SessionManagementScreen.tsx +65 -137
  281. package/src/ui/screens/SignInScreen.tsx +89 -283
  282. package/src/ui/screens/SignUpScreen.tsx +138 -291
  283. package/src/ui/screens/internal/SignInPasswordStep.tsx +179 -0
  284. package/src/ui/screens/internal/SignInUsernameStep.tsx +139 -0
  285. package/src/ui/screens/internal/SignUpIdentityStep.tsx +114 -0
  286. package/src/ui/screens/internal/SignUpSecurityStep.tsx +132 -0
  287. package/src/ui/screens/internal/SignUpSummaryStep.tsx +66 -0
  288. package/src/ui/screens/internal/SignUpWelcomeStep.tsx +52 -0
  289. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +13 -3
  290. package/src/ui/stores/authStore.ts +24 -0
  291. package/src/ui/stores/followStore.ts +80 -0
  292. package/src/ui/styles/index.ts +0 -1
  293. package/src/ui/utils/confirmAction.ts +23 -0
  294. package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
  295. package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
  296. package/lib/commonjs/ui/hooks/useAuthFetch.js +0 -217
  297. package/lib/commonjs/ui/hooks/useAuthFetch.js.map +0 -1
  298. package/lib/commonjs/ui/hooks/useOxyFollow.js +0 -190
  299. package/lib/commonjs/ui/hooks/useOxyFollow.js.map +0 -1
  300. package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
  301. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
  302. package/lib/commonjs/ui/store/index.js +0 -67
  303. package/lib/commonjs/ui/store/index.js.map +0 -1
  304. package/lib/commonjs/ui/store/setupOxyStore.js +0 -63
  305. package/lib/commonjs/ui/store/setupOxyStore.js.map +0 -1
  306. package/lib/commonjs/ui/store/slices/authSlice.js +0 -56
  307. package/lib/commonjs/ui/store/slices/authSlice.js.map +0 -1
  308. package/lib/commonjs/ui/store/slices/followSlice.js +0 -238
  309. package/lib/commonjs/ui/store/slices/followSlice.js.map +0 -1
  310. package/lib/commonjs/ui/store/slices/index.js +0 -129
  311. package/lib/commonjs/ui/store/slices/index.js.map +0 -1
  312. package/lib/commonjs/ui/store/slices/types.js +0 -19
  313. package/lib/commonjs/ui/store/slices/types.js.map +0 -1
  314. package/lib/commonjs/ui/styles/shadows.js +0 -123
  315. package/lib/commonjs/ui/styles/shadows.js.map +0 -1
  316. package/lib/commonjs/utils/polyfills.js +0 -42
  317. package/lib/commonjs/utils/polyfills.js.map +0 -1
  318. package/lib/module/ui/components/bottomSheet/index.js +0 -5
  319. package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
  320. package/lib/module/ui/hooks/useAuthFetch.js +0 -212
  321. package/lib/module/ui/hooks/useAuthFetch.js.map +0 -1
  322. package/lib/module/ui/hooks/useOxyFollow.js +0 -186
  323. package/lib/module/ui/hooks/useOxyFollow.js.map +0 -1
  324. package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
  325. package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
  326. package/lib/module/ui/store/index.js +0 -33
  327. package/lib/module/ui/store/index.js.map +0 -1
  328. package/lib/module/ui/store/setupOxyStore.js +0 -59
  329. package/lib/module/ui/store/setupOxyStore.js.map +0 -1
  330. package/lib/module/ui/store/slices/authSlice.js +0 -48
  331. package/lib/module/ui/store/slices/authSlice.js.map +0 -1
  332. package/lib/module/ui/store/slices/followSlice.js +0 -232
  333. package/lib/module/ui/store/slices/followSlice.js.map +0 -1
  334. package/lib/module/ui/store/slices/index.js +0 -11
  335. package/lib/module/ui/store/slices/index.js.map +0 -1
  336. package/lib/module/ui/store/slices/types.js +0 -15
  337. package/lib/module/ui/store/slices/types.js.map +0 -1
  338. package/lib/module/ui/styles/shadows.js +0 -119
  339. package/lib/module/ui/styles/shadows.js.map +0 -1
  340. package/lib/module/utils/polyfills.js +0 -36
  341. package/lib/module/utils/polyfills.js.map +0 -1
  342. package/lib/typescript/types/react-redux.d.ts +0 -5
  343. package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
  344. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
  345. package/lib/typescript/ui/hooks/useAuthFetch.d.ts +0 -34
  346. package/lib/typescript/ui/hooks/useAuthFetch.d.ts.map +0 -1
  347. package/lib/typescript/ui/hooks/useOxyFollow.d.ts +0 -81
  348. package/lib/typescript/ui/hooks/useOxyFollow.d.ts.map +0 -1
  349. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
  350. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
  351. package/lib/typescript/ui/store/index.d.ts +0 -27
  352. package/lib/typescript/ui/store/index.d.ts.map +0 -1
  353. package/lib/typescript/ui/store/setupOxyStore.d.ts +0 -29
  354. package/lib/typescript/ui/store/setupOxyStore.d.ts.map +0 -1
  355. package/lib/typescript/ui/store/slices/authSlice.d.ts +0 -32
  356. package/lib/typescript/ui/store/slices/authSlice.d.ts.map +0 -1
  357. package/lib/typescript/ui/store/slices/followSlice.d.ts +0 -120
  358. package/lib/typescript/ui/store/slices/followSlice.d.ts.map +0 -1
  359. package/lib/typescript/ui/store/slices/index.d.ts +0 -9
  360. package/lib/typescript/ui/store/slices/index.d.ts.map +0 -1
  361. package/lib/typescript/ui/store/slices/types.d.ts +0 -16
  362. package/lib/typescript/ui/store/slices/types.d.ts.map +0 -1
  363. package/lib/typescript/ui/styles/shadows.d.ts +0 -233
  364. package/lib/typescript/ui/styles/shadows.d.ts.map +0 -1
  365. package/lib/typescript/utils/polyfills.d.ts +0 -6
  366. package/lib/typescript/utils/polyfills.d.ts.map +0 -1
  367. package/src/__tests__/backend-middleware.test.ts +0 -209
  368. package/src/__tests__/polyfills.test.ts +0 -30
  369. package/src/__tests__/setup.ts +0 -43
  370. package/src/__tests__/ui/hooks/authfetch-integration.test.ts +0 -197
  371. package/src/__tests__/ui/hooks/backward-compatibility.test.ts +0 -159
  372. package/src/__tests__/ui/hooks/real-world-scenarios.test.ts +0 -224
  373. package/src/__tests__/ui/hooks/url-resolution.test.ts +0 -129
  374. package/src/__tests__/ui/hooks/useAuthFetch-separation.test.ts +0 -69
  375. package/src/__tests__/ui/hooks/useAuthFetch.test.ts +0 -70
  376. package/src/__tests__/ui/hooks/useOxyFollow.test.tsx +0 -92
  377. package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +0 -112
  378. package/src/__tests__/ui/store/setupOxyStore.test.ts +0 -50
  379. package/src/__tests__/validate-structure.js +0 -91
  380. package/src/__tests__/validation.js +0 -42
  381. package/src/types/react-redux.d.ts +0 -5
  382. package/src/ui/components/bottomSheet/index.tsx +0 -14
  383. package/src/ui/hooks/useAuthFetch.ts +0 -238
  384. package/src/ui/hooks/useOxyFollow.ts +0 -188
  385. package/src/ui/screens/BillingManagementScreen.tsx +0 -589
  386. package/src/ui/store/index.ts +0 -36
  387. package/src/ui/store/setupOxyStore.ts +0 -58
  388. package/src/ui/store/slices/authSlice.ts +0 -43
  389. package/src/ui/store/slices/followSlice.ts +0 -207
  390. package/src/ui/store/slices/index.ts +0 -31
  391. package/src/ui/store/slices/types.ts +0 -33
  392. package/src/ui/styles/shadows.ts +0 -112
  393. package/src/utils/polyfills.ts +0 -34
@@ -1,631 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState, useEffect } from 'react';
4
- import { View, Text, TouchableOpacity, StyleSheet, ScrollView, ActivityIndicator, Alert } from 'react-native';
5
- import { useOxy } from '../context/OxyContext';
6
- import { fontFamilies } from '../styles/fonts';
7
- import { toast } from '../../lib/sonner';
8
- import { Ionicons } from '@expo/vector-icons';
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- const BillingManagementScreen = ({
11
- onClose,
12
- theme,
13
- navigate,
14
- goBack
15
- }) => {
16
- const {
17
- user
18
- } = useOxy();
19
- const [loading, setLoading] = useState(true);
20
- const [paymentMethods, setPaymentMethods] = useState([]);
21
- const [invoices, setInvoices] = useState([]);
22
- const [processingPayment, setProcessingPayment] = useState(false);
23
- const isDarkTheme = theme === 'dark';
24
- const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
25
- const backgroundColor = isDarkTheme ? '#121212' : '#FFFFFF';
26
- const secondaryBackgroundColor = isDarkTheme ? '#222222' : '#F5F5F5';
27
- const borderColor = isDarkTheme ? '#444444' : '#E0E0E0';
28
- const primaryColor = '#007AFF';
29
- const successColor = '#30D158';
30
- const warningColor = '#FF9500';
31
- const dangerColor = '#FF3B30';
32
-
33
- // Mock data
34
- const mockPaymentMethods = [{
35
- id: 'pm_1',
36
- type: 'card',
37
- last4: '4242',
38
- brand: 'Visa',
39
- expiryMonth: 12,
40
- expiryYear: 2027,
41
- isDefault: true
42
- }, {
43
- id: 'pm_2',
44
- type: 'paypal',
45
- isDefault: false
46
- }];
47
- const mockInvoices = [{
48
- id: 'inv_1',
49
- date: '2024-12-01',
50
- amount: 19.99,
51
- currency: 'USD',
52
- status: 'paid',
53
- description: 'Pro Plan - Monthly'
54
- }, {
55
- id: 'inv_2',
56
- date: '2024-11-01',
57
- amount: 19.99,
58
- currency: 'USD',
59
- status: 'paid',
60
- description: 'Pro Plan - Monthly'
61
- }, {
62
- id: 'inv_3',
63
- date: '2024-10-01',
64
- amount: 19.99,
65
- currency: 'USD',
66
- status: 'paid',
67
- description: 'Pro Plan - Monthly'
68
- }];
69
- useEffect(() => {
70
- loadBillingData();
71
- }, []);
72
- const loadBillingData = async () => {
73
- try {
74
- setLoading(true);
75
-
76
- // Simulate API calls
77
- await new Promise(resolve => setTimeout(resolve, 1000));
78
- setPaymentMethods(mockPaymentMethods);
79
- setInvoices(mockInvoices);
80
- } catch (error) {
81
- console.error('Failed to load billing data:', error);
82
- toast.error('Failed to load billing information');
83
- } finally {
84
- setLoading(false);
85
- }
86
- };
87
- const handleAddPaymentMethod = () => {
88
- Alert.alert('Add Payment Method', 'This would open a secure payment form to add a new payment method.', [{
89
- text: 'OK'
90
- }]);
91
- };
92
- const handleSetDefaultPaymentMethod = async methodId => {
93
- try {
94
- setPaymentMethods(prev => prev.map(method => ({
95
- ...method,
96
- isDefault: method.id === methodId
97
- })));
98
- toast.success('Default payment method updated');
99
- } catch (error) {
100
- toast.error('Failed to update payment method');
101
- }
102
- };
103
- const handleRemovePaymentMethod = methodId => {
104
- Alert.alert('Remove Payment Method', 'Are you sure you want to remove this payment method?', [{
105
- text: 'Cancel',
106
- style: 'cancel'
107
- }, {
108
- text: 'Remove',
109
- style: 'destructive',
110
- onPress: async () => {
111
- try {
112
- setPaymentMethods(prev => prev.filter(method => method.id !== methodId));
113
- toast.success('Payment method removed');
114
- } catch (error) {
115
- toast.error('Failed to remove payment method');
116
- }
117
- }
118
- }]);
119
- };
120
- const handleDownloadInvoice = invoice => {
121
- toast.info('Invoice download would start here');
122
- };
123
- const getPaymentMethodIcon = method => {
124
- switch (method.type) {
125
- case 'card':
126
- return method.brand?.toLowerCase() === 'visa' ? 'card' : 'card-outline';
127
- case 'paypal':
128
- return 'logo-paypal';
129
- case 'bank':
130
- return 'business';
131
- default:
132
- return 'card';
133
- }
134
- };
135
- const getPaymentMethodDisplay = method => {
136
- switch (method.type) {
137
- case 'card':
138
- return `${method.brand} •••• ${method.last4}`;
139
- case 'paypal':
140
- return 'PayPal';
141
- case 'bank':
142
- return 'Bank Transfer';
143
- default:
144
- return 'Unknown';
145
- }
146
- };
147
- const getStatusColor = status => {
148
- switch (status) {
149
- case 'paid':
150
- return successColor;
151
- case 'pending':
152
- return warningColor;
153
- case 'failed':
154
- return dangerColor;
155
- default:
156
- return textColor;
157
- }
158
- };
159
- if (loading) {
160
- return /*#__PURE__*/_jsxs(View, {
161
- style: [styles.container, {
162
- backgroundColor,
163
- justifyContent: 'center'
164
- }],
165
- children: [/*#__PURE__*/_jsx(ActivityIndicator, {
166
- size: "large",
167
- color: primaryColor
168
- }), /*#__PURE__*/_jsx(Text, {
169
- style: [styles.loadingText, {
170
- color: textColor
171
- }],
172
- children: "Loading billing information..."
173
- })]
174
- });
175
- }
176
- return /*#__PURE__*/_jsxs(View, {
177
- style: [styles.container, {
178
- backgroundColor
179
- }],
180
- children: [/*#__PURE__*/_jsxs(View, {
181
- style: [styles.header, {
182
- borderBottomColor: borderColor
183
- }],
184
- children: [/*#__PURE__*/_jsx(TouchableOpacity, {
185
- style: styles.backButton,
186
- onPress: goBack,
187
- children: /*#__PURE__*/_jsx(Ionicons, {
188
- name: "arrow-back",
189
- size: 24,
190
- color: textColor
191
- })
192
- }), /*#__PURE__*/_jsx(Text, {
193
- style: [styles.headerTitle, {
194
- color: textColor
195
- }],
196
- children: "Billing Management"
197
- }), onClose && /*#__PURE__*/_jsx(TouchableOpacity, {
198
- style: styles.closeButton,
199
- onPress: onClose,
200
- children: /*#__PURE__*/_jsx(Ionicons, {
201
- name: "close",
202
- size: 24,
203
- color: textColor
204
- })
205
- })]
206
- }), /*#__PURE__*/_jsxs(ScrollView, {
207
- style: styles.content,
208
- showsVerticalScrollIndicator: false,
209
- children: [/*#__PURE__*/_jsxs(View, {
210
- style: styles.section,
211
- children: [/*#__PURE__*/_jsxs(View, {
212
- style: styles.sectionHeader,
213
- children: [/*#__PURE__*/_jsx(Text, {
214
- style: [styles.sectionTitle, {
215
- color: textColor
216
- }],
217
- children: "Payment Methods"
218
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
219
- style: [styles.addButton, {
220
- backgroundColor: primaryColor
221
- }],
222
- onPress: handleAddPaymentMethod,
223
- children: [/*#__PURE__*/_jsx(Ionicons, {
224
- name: "add",
225
- size: 20,
226
- color: "#FFFFFF"
227
- }), /*#__PURE__*/_jsx(Text, {
228
- style: styles.addButtonText,
229
- children: "Add"
230
- })]
231
- })]
232
- }), paymentMethods.map(method => /*#__PURE__*/_jsx(View, {
233
- style: [styles.paymentMethodCard, {
234
- backgroundColor: secondaryBackgroundColor,
235
- borderColor
236
- }],
237
- children: /*#__PURE__*/_jsxs(View, {
238
- style: styles.paymentMethodHeader,
239
- children: [/*#__PURE__*/_jsxs(View, {
240
- style: styles.paymentMethodInfo,
241
- children: [/*#__PURE__*/_jsx(Ionicons, {
242
- name: getPaymentMethodIcon(method),
243
- size: 24,
244
- color: primaryColor,
245
- style: styles.paymentMethodIcon
246
- }), /*#__PURE__*/_jsxs(View, {
247
- children: [/*#__PURE__*/_jsx(Text, {
248
- style: [styles.paymentMethodName, {
249
- color: textColor
250
- }],
251
- children: getPaymentMethodDisplay(method)
252
- }), method.type === 'card' && /*#__PURE__*/_jsxs(Text, {
253
- style: [styles.paymentMethodExpiry, {
254
- color: isDarkTheme ? '#BBBBBB' : '#666666'
255
- }],
256
- children: ["Expires ", method.expiryMonth, "/", method.expiryYear]
257
- }), method.isDefault && /*#__PURE__*/_jsx(View, {
258
- style: [styles.defaultBadge, {
259
- backgroundColor: successColor
260
- }],
261
- children: /*#__PURE__*/_jsx(Text, {
262
- style: styles.defaultText,
263
- children: "Default"
264
- })
265
- })]
266
- })]
267
- }), /*#__PURE__*/_jsxs(View, {
268
- style: styles.paymentMethodActions,
269
- children: [!method.isDefault && /*#__PURE__*/_jsx(TouchableOpacity, {
270
- style: [styles.actionButton, {
271
- borderColor
272
- }],
273
- onPress: () => handleSetDefaultPaymentMethod(method.id),
274
- children: /*#__PURE__*/_jsx(Text, {
275
- style: [styles.actionButtonText, {
276
- color: textColor
277
- }],
278
- children: "Set Default"
279
- })
280
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
281
- style: [styles.actionButton, {
282
- borderColor: dangerColor
283
- }],
284
- onPress: () => handleRemovePaymentMethod(method.id),
285
- children: /*#__PURE__*/_jsx(Text, {
286
- style: [styles.actionButtonText, {
287
- color: dangerColor
288
- }],
289
- children: "Remove"
290
- })
291
- })]
292
- })]
293
- })
294
- }, method.id))]
295
- }), /*#__PURE__*/_jsxs(View, {
296
- style: styles.section,
297
- children: [/*#__PURE__*/_jsx(Text, {
298
- style: [styles.sectionTitle, {
299
- color: textColor
300
- }],
301
- children: "Billing History"
302
- }), invoices.map(invoice => /*#__PURE__*/_jsxs(View, {
303
- style: [styles.invoiceCard, {
304
- backgroundColor: secondaryBackgroundColor,
305
- borderColor
306
- }],
307
- children: [/*#__PURE__*/_jsxs(View, {
308
- style: styles.invoiceHeader,
309
- children: [/*#__PURE__*/_jsxs(View, {
310
- style: styles.invoiceInfo,
311
- children: [/*#__PURE__*/_jsx(Text, {
312
- style: [styles.invoiceDescription, {
313
- color: textColor
314
- }],
315
- children: invoice.description
316
- }), /*#__PURE__*/_jsx(Text, {
317
- style: [styles.invoiceDate, {
318
- color: isDarkTheme ? '#BBBBBB' : '#666666'
319
- }],
320
- children: new Date(invoice.date).toLocaleDateString()
321
- })]
322
- }), /*#__PURE__*/_jsxs(View, {
323
- style: styles.invoiceAmount,
324
- children: [/*#__PURE__*/_jsxs(Text, {
325
- style: [styles.invoicePrice, {
326
- color: textColor
327
- }],
328
- children: ["$", invoice.amount.toFixed(2)]
329
- }), /*#__PURE__*/_jsx(View, {
330
- style: [styles.statusBadge, {
331
- backgroundColor: getStatusColor(invoice.status)
332
- }],
333
- children: /*#__PURE__*/_jsx(Text, {
334
- style: styles.statusText,
335
- children: invoice.status.toUpperCase()
336
- })
337
- })]
338
- })]
339
- }), /*#__PURE__*/_jsx(View, {
340
- style: styles.invoiceActions,
341
- children: /*#__PURE__*/_jsxs(TouchableOpacity, {
342
- style: [styles.downloadButton, {
343
- borderColor
344
- }],
345
- onPress: () => handleDownloadInvoice(invoice),
346
- children: [/*#__PURE__*/_jsx(Ionicons, {
347
- name: "download",
348
- size: 16,
349
- color: primaryColor
350
- }), /*#__PURE__*/_jsx(Text, {
351
- style: [styles.downloadButtonText, {
352
- color: primaryColor
353
- }],
354
- children: "Download"
355
- })]
356
- })
357
- })]
358
- }, invoice.id))]
359
- }), /*#__PURE__*/_jsxs(View, {
360
- style: styles.section,
361
- children: [/*#__PURE__*/_jsx(Text, {
362
- style: [styles.sectionTitle, {
363
- color: textColor
364
- }],
365
- children: "Billing Information"
366
- }), /*#__PURE__*/_jsxs(View, {
367
- style: [styles.billingInfoCard, {
368
- backgroundColor: secondaryBackgroundColor,
369
- borderColor
370
- }],
371
- children: [/*#__PURE__*/_jsxs(View, {
372
- style: styles.billingInfoItem,
373
- children: [/*#__PURE__*/_jsx(Ionicons, {
374
- name: "business",
375
- size: 20,
376
- color: primaryColor
377
- }), /*#__PURE__*/_jsxs(View, {
378
- style: styles.billingInfoContent,
379
- children: [/*#__PURE__*/_jsx(Text, {
380
- style: [styles.billingInfoLabel, {
381
- color: textColor
382
- }],
383
- children: "Billing Address"
384
- }), /*#__PURE__*/_jsx(Text, {
385
- style: [styles.billingInfoValue, {
386
- color: isDarkTheme ? '#BBBBBB' : '#666666'
387
- }],
388
- children: "Update your billing address"
389
- })]
390
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
391
- children: /*#__PURE__*/_jsx(Ionicons, {
392
- name: "chevron-forward",
393
- size: 20,
394
- color: isDarkTheme ? '#666666' : '#999999'
395
- })
396
- })]
397
- }), /*#__PURE__*/_jsxs(View, {
398
- style: styles.billingInfoItem,
399
- children: [/*#__PURE__*/_jsx(Ionicons, {
400
- name: "receipt",
401
- size: 20,
402
- color: primaryColor
403
- }), /*#__PURE__*/_jsxs(View, {
404
- style: styles.billingInfoContent,
405
- children: [/*#__PURE__*/_jsx(Text, {
406
- style: [styles.billingInfoLabel, {
407
- color: textColor
408
- }],
409
- children: "Tax Information"
410
- }), /*#__PURE__*/_jsx(Text, {
411
- style: [styles.billingInfoValue, {
412
- color: isDarkTheme ? '#BBBBBB' : '#666666'
413
- }],
414
- children: "Manage tax settings"
415
- })]
416
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
417
- children: /*#__PURE__*/_jsx(Ionicons, {
418
- name: "chevron-forward",
419
- size: 20,
420
- color: isDarkTheme ? '#666666' : '#999999'
421
- })
422
- })]
423
- })]
424
- })]
425
- }), /*#__PURE__*/_jsx(View, {
426
- style: styles.bottomSpacing
427
- })]
428
- })]
429
- });
430
- };
431
- const styles = StyleSheet.create({
432
- container: {
433
- flex: 1
434
- },
435
- header: {
436
- flexDirection: 'row',
437
- alignItems: 'center',
438
- justifyContent: 'space-between',
439
- paddingHorizontal: 20,
440
- paddingTop: 20,
441
- paddingBottom: 16,
442
- borderBottomWidth: 1
443
- },
444
- backButton: {
445
- padding: 8
446
- },
447
- headerTitle: {
448
- fontSize: 20,
449
- fontWeight: '600',
450
- fontFamily: fontFamilies.phuduSemiBold
451
- },
452
- closeButton: {
453
- padding: 8
454
- },
455
- content: {
456
- flex: 1
457
- },
458
- section: {
459
- padding: 20
460
- },
461
- sectionHeader: {
462
- flexDirection: 'row',
463
- justifyContent: 'space-between',
464
- alignItems: 'center',
465
- marginBottom: 16
466
- },
467
- sectionTitle: {
468
- fontSize: 20,
469
- fontWeight: 'bold',
470
- fontFamily: fontFamilies.phuduBold
471
- },
472
- addButton: {
473
- flexDirection: 'row',
474
- alignItems: 'center',
475
- paddingHorizontal: 12,
476
- paddingVertical: 8,
477
- borderRadius: 8
478
- },
479
- addButtonText: {
480
- color: '#FFFFFF',
481
- fontSize: 14,
482
- fontWeight: '600',
483
- marginLeft: 4
484
- },
485
- loadingText: {
486
- fontSize: 16,
487
- textAlign: 'center',
488
- marginTop: 16
489
- },
490
- paymentMethodCard: {
491
- borderRadius: 12,
492
- padding: 16,
493
- marginBottom: 12,
494
- borderWidth: 1
495
- },
496
- paymentMethodHeader: {
497
- flexDirection: 'row',
498
- justifyContent: 'space-between',
499
- alignItems: 'flex-start'
500
- },
501
- paymentMethodInfo: {
502
- flexDirection: 'row',
503
- alignItems: 'flex-start',
504
- flex: 1
505
- },
506
- paymentMethodIcon: {
507
- marginRight: 12,
508
- marginTop: 2
509
- },
510
- paymentMethodName: {
511
- fontSize: 16,
512
- fontWeight: '600',
513
- marginBottom: 4
514
- },
515
- paymentMethodExpiry: {
516
- fontSize: 14,
517
- marginBottom: 8
518
- },
519
- defaultBadge: {
520
- paddingHorizontal: 8,
521
- paddingVertical: 2,
522
- borderRadius: 4,
523
- alignSelf: 'flex-start'
524
- },
525
- defaultText: {
526
- color: '#FFFFFF',
527
- fontSize: 12,
528
- fontWeight: '600'
529
- },
530
- paymentMethodActions: {
531
- flexDirection: 'row',
532
- gap: 8
533
- },
534
- actionButton: {
535
- paddingHorizontal: 12,
536
- paddingVertical: 6,
537
- borderRadius: 6,
538
- borderWidth: 1
539
- },
540
- actionButtonText: {
541
- fontSize: 12,
542
- fontWeight: '600'
543
- },
544
- invoiceCard: {
545
- borderRadius: 12,
546
- padding: 16,
547
- marginBottom: 12,
548
- borderWidth: 1
549
- },
550
- invoiceHeader: {
551
- flexDirection: 'row',
552
- justifyContent: 'space-between',
553
- alignItems: 'flex-start',
554
- marginBottom: 12
555
- },
556
- invoiceInfo: {
557
- flex: 1
558
- },
559
- invoiceDescription: {
560
- fontSize: 16,
561
- fontWeight: '600',
562
- marginBottom: 4
563
- },
564
- invoiceDate: {
565
- fontSize: 14
566
- },
567
- invoiceAmount: {
568
- alignItems: 'flex-end'
569
- },
570
- invoicePrice: {
571
- fontSize: 16,
572
- fontWeight: '600',
573
- marginBottom: 4
574
- },
575
- statusBadge: {
576
- paddingHorizontal: 8,
577
- paddingVertical: 2,
578
- borderRadius: 4
579
- },
580
- statusText: {
581
- color: '#FFFFFF',
582
- fontSize: 12,
583
- fontWeight: '600'
584
- },
585
- invoiceActions: {
586
- flexDirection: 'row',
587
- justifyContent: 'flex-end'
588
- },
589
- downloadButton: {
590
- flexDirection: 'row',
591
- alignItems: 'center',
592
- paddingHorizontal: 12,
593
- paddingVertical: 6,
594
- borderRadius: 6,
595
- borderWidth: 1
596
- },
597
- downloadButtonText: {
598
- fontSize: 12,
599
- fontWeight: '600',
600
- marginLeft: 4
601
- },
602
- billingInfoCard: {
603
- borderRadius: 12,
604
- borderWidth: 1,
605
- overflow: 'hidden'
606
- },
607
- billingInfoItem: {
608
- flexDirection: 'row',
609
- alignItems: 'center',
610
- padding: 16,
611
- borderBottomWidth: 1,
612
- borderBottomColor: 'rgba(0, 0, 0, 0.05)'
613
- },
614
- billingInfoContent: {
615
- flex: 1,
616
- marginLeft: 12
617
- },
618
- billingInfoLabel: {
619
- fontSize: 16,
620
- fontWeight: '600',
621
- marginBottom: 4
622
- },
623
- billingInfoValue: {
624
- fontSize: 14
625
- },
626
- bottomSpacing: {
627
- height: 40
628
- }
629
- });
630
- export default BillingManagementScreen;
631
- //# sourceMappingURL=BillingManagementScreen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","useEffect","View","Text","TouchableOpacity","StyleSheet","ScrollView","ActivityIndicator","Alert","useOxy","fontFamilies","toast","Ionicons","jsx","_jsx","jsxs","_jsxs","BillingManagementScreen","onClose","theme","navigate","goBack","user","loading","setLoading","paymentMethods","setPaymentMethods","invoices","setInvoices","processingPayment","setProcessingPayment","isDarkTheme","textColor","backgroundColor","secondaryBackgroundColor","borderColor","primaryColor","successColor","warningColor","dangerColor","mockPaymentMethods","id","type","last4","brand","expiryMonth","expiryYear","isDefault","mockInvoices","date","amount","currency","status","description","loadBillingData","Promise","resolve","setTimeout","error","console","handleAddPaymentMethod","alert","text","handleSetDefaultPaymentMethod","methodId","prev","map","method","success","handleRemovePaymentMethod","style","onPress","filter","handleDownloadInvoice","invoice","info","getPaymentMethodIcon","toLowerCase","getPaymentMethodDisplay","getStatusColor","styles","container","justifyContent","children","size","color","loadingText","header","borderBottomColor","backButton","name","headerTitle","closeButton","content","showsVerticalScrollIndicator","section","sectionHeader","sectionTitle","addButton","addButtonText","paymentMethodCard","paymentMethodHeader","paymentMethodInfo","paymentMethodIcon","paymentMethodName","paymentMethodExpiry","defaultBadge","defaultText","paymentMethodActions","actionButton","actionButtonText","invoiceCard","invoiceHeader","invoiceInfo","invoiceDescription","invoiceDate","Date","toLocaleDateString","invoiceAmount","invoicePrice","toFixed","statusBadge","statusText","toUpperCase","invoiceActions","downloadButton","downloadButtonText","billingInfoCard","billingInfoItem","billingInfoContent","billingInfoLabel","billingInfoValue","bottomSpacing","create","flex","flexDirection","alignItems","paddingHorizontal","paddingTop","paddingBottom","borderBottomWidth","padding","fontSize","fontWeight","fontFamily","phuduSemiBold","marginBottom","phuduBold","paddingVertical","borderRadius","marginLeft","textAlign","marginTop","borderWidth","marginRight","alignSelf","gap","overflow","height"],"sourceRoot":"../../../../src","sources":["ui/screens/BillingManagementScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACIC,IAAI,EACJC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,iBAAiB,EACjBC,KAAK,QAEF,cAAc;AAErB,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,QAAQ,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsB9C,MAAMC,uBAAkD,GAAGA,CAAC;EACxDC,OAAO;EACPC,KAAK;EACLC,QAAQ;EACRC;AACJ,CAAC,KAAK;EACF,MAAM;IAAEC;EAAK,CAAC,GAAGb,MAAM,CAAC,CAAC;EACzB,MAAM,CAACc,OAAO,EAAEC,UAAU,CAAC,GAAGxB,QAAQ,CAAC,IAAI,CAAC;EAC5C,MAAM,CAACyB,cAAc,EAAEC,iBAAiB,CAAC,GAAG1B,QAAQ,CAAkB,EAAE,CAAC;EACzE,MAAM,CAAC2B,QAAQ,EAAEC,WAAW,CAAC,GAAG5B,QAAQ,CAAY,EAAE,CAAC;EACvD,MAAM,CAAC6B,iBAAiB,EAAEC,oBAAoB,CAAC,GAAG9B,QAAQ,CAAC,KAAK,CAAC;EAEjE,MAAM+B,W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