@oxyhq/services 5.21.6 → 5.22.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 (478) hide show
  1. package/README.md +201 -2
  2. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  3. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  4. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  5. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  6. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  7. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  8. package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  9. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  10. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  11. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  12. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  13. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  14. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  15. package/lib/commonjs/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  16. package/lib/commonjs/core/HttpService.js +87 -2
  17. package/lib/commonjs/core/HttpService.js.map +1 -1
  18. package/lib/commonjs/core/mixins/OxyServices.assets.js +3 -1
  19. package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
  20. package/lib/commonjs/crypto/keyManager.js +67 -22
  21. package/lib/commonjs/crypto/keyManager.js.map +1 -1
  22. package/lib/commonjs/i18n/locales/en-US.json +3 -3
  23. package/lib/commonjs/i18n/locales/es-ES.json +240 -19
  24. package/lib/commonjs/index.js +66 -0
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/ui/components/Avatar.js +1 -1
  27. package/lib/commonjs/ui/components/Avatar.js.map +1 -1
  28. package/lib/commonjs/ui/components/FollowButton.js +1 -1
  29. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  30. package/lib/commonjs/ui/components/FontLoader.js +34 -34
  31. package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
  32. package/lib/commonjs/ui/components/Header.js +4 -4
  33. package/lib/commonjs/ui/components/Header.js.map +1 -1
  34. package/lib/commonjs/ui/components/OxyPayButton.js +1 -1
  35. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
  36. package/lib/commonjs/ui/components/OxySignInButton.js +2 -1
  37. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  38. package/lib/commonjs/ui/components/ProfileCard.js +1 -1
  39. package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
  40. package/lib/commonjs/ui/components/SectionTitle.js +1 -1
  41. package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
  42. package/lib/commonjs/ui/components/StepBasedScreen.js +2 -1
  43. package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
  44. package/lib/commonjs/ui/components/feedback/feedbackStyles.js +2 -1
  45. package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -1
  46. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +57 -0
  47. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
  48. package/lib/commonjs/ui/components/fileManagement/styles.js +17 -17
  49. package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
  50. package/lib/commonjs/ui/components/payment/paymentStyles.js +7 -7
  51. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
  52. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +177 -0
  53. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
  54. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -123
  55. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  56. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +2 -32
  57. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  58. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +2 -31
  59. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  60. package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
  61. package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
  62. package/lib/commonjs/ui/navigation/routes.js +2 -0
  63. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  64. package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
  65. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +13 -5
  67. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  68. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +273 -1820
  69. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
  71. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -1
  73. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/AppInfoScreen.js +2 -2
  75. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +640 -0
  77. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
  78. package/lib/commonjs/ui/screens/FileManagementScreen.js +41 -23
  79. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -3
  81. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -2
  83. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +3 -1
  85. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +11 -12
  87. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +12 -4
  89. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -1
  91. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/SessionManagementScreen.js +15 -5
  93. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  94. package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -1
  95. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  96. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -1
  97. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  98. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +2 -4
  99. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  100. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -3
  101. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  102. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +3 -3
  103. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  104. package/lib/commonjs/ui/styles/authStyles.js +5 -4
  105. package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
  106. package/lib/commonjs/ui/styles/fonts.js +27 -27
  107. package/lib/commonjs/ui/styles/fonts.js.map +1 -1
  108. package/lib/commonjs/ui/styles/theme.js +3 -3
  109. package/lib/commonjs/ui/styles/theme.js.map +1 -1
  110. package/lib/commonjs/ui/utils/authHelpers.js +164 -0
  111. package/lib/commonjs/ui/utils/authHelpers.js.map +1 -0
  112. package/lib/commonjs/ui/utils/avatarUtils.js +18 -61
  113. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  114. package/lib/commonjs/web.js +682 -0
  115. package/lib/commonjs/web.js.map +1 -0
  116. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  117. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  118. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  119. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  120. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  121. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  122. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  123. package/lib/module/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  124. package/lib/module/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  125. package/lib/module/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  126. package/lib/module/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  127. package/lib/module/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  128. package/lib/module/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  129. package/lib/module/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  130. package/lib/module/core/HttpService.js +87 -2
  131. package/lib/module/core/HttpService.js.map +1 -1
  132. package/lib/module/core/mixins/OxyServices.assets.js +3 -1
  133. package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
  134. package/lib/module/crypto/keyManager.js +67 -22
  135. package/lib/module/crypto/keyManager.js.map +1 -1
  136. package/lib/module/i18n/locales/en-US.json +3 -3
  137. package/lib/module/i18n/locales/es-ES.json +240 -19
  138. package/lib/module/index.js +6 -0
  139. package/lib/module/index.js.map +1 -1
  140. package/lib/module/ui/components/Avatar.js +1 -1
  141. package/lib/module/ui/components/Avatar.js.map +1 -1
  142. package/lib/module/ui/components/FollowButton.js +1 -1
  143. package/lib/module/ui/components/FollowButton.js.map +1 -1
  144. package/lib/module/ui/components/FontLoader.js +34 -34
  145. package/lib/module/ui/components/FontLoader.js.map +1 -1
  146. package/lib/module/ui/components/Header.js +4 -4
  147. package/lib/module/ui/components/Header.js.map +1 -1
  148. package/lib/module/ui/components/OxyPayButton.js +1 -1
  149. package/lib/module/ui/components/OxyPayButton.js.map +1 -1
  150. package/lib/module/ui/components/OxySignInButton.js +2 -1
  151. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  152. package/lib/module/ui/components/ProfileCard.js +1 -1
  153. package/lib/module/ui/components/ProfileCard.js.map +1 -1
  154. package/lib/module/ui/components/SectionTitle.js +1 -1
  155. package/lib/module/ui/components/SectionTitle.js.map +1 -1
  156. package/lib/module/ui/components/StepBasedScreen.js +2 -1
  157. package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
  158. package/lib/module/ui/components/feedback/feedbackStyles.js +2 -1
  159. package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
  160. package/lib/module/ui/components/fileManagement/AnimatedButton.js +50 -0
  161. package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
  162. package/lib/module/ui/components/fileManagement/styles.js +17 -17
  163. package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
  164. package/lib/module/ui/components/payment/paymentStyles.js +7 -7
  165. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
  166. package/lib/module/ui/hooks/mutations/mutationFactory.js +173 -0
  167. package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
  168. package/lib/module/ui/hooks/mutations/useAccountMutations.js +10 -122
  169. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  170. package/lib/module/ui/hooks/queries/useAccountQueries.js +2 -32
  171. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  172. package/lib/module/ui/hooks/queries/useServicesQueries.js +2 -31
  173. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  174. package/lib/module/ui/hooks/useFileFiltering.js +72 -0
  175. package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
  176. package/lib/module/ui/navigation/routes.js +2 -0
  177. package/lib/module/ui/navigation/routes.js.map +1 -1
  178. package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
  179. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  180. package/lib/module/ui/screens/AccountOverviewScreen.js +13 -5
  181. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  182. package/lib/module/ui/screens/AccountSettingsScreen.js +277 -1824
  183. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  184. package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
  185. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  186. package/lib/module/ui/screens/AccountVerificationScreen.js +3 -1
  187. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  188. package/lib/module/ui/screens/AppInfoScreen.js +2 -2
  189. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  190. package/lib/module/ui/screens/EditProfileFieldScreen.js +635 -0
  191. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
  192. package/lib/module/ui/screens/FileManagementScreen.js +41 -23
  193. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  194. package/lib/module/ui/screens/HistoryViewScreen.js +9 -3
  195. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  196. package/lib/module/ui/screens/LanguageSelectorScreen.js +4 -2
  197. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  198. package/lib/module/ui/screens/LegalDocumentsScreen.js +3 -1
  199. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  200. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +11 -12
  201. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  202. package/lib/module/ui/screens/PrivacySettingsScreen.js +12 -4
  203. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  204. package/lib/module/ui/screens/SearchSettingsScreen.js +3 -1
  205. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  206. package/lib/module/ui/screens/SessionManagementScreen.js +15 -5
  207. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  208. package/lib/module/ui/screens/UserLinksScreen.js +3 -1
  209. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  210. package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -1
  211. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  212. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +2 -4
  213. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  214. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -3
  215. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  216. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +3 -3
  217. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  218. package/lib/module/ui/styles/authStyles.js +5 -4
  219. package/lib/module/ui/styles/authStyles.js.map +1 -1
  220. package/lib/module/ui/styles/fonts.js +27 -27
  221. package/lib/module/ui/styles/fonts.js.map +1 -1
  222. package/lib/module/ui/styles/theme.js +3 -3
  223. package/lib/module/ui/styles/theme.js.map +1 -1
  224. package/lib/module/ui/utils/authHelpers.js +154 -0
  225. package/lib/module/ui/utils/authHelpers.js.map +1 -0
  226. package/lib/module/ui/utils/avatarUtils.js +18 -61
  227. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  228. package/lib/module/web.js +75 -0
  229. package/lib/module/web.js.map +1 -0
  230. package/lib/typescript/commonjs/core/HttpService.d.ts +5 -0
  231. package/lib/typescript/commonjs/core/HttpService.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/index.d.ts +6 -0
  234. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
  239. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +76 -0
  241. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
  243. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  244. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +1 -1
  245. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +1 -1
  247. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
  249. package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  251. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
  257. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/ui/styles/fonts.d.ts +7 -7
  270. package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts +99 -0
  272. package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/web.d.ts +54 -0
  275. package/lib/typescript/commonjs/web.d.ts.map +1 -0
  276. package/lib/typescript/module/core/HttpService.d.ts +5 -0
  277. package/lib/typescript/module/core/HttpService.d.ts.map +1 -1
  278. package/lib/typescript/module/crypto/keyManager.d.ts.map +1 -1
  279. package/lib/typescript/module/index.d.ts +6 -0
  280. package/lib/typescript/module/index.d.ts.map +1 -1
  281. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  282. package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +1 -1
  283. package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
  284. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
  285. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
  286. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +76 -0
  287. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
  288. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
  289. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  290. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +1 -1
  291. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  292. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +1 -1
  293. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  294. package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
  295. package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
  296. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  297. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  298. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  299. package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  300. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  301. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  302. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
  303. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
  304. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  305. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  306. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  307. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  308. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  309. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  310. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  311. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  312. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  313. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  314. package/lib/typescript/module/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
  315. package/lib/typescript/module/ui/styles/fonts.d.ts +7 -7
  316. package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -1
  317. package/lib/typescript/module/ui/utils/authHelpers.d.ts +99 -0
  318. package/lib/typescript/module/ui/utils/authHelpers.d.ts.map +1 -0
  319. package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
  320. package/lib/typescript/module/web.d.ts +54 -0
  321. package/lib/typescript/module/web.d.ts.map +1 -0
  322. package/package.json +27 -41
  323. package/src/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  324. package/src/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  325. package/src/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  326. package/src/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  327. package/src/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  328. package/src/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  329. package/src/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  330. package/src/core/HttpService.ts +91 -0
  331. package/src/core/mixins/OxyServices.assets.ts +1 -1
  332. package/src/crypto/keyManager.ts +23 -22
  333. package/src/i18n/locales/en-US.json +3 -3
  334. package/src/i18n/locales/es-ES.json +240 -19
  335. package/src/index.ts +25 -0
  336. package/src/ui/components/Avatar.tsx +1 -1
  337. package/src/ui/components/FollowButton.tsx +1 -1
  338. package/src/ui/components/FontLoader.tsx +34 -34
  339. package/src/ui/components/Header.tsx +4 -4
  340. package/src/ui/components/OxyPayButton.tsx +1 -1
  341. package/src/ui/components/OxySignInButton.tsx +2 -1
  342. package/src/ui/components/ProfileCard.tsx +1 -1
  343. package/src/ui/components/SectionTitle.tsx +1 -1
  344. package/src/ui/components/StepBasedScreen.tsx +2 -1
  345. package/src/ui/components/feedback/feedbackStyles.ts +2 -1
  346. package/src/ui/components/fileManagement/AnimatedButton.tsx +56 -0
  347. package/src/ui/components/fileManagement/styles.ts +17 -17
  348. package/src/ui/components/payment/paymentStyles.ts +7 -7
  349. package/src/ui/hooks/mutations/mutationFactory.ts +215 -0
  350. package/src/ui/hooks/mutations/useAccountMutations.ts +48 -136
  351. package/src/ui/hooks/queries/useAccountQueries.ts +6 -33
  352. package/src/ui/hooks/queries/useServicesQueries.ts +6 -32
  353. package/src/ui/hooks/useFileFiltering.ts +115 -0
  354. package/src/ui/navigation/routes.ts +3 -0
  355. package/src/ui/screens/AccountCenterScreen.tsx +4 -2
  356. package/src/ui/screens/AccountOverviewScreen.tsx +13 -5
  357. package/src/ui/screens/AccountSettingsScreen.tsx +35 -1511
  358. package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
  359. package/src/ui/screens/AccountVerificationScreen.tsx +3 -1
  360. package/src/ui/screens/AppInfoScreen.tsx +2 -2
  361. package/src/ui/screens/EditProfileFieldScreen.tsx +685 -0
  362. package/src/ui/screens/FileManagementScreen.tsx +35 -17
  363. package/src/ui/screens/HistoryViewScreen.tsx +9 -3
  364. package/src/ui/screens/LanguageSelectorScreen.tsx +4 -2
  365. package/src/ui/screens/LegalDocumentsScreen.tsx +3 -1
  366. package/src/ui/screens/PremiumSubscriptionScreen.tsx +11 -13
  367. package/src/ui/screens/PrivacySettingsScreen.tsx +12 -4
  368. package/src/ui/screens/SearchSettingsScreen.tsx +3 -1
  369. package/src/ui/screens/SessionManagementScreen.tsx +15 -5
  370. package/src/ui/screens/UserLinksScreen.tsx +3 -1
  371. package/src/ui/screens/WelcomeNewUserScreen.tsx +2 -1
  372. package/src/ui/screens/karma/KarmaAboutScreen.tsx +6 -8
  373. package/src/ui/screens/karma/KarmaCenterScreen.tsx +3 -3
  374. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +3 -3
  375. package/src/ui/styles/authStyles.ts +4 -4
  376. package/src/ui/styles/fonts.ts +26 -26
  377. package/src/ui/styles/theme.ts +3 -5
  378. package/src/ui/utils/authHelpers.ts +183 -0
  379. package/src/ui/utils/avatarUtils.ts +25 -65
  380. package/src/web.ts +230 -0
  381. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  382. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  383. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  384. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  385. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  386. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  387. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  388. package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  389. package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  390. package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  391. package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  392. package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  393. package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  394. package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  395. package/lib/commonjs/ui/components/profile/EditBioModal.js +0 -181
  396. package/lib/commonjs/ui/components/profile/EditBioModal.js.map +0 -1
  397. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +0 -204
  398. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +0 -1
  399. package/lib/commonjs/ui/components/profile/EditEmailModal.js +0 -184
  400. package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +0 -1
  401. package/lib/commonjs/ui/components/profile/EditFieldModal.js +0 -412
  402. package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +0 -1
  403. package/lib/commonjs/ui/components/profile/EditLinksModal.js +0 -315
  404. package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +0 -1
  405. package/lib/commonjs/ui/components/profile/EditLocationModal.js +0 -273
  406. package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +0 -1
  407. package/lib/commonjs/ui/components/profile/EditUsernameModal.js +0 -180
  408. package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +0 -1
  409. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  410. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  411. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  412. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  413. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  414. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  415. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  416. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  417. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  418. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  419. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  420. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  421. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  422. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  423. package/lib/module/ui/components/profile/EditBioModal.js +0 -175
  424. package/lib/module/ui/components/profile/EditBioModal.js.map +0 -1
  425. package/lib/module/ui/components/profile/EditDisplayNameModal.js +0 -198
  426. package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +0 -1
  427. package/lib/module/ui/components/profile/EditEmailModal.js +0 -178
  428. package/lib/module/ui/components/profile/EditEmailModal.js.map +0 -1
  429. package/lib/module/ui/components/profile/EditFieldModal.js +0 -406
  430. package/lib/module/ui/components/profile/EditFieldModal.js.map +0 -1
  431. package/lib/module/ui/components/profile/EditLinksModal.js +0 -309
  432. package/lib/module/ui/components/profile/EditLinksModal.js.map +0 -1
  433. package/lib/module/ui/components/profile/EditLocationModal.js +0 -267
  434. package/lib/module/ui/components/profile/EditLocationModal.js.map +0 -1
  435. package/lib/module/ui/components/profile/EditUsernameModal.js +0 -174
  436. package/lib/module/ui/components/profile/EditUsernameModal.js.map +0 -1
  437. package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts +0 -11
  438. package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts.map +0 -1
  439. package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
  440. package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
  441. package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts +0 -11
  442. package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts.map +0 -1
  443. package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +0 -110
  444. package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +0 -1
  445. package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts +0 -18
  446. package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts.map +0 -1
  447. package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts +0 -20
  448. package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts.map +0 -1
  449. package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts +0 -11
  450. package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
  451. package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts +0 -11
  452. package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts.map +0 -1
  453. package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
  454. package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
  455. package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts +0 -11
  456. package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts.map +0 -1
  457. package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +0 -110
  458. package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +0 -1
  459. package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts +0 -18
  460. package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts.map +0 -1
  461. package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts +0 -20
  462. package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts.map +0 -1
  463. package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts +0 -11
  464. package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
  465. package/src/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  466. package/src/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  467. package/src/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  468. package/src/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  469. package/src/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  470. package/src/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  471. package/src/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  472. package/src/ui/components/profile/EditBioModal.tsx +0 -184
  473. package/src/ui/components/profile/EditDisplayNameModal.tsx +0 -203
  474. package/src/ui/components/profile/EditEmailModal.tsx +0 -188
  475. package/src/ui/components/profile/EditFieldModal.tsx +0 -465
  476. package/src/ui/components/profile/EditLinksModal.tsx +0 -316
  477. package/src/ui/components/profile/EditLocationModal.tsx +0 -278
  478. package/src/ui/components/profile/EditUsernameModal.tsx +0 -183
@@ -0,0 +1,635 @@
1
+ "use strict";
2
+
3
+ import React, { useState, useEffect, useCallback, useMemo } from 'react';
4
+ import { View, Text, TextInput, TouchableOpacity, StyleSheet, ScrollView, Platform, Image, KeyboardAvoidingView } from 'react-native';
5
+ import { Ionicons } from '@expo/vector-icons';
6
+ import { useThemeStyles } from "../hooks/useThemeStyles.js";
7
+ import { useColorScheme } from "../hooks/use-color-scheme.js";
8
+ import { normalizeTheme } from "../utils/themeUtils.js";
9
+ import { Header } from "../components/index.js";
10
+ import { useI18n } from "../hooks/useI18n.js";
11
+ import { useOxy } from "../context/OxyContext.js";
12
+ import { useProfileEditing } from "../hooks/useProfileEditing.js";
13
+ import { fontFamilies } from "../styles/fonts.js";
14
+ import { toast } from "../../lib/sonner.js";
15
+ import { EMAIL_REGEX } from "../../utils/validationUtils.js";
16
+
17
+ /**
18
+ * Field types supported by EditProfileFieldScreen
19
+ */
20
+
21
+ /**
22
+ * Field configuration for each field type
23
+ */
24
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
25
+ /**
26
+ * EditProfileFieldScreen - A dedicated screen for editing profile fields
27
+ *
28
+ * Navigate to this screen with a fieldType prop to edit that specific field.
29
+ *
30
+ * @example
31
+ * navigate('EditProfileField', { fieldType: 'username' })
32
+ */
33
+ const EditProfileFieldScreen = ({
34
+ goBack,
35
+ onClose,
36
+ theme,
37
+ fieldType = 'displayName'
38
+ }) => {
39
+ const {
40
+ user
41
+ } = useOxy();
42
+ const {
43
+ t
44
+ } = useI18n();
45
+ const {
46
+ saveProfile,
47
+ updateField,
48
+ isSaving
49
+ } = useProfileEditing();
50
+ const colorScheme = useColorScheme();
51
+ const normalizedTheme = normalizeTheme(theme);
52
+ const themeStyles = useThemeStyles(normalizedTheme, colorScheme);
53
+ const colors = themeStyles.colors;
54
+
55
+ // State for field values
56
+ const [fieldValues, setFieldValues] = useState({});
57
+ const [fieldErrors, setFieldErrors] = useState({});
58
+
59
+ // State for list fields (locations, links)
60
+ const [listItems, setListItems] = useState([]);
61
+ const [newItemValue, setNewItemValue] = useState('');
62
+
63
+ // Get field configuration based on fieldType
64
+ const fieldConfig = useMemo(() => {
65
+ switch (fieldType) {
66
+ case 'displayName':
67
+ return {
68
+ title: t('editProfile.items.displayName.title') || 'Display Name',
69
+ subtitle: t('editProfile.items.displayName.subtitle') || 'This is how your name will appear to others',
70
+ fields: [{
71
+ key: 'displayName',
72
+ label: t('editProfile.items.displayName.firstName') || 'First Name',
73
+ placeholder: t('editProfile.items.displayName.firstNamePlaceholder') || 'Enter first name'
74
+ }, {
75
+ key: 'lastName',
76
+ label: t('editProfile.items.displayName.lastName') || 'Last Name',
77
+ placeholder: t('editProfile.items.displayName.lastNamePlaceholder') || 'Enter last name (optional)'
78
+ }]
79
+ };
80
+ case 'username':
81
+ return {
82
+ title: t('editProfile.items.username.title') || 'Username',
83
+ subtitle: t('editProfile.items.username.subtitle') || 'Your unique identifier on the platform',
84
+ fields: [{
85
+ key: 'username',
86
+ label: t('editProfile.items.username.label') || 'Username',
87
+ placeholder: t('editProfile.items.username.placeholder') || 'Choose a username',
88
+ validation: value => {
89
+ if (!value.trim()) {
90
+ return t('editProfile.items.username.required') || 'Username is required';
91
+ }
92
+ if (value.length < 3) {
93
+ return t('editProfile.items.username.tooShort') || 'Username must be at least 3 characters';
94
+ }
95
+ return undefined;
96
+ },
97
+ inputProps: {
98
+ autoCapitalize: 'none',
99
+ autoCorrect: false
100
+ }
101
+ }]
102
+ };
103
+ case 'email':
104
+ return {
105
+ title: t('editProfile.items.email.title') || 'Email',
106
+ subtitle: t('editProfile.items.email.subtitle') || 'Your primary email address',
107
+ fields: [{
108
+ key: 'email',
109
+ label: t('editProfile.items.email.label') || 'Email Address',
110
+ placeholder: t('editProfile.items.email.placeholder') || 'Enter your email address',
111
+ type: 'email',
112
+ validation: value => {
113
+ if (!EMAIL_REGEX.test(value)) {
114
+ return t('editProfile.items.email.invalid') || 'Please enter a valid email address';
115
+ }
116
+ return undefined;
117
+ },
118
+ inputProps: {
119
+ keyboardType: 'email-address',
120
+ autoCapitalize: 'none',
121
+ autoCorrect: false
122
+ }
123
+ }]
124
+ };
125
+ case 'bio':
126
+ return {
127
+ title: t('editProfile.items.bio.title') || 'Bio',
128
+ subtitle: t('editProfile.items.bio.subtitle') || 'Tell people a bit about yourself',
129
+ fields: [{
130
+ key: 'bio',
131
+ label: t('editProfile.items.bio.label') || 'Bio',
132
+ placeholder: t('editProfile.items.bio.placeholder') || 'Tell people about yourself...',
133
+ type: 'textarea',
134
+ inputProps: {
135
+ multiline: true,
136
+ numberOfLines: 6,
137
+ textAlignVertical: 'top'
138
+ }
139
+ }]
140
+ };
141
+ case 'phone':
142
+ return {
143
+ title: t('editProfile.items.phone.title') || 'Phone Number',
144
+ subtitle: t('editProfile.items.phone.subtitle') || 'Your contact phone number',
145
+ fields: [{
146
+ key: 'phone',
147
+ label: t('editProfile.items.phone.label') || 'Phone Number',
148
+ placeholder: t('editProfile.items.phone.placeholder') || 'Enter your phone number',
149
+ inputProps: {
150
+ keyboardType: 'phone-pad',
151
+ autoCapitalize: 'none',
152
+ autoCorrect: false
153
+ }
154
+ }]
155
+ };
156
+ case 'address':
157
+ return {
158
+ title: t('editProfile.items.address.title') || 'Address',
159
+ subtitle: t('editProfile.items.address.subtitle') || 'Your physical address',
160
+ fields: [{
161
+ key: 'address',
162
+ label: t('editProfile.items.address.label') || 'Address',
163
+ placeholder: t('editProfile.items.address.placeholder') || 'Enter your address',
164
+ type: 'textarea',
165
+ inputProps: {
166
+ multiline: true,
167
+ numberOfLines: 3,
168
+ textAlignVertical: 'top'
169
+ }
170
+ }]
171
+ };
172
+ case 'birthday':
173
+ return {
174
+ title: t('editProfile.items.birthday.title') || 'Birthday',
175
+ subtitle: t('editProfile.items.birthday.subtitle') || 'Your date of birth',
176
+ fields: [{
177
+ key: 'birthday',
178
+ label: t('editProfile.items.birthday.label') || 'Birthday',
179
+ placeholder: t('editProfile.items.birthday.placeholder') || 'YYYY-MM-DD',
180
+ inputProps: {
181
+ autoCapitalize: 'none',
182
+ autoCorrect: false
183
+ }
184
+ }]
185
+ };
186
+ case 'locations':
187
+ return {
188
+ title: t('editProfile.items.locations.title') || 'Locations',
189
+ subtitle: t('editProfile.items.locations.subtitle') || 'Places you\'ve been or live',
190
+ fields: [],
191
+ isList: true
192
+ };
193
+ case 'links':
194
+ return {
195
+ title: t('editProfile.items.links.title') || 'Links',
196
+ subtitle: t('editProfile.items.links.subtitle') || 'Share your website, social profiles, etc.',
197
+ fields: [],
198
+ isList: true
199
+ };
200
+ default:
201
+ return {
202
+ title: 'Edit Field',
203
+ fields: []
204
+ };
205
+ }
206
+ }, [fieldType, t]);
207
+
208
+ // Initialize field values from user data
209
+ useEffect(() => {
210
+ if (!user) return;
211
+
212
+ // Cast user to any to access dynamic properties
213
+ const userData = user;
214
+ if (fieldConfig.isList) {
215
+ if (fieldType === 'locations') {
216
+ const locations = Array.isArray(userData.locations) ? userData.locations : [];
217
+ setListItems(locations.map((loc, i) => ({
218
+ id: loc.id || `location-${i}`,
219
+ name: loc.name || '',
220
+ ...loc
221
+ })));
222
+ } else if (fieldType === 'links') {
223
+ const linksMetadata = Array.isArray(userData.linksMetadata) ? userData.linksMetadata : [];
224
+ const links = Array.isArray(userData.links) ? userData.links : [];
225
+ // Use linksMetadata if available, otherwise convert links array
226
+ if (linksMetadata.length > 0) {
227
+ setListItems(linksMetadata.map((link, i) => ({
228
+ id: link.id || `link-${i}`,
229
+ url: link.url || link.link || '',
230
+ title: link.title || '',
231
+ ...link
232
+ })));
233
+ } else {
234
+ setListItems(links.map((item, i) => {
235
+ const url = typeof item === 'string' ? item : item.link || item.url || '';
236
+ return {
237
+ id: `link-${i}`,
238
+ url,
239
+ title: url.replace(/^https?:\/\//, '').replace(/\/$/, '')
240
+ };
241
+ }));
242
+ }
243
+ }
244
+ } else {
245
+ const initialValues = {};
246
+ fieldConfig.fields.forEach(field => {
247
+ if (field.key === 'displayName') {
248
+ initialValues[field.key] = String(userData.displayName || userData.name?.first || '');
249
+ } else if (field.key === 'lastName') {
250
+ initialValues[field.key] = String(userData.lastName || userData.name?.last || '');
251
+ } else if (field.key === 'birthday') {
252
+ initialValues[field.key] = String(userData.birthday || userData.dateOfBirth || '');
253
+ } else if (field.key === 'address') {
254
+ initialValues[field.key] = String(userData.address || userData.location || '');
255
+ } else {
256
+ initialValues[field.key] = String(userData[field.key] || '');
257
+ }
258
+ });
259
+ setFieldValues(initialValues);
260
+ }
261
+ }, [user, fieldConfig, fieldType]);
262
+
263
+ // Field change handler
264
+ const handleFieldChange = useCallback((key, value) => {
265
+ setFieldValues(prev => ({
266
+ ...prev,
267
+ [key]: value
268
+ }));
269
+ if (fieldErrors[key]) {
270
+ setFieldErrors(prev => ({
271
+ ...prev,
272
+ [key]: undefined
273
+ }));
274
+ }
275
+ }, [fieldErrors]);
276
+
277
+ // Validate all fields
278
+ const validateFields = useCallback(() => {
279
+ const errors = {};
280
+ let isValid = true;
281
+ fieldConfig.fields.forEach(field => {
282
+ if (field.validation) {
283
+ const error = field.validation(fieldValues[field.key] || '');
284
+ if (error) {
285
+ errors[field.key] = error;
286
+ isValid = false;
287
+ }
288
+ }
289
+ });
290
+ setFieldErrors(errors);
291
+ return isValid;
292
+ }, [fieldConfig.fields, fieldValues]);
293
+
294
+ // Add item to list
295
+ const handleAddItem = useCallback(() => {
296
+ if (!newItemValue.trim()) return;
297
+ if (fieldType === 'locations') {
298
+ const newItem = {
299
+ id: `location-${Date.now()}`,
300
+ name: newItemValue.trim()
301
+ };
302
+ setListItems(prev => [...prev, newItem]);
303
+ } else if (fieldType === 'links') {
304
+ const newItem = {
305
+ id: `link-${Date.now()}`,
306
+ url: newItemValue.trim(),
307
+ title: newItemValue.replace(/^https?:\/\//, '').replace(/\/$/, '')
308
+ };
309
+ setListItems(prev => [...prev, newItem]);
310
+ }
311
+ setNewItemValue('');
312
+ }, [newItemValue, fieldType]);
313
+
314
+ // Remove item from list
315
+ const handleRemoveItem = useCallback(id => {
316
+ setListItems(prev => prev.filter(item => item.id !== id));
317
+ }, []);
318
+
319
+ // Save handler
320
+ const handleSave = async () => {
321
+ if (fieldConfig.isList) {
322
+ let success = false;
323
+ if (fieldType === 'locations') {
324
+ success = await saveProfile({
325
+ locations: listItems
326
+ });
327
+ } else if (fieldType === 'links') {
328
+ success = await saveProfile({
329
+ linksMetadata: listItems,
330
+ links: listItems.map(item => item.url)
331
+ });
332
+ }
333
+ if (success) {
334
+ toast.success(t('common.saved') || 'Saved successfully');
335
+ (onClose || goBack)?.();
336
+ }
337
+ } else {
338
+ if (!validateFields()) return;
339
+ let success = false;
340
+ if (fieldType === 'displayName') {
341
+ success = await saveProfile({
342
+ displayName: fieldValues.displayName,
343
+ lastName: fieldValues.lastName
344
+ });
345
+ } else {
346
+ const key = fieldConfig.fields[0]?.key;
347
+ if (key) {
348
+ success = await updateField(key, fieldValues[key]);
349
+ }
350
+ }
351
+ if (success) {
352
+ toast.success(t('common.saved') || 'Saved successfully');
353
+ (onClose || goBack)?.();
354
+ }
355
+ }
356
+ };
357
+
358
+ // Render a single field input
359
+ const renderField = (field, index) => {
360
+ const isTextarea = field.type === 'textarea';
361
+ return /*#__PURE__*/_jsxs(View, {
362
+ style: styles.inputGroup,
363
+ children: [/*#__PURE__*/_jsx(Text, {
364
+ style: [styles.label, {
365
+ color: colors.text
366
+ }],
367
+ children: field.label
368
+ }), /*#__PURE__*/_jsx(TextInput, {
369
+ style: [isTextarea ? styles.textArea : styles.input, {
370
+ backgroundColor: colors.card,
371
+ color: colors.text,
372
+ borderColor: fieldErrors[field.key] ? '#FF3B30' : colors.border
373
+ }],
374
+ value: fieldValues[field.key] || '',
375
+ onChangeText: value => handleFieldChange(field.key, value),
376
+ placeholder: field.placeholder,
377
+ placeholderTextColor: colors.secondaryText,
378
+ autoFocus: index === 0,
379
+ selectionColor: colors.tint,
380
+ ...field.inputProps
381
+ }), fieldErrors[field.key] && /*#__PURE__*/_jsx(Text, {
382
+ style: styles.errorText,
383
+ children: fieldErrors[field.key]
384
+ })]
385
+ }, field.key);
386
+ };
387
+
388
+ // Render list content (locations or links)
389
+ const renderListContent = () => {
390
+ const addLabel = fieldType === 'locations' ? t('editProfile.items.locations.add') || 'Add Location' : t('editProfile.items.links.add') || 'Add Link';
391
+ const placeholder = fieldType === 'locations' ? t('editProfile.items.locations.placeholder') || 'Enter location name' : t('editProfile.items.links.placeholder') || 'Enter URL';
392
+ const listTitle = fieldType === 'locations' ? t('editProfile.items.locations.yourLocations') || 'Your Locations' : t('editProfile.items.links.yourLinks') || 'Your Links';
393
+ return /*#__PURE__*/_jsxs(_Fragment, {
394
+ children: [/*#__PURE__*/_jsxs(View, {
395
+ style: styles.inputGroup,
396
+ children: [/*#__PURE__*/_jsx(Text, {
397
+ style: [styles.label, {
398
+ color: colors.text
399
+ }],
400
+ children: addLabel
401
+ }), /*#__PURE__*/_jsxs(View, {
402
+ style: styles.addItemRow,
403
+ children: [/*#__PURE__*/_jsx(TextInput, {
404
+ style: [styles.input, {
405
+ backgroundColor: colors.card,
406
+ color: colors.text,
407
+ borderColor: colors.border,
408
+ flex: 1
409
+ }],
410
+ value: newItemValue,
411
+ onChangeText: setNewItemValue,
412
+ placeholder: placeholder,
413
+ placeholderTextColor: colors.secondaryText,
414
+ selectionColor: colors.tint,
415
+ autoCapitalize: "none",
416
+ autoCorrect: false,
417
+ onSubmitEditing: handleAddItem,
418
+ returnKeyType: "done",
419
+ keyboardType: fieldType === 'links' ? 'url' : 'default'
420
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
421
+ style: [styles.addButton, {
422
+ backgroundColor: newItemValue.trim() ? colors.tint : colors.border
423
+ }],
424
+ onPress: handleAddItem,
425
+ disabled: !newItemValue.trim(),
426
+ children: /*#__PURE__*/_jsx(Ionicons, {
427
+ name: "add",
428
+ size: 20,
429
+ color: "#fff"
430
+ })
431
+ })]
432
+ })]
433
+ }), listItems.length > 0 && /*#__PURE__*/_jsxs(View, {
434
+ style: styles.listSection,
435
+ children: [/*#__PURE__*/_jsxs(Text, {
436
+ style: [styles.listTitle, {
437
+ color: colors.text
438
+ }],
439
+ children: [listTitle, " (", listItems.length, ")"]
440
+ }), listItems.map(item => /*#__PURE__*/_jsxs(View, {
441
+ style: [styles.listItem, {
442
+ backgroundColor: colors.card,
443
+ borderColor: colors.border
444
+ }],
445
+ children: [fieldType === 'links' && item.image && /*#__PURE__*/_jsx(Image, {
446
+ source: {
447
+ uri: item.image
448
+ },
449
+ style: styles.linkImage
450
+ }), /*#__PURE__*/_jsxs(View, {
451
+ style: styles.listItemContent,
452
+ children: [/*#__PURE__*/_jsx(Text, {
453
+ style: [styles.listItemTitle, {
454
+ color: colors.text
455
+ }],
456
+ numberOfLines: 1,
457
+ children: fieldType === 'locations' ? item.name : item.title || item.url
458
+ }), fieldType === 'links' && /*#__PURE__*/_jsx(Text, {
459
+ style: [styles.listItemSubtitle, {
460
+ color: colors.secondaryText
461
+ }],
462
+ numberOfLines: 1,
463
+ children: item.url
464
+ })]
465
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
466
+ onPress: () => handleRemoveItem(item.id),
467
+ style: styles.removeButton,
468
+ children: /*#__PURE__*/_jsx(Ionicons, {
469
+ name: "trash-outline",
470
+ size: 18,
471
+ color: "#FF3B30"
472
+ })
473
+ })]
474
+ }, item.id))]
475
+ })]
476
+ });
477
+ };
478
+ return /*#__PURE__*/_jsxs(KeyboardAvoidingView, {
479
+ style: [styles.container, {
480
+ backgroundColor: normalizedTheme === 'dark' ? '#000000' : '#F5F5F5'
481
+ }],
482
+ behavior: Platform.OS === 'ios' ? 'padding' : undefined,
483
+ children: [/*#__PURE__*/_jsx(Header, {
484
+ title: "",
485
+ subtitle: "",
486
+ theme: normalizedTheme,
487
+ onBack: onClose || goBack,
488
+ variant: "minimal",
489
+ elevation: "none",
490
+ rightAction: {
491
+ text: isSaving ? t('common.saving') || 'Saving...' : t('common.save') || 'Save',
492
+ onPress: handleSave,
493
+ disabled: isSaving,
494
+ loading: isSaving
495
+ }
496
+ }), /*#__PURE__*/_jsxs(ScrollView, {
497
+ style: styles.content,
498
+ contentContainerStyle: styles.contentContainer,
499
+ showsVerticalScrollIndicator: false,
500
+ keyboardShouldPersistTaps: "handled",
501
+ children: [/*#__PURE__*/_jsxs(View, {
502
+ style: styles.titleContainer,
503
+ children: [/*#__PURE__*/_jsx(Text, {
504
+ style: [styles.bigTitle, {
505
+ color: colors.text
506
+ }],
507
+ children: fieldConfig.title
508
+ }), fieldConfig.subtitle && /*#__PURE__*/_jsx(Text, {
509
+ style: [styles.bigSubtitle, {
510
+ color: colors.secondaryText
511
+ }],
512
+ children: fieldConfig.subtitle
513
+ })]
514
+ }), /*#__PURE__*/_jsx(View, {
515
+ style: [styles.formCard, {
516
+ backgroundColor: colors.card
517
+ }],
518
+ children: fieldConfig.isList ? renderListContent() : fieldConfig.fields.map(renderField)
519
+ })]
520
+ })]
521
+ });
522
+ };
523
+ const styles = StyleSheet.create({
524
+ container: {
525
+ flex: 1
526
+ },
527
+ content: {
528
+ flex: 1
529
+ },
530
+ contentContainer: {
531
+ padding: 16,
532
+ paddingTop: 24,
533
+ paddingBottom: 40
534
+ },
535
+ titleContainer: {
536
+ marginBottom: 24
537
+ },
538
+ bigTitle: {
539
+ fontSize: 34,
540
+ fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
541
+ fontFamily: fontFamilies.interBold,
542
+ lineHeight: 40,
543
+ marginBottom: 8,
544
+ letterSpacing: -0.5
545
+ },
546
+ bigSubtitle: {
547
+ fontSize: 16,
548
+ lineHeight: 22,
549
+ opacity: 0.7,
550
+ marginTop: 4
551
+ },
552
+ formCard: {
553
+ borderRadius: 16,
554
+ padding: 16,
555
+ gap: 16
556
+ },
557
+ inputGroup: {
558
+ gap: 8
559
+ },
560
+ label: {
561
+ fontSize: 14,
562
+ fontWeight: '600',
563
+ fontFamily: fontFamilies.interSemiBold
564
+ },
565
+ input: {
566
+ borderWidth: StyleSheet.hairlineWidth,
567
+ borderRadius: 12,
568
+ padding: 16,
569
+ fontSize: 16,
570
+ minHeight: 52
571
+ },
572
+ textArea: {
573
+ borderWidth: StyleSheet.hairlineWidth,
574
+ borderRadius: 12,
575
+ padding: 16,
576
+ fontSize: 16,
577
+ minHeight: 140
578
+ },
579
+ errorText: {
580
+ fontSize: 12,
581
+ color: '#FF3B30',
582
+ marginTop: 4
583
+ },
584
+ addItemRow: {
585
+ flexDirection: 'row',
586
+ gap: 8,
587
+ alignItems: 'center'
588
+ },
589
+ addButton: {
590
+ width: 52,
591
+ height: 52,
592
+ borderRadius: 12,
593
+ alignItems: 'center',
594
+ justifyContent: 'center'
595
+ },
596
+ listSection: {
597
+ marginTop: 8
598
+ },
599
+ listTitle: {
600
+ fontSize: 16,
601
+ fontWeight: '600',
602
+ fontFamily: fontFamilies.interSemiBold,
603
+ marginBottom: 12
604
+ },
605
+ listItem: {
606
+ flexDirection: 'row',
607
+ alignItems: 'center',
608
+ padding: 16,
609
+ borderRadius: 12,
610
+ borderWidth: StyleSheet.hairlineWidth,
611
+ gap: 12,
612
+ marginBottom: 8
613
+ },
614
+ listItemContent: {
615
+ flex: 1,
616
+ gap: 4
617
+ },
618
+ listItemTitle: {
619
+ fontSize: 16,
620
+ fontWeight: '500'
621
+ },
622
+ listItemSubtitle: {
623
+ fontSize: 13
624
+ },
625
+ linkImage: {
626
+ width: 40,
627
+ height: 40,
628
+ borderRadius: 8
629
+ },
630
+ removeButton: {
631
+ padding: 8
632
+ }
633
+ });
634
+ export default /*#__PURE__*/React.memo(EditProfileFieldScreen);
635
+ //# sourceMappingURL=EditProfileFieldScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","useEffect","useCallback","useMemo","View","Text","TextInput","TouchableOpacity","StyleSheet","ScrollView","Platform","Image","KeyboardAvoidingView","Ionicons","useThemeStyles","useColorScheme","normalizeTheme","Header","useI18n","useOxy","useProfileEditing","fontFamilies","toast","EMAIL_REGEX","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","EditProfileFieldScreen","goBack","onClose","theme","fieldType","user","t","saveProfile","updateField","isSaving","colorScheme","normalizedTheme","themeStyles","colors","fieldValues","setFieldValues","fieldErrors","setFieldErrors","listItems","setListItems","newItemValue","setNewItemValue","fieldConfig","title","subtitle","fields","key","label","placeholder","validation","value","trim","length","undefined","inputProps","autoCapitalize","autoCorrect","type","test","keyboardType","multiline","numberOfLines","textAlignVertical","isList","userData","locations","Array","isArray","map","loc","i","id","name","linksMetadata","links","link","url","item","replace","initialValues","forEach","field","String","displayName","first","lastName","last","birthday","dateOfBirth","address","location","handleFieldChange","prev","validateFields","errors","isValid","error","handleAddItem","newItem","Date","now","handleRemoveItem","filter","handleSave","success","renderField","index","isTextarea","style","styles","inputGroup","children","color","text","textArea","input","backgroundColor","card","borderColor","border","onChangeText","placeholderTextColor","secondaryText","autoFocus","selectionColor","tint","errorText","renderListContent","addLabel","listTitle","addItemRow","flex","onSubmitEditing","returnKeyType","addButton","onPress","disabled","size","listSection","listItem","image","source","uri","linkImage","listItemContent","listItemTitle","listItemSubtitle","removeButton","container","behavior","OS","onBack","variant","elevation","rightAction","loading","content","contentContainerStyle","contentContainer","showsVerticalScrollIndicator","keyboardShouldPersistTaps","titleContainer","bigTitle","bigSubtitle","formCard","create","padding","paddingTop","paddingBottom","marginBottom","fontSize","fontWeight","fontFamily","interBold","lineHeight","letterSpacing","opacity","marginTop","borderRadius","gap","interSemiBold","borderWidth","hairlineWidth","minHeight","flexDirection","alignItems","width","height","justifyContent","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/EditProfileFieldScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACxE,SACIC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,QAAQ,EACRC,KAAK,EAELC,oBAAoB,QACjB,cAAc;AACrB,SAASC,QAAQ,QAAQ,oBAAoB;AAE7C,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,cAAc,QAAQ,8BAA2B;AAC1D,SAASC,cAAc,QAAQ,wBAAqB;AACpD,SAASC,MAAM,QAAQ,wBAAe;AACtC,SAASC,OAAO,QAAQ,qBAAkB;AAC1C,SAASC,MAAM,QAAQ,0BAAuB;AAC9C,SAASC,iBAAiB,QAAQ,+BAA4B;AAC9D,SAASC,YAAY,QAAQ,oBAAiB;AAC9C,SAASC,KAAK,QAAQ,qBAAkB;AACxC,SAASC,WAAW,QAAQ,gCAA6B;;AAEzD;AACA;AACA;;AAaA;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAA6D,GAAGA,CAAC;EACnEC,MAAM;EACNC,OAAO;EACPC,KAAK;EACLC,SAAS,GAAG;AAChB,CAAC,KAAK;EACF,MAAM;IAAEC;EAAK,CAAC,GAAGhB,MAAM,CAAC,CAAC;EACzB,MAAM;IAAEiB;EAAE,CAAC,GAAGlB,OAAO,CAAC,CAAC;EACvB,MAAM;IAAEmB,WAAW;IAAEC,WAAW;IAAEC;EAAS,CAAC,GAAGnB,iBAAiB,CAAC,CAAC;EAClE,MAAMoB,WAAW,GAAGzB,cAAc,CAAC,CAAC;EACp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