@oxyhq/services 5.7.5 → 5.8.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 (303) hide show
  1. package/README.md +76 -76
  2. package/lib/commonjs/core/index.js +177 -102
  3. package/lib/commonjs/core/index.js.map +1 -1
  4. package/lib/commonjs/index.js +69 -28
  5. package/lib/commonjs/index.js.map +1 -1
  6. package/lib/commonjs/ui/components/Avatar.js +15 -6
  7. package/lib/commonjs/ui/components/Avatar.js.map +1 -1
  8. package/lib/commonjs/ui/components/FollowButton.js +100 -12
  9. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  10. package/lib/commonjs/ui/components/GroupedItem.js +58 -13
  11. package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
  12. package/lib/commonjs/ui/components/GroupedSection.js +7 -1
  13. package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
  14. package/lib/commonjs/ui/components/Header.js +356 -0
  15. package/lib/commonjs/ui/components/Header.js.map +1 -0
  16. package/lib/commonjs/ui/components/OxyProvider.js +28 -7
  17. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  18. package/lib/commonjs/ui/components/index.js +7 -0
  19. package/lib/commonjs/ui/components/index.js.map +1 -1
  20. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +1 -1
  21. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
  22. package/lib/commonjs/ui/components/internal/TextField.js +606 -546
  23. package/lib/commonjs/ui/components/internal/TextField.js.map +1 -1
  24. package/lib/commonjs/ui/components/internal/TextField.md +436 -0
  25. package/lib/commonjs/ui/context/OxyContext.js +181 -199
  26. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  27. package/lib/commonjs/ui/hooks/index.js +6 -0
  28. package/lib/commonjs/ui/hooks/index.js.map +1 -1
  29. package/lib/commonjs/ui/hooks/useFollow.js +59 -2
  30. package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
  31. package/lib/commonjs/ui/hooks/useSessionSocket.js +5 -2
  32. package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
  33. package/lib/commonjs/ui/navigation/OxyRouter.js +11 -1
  34. package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
  35. package/lib/commonjs/ui/screens/AccountCenterScreen.js +6 -6
  36. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  37. package/lib/commonjs/ui/screens/AccountManagementDemo.js +3 -3
  38. package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -1
  39. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +241 -598
  40. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  41. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +1160 -406
  42. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  43. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +135 -237
  44. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  45. package/lib/commonjs/ui/screens/AppInfoScreen.js +246 -463
  46. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  47. package/lib/commonjs/ui/screens/FeedbackScreen.js +3 -3
  48. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  49. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +808 -650
  50. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  51. package/lib/commonjs/ui/screens/ProfileScreen.js +214 -37
  52. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  53. package/lib/commonjs/ui/screens/RecoverAccountScreen.js +51 -72
  54. package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -1
  55. package/lib/commonjs/ui/screens/SessionManagementScreen.js +11 -29
  56. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  57. package/lib/commonjs/ui/screens/SignInScreen.js +30 -303
  58. package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
  59. package/lib/commonjs/ui/screens/SignUpScreen.js +4 -4
  60. package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
  61. package/lib/commonjs/ui/screens/UserLinksScreen.js +90 -0
  62. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -0
  63. package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +19 -31
  64. package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -1
  65. package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +7 -10
  66. package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -1
  67. package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js +11 -5
  68. package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js.map +1 -1
  69. package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js +11 -4
  70. package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js.map +1 -1
  71. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +9 -6
  72. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  73. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -30
  74. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  75. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +37 -46
  76. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  77. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +9 -12
  78. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  79. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +9 -12
  80. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  81. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +9 -12
  82. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
  83. package/lib/commonjs/ui/stores/authStore.js +36 -6
  84. package/lib/commonjs/ui/stores/authStore.js.map +1 -1
  85. package/lib/commonjs/ui/stores/followStore.js +106 -1
  86. package/lib/commonjs/ui/stores/followStore.js.map +1 -1
  87. package/lib/commonjs/ui/styles/authStyles.js +337 -0
  88. package/lib/commonjs/ui/styles/authStyles.js.map +1 -0
  89. package/lib/commonjs/ui/styles/index.js +11 -0
  90. package/lib/commonjs/ui/styles/index.js.map +1 -1
  91. package/lib/module/core/index.js +177 -41
  92. package/lib/module/core/index.js.map +1 -1
  93. package/lib/module/index.js +24 -4
  94. package/lib/module/index.js.map +1 -1
  95. package/lib/module/ui/components/Avatar.js +15 -6
  96. package/lib/module/ui/components/Avatar.js.map +1 -1
  97. package/lib/module/ui/components/FollowButton.js +101 -13
  98. package/lib/module/ui/components/FollowButton.js.map +1 -1
  99. package/lib/module/ui/components/GroupedItem.js +59 -14
  100. package/lib/module/ui/components/GroupedItem.js.map +1 -1
  101. package/lib/module/ui/components/GroupedSection.js +7 -1
  102. package/lib/module/ui/components/GroupedSection.js.map +1 -1
  103. package/lib/module/ui/components/Header.js +351 -0
  104. package/lib/module/ui/components/Header.js.map +1 -0
  105. package/lib/module/ui/components/OxyProvider.js +30 -9
  106. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  107. package/lib/module/ui/components/index.js +1 -0
  108. package/lib/module/ui/components/index.js.map +1 -1
  109. package/lib/module/ui/components/internal/GroupedPillButtons.js +1 -1
  110. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
  111. package/lib/module/ui/components/internal/TextField.js +607 -547
  112. package/lib/module/ui/components/internal/TextField.js.map +1 -1
  113. package/lib/module/ui/components/internal/TextField.md +436 -0
  114. package/lib/module/ui/context/OxyContext.js +180 -198
  115. package/lib/module/ui/context/OxyContext.js.map +1 -1
  116. package/lib/module/ui/hooks/index.js +1 -1
  117. package/lib/module/ui/hooks/index.js.map +1 -1
  118. package/lib/module/ui/hooks/useFollow.js +57 -1
  119. package/lib/module/ui/hooks/useFollow.js.map +1 -1
  120. package/lib/module/ui/hooks/useSessionSocket.js +5 -2
  121. package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
  122. package/lib/module/ui/navigation/OxyRouter.js +11 -1
  123. package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
  124. package/lib/module/ui/screens/AccountCenterScreen.js +6 -6
  125. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  126. package/lib/module/ui/screens/AccountManagementDemo.js +3 -3
  127. package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -1
  128. package/lib/module/ui/screens/AccountOverviewScreen.js +242 -597
  129. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  130. package/lib/module/ui/screens/AccountSettingsScreen.js +1161 -407
  131. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  132. package/lib/module/ui/screens/AccountSwitcherScreen.js +135 -237
  133. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  134. package/lib/module/ui/screens/AppInfoScreen.js +248 -465
  135. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  136. package/lib/module/ui/screens/FeedbackScreen.js +3 -3
  137. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  138. package/lib/module/ui/screens/PaymentGatewayScreen.js +809 -651
  139. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  140. package/lib/module/ui/screens/ProfileScreen.js +214 -37
  141. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  142. package/lib/module/ui/screens/RecoverAccountScreen.js +53 -74
  143. package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -1
  144. package/lib/module/ui/screens/SessionManagementScreen.js +11 -29
  145. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  146. package/lib/module/ui/screens/SignInScreen.js +32 -305
  147. package/lib/module/ui/screens/SignInScreen.js.map +1 -1
  148. package/lib/module/ui/screens/SignUpScreen.js +5 -5
  149. package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
  150. package/lib/module/ui/screens/UserLinksScreen.js +85 -0
  151. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -0
  152. package/lib/module/ui/screens/internal/SignInPasswordStep.js +19 -31
  153. package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -1
  154. package/lib/module/ui/screens/internal/SignInUsernameStep.js +7 -10
  155. package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -1
  156. package/lib/module/ui/screens/internal/SignUpIdentityStep.js +11 -5
  157. package/lib/module/ui/screens/internal/SignUpIdentityStep.js.map +1 -1
  158. package/lib/module/ui/screens/internal/SignUpSecurityStep.js +11 -4
  159. package/lib/module/ui/screens/internal/SignUpSecurityStep.js.map +1 -1
  160. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +9 -6
  161. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  162. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -30
  163. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  164. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +37 -46
  165. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  166. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +9 -12
  167. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  168. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +9 -12
  169. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  170. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +9 -12
  171. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
  172. package/lib/module/ui/stores/authStore.js +36 -6
  173. package/lib/module/ui/stores/authStore.js.map +1 -1
  174. package/lib/module/ui/stores/followStore.js +106 -1
  175. package/lib/module/ui/stores/followStore.js.map +1 -1
  176. package/lib/module/ui/styles/authStyles.js +332 -0
  177. package/lib/module/ui/styles/authStyles.js.map +1 -0
  178. package/lib/module/ui/styles/index.js +1 -0
  179. package/lib/module/ui/styles/index.js.map +1 -1
  180. package/lib/typescript/core/index.d.ts +68 -24
  181. package/lib/typescript/core/index.d.ts.map +1 -1
  182. package/lib/typescript/index.d.ts +13 -3
  183. package/lib/typescript/index.d.ts.map +1 -1
  184. package/lib/typescript/ui/components/Avatar.d.ts.map +1 -1
  185. package/lib/typescript/ui/components/FollowButton.d.ts +1 -0
  186. package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
  187. package/lib/typescript/ui/components/GroupedItem.d.ts +6 -0
  188. package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
  189. package/lib/typescript/ui/components/GroupedSection.d.ts +6 -0
  190. package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -1
  191. package/lib/typescript/ui/components/Header.d.ts +24 -0
  192. package/lib/typescript/ui/components/Header.d.ts.map +1 -0
  193. package/lib/typescript/ui/components/OxyProvider.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/TextField.d.ts +31 -16
  197. package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
  198. package/lib/typescript/ui/context/OxyContext.d.ts +5 -2
  199. package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
  200. package/lib/typescript/ui/hooks/index.d.ts +1 -1
  201. package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
  202. package/lib/typescript/ui/hooks/useFollow.d.ts +20 -0
  203. package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
  204. package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -1
  205. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
  206. package/lib/typescript/ui/navigation/types.d.ts +9 -2
  207. package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
  208. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  209. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  210. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  211. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
  212. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  213. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
  214. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +5 -1
  215. package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -1
  216. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  217. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
  218. package/lib/typescript/ui/screens/UserLinksScreen.d.ts +15 -0
  219. package/lib/typescript/ui/screens/UserLinksScreen.d.ts.map +1 -0
  220. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +1 -1
  221. package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -1
  222. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +0 -1
  223. package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -1
  224. package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +1 -1
  225. package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +1 -1
  226. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
  227. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
  228. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
  229. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
  230. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
  231. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
  232. package/lib/typescript/ui/stores/authStore.d.ts +3 -1
  233. package/lib/typescript/ui/stores/authStore.d.ts.map +1 -1
  234. package/lib/typescript/ui/stores/followStore.d.ts +10 -0
  235. package/lib/typescript/ui/stores/followStore.d.ts.map +1 -1
  236. package/lib/typescript/ui/styles/authStyles.d.ts +326 -0
  237. package/lib/typescript/ui/styles/authStyles.d.ts.map +1 -0
  238. package/lib/typescript/ui/styles/index.d.ts +1 -0
  239. package/lib/typescript/ui/styles/index.d.ts.map +1 -1
  240. package/package.json +1 -4
  241. package/src/core/index.ts +195 -41
  242. package/src/index.ts +64 -4
  243. package/src/ui/components/Avatar.tsx +11 -5
  244. package/src/ui/components/FollowButton.tsx +95 -11
  245. package/src/ui/components/GroupedItem.tsx +57 -9
  246. package/src/ui/components/GroupedSection.tsx +12 -0
  247. package/src/ui/components/Header.tsx +405 -0
  248. package/src/ui/components/OxyProvider.tsx +37 -15
  249. package/src/ui/components/index.ts +1 -0
  250. package/src/ui/components/internal/GroupedPillButtons.tsx +1 -1
  251. package/src/ui/components/internal/TextField.md +436 -0
  252. package/src/ui/components/internal/TextField.tsx +720 -620
  253. package/src/ui/context/OxyContext.tsx +211 -195
  254. package/src/ui/hooks/index.ts +1 -1
  255. package/src/ui/hooks/useFollow.ts +63 -0
  256. package/src/ui/hooks/useSessionSocket.ts +5 -2
  257. package/src/ui/navigation/OxyRouter.tsx +11 -1
  258. package/src/ui/navigation/types.ts +10 -2
  259. package/src/ui/screens/AccountCenterScreen.tsx +5 -5
  260. package/src/ui/screens/AccountManagementDemo.tsx +9 -9
  261. package/src/ui/screens/AccountOverviewScreen.tsx +265 -414
  262. package/src/ui/screens/AccountSettingsScreen.tsx +1173 -403
  263. package/src/ui/screens/AccountSwitcherScreen.tsx +158 -202
  264. package/src/ui/screens/AppInfoScreen.tsx +270 -497
  265. package/src/ui/screens/FeedbackScreen.tsx +3 -3
  266. package/src/ui/screens/PaymentGatewayScreen.tsx +668 -365
  267. package/src/ui/screens/ProfileScreen.tsx +196 -33
  268. package/src/ui/screens/RecoverAccountScreen.tsx +46 -74
  269. package/src/ui/screens/SessionManagementScreen.tsx +14 -22
  270. package/src/ui/screens/SignInScreen.tsx +27 -294
  271. package/src/ui/screens/SignUpScreen.tsx +5 -5
  272. package/src/ui/screens/UserLinksScreen.tsx +96 -0
  273. package/src/ui/screens/internal/SignInPasswordStep.tsx +11 -22
  274. package/src/ui/screens/internal/SignInUsernameStep.tsx +3 -10
  275. package/src/ui/screens/internal/SignUpIdentityStep.tsx +2 -5
  276. package/src/ui/screens/internal/SignUpSecurityStep.tsx +3 -4
  277. package/src/ui/screens/karma/KarmaAboutScreen.tsx +9 -2
  278. package/src/ui/screens/karma/KarmaCenterScreen.tsx +1 -20
  279. package/src/ui/screens/karma/KarmaFAQScreen.tsx +40 -24
  280. package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +9 -3
  281. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +9 -3
  282. package/src/ui/screens/karma/KarmaRulesScreen.tsx +9 -3
  283. package/src/ui/stores/authStore.ts +34 -7
  284. package/src/ui/stores/followStore.ts +102 -1
  285. package/src/ui/styles/authStyles.ts +352 -0
  286. package/src/ui/styles/index.ts +1 -0
  287. package/lib/commonjs/core/auth-manager.js +0 -440
  288. package/lib/commonjs/core/auth-manager.js.map +0 -1
  289. package/lib/commonjs/core/use-auth.js +0 -244
  290. package/lib/commonjs/core/use-auth.js.map +0 -1
  291. package/lib/module/core/auth-manager.js +0 -432
  292. package/lib/module/core/auth-manager.js.map +0 -1
  293. package/lib/module/core/use-auth.js +0 -235
  294. package/lib/module/core/use-auth.js.map +0 -1
  295. package/lib/typescript/core/auth-manager.d.ts +0 -136
  296. package/lib/typescript/core/auth-manager.d.ts.map +0 -1
  297. package/lib/typescript/core/use-auth.d.ts +0 -79
  298. package/lib/typescript/core/use-auth.d.ts.map +0 -1
  299. package/src/__tests__/middleware.test.ts +0 -105
  300. package/src/__tests__/setup.ts +0 -10
  301. package/src/__tests__/zero-config-auth.test.ts +0 -607
  302. package/src/core/auth-manager.ts +0 -500
  303. package/src/core/use-auth.tsx +0 -245
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  import { create } from 'zustand';
4
- export const useAuthStore = create(set => ({
4
+ export const useAuthStore = create((set, get) => ({
5
5
  user: null,
6
6
  isAuthenticated: false,
7
7
  isLoading: false,
8
8
  error: null,
9
+ lastUserFetch: null,
9
10
  loginStart: () => set({
10
11
  isLoading: true,
11
12
  error: null
@@ -13,7 +14,8 @@ export const useAuthStore = create(set => ({
13
14
  loginSuccess: user => set({
14
15
  isLoading: false,
15
16
  isAuthenticated: true,
16
- user
17
+ user,
18
+ lastUserFetch: Date.now()
17
19
  }),
18
20
  loginFailure: error => set({
19
21
  isLoading: false,
@@ -21,21 +23,45 @@ export const useAuthStore = create(set => ({
21
23
  }),
22
24
  logout: () => set({
23
25
  user: null,
24
- isAuthenticated: false
26
+ isAuthenticated: false,
27
+ lastUserFetch: null
25
28
  }),
26
- fetchUser: async oxyServices => {
29
+ setUser: user => set({
30
+ user,
31
+ lastUserFetch: Date.now()
32
+ }),
33
+ fetchUser: async (oxyServices, forceRefresh = false) => {
34
+ const state = get();
35
+ const now = Date.now();
36
+ const cacheAge = state.lastUserFetch ? now - state.lastUserFetch : Infinity;
37
+ const cacheValid = cacheAge < 5 * 60 * 1000; // 5 minutes cache
38
+
39
+ // Use cached data if available and not forcing refresh
40
+ if (!forceRefresh && state.user && cacheValid) {
41
+ console.log('AuthStore: Using cached user data (age:', cacheAge, 'ms)');
42
+ return;
43
+ }
27
44
  set({
28
45
  isLoading: true,
29
46
  error: null
30
47
  });
31
48
  try {
49
+ console.log('AuthStore: Fetching user data...');
32
50
  const user = await oxyServices.getCurrentUser();
51
+ console.log('AuthStore: Received user data:', {
52
+ hasUser: !!user,
53
+ userLinksMetadata: user?.linksMetadata,
54
+ userLinks: user?.links,
55
+ userWebsite: user?.website
56
+ });
33
57
  set({
34
58
  user,
35
59
  isLoading: false,
36
- isAuthenticated: true
60
+ isAuthenticated: true,
61
+ lastUserFetch: now
37
62
  });
38
63
  } catch (error) {
64
+ console.error('AuthStore: Error fetching user:', error);
39
65
  set({
40
66
  error: error.message || 'Failed to fetch user',
41
67
  isLoading: false
@@ -48,10 +74,14 @@ export const useAuthStore = create(set => ({
48
74
  error: null
49
75
  });
50
76
  try {
77
+ console.log('AuthStore: Updating user with:', updates);
51
78
  await oxyServices.updateProfile(updates);
79
+ console.log('AuthStore: Profile updated successfully');
52
80
  // Immediately fetch the latest user data after update
53
- await useAuthStore.getState().fetchUser(oxyServices);
81
+ await useAuthStore.getState().fetchUser(oxyServices, true); // Force refresh
82
+ console.log('AuthStore: User data refreshed');
54
83
  } catch (error) {
84
+ console.error('AuthStore: Error updating user:', error);
55
85
  set({
56
86
  error: error.message || 'Failed to update user',
57
87
  isLoading: false
@@ -1 +1 @@
1
- {"version":3,"names":["create","useAuthStore","set","user","isAuthenticated","isLoading","error","loginStart","loginSuccess","loginFailure","logout","fetchUser","oxyServices","getCurrentUser","message","updateUser","updates","updateProfile","getState"],"sourceRoot":"../../../../src","sources":["ui/stores/authStore.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAgBhC,OAAO,MAAMC,YAAY,GAAGD,MAAM,CAAaE,GAAwC,KAAM;EAC3FC,IAAI,EAAE,IAAI;EACVC,eAAe,EAAE,KAAK;EACtBC,SAAS,EAAE,KAAK;EAChBC,KAAK,EAAE,IAAI;EACXC,UAAU,EAAEA,CAAA,KAAML,GAAG,CAAC;IAAEG,SAAS,EAAE,IAAI;IAAEC,KAAK,EAAE;EAAK,CAAC,CAAC;EACvDE,YAAY,EAAGL,IAAU,IAAKD,GAAG,CAAC;IAAEG,SAAS,EAAE,KAAK;IAAED,eAAe,EAAE,IAAI;IAAED;EAAK,CAAC,CAAC;EACpFM,YAAY,EAAGH,KAAa,IAAKJ,GAAG,CAAC;IAAEG,SAAS,EAAE,KAAK;IAAEC;EAAM,CAAC,CAAC;EACjEI,MAAM,EAAEA,CAAA,KAAMR,GAAG,CAAC;IAAEC,IAAI,EAAE,IAAI;IAAEC,eAAe,EAAE;EAAM,CAAC,CAAC;EACzDO,SAAS,EAAE,MAAOC,WAAW,IAAK;IAChCV,GAAG,CAAC;MAAEG,SAAS,EAAE,IAAI;MAAEC,KAAK,EAAE;IAAK,CAAC,CAAC;IACrC,IAAI;MACF,MAAMH,IAAI,GAAG,MAAMS,WAAW,CAACC,cAAc,CAAC,CAAC;MAC/CX,GAAG,CAAC;QAAEC,IAAI;QAAEE,SAAS,EAAE,KAAK;QAAED,eAAe,EAAE;MAAK,CAAC,CAAC;IACxD,CAAC,CAAC,OAAOE,KAAU,EAAE;MACnBJ,GAAG,CAAC;QAAEI,KAAK,EAAEA,KAAK,CAACQ,OAAO,IAAI,sBAAsB;QAAET,SAAS,EAAE;MAAM,CAAC,CAAC;IAC3E;EACF,CAAC;EACDU,UAAU,EAAE,MAAAA,CAAOC,OAAO,EAAEJ,WAAW,KAAK;IAC1CV,GAAG,CAAC;MAAEG,SAAS,EAAE,IAAI;MAAEC,KAAK,EAAE;IAAK,CAAC,CAAC;IACrC,IAAI;MACF,MAAMM,WAAW,CAACK,aAAa,CAACD,OAAO,CAAC;MACxC;MACA,MAAMf,YAAY,CAACiB,QAAQ,CAAC,CAAC,CAACP,SAAS,CAACC,WAAW,CAAC;IACtD,CAAC,CAAC,OAAON,KAAU,EAAE;MACnBJ,GAAG,CAAC;QAAEI,KAAK,EAAEA,KAAK,CAACQ,OAAO,IAAI,uBAAuB;QAAET,SAAS,EAAE;MAAM,CAAC,CAAC;IAC5E;EACF;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["create","useAuthStore","set","get","user","isAuthenticated","isLoading","error","lastUserFetch","loginStart","loginSuccess","Date","now","loginFailure","logout","setUser","fetchUser","oxyServices","forceRefresh","state","cacheAge","Infinity","cacheValid","console","log","getCurrentUser","hasUser","userLinksMetadata","linksMetadata","userLinks","links","userWebsite","website","message","updateUser","updates","updateProfile","getState"],"sourceRoot":"../../../../src","sources":["ui/stores/authStore.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAkBhC,OAAO,MAAMC,YAAY,GAAGD,MAAM,CAAY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rB,SAAS,CAACC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC;MAC5DM,OAAO,CAACC,GAAG,CAAC,gCAAgC,CAAC;IAC/C,CAAC,CAAC,OAAOjB,KAAU,EAAE;MACnBgB,OAAO,CAAChB,KAAK,CAAC,iCAAiC,EAAEA,KAAK,CAAC;MACvDL,GAAG,CAAC;QAAEK,KAAK,EAAEA,KAAK,CAAC0B,OAAO,IAAI,uBAAuB;QAAE3B,SAAS,EAAE;MAAM,CAAC,CAAC;IAC5E;EACF;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -6,6 +6,9 @@ export const useFollowStore = create((set, get) => ({
6
6
  loadingUsers: {},
7
7
  fetchingUsers: {},
8
8
  errors: {},
9
+ followerCounts: {},
10
+ followingCounts: {},
11
+ loadingCounts: {},
9
12
  setFollowingStatus: (userId, isFollowing) => set(state => ({
10
13
  followingUsers: {
11
14
  ...state.followingUsers,
@@ -26,7 +29,10 @@ export const useFollowStore = create((set, get) => ({
26
29
  followingUsers: {},
27
30
  loadingUsers: {},
28
31
  fetchingUsers: {},
29
- errors: {}
32
+ errors: {},
33
+ followerCounts: {},
34
+ followingCounts: {},
35
+ loadingCounts: {}
30
36
  }),
31
37
  fetchFollowStatus: async (userId, oxyServices) => {
32
38
  set(state => ({
@@ -89,6 +95,8 @@ export const useFollowStore = create((set, get) => ({
89
95
  response = await oxyServices.followUser(userId);
90
96
  newFollowState = true;
91
97
  }
98
+
99
+ // Update follow status
92
100
  set(state => ({
93
101
  followingUsers: {
94
102
  ...state.followingUsers,
@@ -103,6 +111,37 @@ export const useFollowStore = create((set, get) => ({
103
111
  [userId]: null
104
112
  }
105
113
  }));
114
+
115
+ // Update counts if the response includes them
116
+ // The API returns counts for both users:
117
+ // - followers: target user's follower count (the user being followed)
118
+ // - following: current user's following count (the user doing the following)
119
+ if (response && response.counts) {
120
+ const {
121
+ counts
122
+ } = response;
123
+
124
+ // Get current user ID from oxyServices
125
+ const currentUserId = oxyServices.getCurrentUserId();
126
+ set(state => {
127
+ const updates = {};
128
+
129
+ // Update target user's follower count (the user being followed)
130
+ updates.followerCounts = {
131
+ ...state.followerCounts,
132
+ [userId]: counts.followers
133
+ };
134
+
135
+ // Update current user's following count (the user doing the following)
136
+ if (currentUserId) {
137
+ updates.followingCounts = {
138
+ ...state.followingCounts,
139
+ [currentUserId]: counts.following
140
+ };
141
+ }
142
+ return updates;
143
+ });
144
+ }
106
145
  } catch (error) {
107
146
  set(state => ({
108
147
  loadingUsers: {
@@ -115,6 +154,72 @@ export const useFollowStore = create((set, get) => ({
115
154
  }
116
155
  }));
117
156
  }
157
+ },
158
+ setFollowerCount: (userId, count) => set(state => ({
159
+ followerCounts: {
160
+ ...state.followerCounts,
161
+ [userId]: count
162
+ }
163
+ })),
164
+ setFollowingCount: (userId, count) => set(state => ({
165
+ followingCounts: {
166
+ ...state.followingCounts,
167
+ [userId]: count
168
+ }
169
+ })),
170
+ updateCountsFromFollowAction: (targetUserId, action, counts, currentUserId) => {
171
+ set(state => {
172
+ const updates = {};
173
+
174
+ // Update target user's follower count (the user being followed)
175
+ updates.followerCounts = {
176
+ ...state.followerCounts,
177
+ [targetUserId]: counts.followers
178
+ };
179
+
180
+ // Update current user's following count (the user doing the following)
181
+ if (currentUserId) {
182
+ updates.followingCounts = {
183
+ ...state.followingCounts,
184
+ [currentUserId]: counts.following
185
+ };
186
+ }
187
+ return updates;
188
+ });
189
+ },
190
+ fetchUserCounts: async (userId, oxyServices) => {
191
+ set(state => ({
192
+ loadingCounts: {
193
+ ...state.loadingCounts,
194
+ [userId]: true
195
+ }
196
+ }));
197
+ try {
198
+ const user = await oxyServices.getUserById(userId);
199
+ if (user && user._count) {
200
+ set(state => ({
201
+ followerCounts: {
202
+ ...state.followerCounts,
203
+ [userId]: user._count.followers || 0
204
+ },
205
+ followingCounts: {
206
+ ...state.followingCounts,
207
+ [userId]: user._count.following || 0
208
+ },
209
+ loadingCounts: {
210
+ ...state.loadingCounts,
211
+ [userId]: false
212
+ }
213
+ }));
214
+ }
215
+ } catch (error) {
216
+ set(state => ({
217
+ loadingCounts: {
218
+ ...state.loadingCounts,
219
+ [userId]: false
220
+ }
221
+ }));
222
+ }
118
223
  }
119
224
  }));
120
225
  //# sourceMappingURL=followStore.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["create","useFollowStore","set","get","followingUsers","loadingUsers","fetchingUsers","errors","setFollowingStatus","userId","isFollowing","state","clearFollowError","resetFollowState","fetchFollowStatus","oxyServices","response","getFollowStatus","error","message","toggleFollowUser","isCurrentlyFollowing","newFollowState","unfollowUser","followUser"],"sourceRoot":"../../../../src","sources":["ui/stores/followStore.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAehC,OAAO,MAAMC,cAAc,GAAGD,MAAM,CAAc,CAACE,GAAQ,EAAEC,GAAQ,MAAM;EACzEC,cAAc,EAAE,CAAC,CAAC;EAClBC,YAAY,EAAE,CAAC,CAAC;EAChBC,aAAa,EAAE,CAAC,CAAC;EACjBC,MAAM,EAAE,CAAC,CAAC;EACVC,kBAAkB,EAAEA,CAACC,MAAc,EAAEC,WAAoB,KAAKR,GAAG,CAAES,KAAkB,KAAM;IACzFP,cAAc,EAAE;MAAE,GAAGO,KAAK,CAACP,cAAc;MAAE,CAACK,MAAM,GAAGC;IAAY,CAAC;IAClEH,MAAM,EAAE;MAAE,GAAGI,KAAK,CAACJ,MAAM;MAAE,CAACE,MAAM,GAAG;IAAK;EAC5C,CAAC,CAAC,CAAC;EACHG,gBAAgB,EAAGH,MAAc,IAAKP,GAAG,CAAES,KAAkB,KAAM;IACjEJ,MAAM,EAAE;MAAE,GAAGI,KAAK,CAACJ,MAAM;MAAE,CAACE,MAAM,GAAG;IAAK;EAC5C,CAAC,CAAC,CAAC;EACHI,gBAAgB,EAAEA,CAAA,KAAMX,GAAG,CAAC;IAC1BE,cAAc,EAAE,CAAC,CAAC;IAClBC,YAAY,EAAE,CAAC,CAAC;IAChBC,aAAa,EAAE,CAAC,CAA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M,GAAG;MAAK,CAAC;MACvDF,MAAM,EAAE;QAAE,GAAGI,KAAK,CAACJ,MAAM;QAAE,CAACE,MAAM,GAAG;MAAK;IAC5C,CAAC,CAAC,CAAC;IACH,IAAI;MACF,IAAIO,QAAQ;MACZ,IAAIM,cAAc;MAClB,IAAID,oBAAoB,EAAE;QACxBL,QAAQ,GAAG,MAAMD,WAAW,CAACQ,YAAY,CAACd,MAAM,CAAC;QACjDa,cAAc,GAAG,KAAK;MACxB,CAAC,MAAM;QACLN,QAAQ,GAAG,MAAMD,WAAW,CAACS,UAAU,CAACf,MAAM,CAAC;QAC/Ca,cAAc,GAAG,IAAI;MACvB;MACApB,GAAG,CAAES,KAAkB,KAAM;QAC3BP,cAAc,EAAE;UAAE,GAAGO,KAAK,CAACP,cAAc;UAAE,CAACK,MAAM,GAAGa;QAAe,CAAC;QACrEjB,YAAY,EAAE;UAAE,GAAGM,KAAK,CAACN,YAAY;UAAE,CAACI,MAAM,GAAG;QAAM,CAAC;QACxDF,MAAM,EAAE;UAAE,GAAGI,KAAK,CAACJ,MAAM;UAAE,CAACE,MAAM,GAAG;QAAK;MAC5C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,OAAOS,KAAU,EAAE;MACnBhB,GAAG,CAAES,KAAkB,KAAM;QAC3BN,YAAY,EAAE;UAAE,GAAGM,KAAK,CAACN,YAAY;UAAE,CAACI,MAAM,GAAG;QAAM,CAAC;QACxDF,MAAM,EAAE;UAAE,GAAGI,KAAK,CAACJ,MAAM;UAAE,CAACE,MAAM,GAAGS,KAAK,EAAEC,OAAO,IAAI;QAAiC;MAC1F,CAAC,CAAC,CAAC;IACL;EACF;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["create","useFollowStore","set","get","followingUsers","loadingUsers","fetchingUsers","errors","followerCounts","followingCounts","loadingCounts","setFollowingStatus","userId","isFollowing","state","clearFollowError","resetFollowState","fetchFollowStatus","oxyServices","response","getFollowStatus","error","message","toggleFollowUser","isCurrentlyFollowing","newFollowState","unfollowUser","followUser","counts","currentUserId","getCurrentUserId","updates","followers","following","setFollowerCount","count","setFollowingCount","updateCountsFromFollowAction","targetUserId","action","fetchUserCounts","user","getUserById","_count"],"sourceRoot":"../../../../src","sources":["ui/stores/followStore.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,SAAS;AAyBhC,OAAO,MAAMC,cAAc,GAAGD,MAAM,CAAc,CAACE,GAAQ,EAAEC,GAAQ,MAAM;EACzEC,cAAc,EAAE,CAAC,CAAC;EAClBC,YAAY,EAAE,CAAC,CAAC;EAChBC,aAAa,EAAE,CAAC,CAAC;EACjBC,MAAM,EAAE,CAAC,CAAC;EACVC,cAAc,EAAE,CAAC,CAAC;EAClBC,eAAe,EAAE,CAAC,CAAC;EACnBC,aAAa,EAAE,CAAC,CAAC;EACjBC,kBAAkB,EAAEA,CAACC,MAAc,EAAEC,WAAoB,KAAKX,GAAG,CAAEY,KAAkB,KAAM;IACzFV,cAAc,EAAE;MAAE,GAAGU,KAAK,CAACV,cAAc;MAAE,CAACQ,MAAM,GAAGC;IAAY,CAAC;IAClEN,MAAM,EAAE;MAAE,GAAGO,KAAK,CAACP,MAAM;MAAE,CAACK,MAAM,GAAG;IAAK;EAC5C,CAAC,CAAC,CAAC;EACHG,gBAAgB,EAAGH,MAAc,IAAKV,GAAG,CAAEY,KAAkB,KAAM;IACjEP,MAAM,EAAE;MAAE,GAAGO,KAAK,CAACP,MAAM;MAAE,CAACK,MAAM,GAAG;IAAK;EAC5C,CAAC,CAAC,CAAC;EACHI,gBAAgB,EAAEA,CAAA,KAAMd,GAAG,CAAC;IAC1BE,cAAc,EAAE,CAAC,CAAC;IAClBC,YAAY,EAAE,CAAC,CAAC;IAChBC,aAAa,EAAE,CAAC,CAAC;IACjBC,MAAM,EAAE,CAAC,CAAC;IACVC,cAAc,EAAE,CAAC,CAAC;IAClBC,eAAe,EAAE,CAAC,CAAC;IACnBC,aAAa,EAAE,CAAC;EAClB,CAAC,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AAE,MAAAA,CAAO5B,MAAc,EAAEM,WAAwB,KAAK;IACnEhB,GAAG,CAAEY,KAAkB,KAAM;MAC3BJ,aAAa,EAAE;QAAE,GAAGI,KAAK,CAACJ,aAAa;QAAE,CAACE,MAAM,GAAG;MAAK;IAC1D,CAAC,CAAC,CAAC;IACH,IAAI;MACF,MAAM6B,IAAI,GAAG,MAAMvB,WAAW,CAACwB,WAAW,CAAC9B,MAAM,CAAC;MAClD,IAAI6B,IAAI,IAAIA,IAAI,CAACE,MAAM,EAAE;QACvBzC,GAAG,CAAEY,KAAkB,KAAM;UAC3BN,cAAc,EAAE;YACd,GAAGM,KAAK,CAACN,cAAc;YACvB,CAACI,MAAM,GAAG6B,IAAI,CAACE,MAAM,CAACX,SAAS,IAAI;UACrC,CAAC;UACDvB,eAAe,EAAE;YACf,GAAGK,KAAK,CAACL,eAAe;YACxB,CAACG,MAAM,GAAG6B,IAAI,CAACE,MAAM,CAACV,SAAS,IAAI;UACrC,CAAC;UACDvB,aAAa,EAAE;YAAE,GAAGI,KAAK,CAACJ,aAAa;YAAE,CAACE,MAAM,GAAG;UAAM;QAC3D,CAAC,CAAC,CAAC;MACL;IACF,CAAC,CAAC,OAAOS,KAAU,EAAE;MACnBnB,GAAG,CAAEY,KAAkB,KAAM;QAC3BJ,aAAa,EAAE;UAAE,GAAGI,KAAK,CAACJ,aAAa;UAAE,CAACE,MAAM,GAAG;QAAM;MAC3D,CAAC,CAAC,CAAC;IACL;EACF;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,332 @@
1
+ "use strict";
2
+
3
+ import { Platform, StyleSheet } from 'react-native';
4
+ export const createAuthStyles = (colors, theme) => StyleSheet.create({
5
+ // Container styles
6
+ container: {
7
+ flex: 1
8
+ },
9
+ scrollContent: {
10
+ flexGrow: 1,
11
+ paddingHorizontal: 24,
12
+ paddingTop: 4,
13
+ paddingBottom: 20
14
+ },
15
+ stepContainer: {
16
+ flex: 1,
17
+ justifyContent: 'flex-start',
18
+ alignItems: 'flex-start'
19
+ },
20
+ // Header styles
21
+ modernHeader: {
22
+ alignItems: 'flex-start',
23
+ width: '100%',
24
+ marginBottom: 24
25
+ },
26
+ modernTitle: {
27
+ fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
28
+ fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
29
+ fontSize: 62,
30
+ lineHeight: 74.4,
31
+ // 62 * 1.2
32
+ marginBottom: 18,
33
+ textAlign: 'left',
34
+ letterSpacing: -1
35
+ },
36
+ modernSubtitle: {
37
+ fontSize: 18,
38
+ lineHeight: 24,
39
+ textAlign: 'left',
40
+ opacity: 0.8
41
+ },
42
+ welcomeTitle: {
43
+ fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
44
+ fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
45
+ fontSize: 42,
46
+ lineHeight: 50.4,
47
+ // 42 * 1.2
48
+ marginBottom: 12,
49
+ textAlign: 'left',
50
+ letterSpacing: -1
51
+ },
52
+ stepTitle: {
53
+ fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
54
+ fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
55
+ fontSize: 42,
56
+ lineHeight: 50.4,
57
+ // 42 * 1.2
58
+ marginBottom: 12,
59
+ textAlign: 'left',
60
+ letterSpacing: -1
61
+ },
62
+ // Info and error cards
63
+ modernInfoCard: {
64
+ flexDirection: 'row',
65
+ alignItems: 'center',
66
+ padding: 16,
67
+ borderRadius: 16,
68
+ marginBottom: 24,
69
+ gap: 12,
70
+ width: '100%'
71
+ },
72
+ modernInfoText: {
73
+ fontSize: 14,
74
+ flex: 1
75
+ },
76
+ modernErrorCard: {
77
+ flexDirection: 'row',
78
+ alignItems: 'center',
79
+ padding: 16,
80
+ borderRadius: 16,
81
+ marginBottom: 24,
82
+ gap: 12,
83
+ width: '100%'
84
+ },
85
+ errorText: {
86
+ fontSize: 14,
87
+ fontWeight: '500',
88
+ flex: 1
89
+ },
90
+ // Input styles
91
+ modernInputContainer: {
92
+ width: '100%',
93
+ marginBottom: 24
94
+ },
95
+ inputWrapper: {
96
+ flexDirection: 'row',
97
+ alignItems: 'center',
98
+ height: 56,
99
+ borderRadius: 16,
100
+ paddingHorizontal: 20,
101
+ borderWidth: 2,
102
+ backgroundColor: colors.inputBackground
103
+ },
104
+ premiumInputWrapper: {
105
+ flexDirection: 'row',
106
+ alignItems: 'center',
107
+ height: 56,
108
+ borderRadius: 16,
109
+ paddingHorizontal: 20,
110
+ borderWidth: 2,
111
+ backgroundColor: colors.inputBackground
112
+ },
113
+ inputIcon: {
114
+ marginRight: 12
115
+ },
116
+ inputContent: {
117
+ flex: 1
118
+ },
119
+ modernInput: {
120
+ flex: 1,
121
+ fontSize: 16,
122
+ height: '100%'
123
+ },
124
+ passwordToggle: {
125
+ padding: 4
126
+ },
127
+ // Validation styles
128
+ validationIndicator: {
129
+ marginLeft: 8
130
+ },
131
+ validationSuccessCard: {
132
+ flexDirection: 'row',
133
+ alignItems: 'center',
134
+ padding: 12,
135
+ borderRadius: 12,
136
+ marginTop: 8,
137
+ gap: 8
138
+ },
139
+ validationErrorCard: {
140
+ flexDirection: 'row',
141
+ alignItems: 'center',
142
+ padding: 12,
143
+ borderRadius: 12,
144
+ marginTop: 8,
145
+ gap: 8
146
+ },
147
+ validationCard: {
148
+ flexDirection: 'row',
149
+ alignItems: 'center',
150
+ padding: 12,
151
+ borderRadius: 12,
152
+ marginTop: 8,
153
+ gap: 8
154
+ },
155
+ validationText: {
156
+ fontSize: 12,
157
+ fontWeight: '500'
158
+ },
159
+ belowInputMessage: {
160
+ flexDirection: 'row',
161
+ alignItems: 'center',
162
+ marginTop: 4,
163
+ marginBottom: 0,
164
+ gap: 6
165
+ },
166
+ belowInputText: {
167
+ fontSize: 13,
168
+ fontWeight: '500'
169
+ },
170
+ // Button styles
171
+ modernButton: {
172
+ flexDirection: 'row',
173
+ alignItems: 'center',
174
+ justifyContent: 'center',
175
+ paddingVertical: 18,
176
+ paddingHorizontal: 32,
177
+ borderRadius: 16,
178
+ marginVertical: 8,
179
+ shadowOffset: {
180
+ width: 0,
181
+ height: 4
182
+ },
183
+ shadowOpacity: 0.3,
184
+ shadowRadius: 8,
185
+ elevation: 6,
186
+ gap: 8,
187
+ width: '100%'
188
+ },
189
+ modernButtonText: {
190
+ color: '#FFFFFF',
191
+ fontSize: 16,
192
+ fontWeight: '600',
193
+ letterSpacing: 0.5
194
+ },
195
+ buttonIcon: {
196
+ marginLeft: 4
197
+ },
198
+ // Label and link styles
199
+ modernLabel: {
200
+ fontSize: 12,
201
+ fontWeight: '500',
202
+ marginBottom: 2
203
+ },
204
+ modernLinkText: {
205
+ fontSize: 14,
206
+ lineHeight: 20,
207
+ fontWeight: '600',
208
+ textDecorationLine: 'underline'
209
+ },
210
+ footerTextContainer: {
211
+ flexDirection: 'row',
212
+ justifyContent: 'center',
213
+ marginTop: 16
214
+ },
215
+ footerText: {
216
+ fontSize: 15
217
+ },
218
+ // User profile styles
219
+ modernUserProfileContainer: {
220
+ alignItems: 'flex-start',
221
+ paddingVertical: 24
222
+ },
223
+ avatarContainer: {
224
+ position: 'relative',
225
+ marginBottom: 20
226
+ },
227
+ modernUserAvatar: {
228
+ borderWidth: 4,
229
+ borderColor: 'rgba(209, 105, 229, 0.2)'
230
+ },
231
+ statusIndicator: {
232
+ position: 'absolute',
233
+ bottom: 4,
234
+ right: 4,
235
+ width: 20,
236
+ height: 20,
237
+ borderRadius: 10,
238
+ borderWidth: 3,
239
+ borderColor: '#FFFFFF'
240
+ },
241
+ modernUserDisplayName: {
242
+ fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
243
+ fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
244
+ fontSize: 42,
245
+ marginBottom: 4,
246
+ textAlign: 'center',
247
+ letterSpacing: -0.5
248
+ },
249
+ modernUsernameSubtext: {
250
+ fontSize: 20,
251
+ textAlign: 'left',
252
+ marginBottom: 16,
253
+ opacity: 0.7
254
+ },
255
+ welcomeBackBadge: {
256
+ flexDirection: 'row',
257
+ alignItems: 'center',
258
+ paddingHorizontal: 12,
259
+ paddingVertical: 6,
260
+ borderRadius: 20,
261
+ gap: 6
262
+ },
263
+ welcomeBackText: {
264
+ fontSize: 12,
265
+ fontWeight: '600',
266
+ textTransform: 'uppercase',
267
+ letterSpacing: 0.5
268
+ },
269
+ // Navigation styles
270
+ modernNavigationButtons: {
271
+ flexDirection: 'row',
272
+ justifyContent: 'center',
273
+ marginTop: 16,
274
+ marginBottom: 8,
275
+ width: '100%',
276
+ gap: 8
277
+ },
278
+ modernBackButton: {
279
+ flexDirection: 'row',
280
+ alignItems: 'center',
281
+ paddingVertical: 12,
282
+ paddingHorizontal: 20,
283
+ borderRadius: 12,
284
+ borderWidth: 1,
285
+ gap: 8
286
+ },
287
+ modernBackButtonText: {
288
+ fontSize: 16,
289
+ fontWeight: '500'
290
+ },
291
+ // Security notice
292
+ securityNotice: {
293
+ flexDirection: 'row',
294
+ alignItems: 'center',
295
+ justifyContent: 'center',
296
+ marginTop: 20,
297
+ gap: 6
298
+ },
299
+ securityText: {
300
+ fontSize: 12,
301
+ fontWeight: '500'
302
+ },
303
+ // Welcome image container
304
+ welcomeImageContainer: {
305
+ alignItems: 'center',
306
+ justifyContent: 'center',
307
+ marginVertical: 20
308
+ },
309
+ welcomeText: {
310
+ fontSize: 18,
311
+ lineHeight: 24,
312
+ textAlign: 'left',
313
+ opacity: 0.8,
314
+ marginBottom: 24
315
+ },
316
+ // Success styles
317
+ successCard: {
318
+ flexDirection: 'row',
319
+ alignItems: 'center',
320
+ padding: 16,
321
+ borderRadius: 16,
322
+ marginBottom: 24,
323
+ gap: 12,
324
+ width: '100%'
325
+ },
326
+ successText: {
327
+ fontSize: 14,
328
+ fontWeight: '500',
329
+ flex: 1
330
+ }
331
+ });
332
+ //# sourceMappingURL=authStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","StyleSheet","createAuthStyles","colors","theme","create","container","flex","scrollContent","flexGrow","paddingHorizontal","paddingTop","paddingBottom","stepContainer","justifyContent","alignItems","modernHeader","width","marginBottom","modernTitle","fontFamily","OS","fontWeight","undefined","fontSize","lineHeight","textAlign","letterSpacing","modernSubtitle","opacity","welcomeTitle","stepTitle","modernInfoCard","flexDirection","padding","borderRadius","gap","modernInfoText","modernErrorCard","errorText","modernInputContainer","inputWrapper","height","borderWidth","backgroundColor","inputBackground","premiumInputWrapper","inputIcon","marginRight","inputContent","modernInput","passwordToggle","validationIndicator","marginLeft","validationSuccessCard","marginTop","validationErrorCard","validationCard","validationText","belowInputMessage","belowInputText","modernButton","paddingVertical","marginVertical","shadowOffset","shadowOpacity","shadowRadius","elevation","modernButtonText","color","buttonIcon","modernLabel","modernLinkText","textDecorationLine","footerTextContainer","footerText","modernUserProfileContainer","avatarContainer","position","modernUserAvatar","borderColor","statusIndicator","bottom","right","modernUserDisplayName","modernUsernameSubtext","welcomeBackBadge","welcomeBackText","textTransform","modernNavigationButtons","modernBackButton","modernBackButtonText","securityNotice","securityText","welcomeImageContainer","welcomeText","successCard","successText"],"sourceRoot":"../../../../src","sources":["ui/styles/authStyles.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAmB,cAAc;AAgB9D,OAAO,MAAMC,gBAAgB,GAAGA,CAACC,MAAuB,EAAEC,KAAa,KAAKH,UAAU,CAACI,MAAM,CAAC;EAC5F;EACAC,SAAS,EAAE;IACTC,IAAI,EAAE;EACR,CAAC;EACDC,aAAa,EAAE;IACbC,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAE,EAAE;IACrBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB,CAAC;EACDC,aAAa,EAAE;IACbN,IAAI,EAAE,CAAC;IACPO,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EACd,CAAC;EAED;EACAC,YAAY,EAAE;IACZD,UAAU,EAAE,YAAY;IACxBE,KAAK,EA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EAAE,QAAQ;IACxByC,SAAS,EAAE,EAAE;IACbnB,GAAG,EAAE;EACP,CAAC;EACDyD,YAAY,EAAE;IACZrE,QAAQ,EAAE,EAAE;IACZF,UAAU,EAAE;EACd,CAAC;EAED;EACAwE,qBAAqB,EAAE;IACrB/E,UAAU,EAAE,QAAQ;IACpBD,cAAc,EAAE,QAAQ;IACxBiD,cAAc,EAAE;EAClB,CAAC;EACDgC,WAAW,EAAE;IACXvE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,MAAM;IACjBG,OAAO,EAAE,GAAG;IACZX,YAAY,EAAE;EAChB,CAAC;EAED;EACA8E,WAAW,EAAE;IACX/D,aAAa,EAAE,KAAK;IACpBlB,UAAU,EAAE,QAAQ;IACpBmB,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBjB,YAAY,EAAE,EAAE;IAChBkB,GAAG,EAAE,EAAE;IACPnB,KAAK,EAAE;EACT,CAAC;EACDgF,WAAW,EAAE;IACXzE,QAAQ,EAAE,EAAE;IACZF,UAAU,EAAE,KAAK;IACjBf,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,4 +2,5 @@
2
2
 
3
3
  export * from './fonts';
4
4
  export * from './theme';
5
+ export * from './authStyles';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ui/styles/index.ts"],"mappings":";;AAAA,cAAc,SAAS;AACvB,cAAc,SAAS","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ui/styles/index.ts"],"mappings":";;AAAA,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,cAAc","ignoreList":[]}