@oxyhq/services 5.5.9 → 5.6.1

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 (396) 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 +116 -84
  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 +90 -39
  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 +66 -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 +117 -85
  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 +91 -40
  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 +62 -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/interfaces.d.ts +6 -0
  179. package/lib/typescript/models/interfaces.d.ts.map +1 -1
  180. package/lib/typescript/models/secureSession.d.ts +0 -1
  181. package/lib/typescript/models/secureSession.d.ts.map +1 -1
  182. package/lib/typescript/node/index.d.ts +0 -1
  183. package/lib/typescript/node/index.d.ts.map +1 -1
  184. package/lib/typescript/ui/components/FollowButton.d.ts +1 -77
  185. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
  186. package/lib/typescript/ui/components/OxyPayButton.d.ts +29 -0
  187. package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -0
  188. package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
  189. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -1
  190. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
  191. package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
  192. package/lib/typescript/ui/components/icon/index.d.ts +1 -0
  193. package/lib/typescript/ui/components/icon/index.d.ts.map +1 -1
  194. package/lib/typescript/ui/components/index.d.ts +1 -0
  195. package/lib/typescript/ui/components/index.d.ts.map +1 -1
  196. package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
  197. package/lib/typescript/ui/components/internal/PinInput.d.ts +12 -0
  198. package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -0
  199. package/lib/typescript/ui/components/internal/TextField.d.ts +1 -0
  200. package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
  201. package/lib/typescript/ui/context/OxyContext.d.ts +0 -2
  202. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
  203. package/lib/typescript/ui/hooks/index.d.ts +1 -2
  204. package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
  205. package/lib/typescript/ui/hooks/useFollow.d.ts +14 -15
  206. package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
  207. package/lib/typescript/ui/hooks/useSessionSocket.d.ts +11 -0
  208. package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -0
  209. package/lib/typescript/ui/index.d.ts +2 -5
  210. package/lib/typescript/ui/index.d.ts.map +1 -1
  211. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
  212. package/lib/typescript/ui/navigation/types.d.ts +5 -23
  213. package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
  214. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  215. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  216. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  217. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  218. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
  219. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
  220. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
  221. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +27 -0
  222. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
  223. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  224. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +8 -0
  225. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -0
  226. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  227. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
  228. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
  229. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +27 -0
  230. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -0
  231. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +26 -0
  232. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -0
  233. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts +20 -0
  234. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +1 -0
  235. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts +24 -0
  236. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +1 -0
  237. package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts +15 -0
  238. package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts.map +1 -0
  239. package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts +13 -0
  240. package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts.map +1 -0
  241. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
  242. package/lib/typescript/ui/stores/authStore.d.ts +16 -0
  243. package/lib/typescript/ui/stores/authStore.d.ts.map +1 -0
  244. package/lib/typescript/ui/stores/followStore.d.ts +15 -0
  245. package/lib/typescript/ui/stores/followStore.d.ts.map +1 -0
  246. package/lib/typescript/ui/styles/index.d.ts +0 -1
  247. package/lib/typescript/ui/styles/index.d.ts.map +1 -1
  248. package/lib/typescript/ui/utils/confirmAction.d.ts +7 -0
  249. package/lib/typescript/ui/utils/confirmAction.d.ts.map +1 -0
  250. package/package.json +12 -7
  251. package/src/core/index.ts +78 -88
  252. package/src/index.ts +8 -45
  253. package/src/models/interfaces.ts +7 -1
  254. package/src/models/secureSession.ts +1 -2
  255. package/src/node/index.ts +0 -3
  256. package/src/ui/components/FollowButton.tsx +100 -322
  257. package/src/ui/components/OxyPayButton.tsx +133 -0
  258. package/src/ui/components/OxyProvider.tsx +39 -201
  259. package/src/ui/components/OxySignInButton.tsx +13 -2
  260. package/src/ui/components/icon/FAIRWalletIcon.tsx +49 -0
  261. package/src/ui/components/icon/index.ts +1 -0
  262. package/src/ui/components/index.ts +1 -0
  263. package/src/ui/components/internal/GroupedPillButtons.tsx +12 -8
  264. package/src/ui/components/internal/PinInput.tsx +102 -0
  265. package/src/ui/components/internal/TextField.tsx +9 -0
  266. package/src/ui/context/OxyContext.tsx +74 -91
  267. package/src/ui/hooks/index.ts +1 -2
  268. package/src/ui/hooks/useFollow.ts +58 -129
  269. package/src/ui/hooks/useSessionSocket.ts +50 -0
  270. package/src/ui/index.ts +2 -37
  271. package/src/ui/navigation/OxyRouter.tsx +47 -63
  272. package/src/ui/navigation/types.ts +5 -26
  273. package/src/ui/screens/AccountCenterScreen.tsx +12 -21
  274. package/src/ui/screens/AccountOverviewScreen.tsx +6 -30
  275. package/src/ui/screens/AccountSettingsScreen.tsx +75 -46
  276. package/src/ui/screens/AccountSwitcherScreen.tsx +46 -88
  277. package/src/ui/screens/AppInfoScreen.tsx +27 -47
  278. package/src/ui/screens/FeedbackScreen.tsx +34 -19
  279. package/src/ui/screens/FileManagementScreen.tsx +293 -321
  280. package/src/ui/screens/PaymentGatewayScreen.tsx +1315 -0
  281. package/src/ui/screens/PremiumSubscriptionScreen.tsx +109 -124
  282. package/src/ui/screens/RecoverAccountScreen.tsx +260 -0
  283. package/src/ui/screens/SessionManagementScreen.tsx +65 -137
  284. package/src/ui/screens/SignInScreen.tsx +89 -283
  285. package/src/ui/screens/SignUpScreen.tsx +138 -291
  286. package/src/ui/screens/internal/SignInPasswordStep.tsx +179 -0
  287. package/src/ui/screens/internal/SignInUsernameStep.tsx +139 -0
  288. package/src/ui/screens/internal/SignUpIdentityStep.tsx +114 -0
  289. package/src/ui/screens/internal/SignUpSecurityStep.tsx +132 -0
  290. package/src/ui/screens/internal/SignUpSummaryStep.tsx +66 -0
  291. package/src/ui/screens/internal/SignUpWelcomeStep.tsx +52 -0
  292. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +13 -3
  293. package/src/ui/stores/authStore.ts +45 -0
  294. package/src/ui/stores/followStore.ts +80 -0
  295. package/src/ui/styles/index.ts +0 -1
  296. package/src/ui/utils/confirmAction.ts +23 -0
  297. package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
  298. package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
  299. package/lib/commonjs/ui/hooks/useAuthFetch.js +0 -217
  300. package/lib/commonjs/ui/hooks/useAuthFetch.js.map +0 -1
  301. package/lib/commonjs/ui/hooks/useOxyFollow.js +0 -190
  302. package/lib/commonjs/ui/hooks/useOxyFollow.js.map +0 -1
  303. package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
  304. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
  305. package/lib/commonjs/ui/store/index.js +0 -67
  306. package/lib/commonjs/ui/store/index.js.map +0 -1
  307. package/lib/commonjs/ui/store/setupOxyStore.js +0 -63
  308. package/lib/commonjs/ui/store/setupOxyStore.js.map +0 -1
  309. package/lib/commonjs/ui/store/slices/authSlice.js +0 -56
  310. package/lib/commonjs/ui/store/slices/authSlice.js.map +0 -1
  311. package/lib/commonjs/ui/store/slices/followSlice.js +0 -238
  312. package/lib/commonjs/ui/store/slices/followSlice.js.map +0 -1
  313. package/lib/commonjs/ui/store/slices/index.js +0 -129
  314. package/lib/commonjs/ui/store/slices/index.js.map +0 -1
  315. package/lib/commonjs/ui/store/slices/types.js +0 -19
  316. package/lib/commonjs/ui/store/slices/types.js.map +0 -1
  317. package/lib/commonjs/ui/styles/shadows.js +0 -123
  318. package/lib/commonjs/ui/styles/shadows.js.map +0 -1
  319. package/lib/commonjs/utils/polyfills.js +0 -42
  320. package/lib/commonjs/utils/polyfills.js.map +0 -1
  321. package/lib/module/ui/components/bottomSheet/index.js +0 -5
  322. package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
  323. package/lib/module/ui/hooks/useAuthFetch.js +0 -212
  324. package/lib/module/ui/hooks/useAuthFetch.js.map +0 -1
  325. package/lib/module/ui/hooks/useOxyFollow.js +0 -186
  326. package/lib/module/ui/hooks/useOxyFollow.js.map +0 -1
  327. package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
  328. package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
  329. package/lib/module/ui/store/index.js +0 -33
  330. package/lib/module/ui/store/index.js.map +0 -1
  331. package/lib/module/ui/store/setupOxyStore.js +0 -59
  332. package/lib/module/ui/store/setupOxyStore.js.map +0 -1
  333. package/lib/module/ui/store/slices/authSlice.js +0 -48
  334. package/lib/module/ui/store/slices/authSlice.js.map +0 -1
  335. package/lib/module/ui/store/slices/followSlice.js +0 -232
  336. package/lib/module/ui/store/slices/followSlice.js.map +0 -1
  337. package/lib/module/ui/store/slices/index.js +0 -11
  338. package/lib/module/ui/store/slices/index.js.map +0 -1
  339. package/lib/module/ui/store/slices/types.js +0 -15
  340. package/lib/module/ui/store/slices/types.js.map +0 -1
  341. package/lib/module/ui/styles/shadows.js +0 -119
  342. package/lib/module/ui/styles/shadows.js.map +0 -1
  343. package/lib/module/utils/polyfills.js +0 -36
  344. package/lib/module/utils/polyfills.js.map +0 -1
  345. package/lib/typescript/types/react-redux.d.ts +0 -5
  346. package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
  347. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
  348. package/lib/typescript/ui/hooks/useAuthFetch.d.ts +0 -34
  349. package/lib/typescript/ui/hooks/useAuthFetch.d.ts.map +0 -1
  350. package/lib/typescript/ui/hooks/useOxyFollow.d.ts +0 -81
  351. package/lib/typescript/ui/hooks/useOxyFollow.d.ts.map +0 -1
  352. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
  353. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
  354. package/lib/typescript/ui/store/index.d.ts +0 -27
  355. package/lib/typescript/ui/store/index.d.ts.map +0 -1
  356. package/lib/typescript/ui/store/setupOxyStore.d.ts +0 -29
  357. package/lib/typescript/ui/store/setupOxyStore.d.ts.map +0 -1
  358. package/lib/typescript/ui/store/slices/authSlice.d.ts +0 -32
  359. package/lib/typescript/ui/store/slices/authSlice.d.ts.map +0 -1
  360. package/lib/typescript/ui/store/slices/followSlice.d.ts +0 -120
  361. package/lib/typescript/ui/store/slices/followSlice.d.ts.map +0 -1
  362. package/lib/typescript/ui/store/slices/index.d.ts +0 -9
  363. package/lib/typescript/ui/store/slices/index.d.ts.map +0 -1
  364. package/lib/typescript/ui/store/slices/types.d.ts +0 -16
  365. package/lib/typescript/ui/store/slices/types.d.ts.map +0 -1
  366. package/lib/typescript/ui/styles/shadows.d.ts +0 -233
  367. package/lib/typescript/ui/styles/shadows.d.ts.map +0 -1
  368. package/lib/typescript/utils/polyfills.d.ts +0 -6
  369. package/lib/typescript/utils/polyfills.d.ts.map +0 -1
  370. package/src/__tests__/backend-middleware.test.ts +0 -209
  371. package/src/__tests__/polyfills.test.ts +0 -30
  372. package/src/__tests__/setup.ts +0 -43
  373. package/src/__tests__/ui/hooks/authfetch-integration.test.ts +0 -197
  374. package/src/__tests__/ui/hooks/backward-compatibility.test.ts +0 -159
  375. package/src/__tests__/ui/hooks/real-world-scenarios.test.ts +0 -224
  376. package/src/__tests__/ui/hooks/url-resolution.test.ts +0 -129
  377. package/src/__tests__/ui/hooks/useAuthFetch-separation.test.ts +0 -69
  378. package/src/__tests__/ui/hooks/useAuthFetch.test.ts +0 -70
  379. package/src/__tests__/ui/hooks/useOxyFollow.test.tsx +0 -92
  380. package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +0 -112
  381. package/src/__tests__/ui/store/setupOxyStore.test.ts +0 -50
  382. package/src/__tests__/validate-structure.js +0 -91
  383. package/src/__tests__/validation.js +0 -42
  384. package/src/types/react-redux.d.ts +0 -5
  385. package/src/ui/components/bottomSheet/index.tsx +0 -14
  386. package/src/ui/hooks/useAuthFetch.ts +0 -238
  387. package/src/ui/hooks/useOxyFollow.ts +0 -188
  388. package/src/ui/screens/BillingManagementScreen.tsx +0 -589
  389. package/src/ui/store/index.ts +0 -36
  390. package/src/ui/store/setupOxyStore.ts +0 -58
  391. package/src/ui/store/slices/authSlice.ts +0 -43
  392. package/src/ui/store/slices/followSlice.ts +0 -207
  393. package/src/ui/store/slices/index.ts +0 -31
  394. package/src/ui/store/slices/types.ts +0 -33
  395. package/src/ui/styles/shadows.ts +0 -112
  396. package/src/utils/polyfills.ts +0 -34
@@ -1,14 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
4
- import { View, Text, TextInput, TouchableOpacity, StyleSheet, ActivityIndicator, Platform, KeyboardAvoidingView, ScrollView, Animated, StatusBar } from 'react-native';
4
+ import { View, Text, TextInput, StyleSheet, ActivityIndicator, Platform, KeyboardAvoidingView, ScrollView, Animated, StatusBar } from 'react-native';
5
5
  import { useOxy } from '../context/OxyContext';
6
6
  import { useThemeColors } from '../styles';
7
7
  import { Ionicons } from '@expo/vector-icons';
8
8
  import { toast } from '../../lib/sonner';
9
- import HighFive from '../../assets/illustrations/HighFive';
10
- import GroupedPillButtons from '../components/internal/GroupedPillButtons';
11
- import TextField from '../components/internal/TextField';
9
+ import SignUpIdentityStep from './internal/SignUpIdentityStep';
10
+ import SignUpSecurityStep from './internal/SignUpSecurityStep';
11
+ import SignUpSummaryStep from './internal/SignUpSummaryStep';
12
+ import SignUpWelcomeStep from './internal/SignUpWelcomeStep';
12
13
 
13
14
  // Types for better type safety
14
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -45,9 +46,9 @@ const createStyles = (colors, theme) => StyleSheet.create({
45
46
  modernTitle: {
46
47
  fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
47
48
  fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
48
- fontSize: 42,
49
+ fontSize: 62,
49
50
  lineHeight: 48,
50
- marginBottom: 12,
51
+ marginBottom: 18,
51
52
  textAlign: 'left',
52
53
  letterSpacing: -1
53
54
  },
@@ -128,6 +129,17 @@ const createStyles = (colors, theme) => StyleSheet.create({
128
129
  marginTop: 8,
129
130
  gap: 8
130
131
  },
132
+ belowInputMessage: {
133
+ flexDirection: 'row',
134
+ alignItems: 'center',
135
+ marginTop: 4,
136
+ marginBottom: 0,
137
+ gap: 6
138
+ },
139
+ belowInputText: {
140
+ fontSize: 13,
141
+ fontWeight: '500'
142
+ },
131
143
  validationIconContainer: {
132
144
  width: 32,
133
145
  height: 32,
@@ -163,15 +175,22 @@ const createStyles = (colors, theme) => StyleSheet.create({
163
175
  paddingHorizontal: 32,
164
176
  borderRadius: 16,
165
177
  marginVertical: 8,
166
- shadowOffset: {
167
- width: 0,
168
- height: 4
169
- },
170
- shadowOpacity: 0.3,
171
- shadowRadius: 8,
172
- elevation: 6,
173
178
  gap: 8,
174
- width: '100%'
179
+ width: '100%',
180
+ ...Platform.select({
181
+ web: {
182
+ boxShadow: '0 4px 8px rgba(0,0,0,0.3)'
183
+ },
184
+ default: {
185
+ shadowOffset: {
186
+ width: 0,
187
+ height: 4
188
+ },
189
+ shadowOpacity: 0.3,
190
+ shadowRadius: 8,
191
+ elevation: 6
192
+ }
193
+ })
175
194
  },
176
195
  buttonText: {
177
196
  color: '#FFFFFF',
@@ -198,14 +217,21 @@ const createStyles = (colors, theme) => StyleSheet.create({
198
217
  marginVertical: 20,
199
218
  borderRadius: 24,
200
219
  alignItems: 'center',
201
- shadowColor: '#000',
202
- shadowOpacity: 0.04,
203
- shadowOffset: {
204
- width: 0,
205
- height: 1
206
- },
207
- shadowRadius: 4,
208
- elevation: 1
220
+ ...Platform.select({
221
+ web: {
222
+ boxShadow: '0 1px 4px rgba(0,0,0,0.04)'
223
+ },
224
+ default: {
225
+ shadowColor: '#000',
226
+ shadowOpacity: 0.04,
227
+ shadowOffset: {
228
+ width: 0,
229
+ height: 1
230
+ },
231
+ shadowRadius: 4,
232
+ elevation: 1
233
+ }
234
+ })
209
235
  },
210
236
  userInfoText: {
211
237
  fontSize: 16,
@@ -231,13 +257,20 @@ const createStyles = (colors, theme) => StyleSheet.create({
231
257
  gap: 6,
232
258
  minWidth: 70,
233
259
  borderWidth: 1,
234
- shadowOffset: {
235
- width: 0,
236
- height: 2
237
- },
238
- shadowOpacity: 0.1,
239
- shadowRadius: 4,
240
- elevation: 2
260
+ ...Platform.select({
261
+ web: {
262
+ boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
263
+ },
264
+ default: {
265
+ shadowOffset: {
266
+ width: 0,
267
+ height: 2
268
+ },
269
+ shadowOpacity: 0.1,
270
+ shadowRadius: 4,
271
+ elevation: 2
272
+ }
273
+ })
241
274
  },
242
275
  backButton: {
243
276
  backgroundColor: 'transparent',
@@ -270,14 +303,21 @@ const createStyles = (colors, theme) => StyleSheet.create({
270
303
  marginHorizontal: 6,
271
304
  borderWidth: 2,
272
305
  borderColor: '#fff',
273
- shadowColor: colors.primary,
274
- shadowOpacity: 0.08,
275
- shadowOffset: {
276
- width: 0,
277
- height: 1
278
- },
279
- shadowRadius: 2,
280
- elevation: 1
306
+ ...Platform.select({
307
+ web: {
308
+ boxShadow: '0 1px 2px rgba(0,0,0,0.08)'
309
+ },
310
+ default: {
311
+ shadowColor: colors.primary,
312
+ shadowOpacity: 0.08,
313
+ shadowOffset: {
314
+ width: 0,
315
+ height: 1
316
+ },
317
+ shadowRadius: 2,
318
+ elevation: 1
319
+ }
320
+ })
281
321
  },
282
322
  summaryContainer: {
283
323
  padding: 0,
@@ -699,310 +739,71 @@ const SignUpScreen = ({
699
739
  }
700
740
  }, [formData, isIdentityStepValid, isSecurityStepValid, signUp, onAuthenticated, resetForm]);
701
741
 
702
- // Step components
703
- const renderWelcomeStep = useCallback(() => /*#__PURE__*/_jsxs(Animated.View, {
704
- style: [styles.stepContainer, {
705
- opacity: fadeAnim,
706
- transform: [{
707
- translateX: slideAnim
708
- }]
709
- }],
710
- children: [/*#__PURE__*/_jsx(HighFive, {
711
- width: 100,
712
- height: 100
713
- }), /*#__PURE__*/_jsxs(View, {
714
- style: styles.modernHeader,
715
- children: [/*#__PURE__*/_jsx(Text, {
716
- style: [styles.modernTitle, {
717
- color: colors.text
718
- }],
719
- children: "Welcome to Oxy"
720
- }), /*#__PURE__*/_jsx(Text, {
721
- style: [styles.modernSubtitle, {
722
- color: colors.secondaryText
723
- }],
724
- children: "We're excited to have you join us. Let's get your account set up in just a few easy steps."
725
- })]
726
- }), /*#__PURE__*/_jsx(GroupedPillButtons, {
727
- buttons: [{
728
- text: 'Get Started',
729
- onPress: nextStep,
730
- icon: 'arrow-forward',
731
- variant: 'primary',
732
- testID: 'welcome-next-button'
733
- }],
734
- colors: colors
735
- }), /*#__PURE__*/_jsxs(View, {
736
- style: styles.footerTextContainer,
737
- children: [/*#__PURE__*/_jsxs(Text, {
738
- style: [styles.footerText, {
739
- color: colors.text
740
- }],
741
- children: ["Already have an account?", ' ']
742
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
743
- onPress: () => navigate('SignIn'),
744
- children: /*#__PURE__*/_jsx(Text, {
745
- style: [styles.linkText, {
746
- color: colors.primary
747
- }],
748
- children: "Sign In"
749
- })
750
- })]
751
- })]
752
- }), [fadeAnim, slideAnim, colors, nextStep, navigate, styles]);
753
- const renderIdentityStep = useCallback(() => /*#__PURE__*/_jsxs(Animated.View, {
754
- style: [styles.stepContainer, {
755
- opacity: fadeAnim,
756
- transform: [{
757
- translateX: slideAnim
758
- }]
759
- }],
760
- children: [/*#__PURE__*/_jsx(View, {
761
- style: styles.modernHeader,
762
- children: /*#__PURE__*/_jsx(Text, {
763
- style: [styles.stepTitle, {
764
- color: colors.text
765
- }],
766
- children: "Who are you?"
767
- })
768
- }), /*#__PURE__*/_jsx(TextField, {
769
- icon: "person-outline",
770
- label: "Username",
771
- value: formData.username,
772
- onChangeText: text => {
773
- updateField('username', text);
774
- setErrorMessage('');
775
- },
776
- autoCapitalize: "none",
777
- autoCorrect: false,
778
- testID: "username-input",
779
- colors: colors,
780
- variant: "filled",
781
- error: validationState.status === 'invalid' ? validationState.message : undefined,
782
- loading: validationState.status === 'validating',
783
- success: validationState.status === 'valid'
784
- }), /*#__PURE__*/_jsx(ValidationMessage, {
785
- validationState: validationState,
786
- colors: colors,
787
- styles: styles
788
- }), /*#__PURE__*/_jsx(TextField, {
789
- icon: "mail-outline",
790
- label: "Email",
791
- value: formData.email,
792
- onChangeText: text => {
793
- updateField('email', text);
794
- },
795
- keyboardType: "email-address",
796
- autoCapitalize: "none",
797
- autoCorrect: false,
798
- testID: "email-input",
799
- colors: colors,
800
- variant: "filled",
801
- error: formData.email && !validateEmail(formData.email) ? 'Please enter a valid email address' : undefined
802
- }), /*#__PURE__*/_jsx(GroupedPillButtons, {
803
- buttons: [{
804
- text: 'Back',
805
- onPress: prevStep,
806
- icon: 'arrow-back',
807
- variant: 'transparent'
808
- }, {
809
- text: 'Next',
810
- onPress: handleIdentityNext,
811
- icon: 'arrow-forward',
812
- variant: 'primary'
813
- }],
814
- colors: colors
815
- })]
816
- }), [fadeAnim, slideAnim, colors, formData, validationState, updateField, setErrorMessage, prevStep, handleIdentityNext, styles]);
817
- const renderSecurityStep = useCallback(() => /*#__PURE__*/_jsxs(Animated.View, {
818
- style: [styles.stepContainer, {
819
- opacity: fadeAnim,
820
- transform: [{
821
- translateX: slideAnim
822
- }]
823
- }],
824
- children: [/*#__PURE__*/_jsx(View, {
825
- style: styles.modernHeader,
826
- children: /*#__PURE__*/_jsx(Text, {
827
- style: [styles.stepTitle, {
828
- color: colors.text
829
- }],
830
- children: "Secure your account"
831
- })
832
- }), /*#__PURE__*/_jsx(TextField, {
833
- icon: "lock-closed-outline",
834
- label: "Password",
835
- value: formData.password,
836
- onChangeText: text => {
837
- updateField('password', text);
838
- },
839
- secureTextEntry: !passwordVisibility.password,
840
- autoCapitalize: "none",
841
- autoCorrect: false,
842
- testID: "password-input",
843
- colors: colors,
844
- variant: "filled",
845
- error: formData.password && !validatePassword(formData.password) ? `Password must be at least ${PASSWORD_MIN_LENGTH} characters` : undefined
846
- }), /*#__PURE__*/_jsxs(Text, {
847
- style: [styles.passwordHint, {
848
- color: colors.secondaryText
849
- }],
850
- children: ["Password must be at least ", PASSWORD_MIN_LENGTH, " characters long"]
851
- }), /*#__PURE__*/_jsx(TextField, {
852
- icon: "lock-closed-outline",
853
- label: "Confirm Password",
854
- value: formData.confirmPassword,
855
- onChangeText: text => {
856
- updateField('confirmPassword', text);
857
- },
858
- secureTextEntry: !passwordVisibility.confirmPassword,
859
- autoCapitalize: "none",
860
- autoCorrect: false,
861
- testID: "confirm-password-input",
862
- colors: colors,
863
- variant: "filled",
864
- error: formData.confirmPassword && !validatePasswordsMatch(formData.password, formData.confirmPassword) ? 'Passwords do not match' : undefined
865
- }), /*#__PURE__*/_jsx(GroupedPillButtons, {
866
- buttons: [{
867
- text: 'Back',
868
- onPress: prevStep,
869
- icon: 'arrow-back',
870
- variant: 'transparent'
871
- }, {
872
- text: 'Next',
873
- onPress: handleSecurityNext,
874
- icon: 'arrow-forward',
875
- variant: 'primary'
876
- }],
877
- colors: colors
878
- })]
879
- }), [fadeAnim, slideAnim, colors, formData, passwordVisibility, updateField, setErrorMessage, togglePasswordVisibility, prevStep, handleSecurityNext, styles]);
880
- const renderSummaryStep = useCallback(() => /*#__PURE__*/_jsxs(Animated.View, {
881
- style: [styles.stepContainer, {
882
- opacity: fadeAnim,
883
- transform: [{
884
- translateX: slideAnim
885
- }]
886
- }],
887
- children: [/*#__PURE__*/_jsx(View, {
888
- style: styles.modernHeader,
889
- children: /*#__PURE__*/_jsx(Text, {
890
- style: [styles.stepTitle, {
891
- color: colors.text
892
- }],
893
- children: "Ready to join"
894
- })
895
- }), /*#__PURE__*/_jsxs(View, {
896
- style: styles.summaryContainer,
897
- children: [/*#__PURE__*/_jsxs(View, {
898
- style: styles.summaryRow,
899
- children: [/*#__PURE__*/_jsx(Text, {
900
- style: [styles.summaryLabel, {
901
- color: colors.secondaryText
902
- }],
903
- children: "Username:"
904
- }), /*#__PURE__*/_jsx(Text, {
905
- style: [styles.summaryValue, {
906
- color: colors.text
907
- }],
908
- children: formData.username
909
- })]
910
- }), /*#__PURE__*/_jsxs(View, {
911
- style: styles.summaryRow,
912
- children: [/*#__PURE__*/_jsx(Text, {
913
- style: [styles.summaryLabel, {
914
- color: colors.secondaryText
915
- }],
916
- children: "Email:"
917
- }), /*#__PURE__*/_jsx(Text, {
918
- style: [styles.summaryValue, {
919
- color: colors.text
920
- }],
921
- children: formData.email
922
- })]
923
- })]
924
- }), /*#__PURE__*/_jsx(GroupedPillButtons, {
925
- buttons: [{
926
- text: 'Back',
927
- onPress: prevStep,
928
- icon: 'arrow-back',
929
- variant: 'transparent'
930
- }, {
931
- text: 'Create Account',
932
- onPress: handleSignUp,
933
- icon: 'checkmark',
934
- variant: 'primary',
935
- disabled: isLoading,
936
- loading: isLoading,
937
- testID: 'signup-button'
938
- }],
939
- colors: colors
940
- })]
941
- }), [fadeAnim, slideAnim, colors, formData, isLoading, handleSignUp, prevStep, styles]);
942
-
943
- // If user is already authenticated, show user info
944
- if (user && isAuthenticated) {
945
- return /*#__PURE__*/_jsxs(KeyboardAvoidingView, {
946
- style: [styles.container, {
947
- backgroundColor: colors.background
948
- }],
949
- behavior: Platform.OS === 'ios' ? 'padding' : 'height',
950
- children: [/*#__PURE__*/_jsx(StatusBar, {
951
- barStyle: theme === 'dark' ? 'light-content' : 'dark-content',
952
- backgroundColor: colors.background
953
- }), /*#__PURE__*/_jsxs(ScrollView, {
954
- contentContainerStyle: styles.scrollContent,
955
- showsVerticalScrollIndicator: false,
956
- children: [/*#__PURE__*/_jsxs(Text, {
957
- style: [styles.welcomeTitle, {
958
- color: colors.text
959
- }],
960
- children: ["Welcome, ", user.username, "!"]
961
- }), /*#__PURE__*/_jsxs(View, {
962
- style: [styles.userInfoContainer, {
963
- backgroundColor: colors.inputBackground
964
- }],
965
- children: [/*#__PURE__*/_jsx(Text, {
966
- style: [styles.userInfoText, {
967
- color: colors.text
968
- }],
969
- children: "You are already signed in."
970
- }), user.email && /*#__PURE__*/_jsxs(Text, {
971
- style: [styles.userInfoText, {
972
- color: colors.secondaryText
973
- }],
974
- children: ["Email: ", user.email]
975
- })]
976
- }), /*#__PURE__*/_jsx(View, {
977
- style: styles.actionButtonsContainer,
978
- children: /*#__PURE__*/_jsx(TouchableOpacity, {
979
- style: [styles.button, {
980
- backgroundColor: colors.primary
981
- }],
982
- onPress: () => navigate('AccountCenter'),
983
- children: /*#__PURE__*/_jsx(Text, {
984
- style: styles.buttonText,
985
- children: "Go to Account Center"
986
- })
987
- })
988
- })]
989
- })]
990
- });
991
- }
992
-
993
- // Render current step
742
+ // Memoized step components
743
+ const updateFieldString = (field, value) => updateField(field, value);
744
+ const validatePasswordsMatchNoArgs = () => validatePasswordsMatch(formData.password, formData.confirmPassword);
745
+ const togglePasswordVisibilityNoArgs = () => togglePasswordVisibility('password');
746
+ const renderWelcomeStep = useMemo(() => /*#__PURE__*/_jsx(SignUpWelcomeStep, {
747
+ styles: styles,
748
+ fadeAnim: fadeAnim,
749
+ slideAnim: slideAnim,
750
+ colors: colors,
751
+ nextStep: nextStep,
752
+ navigate: navigate
753
+ }), [styles, fadeAnim, slideAnim, colors, nextStep, navigate]);
754
+ const renderIdentityStep = useMemo(() => /*#__PURE__*/_jsx(SignUpIdentityStep, {
755
+ styles: styles,
756
+ fadeAnim: fadeAnim,
757
+ slideAnim: slideAnim,
758
+ colors: colors,
759
+ formData: formData,
760
+ validationState: validationState,
761
+ updateField: updateFieldString,
762
+ setErrorMessage: setErrorMessage,
763
+ prevStep: prevStep,
764
+ handleIdentityNext: handleIdentityNext,
765
+ ValidationMessage: ValidationMessage,
766
+ validateEmail: validateEmail,
767
+ navigate: navigate
768
+ }), [styles, fadeAnim, slideAnim, colors, formData, validationState, updateFieldString, setErrorMessage, prevStep, handleIdentityNext, ValidationMessage, validateEmail, navigate]);
769
+ const renderSecurityStep = useMemo(() => /*#__PURE__*/_jsx(SignUpSecurityStep, {
770
+ styles: styles,
771
+ fadeAnim: fadeAnim,
772
+ slideAnim: slideAnim,
773
+ colors: colors,
774
+ formData: formData,
775
+ passwordVisibility: passwordVisibility,
776
+ updateField: updateFieldString,
777
+ validatePassword: validatePassword,
778
+ validatePasswordsMatch: validatePasswordsMatchNoArgs,
779
+ prevStep: prevStep,
780
+ handleSecurityNext: handleSecurityNext,
781
+ setErrorMessage: setErrorMessage,
782
+ togglePasswordVisibility: togglePasswordVisibilityNoArgs,
783
+ PASSWORD_MIN_LENGTH: PASSWORD_MIN_LENGTH
784
+ }), [styles, fadeAnim, slideAnim, colors, formData, passwordVisibility, updateFieldString, validatePassword, validatePasswordsMatchNoArgs, prevStep, handleSecurityNext, setErrorMessage, togglePasswordVisibilityNoArgs, PASSWORD_MIN_LENGTH]);
785
+ const renderSummaryStep = useMemo(() => /*#__PURE__*/_jsx(SignUpSummaryStep, {
786
+ styles: styles,
787
+ fadeAnim: fadeAnim,
788
+ slideAnim: slideAnim,
789
+ colors: colors,
790
+ formData: formData,
791
+ isLoading: isLoading,
792
+ handleSignUp: handleSignUp,
793
+ prevStep: prevStep
794
+ }), [styles, fadeAnim, slideAnim, colors, formData, isLoading, handleSignUp, prevStep]);
994
795
  const renderCurrentStep = useCallback(() => {
995
796
  switch (currentStep) {
996
797
  case 0:
997
- return renderWelcomeStep();
798
+ return renderWelcomeStep;
998
799
  case 1:
999
- return renderIdentityStep();
800
+ return renderIdentityStep;
1000
801
  case 2:
1001
- return renderSecurityStep();
802
+ return renderSecurityStep;
1002
803
  case 3:
1003
- return renderSummaryStep();
804
+ return renderSummaryStep;
1004
805
  default:
1005
- return renderWelcomeStep();
806
+ return renderWelcomeStep;
1006
807
  }
1007
808
  }, [currentStep, renderWelcomeStep, renderIdentityStep, renderSecurityStep, renderSummaryStep]);
1008
809
  return /*#__PURE__*/_jsxs(KeyboardAvoidingView, {
@@ -1013,16 +814,11 @@ const SignUpScreen = ({
1013
814
  children: [/*#__PURE__*/_jsx(StatusBar, {
1014
815
  barStyle: theme === 'dark' ? 'light-content' : 'dark-content',
1015
816
  backgroundColor: colors.background
1016
- }), /*#__PURE__*/_jsxs(ScrollView, {
817
+ }), /*#__PURE__*/_jsx(ScrollView, {
1017
818
  contentContainerStyle: styles.scrollContent,
1018
819
  showsVerticalScrollIndicator: false,
1019
820
  keyboardShouldPersistTaps: "handled",
1020
- children: [/*#__PURE__*/_jsx(ProgressIndicator, {
1021
- currentStep: currentStep,
1022
- totalSteps: 4,
1023
- colors: colors,
1024
- styles: styles
1025
- }), renderCurrentStep()]
821
+ children: renderCurrentStep()
1026
822
  })]
1027
823
  });
1028
824
  };