@oxyhq/services 5.21.7 → 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 (392) 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/i18n/locales/en-US.json +3 -3
  21. package/lib/commonjs/i18n/locales/es-ES.json +240 -19
  22. package/lib/commonjs/ui/components/Avatar.js +1 -1
  23. package/lib/commonjs/ui/components/Avatar.js.map +1 -1
  24. package/lib/commonjs/ui/components/FollowButton.js +1 -1
  25. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  26. package/lib/commonjs/ui/components/FontLoader.js +34 -34
  27. package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
  28. package/lib/commonjs/ui/components/Header.js +4 -4
  29. package/lib/commonjs/ui/components/Header.js.map +1 -1
  30. package/lib/commonjs/ui/components/OxyPayButton.js +1 -1
  31. package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
  32. package/lib/commonjs/ui/components/OxySignInButton.js +2 -1
  33. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  34. package/lib/commonjs/ui/components/ProfileCard.js +1 -1
  35. package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
  36. package/lib/commonjs/ui/components/SectionTitle.js +1 -1
  37. package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
  38. package/lib/commonjs/ui/components/StepBasedScreen.js +2 -1
  39. package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
  40. package/lib/commonjs/ui/components/feedback/feedbackStyles.js +2 -1
  41. package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -1
  42. package/lib/commonjs/ui/components/fileManagement/styles.js +17 -17
  43. package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
  44. package/lib/commonjs/ui/components/payment/paymentStyles.js +7 -7
  45. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
  46. package/lib/commonjs/ui/navigation/routes.js +2 -0
  47. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  48. package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
  49. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  50. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +13 -5
  51. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  52. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +273 -1820
  53. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  54. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
  55. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  56. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -1
  57. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  58. package/lib/commonjs/ui/screens/AppInfoScreen.js +2 -2
  59. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  60. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +640 -0
  61. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
  62. package/lib/commonjs/ui/screens/FileManagementScreen.js +39 -21
  63. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -3
  65. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -2
  67. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  68. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +3 -1
  69. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +11 -12
  71. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +12 -4
  73. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -1
  75. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/SessionManagementScreen.js +15 -5
  77. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  78. package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -1
  79. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -1
  81. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +2 -4
  83. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -3
  85. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +3 -3
  87. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  88. package/lib/commonjs/ui/styles/authStyles.js +5 -4
  89. package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
  90. package/lib/commonjs/ui/styles/fonts.js +27 -27
  91. package/lib/commonjs/ui/styles/fonts.js.map +1 -1
  92. package/lib/commonjs/ui/styles/theme.js +3 -3
  93. package/lib/commonjs/ui/styles/theme.js.map +1 -1
  94. package/lib/commonjs/web.js +682 -0
  95. package/lib/commonjs/web.js.map +1 -0
  96. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  97. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  98. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  99. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  100. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  101. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  102. package/lib/module/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  103. package/lib/module/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  104. package/lib/module/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  105. package/lib/module/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  106. package/lib/module/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  107. package/lib/module/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  108. package/lib/module/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  109. package/lib/module/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  110. package/lib/module/core/HttpService.js +87 -2
  111. package/lib/module/core/HttpService.js.map +1 -1
  112. package/lib/module/core/mixins/OxyServices.assets.js +3 -1
  113. package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
  114. package/lib/module/i18n/locales/en-US.json +3 -3
  115. package/lib/module/i18n/locales/es-ES.json +240 -19
  116. package/lib/module/ui/components/Avatar.js +1 -1
  117. package/lib/module/ui/components/Avatar.js.map +1 -1
  118. package/lib/module/ui/components/FollowButton.js +1 -1
  119. package/lib/module/ui/components/FollowButton.js.map +1 -1
  120. package/lib/module/ui/components/FontLoader.js +34 -34
  121. package/lib/module/ui/components/FontLoader.js.map +1 -1
  122. package/lib/module/ui/components/Header.js +4 -4
  123. package/lib/module/ui/components/Header.js.map +1 -1
  124. package/lib/module/ui/components/OxyPayButton.js +1 -1
  125. package/lib/module/ui/components/OxyPayButton.js.map +1 -1
  126. package/lib/module/ui/components/OxySignInButton.js +2 -1
  127. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  128. package/lib/module/ui/components/ProfileCard.js +1 -1
  129. package/lib/module/ui/components/ProfileCard.js.map +1 -1
  130. package/lib/module/ui/components/SectionTitle.js +1 -1
  131. package/lib/module/ui/components/SectionTitle.js.map +1 -1
  132. package/lib/module/ui/components/StepBasedScreen.js +2 -1
  133. package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
  134. package/lib/module/ui/components/feedback/feedbackStyles.js +2 -1
  135. package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
  136. package/lib/module/ui/components/fileManagement/styles.js +17 -17
  137. package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
  138. package/lib/module/ui/components/payment/paymentStyles.js +7 -7
  139. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
  140. package/lib/module/ui/navigation/routes.js +2 -0
  141. package/lib/module/ui/navigation/routes.js.map +1 -1
  142. package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
  143. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  144. package/lib/module/ui/screens/AccountOverviewScreen.js +13 -5
  145. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  146. package/lib/module/ui/screens/AccountSettingsScreen.js +277 -1824
  147. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  148. package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
  149. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  150. package/lib/module/ui/screens/AccountVerificationScreen.js +3 -1
  151. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  152. package/lib/module/ui/screens/AppInfoScreen.js +2 -2
  153. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  154. package/lib/module/ui/screens/EditProfileFieldScreen.js +635 -0
  155. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
  156. package/lib/module/ui/screens/FileManagementScreen.js +39 -21
  157. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  158. package/lib/module/ui/screens/HistoryViewScreen.js +9 -3
  159. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  160. package/lib/module/ui/screens/LanguageSelectorScreen.js +4 -2
  161. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  162. package/lib/module/ui/screens/LegalDocumentsScreen.js +3 -1
  163. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  164. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +11 -12
  165. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  166. package/lib/module/ui/screens/PrivacySettingsScreen.js +12 -4
  167. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  168. package/lib/module/ui/screens/SearchSettingsScreen.js +3 -1
  169. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  170. package/lib/module/ui/screens/SessionManagementScreen.js +15 -5
  171. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  172. package/lib/module/ui/screens/UserLinksScreen.js +3 -1
  173. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  174. package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -1
  175. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  176. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +2 -4
  177. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
  178. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -3
  179. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  180. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +3 -3
  181. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
  182. package/lib/module/ui/styles/authStyles.js +5 -4
  183. package/lib/module/ui/styles/authStyles.js.map +1 -1
  184. package/lib/module/ui/styles/fonts.js +27 -27
  185. package/lib/module/ui/styles/fonts.js.map +1 -1
  186. package/lib/module/ui/styles/theme.js +3 -3
  187. package/lib/module/ui/styles/theme.js.map +1 -1
  188. package/lib/module/web.js +75 -0
  189. package/lib/module/web.js.map +1 -0
  190. package/lib/typescript/commonjs/core/HttpService.d.ts +5 -0
  191. package/lib/typescript/commonjs/core/HttpService.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  196. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  198. package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
  202. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  204. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  206. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  208. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/ui/styles/fonts.d.ts +7 -7
  215. package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/web.d.ts +54 -0
  217. package/lib/typescript/commonjs/web.d.ts.map +1 -0
  218. package/lib/typescript/module/core/HttpService.d.ts +5 -0
  219. package/lib/typescript/module/core/HttpService.d.ts.map +1 -1
  220. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  221. package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +1 -1
  222. package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
  223. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  224. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  225. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  226. package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  227. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  228. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  229. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
  230. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
  231. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  232. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  233. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  234. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  235. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  236. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  237. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  238. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  239. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  240. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  241. package/lib/typescript/module/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
  242. package/lib/typescript/module/ui/styles/fonts.d.ts +7 -7
  243. package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -1
  244. package/lib/typescript/module/web.d.ts +54 -0
  245. package/lib/typescript/module/web.d.ts.map +1 -0
  246. package/package.json +27 -41
  247. package/src/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  248. package/src/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  249. package/src/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  250. package/src/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  251. package/src/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  252. package/src/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  253. package/src/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  254. package/src/core/HttpService.ts +91 -0
  255. package/src/core/mixins/OxyServices.assets.ts +1 -1
  256. package/src/i18n/locales/en-US.json +3 -3
  257. package/src/i18n/locales/es-ES.json +240 -19
  258. package/src/ui/components/Avatar.tsx +1 -1
  259. package/src/ui/components/FollowButton.tsx +1 -1
  260. package/src/ui/components/FontLoader.tsx +34 -34
  261. package/src/ui/components/Header.tsx +4 -4
  262. package/src/ui/components/OxyPayButton.tsx +1 -1
  263. package/src/ui/components/OxySignInButton.tsx +2 -1
  264. package/src/ui/components/ProfileCard.tsx +1 -1
  265. package/src/ui/components/SectionTitle.tsx +1 -1
  266. package/src/ui/components/StepBasedScreen.tsx +2 -1
  267. package/src/ui/components/feedback/feedbackStyles.ts +2 -1
  268. package/src/ui/components/fileManagement/styles.ts +17 -17
  269. package/src/ui/components/payment/paymentStyles.ts +7 -7
  270. package/src/ui/navigation/routes.ts +3 -0
  271. package/src/ui/screens/AccountCenterScreen.tsx +4 -2
  272. package/src/ui/screens/AccountOverviewScreen.tsx +13 -5
  273. package/src/ui/screens/AccountSettingsScreen.tsx +35 -1511
  274. package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
  275. package/src/ui/screens/AccountVerificationScreen.tsx +3 -1
  276. package/src/ui/screens/AppInfoScreen.tsx +2 -2
  277. package/src/ui/screens/EditProfileFieldScreen.tsx +685 -0
  278. package/src/ui/screens/FileManagementScreen.tsx +33 -15
  279. package/src/ui/screens/HistoryViewScreen.tsx +9 -3
  280. package/src/ui/screens/LanguageSelectorScreen.tsx +4 -2
  281. package/src/ui/screens/LegalDocumentsScreen.tsx +3 -1
  282. package/src/ui/screens/PremiumSubscriptionScreen.tsx +11 -13
  283. package/src/ui/screens/PrivacySettingsScreen.tsx +12 -4
  284. package/src/ui/screens/SearchSettingsScreen.tsx +3 -1
  285. package/src/ui/screens/SessionManagementScreen.tsx +15 -5
  286. package/src/ui/screens/UserLinksScreen.tsx +3 -1
  287. package/src/ui/screens/WelcomeNewUserScreen.tsx +2 -1
  288. package/src/ui/screens/karma/KarmaAboutScreen.tsx +6 -8
  289. package/src/ui/screens/karma/KarmaCenterScreen.tsx +3 -3
  290. package/src/ui/screens/karma/KarmaRewardsScreen.tsx +3 -3
  291. package/src/ui/styles/authStyles.ts +4 -4
  292. package/src/ui/styles/fonts.ts +26 -26
  293. package/src/ui/styles/theme.ts +3 -5
  294. package/src/web.ts +230 -0
  295. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  296. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  297. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  298. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  299. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  300. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  301. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  302. package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  303. package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  304. package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  305. package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  306. package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  307. package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  308. package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  309. package/lib/commonjs/ui/components/profile/EditBioModal.js +0 -49
  310. package/lib/commonjs/ui/components/profile/EditBioModal.js.map +0 -1
  311. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +0 -54
  312. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +0 -1
  313. package/lib/commonjs/ui/components/profile/EditEmailModal.js +0 -57
  314. package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +0 -1
  315. package/lib/commonjs/ui/components/profile/EditFieldModal.js +0 -412
  316. package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +0 -1
  317. package/lib/commonjs/ui/components/profile/EditLinksModal.js +0 -315
  318. package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +0 -1
  319. package/lib/commonjs/ui/components/profile/EditLocationModal.js +0 -91
  320. package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +0 -1
  321. package/lib/commonjs/ui/components/profile/EditUsernameModal.js +0 -55
  322. package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +0 -1
  323. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  324. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  325. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  326. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  327. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  328. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  329. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  330. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  331. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  332. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  333. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  334. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  335. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  336. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  337. package/lib/module/ui/components/profile/EditBioModal.js +0 -43
  338. package/lib/module/ui/components/profile/EditBioModal.js.map +0 -1
  339. package/lib/module/ui/components/profile/EditDisplayNameModal.js +0 -48
  340. package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +0 -1
  341. package/lib/module/ui/components/profile/EditEmailModal.js +0 -51
  342. package/lib/module/ui/components/profile/EditEmailModal.js.map +0 -1
  343. package/lib/module/ui/components/profile/EditFieldModal.js +0 -406
  344. package/lib/module/ui/components/profile/EditFieldModal.js.map +0 -1
  345. package/lib/module/ui/components/profile/EditLinksModal.js +0 -309
  346. package/lib/module/ui/components/profile/EditLinksModal.js.map +0 -1
  347. package/lib/module/ui/components/profile/EditLocationModal.js +0 -85
  348. package/lib/module/ui/components/profile/EditLocationModal.js.map +0 -1
  349. package/lib/module/ui/components/profile/EditUsernameModal.js +0 -49
  350. package/lib/module/ui/components/profile/EditUsernameModal.js.map +0 -1
  351. package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts +0 -11
  352. package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts.map +0 -1
  353. package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
  354. package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
  355. package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts +0 -11
  356. package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts.map +0 -1
  357. package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +0 -110
  358. package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +0 -1
  359. package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts +0 -18
  360. package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts.map +0 -1
  361. package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts +0 -21
  362. package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts.map +0 -1
  363. package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts +0 -11
  364. package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
  365. package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts +0 -11
  366. package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts.map +0 -1
  367. package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
  368. package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
  369. package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts +0 -11
  370. package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts.map +0 -1
  371. package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +0 -110
  372. package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +0 -1
  373. package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts +0 -18
  374. package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts.map +0 -1
  375. package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts +0 -21
  376. package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts.map +0 -1
  377. package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts +0 -11
  378. package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
  379. package/src/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  380. package/src/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  381. package/src/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  382. package/src/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  383. package/src/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  384. package/src/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  385. package/src/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  386. package/src/ui/components/profile/EditBioModal.tsx +0 -46
  387. package/src/ui/components/profile/EditDisplayNameModal.tsx +0 -56
  388. package/src/ui/components/profile/EditEmailModal.tsx +0 -57
  389. package/src/ui/components/profile/EditFieldModal.tsx +0 -465
  390. package/src/ui/components/profile/EditLinksModal.tsx +0 -316
  391. package/src/ui/components/profile/EditLocationModal.tsx +0 -91
  392. package/src/ui/components/profile/EditUsernameModal.tsx +0 -55
package/src/web.ts ADDED
@@ -0,0 +1,230 @@
1
+ /**
2
+ * OxyHQServices Web Entry Point - Pure React/Next.js Apps
3
+ *
4
+ * This entry point is optimized for pure web applications without Expo or React Native.
5
+ * It excludes all React Native dependencies for a smaller bundle size.
6
+ *
7
+ * Use this for:
8
+ * - Pure React apps (Vite, Create React App)
9
+ * - Next.js apps
10
+ * - Any web-only application
11
+ *
12
+ * For Expo apps (native + web), use the main entry point instead:
13
+ * import { OxyProvider } from '@oxyhq/services';
14
+ */
15
+
16
+ // IMPORTANT: Import crypto module first to ensure polyfills are loaded
17
+ import './crypto/polyfill';
18
+
19
+ // Core exports (no React Native dependencies)
20
+ export { OxyServices, OxyAuthenticationError, OxyAuthenticationTimeoutError } from './core';
21
+ export { OXY_CLOUD_URL, oxyClient } from './core';
22
+
23
+ // Cross-domain authentication (Web SSO via FedCM/popup/redirect)
24
+ export { CrossDomainAuth, createCrossDomainAuth } from './core';
25
+ export type { CrossDomainAuthOptions } from './core';
26
+
27
+ // Crypto/Identity exports
28
+ export {
29
+ KeyManager,
30
+ SignatureService,
31
+ RecoveryPhraseService
32
+ } from './crypto';
33
+ export type {
34
+ KeyPair,
35
+ SignedMessage,
36
+ AuthChallenge,
37
+ RecoveryPhraseResult
38
+ } from './crypto';
39
+
40
+ // React context and auth hooks
41
+ export { useOxy } from './ui/context/OxyContext';
42
+ export { useAuth } from './ui/hooks/useAuth';
43
+ export type { AuthState, AuthActions, UseAuthReturn } from './ui/hooks/useAuth';
44
+
45
+ // Web-only provider (NO React Native dependencies)
46
+ export { default as WebOxyProvider } from './ui/components/WebOxyProvider';
47
+
48
+ // Device management
49
+ export { DeviceManager } from './utils/deviceManager';
50
+ export type { DeviceFingerprint, StoredDeviceInfo } from './utils/deviceManager';
51
+
52
+ // Language utilities
53
+ export {
54
+ SUPPORTED_LANGUAGES,
55
+ getLanguageMetadata,
56
+ getLanguageName,
57
+ getNativeLanguageName,
58
+ normalizeLanguageCode
59
+ } from './utils/languageUtils';
60
+ export type { LanguageMetadata } from './utils/languageUtils';
61
+
62
+ // Type exports
63
+ export type {
64
+ OxyConfig,
65
+ User,
66
+ LoginResponse,
67
+ Notification,
68
+ Wallet,
69
+ Transaction,
70
+ TransferFundsRequest,
71
+ PurchaseRequest,
72
+ WithdrawalRequest,
73
+ TransactionResponse,
74
+ KarmaRule,
75
+ KarmaHistory,
76
+ KarmaLeaderboardEntry,
77
+ KarmaAwardRequest,
78
+ ApiError,
79
+ PaymentMethod,
80
+ PaymentRequest,
81
+ PaymentResponse,
82
+ AnalyticsData,
83
+ FollowerDetails,
84
+ ContentViewer,
85
+ FileMetadata,
86
+ FileUploadResponse,
87
+ FileListResponse,
88
+ FileUpdateRequest,
89
+ FileDeleteResponse,
90
+ DeviceSession,
91
+ DeviceSessionsResponse,
92
+ DeviceSessionLogoutResponse,
93
+ UpdateDeviceNameResponse,
94
+ BlockedUser,
95
+ RestrictedUser,
96
+ FileVisibility,
97
+ AssetLink,
98
+ AssetVariant,
99
+ Asset,
100
+ AssetInitRequest,
101
+ AssetInitResponse,
102
+ AssetCompleteRequest,
103
+ AssetLinkRequest,
104
+ AssetUnlinkRequest,
105
+ AssetUrlResponse,
106
+ AssetDeleteSummary,
107
+ AssetUploadProgress,
108
+ AssetUpdateVisibilityRequest,
109
+ AssetUpdateVisibilityResponse,
110
+ AccountStorageCategoryUsage,
111
+ AccountStorageUsageResponse,
112
+ SecurityEventType,
113
+ SecurityEventSeverity,
114
+ SecurityActivity,
115
+ SecurityActivityResponse
116
+ } from './models/interfaces';
117
+
118
+ export { SECURITY_EVENT_SEVERITY_MAP } from './models/interfaces';
119
+
120
+ export type {
121
+ SessionLoginResponse,
122
+ ClientSession,
123
+ MinimalUserData
124
+ } from './models/session';
125
+
126
+ // UI hooks - Stores
127
+ export { useAuthStore } from './ui/stores/authStore';
128
+ export {
129
+ useAssetStore,
130
+ useAssets as useAssetsStore,
131
+ useAsset,
132
+ useUploadProgress,
133
+ useAssetLoading,
134
+ useAssetErrors,
135
+ useAssetsByApp,
136
+ useAssetsByEntity,
137
+ useAssetUsageCount,
138
+ useIsAssetLinked
139
+ } from './ui/stores/assetStore';
140
+
141
+ // UI hooks - Custom hooks
142
+ export { useSessionSocket } from './ui/hooks/useSessionSocket';
143
+ export { useAssets, setOxyAssetInstance } from './ui/hooks/useAssets';
144
+ export { useFileDownloadUrl, setOxyFileUrlInstance } from './ui/hooks/useFileDownloadUrl';
145
+
146
+ // UI hooks - Query hooks (TanStack Query)
147
+ export {
148
+ useUserProfile,
149
+ useUserProfiles,
150
+ useCurrentUser,
151
+ useUserById,
152
+ useUserByUsername,
153
+ useUsersBySessions,
154
+ usePrivacySettings,
155
+ useSessions,
156
+ useSession,
157
+ useDeviceSessions,
158
+ useUserDevices,
159
+ useSecurityInfo,
160
+ useSecurityActivity,
161
+ useRecentSecurityActivity,
162
+ } from './ui/hooks/queries';
163
+
164
+ // UI hooks - Mutation hooks (TanStack Query)
165
+ export {
166
+ useUpdateProfile,
167
+ useUploadAvatar,
168
+ useUpdateAccountSettings,
169
+ useUpdatePrivacySettings,
170
+ useUploadFile,
171
+ useSwitchSession,
172
+ useLogoutSession,
173
+ useLogoutAll,
174
+ useUpdateDeviceName,
175
+ useRemoveDevice,
176
+ } from './ui/hooks/mutations';
177
+
178
+ // Mutation factory utilities
179
+ export {
180
+ createProfileMutation,
181
+ createGenericMutation,
182
+ } from './ui/hooks/mutations/mutationFactory';
183
+ export type {
184
+ ProfileMutationConfig,
185
+ GenericMutationConfig,
186
+ } from './ui/hooks/mutations/mutationFactory';
187
+
188
+ // Authentication helpers
189
+ export {
190
+ ensureValidToken,
191
+ withAuthErrorHandling,
192
+ authenticatedApiCall,
193
+ isAuthenticationError,
194
+ SessionSyncRequiredError,
195
+ AuthenticationFailedError,
196
+ } from './ui/utils/authHelpers';
197
+ export type { HandleApiErrorOptions } from './ui/utils/authHelpers';
198
+
199
+ // File filtering hook
200
+ export { useFileFiltering } from './ui/hooks/useFileFiltering';
201
+ export type { ViewMode, SortBy, SortOrder } from './ui/hooks/useFileFiltering';
202
+
203
+ // Web-compatible UI components (no React Native dependencies)
204
+ export { OxySignInButton } from './ui/components/OxySignInButton';
205
+ export { OxyLogo } from './ui/components/OxyLogo';
206
+
207
+ // Utilities
208
+ export * from './utils/apiUtils';
209
+ export {
210
+ ErrorCodes,
211
+ createApiError,
212
+ handleHttpError,
213
+ validateRequiredFields,
214
+ retryWithBackoff
215
+ } from './utils/errorUtils';
216
+ export * from './utils/validationUtils';
217
+ export {
218
+ logger,
219
+ LogLevel,
220
+ LogContext,
221
+ logAuth,
222
+ logApi,
223
+ logSession,
224
+ logUser,
225
+ logDevice,
226
+ logPayment,
227
+ logPerformance
228
+ } from './utils/loggerUtils';
229
+ export * from './utils/asyncUtils';
230
+ export * from './utils/hookUtils';
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EditBioModal = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _EditFieldModal = require("./EditFieldModal.js");
9
- var _useProfileEditing = require("../../hooks/useProfileEditing.js");
10
- var _useI18n = require("../../hooks/useI18n.js");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const EditBioModal = ({
14
- visible,
15
- onClose,
16
- initialValue = '',
17
- theme = 'light',
18
- onSave
19
- }) => {
20
- const {
21
- t
22
- } = (0, _useI18n.useI18n)();
23
- const {
24
- updateField
25
- } = (0, _useProfileEditing.useProfileEditing)();
26
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditFieldModal.EditFieldModal, {
27
- visible: visible,
28
- onClose: onClose,
29
- title: t('editProfile.items.bio.title') || 'Bio',
30
- theme: theme,
31
- onSave: onSave,
32
- variant: "single",
33
- fields: [{
34
- key: 'bio',
35
- label: t('editProfile.items.bio.label') || 'Bio',
36
- initialValue,
37
- placeholder: t('editProfile.items.bio.placeholder') || 'Tell people about yourself...',
38
- inputProps: {
39
- multiline: true,
40
- numberOfLines: 6
41
- }
42
- }],
43
- onSubmit: async data => {
44
- return await updateField('bio', data.bio);
45
- }
46
- });
47
- };
48
- exports.EditBioModal = EditBioModal;
49
- //# sourceMappingURL=EditBioModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_EditFieldModal","_useProfileEditing","_useI18n","_jsxRuntime","e","__esModule","default","EditBioModal","visible","onClose","initialValue","theme","onSave","t","useI18n","updateField","useProfileEditing","jsx","EditFieldModal","title","variant","fields","key","label","placeholder","inputProps","multiline","numberOfLines","onSubmit","data","bio","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditBioModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAA8C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUvC,MAAMG,YAAyC,GAAGA,CAAC;EACxDC,OAAO;EACPC,OAAO;EACPC,YAAY,GAAG,EAAE;EACjBC,KAAK,GAAG,OAAO;EACfC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,oCAAiB,EAAC,CAAC;EAE3C,oBACE,IAAAb,WAAA,CAAAc,GAAA,EAACjB,eAAA,CAAAkB,cAAc;IACbV,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBU,KAAK,EAAEN,CAAC,CAAC,6BAA6B,CAAC,IAAI,KAAM;IACjDF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfQ,OAAO,EAAC,QAAQ;IAChBC,MAAM,EAAE,CACN;MACEC,GAAG,EAAE,KAAK;MACVC,KAAK,EAAEV,CAAC,CAAC,6BAA6B,CAAC,IAAI,KAAK;MAChDH,YAAY;MACZc,WAAW,EAAEX,CAAC,CAAC,mCAAmC,CAAC,IAAI,+BAA+B;MACtFY,UAAU,EAAE;QAAEC,SAAS,EAAE,IAAI;QAAEC,aAAa,EAAE;MAAE;IAClD,CAAC,CACD;IACFC,QAAQ,EAAE,MAAOC,IAAI,IAAK;MACxB,OAAO,MAAMd,WAAW,CAAC,KAAK,EAAEc,IAAI,CAACC,GAAa,CAAC;IACrD;EAAE,CACH,CAAC;AAEN,CAAC;AAACC,OAAA,CAAAxB,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EditDisplayNameModal = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _EditFieldModal = require("./EditFieldModal.js");
9
- var _useProfileEditing = require("../../hooks/useProfileEditing.js");
10
- var _useI18n = require("../../hooks/useI18n.js");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const EditDisplayNameModal = ({
14
- visible,
15
- onClose,
16
- initialDisplayName = '',
17
- initialLastName = '',
18
- theme = 'light',
19
- onSave
20
- }) => {
21
- const {
22
- t
23
- } = (0, _useI18n.useI18n)();
24
- const {
25
- saveProfile
26
- } = (0, _useProfileEditing.useProfileEditing)();
27
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditFieldModal.EditFieldModal, {
28
- visible: visible,
29
- onClose: onClose,
30
- title: t('editProfile.items.displayName.title') || 'Display Name',
31
- theme: theme,
32
- onSave: onSave,
33
- variant: "multi",
34
- fields: [{
35
- key: 'displayName',
36
- label: t('editProfile.items.displayName.firstName') || 'First Name',
37
- initialValue: initialDisplayName,
38
- placeholder: t('editProfile.items.displayName.firstNamePlaceholder') || 'Enter first name'
39
- }, {
40
- key: 'lastName',
41
- label: t('editProfile.items.displayName.lastName') || 'Last Name',
42
- initialValue: initialLastName,
43
- placeholder: t('editProfile.items.displayName.lastNamePlaceholder') || 'Enter last name (optional)'
44
- }],
45
- onSubmit: async data => {
46
- return await saveProfile({
47
- displayName: data.displayName,
48
- lastName: data.lastName
49
- });
50
- }
51
- });
52
- };
53
- exports.EditDisplayNameModal = EditDisplayNameModal;
54
- //# sourceMappingURL=EditDisplayNameModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_EditFieldModal","_useProfileEditing","_useI18n","_jsxRuntime","e","__esModule","default","EditDisplayNameModal","visible","onClose","initialDisplayName","initialLastName","theme","onSave","t","useI18n","saveProfile","useProfileEditing","jsx","EditFieldModal","title","variant","fields","key","label","initialValue","placeholder","onSubmit","data","displayName","lastName","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditDisplayNameModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAA8C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWvC,MAAMG,oBAAyD,GAAGA,CAAC;EACxEC,OAAO;EACPC,OAAO;EACPC,kBAAkB,GAAG,EAAE;EACvBC,eAAe,GAAG,EAAE;EACpBC,KAAK,GAAG,OAAO;EACfC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,oCAAiB,EAAC,CAAC;EAE3C,oBACE,IAAAd,WAAA,CAAAe,GAAA,EAAClB,eAAA,CAAAmB,cAAc;IACbX,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBW,KAAK,EAAEN,CAAC,CAAC,qCAAqC,CAAC,IAAI,cAAe;IAClEF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfQ,OAAO,EAAC,OAAO;IACfC,MAAM,EAAE,CACN;MACEC,GAAG,EAAE,aAAa;MAClBC,KAAK,EAAEV,CAAC,CAAC,yCAAyC,CAAC,IAAI,YAAY;MACnEW,YAAY,EAAEf,kBAAkB;MAChCgB,WAAW,EAAEZ,CAAC,CAAC,oDAAoD,CAAC,IAAI;IAC1E,CAAC,EACD;MACES,GAAG,EAAE,UAAU;MACfC,KAAK,EAAEV,CAAC,CAAC,wCAAwC,CAAC,IAAI,WAAW;MACjEW,YAAY,EAAEd,eAAe;MAC7Be,WAAW,EAAEZ,CAAC,CAAC,mDAAmD,CAAC,IAAI;IACzE,CAAC,CACD;IACFa,QAAQ,EAAE,MAAOC,IAAI,IAAK;MACxB,OAAO,MAAMZ,WAAW,CAAC;QACvBa,WAAW,EAAED,IAAI,CAACC,WAAqB;QACvCC,QAAQ,EAAEF,IAAI,CAACE;MACjB,CAAC,CAAC;IACJ;EAAE,CACH,CAAC;AAEN,CAAC;AAACC,OAAA,CAAAxB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EditEmailModal = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _EditFieldModal = require("./EditFieldModal.js");
9
- var _useProfileEditing = require("../../hooks/useProfileEditing.js");
10
- var _useI18n = require("../../hooks/useI18n.js");
11
- var _validationUtils = require("../../../utils/validationUtils.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- const EditEmailModal = ({
15
- visible,
16
- onClose,
17
- initialValue = '',
18
- theme = 'light',
19
- onSave
20
- }) => {
21
- const {
22
- t
23
- } = (0, _useI18n.useI18n)();
24
- const {
25
- updateField
26
- } = (0, _useProfileEditing.useProfileEditing)();
27
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditFieldModal.EditFieldModal, {
28
- visible: visible,
29
- onClose: onClose,
30
- title: t('editProfile.items.email.title') || 'Email',
31
- theme: theme,
32
- onSave: onSave,
33
- variant: "single",
34
- fields: [{
35
- key: 'email',
36
- label: t('editProfile.items.email.label') || 'Email Address',
37
- initialValue,
38
- placeholder: t('editProfile.items.email.placeholder') || 'Enter your email address',
39
- validation: value => {
40
- if (!_validationUtils.EMAIL_REGEX.test(value)) {
41
- return t('editProfile.items.email.invalid') || 'Please enter a valid email address';
42
- }
43
- return undefined;
44
- },
45
- inputProps: {
46
- keyboardType: 'email-address',
47
- autoCapitalize: 'none',
48
- autoCorrect: false
49
- }
50
- }],
51
- onSubmit: async data => {
52
- return await updateField('email', data.email);
53
- }
54
- });
55
- };
56
- exports.EditEmailModal = EditEmailModal;
57
- //# sourceMappingURL=EditEmailModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_EditFieldModal","_useProfileEditing","_useI18n","_validationUtils","_jsxRuntime","e","__esModule","default","EditEmailModal","visible","onClose","initialValue","theme","onSave","t","useI18n","updateField","useProfileEditing","jsx","EditFieldModal","title","variant","fields","key","label","placeholder","validation","value","EMAIL_REGEX","test","undefined","inputProps","keyboardType","autoCapitalize","autoCorrect","onSubmit","data","email","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditEmailModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAA6D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUtD,MAAMG,cAA6C,GAAGA,CAAC;EAC5DC,OAAO;EACPC,OAAO;EACPC,YAAY,GAAG,EAAE;EACjBC,KAAK,GAAG,OAAO;EACfC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,oCAAiB,EAAC,CAAC;EAE3C,oBACE,IAAAb,WAAA,CAAAc,GAAA,EAAClB,eAAA,CAAAmB,cAAc;IACbV,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBU,KAAK,EAAEN,CAAC,CAAC,+BAA+B,CAAC,IAAI,OAAQ;IACrDF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfQ,OAAO,EAAC,QAAQ;IAChBC,MAAM,EAAE,CACN;MACEC,GAAG,EAAE,OAAO;MACZC,KAAK,EAAEV,CAAC,CAAC,+BAA+B,CAAC,IAAI,eAAe;MAC5DH,YAAY;MACZc,WAAW,EAAEX,CAAC,CAAC,qCAAqC,CAAC,IAAI,0BAA0B;MACnFY,UAAU,EAAGC,KAAK,IAAK;QACrB,IAAI,CAACC,4BAAW,CAACC,IAAI,CAACF,KAAK,CAAC,EAAE;UAC5B,OAAOb,CAAC,CAAC,iCAAiC,CAAC,IAAI,oCAAoC;QACrF;QACA,OAAOgB,SAAS;MAClB,CAAC;MACDC,UAAU,EAAE;QACVC,YAAY,EAAE,eAAe;QAC7BC,cAAc,EAAE,MAAM;QACtBC,WAAW,EAAE;MACf;IACF,CAAC,CACD;IACFC,QAAQ,EAAE,MAAOC,IAAI,IAAK;MACxB,OAAO,MAAMpB,WAAW,CAAC,OAAO,EAAEoB,IAAI,CAACC,KAAe,CAAC;IACzD;EAAE,CACH,CAAC;AAEN,CAAC;AAACC,OAAA,CAAA9B,cAAA,GAAAA,cAAA","ignoreList":[]}