@truworth/twc-auth 3.0.5 → 3.0.7

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 (375) hide show
  1. package/package.json +1 -2
  2. package/build/assets/animation/redirect-home.json +0 -1101
  3. package/build/assets/cross_icon copy.svg +0 -5
  4. package/build/assets/cross_icon.svg +0 -5
  5. package/build/assets/email_icon.svg +0 -6
  6. package/build/assets/gender-diversity.svg +0 -22
  7. package/build/assets/loading-spinner.json +0 -1
  8. package/build/assets/logo.svg +0 -55
  9. package/build/assets/okay_icon.svg +0 -3
  10. package/build/src/api/auth.js +0 -36
  11. package/build/src/api/axiosClient/index.js +0 -5
  12. package/build/src/api/axiosClient/index.native.js +0 -5
  13. package/build/src/components/AdvancedTransitionWrapper/index.js +0 -374
  14. package/build/src/components/AdvancedTransitionWrapper/index.native.js +0 -10
  15. package/build/src/components/AdvancedTransitionWrapper/types.js +0 -1
  16. package/build/src/components/ConfirmationModal/index.js +0 -11
  17. package/build/src/components/ConfirmationModal/index.native.js +0 -15
  18. package/build/src/components/ConfirmationModal/types.js +0 -1
  19. package/build/src/components/IonIcon/index.js +0 -11
  20. package/build/src/components/IonIcon/index.native.js +0 -9
  21. package/build/src/components/IonIcon/types.js +0 -1
  22. package/build/src/components/OTPStatusLabel/index.js +0 -10
  23. package/build/src/components/OTPStatusLabel/index.native.js +0 -21
  24. package/build/src/components/OTPStatusLabel/types.js +0 -1
  25. package/build/src/components/PasswordCriteria/hooks/usePasswordCriteria.js +0 -71
  26. package/build/src/components/PasswordCriteria/index.js +0 -47
  27. package/build/src/components/PasswordCriteria/index.native.js +0 -22
  28. package/build/src/components/PasswordCriteria/types.js +0 -1
  29. package/build/src/components/ScreenLayout/index.js +0 -12
  30. package/build/src/components/ScreenLayout/index.native.js +0 -18
  31. package/build/src/components/ScreenLayout/types.js +0 -1
  32. package/build/src/components/SupportDetails/index.js +0 -9
  33. package/build/src/components/SupportDetails/index.native.js +0 -6
  34. package/build/src/components/VerifyEmailOTP/index.js +0 -20
  35. package/build/src/components/VerifyEmailOTP/index.native.js +0 -22
  36. package/build/src/components/VerifyEmailOTP/types.js +0 -1
  37. package/build/src/components/VerifyMobileOTP/index.js +0 -25
  38. package/build/src/components/VerifyMobileOTP/index.native.js +0 -38
  39. package/build/src/components/VerifyMobileOTP/types.js +0 -1
  40. package/build/src/constants/base-url/index.js +0 -5
  41. package/build/src/constants/base-url/index.native.js +0 -1
  42. package/build/src/constants/cdn-url/index.js +0 -2
  43. package/build/src/constants/cdn-url/index.native.js +0 -5
  44. package/build/src/constants/defaultPolicy.js +0 -9
  45. package/build/src/constants/password-requirements.js +0 -7
  46. package/build/src/constants/social-login-options.js +0 -16
  47. package/build/src/contexts/AuthContext.js +0 -190
  48. package/build/src/contexts/type.js +0 -1
  49. package/build/src/enums/index.js +0 -3
  50. package/build/src/enums/loginMethod.enum.js +0 -8
  51. package/build/src/enums/registrationMethod.enum.js +0 -7
  52. package/build/src/enums/socialLogins.enum.js +0 -6
  53. package/build/src/helpers/network.js +0 -93
  54. package/build/src/helpers/show-message/index.js +0 -19
  55. package/build/src/helpers/show-message/index.native.js +0 -14
  56. package/build/src/helpers/show-message/types.js +0 -1
  57. package/build/src/helpers/types.js +0 -1
  58. package/build/src/helpers/validation.js +0 -12
  59. package/build/src/hooks/internal/useAuthPackageContext.js +0 -9
  60. package/build/src/hooks/internal/useTimer.js +0 -40
  61. package/build/src/hooks/useAuthContext.js +0 -10
  62. package/build/src/hooks/useNavigator.js +0 -83
  63. package/build/src/hooks/useRequest.js +0 -34
  64. package/build/src/index.js +0 -23
  65. package/build/src/navigator/index.js +0 -10
  66. package/build/src/navigator/index.native.js +0 -27
  67. package/build/src/screens/CountryCode/components/CountryCodeDropdown/index.js +0 -37
  68. package/build/src/screens/CountryCode/components/CountryCodeDropdown/index.native.js +0 -6
  69. package/build/src/screens/CountryCode/components/CountryCodeDropdown/types.js +0 -1
  70. package/build/src/screens/CountryCode/hooks/internal/useCountryCode.js +0 -38
  71. package/build/src/screens/CountryCode/index.js +0 -10
  72. package/build/src/screens/CountryCode/index.native.js +0 -37
  73. package/build/src/screens/CountryCode/type.js +0 -1
  74. package/build/src/screens/CreatePassword/hooks/internal/useCreatePassword.js +0 -46
  75. package/build/src/screens/CreatePassword/index.js +0 -16
  76. package/build/src/screens/CreatePassword/index.native.js +0 -32
  77. package/build/src/screens/CreatePassword/type.js +0 -1
  78. package/build/src/screens/EnterEmail/hooks/internal/useEnterEmail.js +0 -77
  79. package/build/src/screens/EnterEmail/index.js +0 -58
  80. package/build/src/screens/EnterEmail/index.native.js +0 -31
  81. package/build/src/screens/EnterEmail/types.js +0 -1
  82. package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/hooks/internal/useExistingAccountsSheet.js +0 -36
  83. package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/index.js +0 -33
  84. package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/index.native.js +0 -73
  85. package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/types.js +0 -1
  86. package/build/src/screens/EnterMobile/hooks/internal/useEnterMobile.js +0 -67
  87. package/build/src/screens/EnterMobile/index.js +0 -81
  88. package/build/src/screens/EnterMobile/index.native.js +0 -56
  89. package/build/src/screens/EnterMobile/types.js +0 -1
  90. package/build/src/screens/EnterPassword/hooks/internal/useEnterPassword.js +0 -79
  91. package/build/src/screens/EnterPassword/index.js +0 -68
  92. package/build/src/screens/EnterPassword/index.native.js +0 -41
  93. package/build/src/screens/EnterPassword/types.js +0 -1
  94. package/build/src/screens/Login/components/LoginWebComponent/index.js +0 -63
  95. package/build/src/screens/Login/components/LoginWebComponent/index.native.js +0 -6
  96. package/build/src/screens/Login/index.js +0 -10
  97. package/build/src/screens/Login/index.native.js +0 -6
  98. package/build/src/screens/LoginWithEmailOTP/hooks/internal/useLoginWithEmailOTP.js +0 -85
  99. package/build/src/screens/LoginWithEmailOTP/index.js +0 -8
  100. package/build/src/screens/LoginWithEmailOTP/index.native.js +0 -10
  101. package/build/src/screens/LoginWithMobileOTP/hooks/internal/useLoginWithMobileOTP.js +0 -72
  102. package/build/src/screens/LoginWithMobileOTP/index.js +0 -8
  103. package/build/src/screens/LoginWithMobileOTP/index.native.js +0 -10
  104. package/build/src/screens/PartnerSSO/PartnerLogin/components/PartnerLoginWebComponent/index.js +0 -77
  105. package/build/src/screens/PartnerSSO/PartnerLogin/hooks/internal/usePartnerLogin.js +0 -50
  106. package/build/src/screens/PartnerSSO/PartnerLogin/index.js +0 -2
  107. package/build/src/screens/PartnerSSO/PartnerLogin/types.js +0 -1
  108. package/build/src/screens/PartnerSSO/PartnerRegistration/components/PartnerRegistrationWebComponent/index.js +0 -203
  109. package/build/src/screens/PartnerSSO/PartnerRegistration/hooks/internal/usePartnerRegistration.js +0 -90
  110. package/build/src/screens/PartnerSSO/PartnerRegistration/index.js +0 -2
  111. package/build/src/screens/PartnerSSO/PartnerRegistration/types.js +0 -1
  112. package/build/src/screens/PartnerSSO/index.js +0 -2
  113. package/build/src/screens/Profile/components/EditMobileNumber/index.js +0 -31
  114. package/build/src/screens/Profile/components/EditMobileNumber/index.native.js +0 -8
  115. package/build/src/screens/Profile/components/EditPassword/index.js +0 -29
  116. package/build/src/screens/Profile/components/EditPassword/index.native.js +0 -8
  117. package/build/src/screens/Profile/components/EditProfile/index.js +0 -89
  118. package/build/src/screens/Profile/components/EditProfile/index.native.js +0 -8
  119. package/build/src/screens/Profile/components/OtpVerificationModal/index.js +0 -61
  120. package/build/src/screens/Profile/components/OtpVerificationModal/index.native.js +0 -7
  121. package/build/src/screens/Profile/components/ProfileWebComponent/index.js +0 -80
  122. package/build/src/screens/Profile/components/ProfileWebComponent/index.native.js +0 -9
  123. package/build/src/screens/Profile/hooks/internal/useProfile.js +0 -185
  124. package/build/src/screens/Profile/index.js +0 -6
  125. package/build/src/screens/Profile/index.native.js +0 -6
  126. package/build/src/screens/Profile/types.js +0 -1
  127. package/build/src/screens/ResetPassword/hooks/internal/useResetPassword.js +0 -57
  128. package/build/src/screens/ResetPassword/index.js +0 -46
  129. package/build/src/screens/ResetPassword/index.native.js +0 -26
  130. package/build/src/screens/ResetPassword/types.js +0 -1
  131. package/build/src/screens/SSOLogin/AuthWebView/index.js +0 -9
  132. package/build/src/screens/SSOLogin/AuthWebView/index.native.js +0 -42
  133. package/build/src/screens/SSOLogin/AuthWebView/types.js +0 -1
  134. package/build/src/screens/SSOLogin/AuthenticationMethods/hooks/internal/useSSOAuthenticationMethods.js +0 -39
  135. package/build/src/screens/SSOLogin/AuthenticationMethods/index.js +0 -50
  136. package/build/src/screens/SSOLogin/AuthenticationMethods/index.native.js +0 -59
  137. package/build/src/screens/SSOLogin/AuthenticationMethods/types.js +0 -1
  138. package/build/src/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.js +0 -87
  139. package/build/src/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.native.js +0 -6
  140. package/build/src/screens/SSOLogin/SSOCallback/hooks/internal/useSSOCallback.js +0 -58
  141. package/build/src/screens/SSOLogin/SSOCallback/index.js +0 -9
  142. package/build/src/screens/SSOLogin/SSOCallback/index.native.js +0 -35
  143. package/build/src/screens/SSOLogin/SSOCallback/types.js +0 -1
  144. package/build/src/screens/SSOLogin/SearchOrganization/hooks/internal/useSSOSearchOrganization.js +0 -71
  145. package/build/src/screens/SSOLogin/SearchOrganization/index.js +0 -46
  146. package/build/src/screens/SSOLogin/SearchOrganization/index.native.js +0 -37
  147. package/build/src/screens/SSOLogin/SearchOrganization/types.js +0 -1
  148. package/build/src/screens/SignUp/components/SignUpForm/index.js +0 -215
  149. package/build/src/screens/SignUp/components/SignUpForm/index.native.js +0 -6
  150. package/build/src/screens/SignUp/components/SignUpForm/type.js +0 -1
  151. package/build/src/screens/SignUp/components/SignUpWebComponent/index.js +0 -62
  152. package/build/src/screens/SignUp/components/SignUpWebComponent/index.native.js +0 -6
  153. package/build/src/screens/SignUp/components/SignUpWebComponent/types.js +0 -1
  154. package/build/src/screens/SignUp/hooks/internal/useSignUp.js +0 -134
  155. package/build/src/screens/SignUp/index.js +0 -6
  156. package/build/src/screens/SignUp/index.native.js +0 -188
  157. package/build/src/screens/SignUp/types.js +0 -1
  158. package/build/src/screens/UserConsent/hooks/internal/useConsent.js +0 -64
  159. package/build/src/screens/UserConsent/index.js +0 -93
  160. package/build/src/screens/UserConsent/index.native.js +0 -47
  161. package/build/src/screens/UserConsent/types.js +0 -1
  162. package/build/src/screens/VerifyEmail/hooks/internal/useVerifyEmail.js +0 -69
  163. package/build/src/screens/VerifyEmail/index.js +0 -8
  164. package/build/src/screens/VerifyEmail/index.native.js +0 -14
  165. package/build/src/screens/VerifyEmail/types.js +0 -1
  166. package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/hooks/internal/useVerifyLinkPrimaryAccountEmailOTP.js +0 -73
  167. package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/index.js +0 -8
  168. package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/index.native.js +0 -14
  169. package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/types.js +0 -1
  170. package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/hooks/internal/useVerifyLinkPrimaryAccountMobileOTP.js +0 -83
  171. package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/index.js +0 -8
  172. package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/index.native.js +0 -10
  173. package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/types.js +0 -1
  174. package/build/src/screens/VerifyMobile/hooks/internal/useVerifyMobile.js +0 -74
  175. package/build/src/screens/VerifyMobile/index.js +0 -8
  176. package/build/src/screens/VerifyMobile/index.native.js +0 -9
  177. package/build/src/screens/VerifyMobile/types.js +0 -1
  178. package/build/src/screens/VerifyResetPasswordOTP/hooks/internal/useVerifyResetPasswordOTP.js +0 -74
  179. package/build/src/screens/VerifyResetPasswordOTP/index.js +0 -8
  180. package/build/src/screens/VerifyResetPasswordOTP/index.native.js +0 -14
  181. package/build/src/screens/Welcome/SocialAuth/commonSocialAuth.js +0 -127
  182. package/build/src/screens/Welcome/SocialAuth/hooks/useSocialAuth.native.js +0 -187
  183. package/build/src/screens/Welcome/SocialAuth/hooks/useSocialAuth.web.js +0 -13
  184. package/build/src/screens/Welcome/SocialAuth/hooks/web/useFacebookAuth.web.js +0 -115
  185. package/build/src/screens/Welcome/SocialAuth/hooks/web/useGoogleAuth.web.js +0 -72
  186. package/build/src/screens/Welcome/components/SocialLoginModal/index.js +0 -9
  187. package/build/src/screens/Welcome/components/SocialLoginModal/index.native.js +0 -21
  188. package/build/src/screens/Welcome/components/SocialLoginModal/types.js +0 -1
  189. package/build/src/screens/Welcome/hooks/internal/useWelcome.js +0 -26
  190. package/build/src/screens/Welcome/index.js +0 -28
  191. package/build/src/screens/Welcome/index.native.js +0 -78
  192. package/build/src/types/types.js +0 -2
  193. package/build/types/api/auth.d.ts +0 -11
  194. package/build/types/api/axiosClient/index.d.ts +0 -1
  195. package/build/types/api/axiosClient/index.native.d.ts +0 -1
  196. package/build/types/components/AdvancedTransitionWrapper/index.d.ts +0 -3
  197. package/build/types/components/AdvancedTransitionWrapper/index.native.d.ts +0 -5
  198. package/build/types/components/AdvancedTransitionWrapper/types.d.ts +0 -25
  199. package/build/types/components/ConfirmationModal/index.d.ts +0 -3
  200. package/build/types/components/ConfirmationModal/index.native.d.ts +0 -3
  201. package/build/types/components/ConfirmationModal/types.d.ts +0 -16
  202. package/build/types/components/IonIcon/index.d.ts +0 -3
  203. package/build/types/components/IonIcon/index.native.d.ts +0 -4
  204. package/build/types/components/IonIcon/types.d.ts +0 -6
  205. package/build/types/components/OTPStatusLabel/index.d.ts +0 -2
  206. package/build/types/components/OTPStatusLabel/index.native.d.ts +0 -3
  207. package/build/types/components/OTPStatusLabel/types.d.ts +0 -6
  208. package/build/types/components/PasswordCriteria/hooks/usePasswordCriteria.d.ts +0 -8
  209. package/build/types/components/PasswordCriteria/index.d.ts +0 -3
  210. package/build/types/components/PasswordCriteria/index.native.d.ts +0 -3
  211. package/build/types/components/PasswordCriteria/types.d.ts +0 -15
  212. package/build/types/components/ScreenLayout/index.d.ts +0 -3
  213. package/build/types/components/ScreenLayout/index.native.d.ts +0 -3
  214. package/build/types/components/ScreenLayout/types.d.ts +0 -13
  215. package/build/types/components/SupportDetails/index.d.ts +0 -2
  216. package/build/types/components/SupportDetails/index.native.d.ts +0 -2
  217. package/build/types/components/VerifyEmailOTP/index.d.ts +0 -3
  218. package/build/types/components/VerifyEmailOTP/index.native.d.ts +0 -3
  219. package/build/types/components/VerifyEmailOTP/types.d.ts +0 -9
  220. package/build/types/components/VerifyMobileOTP/index.d.ts +0 -3
  221. package/build/types/components/VerifyMobileOTP/index.native.d.ts +0 -3
  222. package/build/types/components/VerifyMobileOTP/types.d.ts +0 -9
  223. package/build/types/constants/base-url/index.d.ts +0 -1
  224. package/build/types/constants/base-url/index.native.d.ts +0 -1
  225. package/build/types/constants/cdn-url/index.d.ts +0 -2
  226. package/build/types/constants/cdn-url/index.native.d.ts +0 -3
  227. package/build/types/constants/defaultPolicy.d.ts +0 -9
  228. package/build/types/constants/password-requirements.d.ts +0 -4
  229. package/build/types/constants/social-login-options.d.ts +0 -3
  230. package/build/types/contexts/AuthContext.d.ts +0 -38
  231. package/build/types/contexts/type.d.ts +0 -94
  232. package/build/types/enums/index.d.ts +0 -3
  233. package/build/types/enums/loginMethod.enum.d.ts +0 -7
  234. package/build/types/enums/registrationMethod.enum.d.ts +0 -6
  235. package/build/types/enums/socialLogins.enum.d.ts +0 -5
  236. package/build/types/helpers/network.d.ts +0 -5
  237. package/build/types/helpers/show-message/index.d.ts +0 -3
  238. package/build/types/helpers/show-message/index.native.d.ts +0 -3
  239. package/build/types/helpers/show-message/types.d.ts +0 -6
  240. package/build/types/helpers/types.d.ts +0 -19
  241. package/build/types/helpers/validation.d.ts +0 -2
  242. package/build/types/hooks/internal/useAuthPackageContext.d.ts +0 -1
  243. package/build/types/hooks/internal/useTimer.d.ts +0 -3
  244. package/build/types/hooks/useAuthContext.d.ts +0 -2
  245. package/build/types/hooks/useNavigator.d.ts +0 -66
  246. package/build/types/hooks/useRequest.d.ts +0 -5
  247. package/build/types/index.d.ts +0 -15
  248. package/build/types/navigator/index.d.ts +0 -2
  249. package/build/types/navigator/index.native.d.ts +0 -82
  250. package/build/types/screens/CountryCode/components/CountryCodeDropdown/index.d.ts +0 -3
  251. package/build/types/screens/CountryCode/components/CountryCodeDropdown/index.native.d.ts +0 -2
  252. package/build/types/screens/CountryCode/components/CountryCodeDropdown/types.d.ts +0 -17
  253. package/build/types/screens/CountryCode/hooks/internal/useCountryCode.d.ts +0 -12
  254. package/build/types/screens/CountryCode/index.d.ts +0 -2
  255. package/build/types/screens/CountryCode/index.native.d.ts +0 -2
  256. package/build/types/screens/CountryCode/type.d.ts +0 -11
  257. package/build/types/screens/CreatePassword/hooks/internal/useCreatePassword.d.ts +0 -37
  258. package/build/types/screens/CreatePassword/index.d.ts +0 -3
  259. package/build/types/screens/CreatePassword/index.native.d.ts +0 -4
  260. package/build/types/screens/CreatePassword/type.d.ts +0 -43
  261. package/build/types/screens/EnterEmail/hooks/internal/useEnterEmail.d.ts +0 -19
  262. package/build/types/screens/EnterEmail/index.d.ts +0 -3
  263. package/build/types/screens/EnterEmail/index.native.d.ts +0 -4
  264. package/build/types/screens/EnterEmail/types.d.ts +0 -13
  265. package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/hooks/internal/useExistingAccountsSheet.d.ts +0 -13
  266. package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/index.d.ts +0 -3
  267. package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/index.native.d.ts +0 -3
  268. package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/types.d.ts +0 -28
  269. package/build/types/screens/EnterMobile/hooks/internal/useEnterMobile.d.ts +0 -15
  270. package/build/types/screens/EnterMobile/index.d.ts +0 -4
  271. package/build/types/screens/EnterMobile/index.native.d.ts +0 -4
  272. package/build/types/screens/EnterMobile/types.d.ts +0 -44
  273. package/build/types/screens/EnterPassword/hooks/internal/useEnterPassword.d.ts +0 -25
  274. package/build/types/screens/EnterPassword/index.d.ts +0 -3
  275. package/build/types/screens/EnterPassword/index.native.d.ts +0 -4
  276. package/build/types/screens/EnterPassword/types.d.ts +0 -24
  277. package/build/types/screens/Login/components/LoginWebComponent/index.d.ts +0 -2
  278. package/build/types/screens/Login/components/LoginWebComponent/index.native.d.ts +0 -2
  279. package/build/types/screens/Login/index.d.ts +0 -2
  280. package/build/types/screens/Login/index.native.d.ts +0 -2
  281. package/build/types/screens/LoginWithEmailOTP/hooks/internal/useLoginWithEmailOTP.d.ts +0 -17
  282. package/build/types/screens/LoginWithEmailOTP/index.d.ts +0 -7
  283. package/build/types/screens/LoginWithEmailOTP/index.native.d.ts +0 -4
  284. package/build/types/screens/LoginWithMobileOTP/hooks/internal/useLoginWithMobileOTP.d.ts +0 -11
  285. package/build/types/screens/LoginWithMobileOTP/index.d.ts +0 -5
  286. package/build/types/screens/LoginWithMobileOTP/index.native.d.ts +0 -4
  287. package/build/types/screens/PartnerSSO/PartnerLogin/components/PartnerLoginWebComponent/index.d.ts +0 -25
  288. package/build/types/screens/PartnerSSO/PartnerLogin/hooks/internal/usePartnerLogin.d.ts +0 -8
  289. package/build/types/screens/PartnerSSO/PartnerLogin/index.d.ts +0 -2
  290. package/build/types/screens/PartnerSSO/PartnerLogin/types.d.ts +0 -35
  291. package/build/types/screens/PartnerSSO/PartnerRegistration/components/PartnerRegistrationWebComponent/index.d.ts +0 -24
  292. package/build/types/screens/PartnerSSO/PartnerRegistration/hooks/internal/usePartnerRegistration.d.ts +0 -8
  293. package/build/types/screens/PartnerSSO/PartnerRegistration/index.d.ts +0 -2
  294. package/build/types/screens/PartnerSSO/PartnerRegistration/types.d.ts +0 -63
  295. package/build/types/screens/PartnerSSO/index.d.ts +0 -2
  296. package/build/types/screens/Profile/components/EditMobileNumber/index.d.ts +0 -6
  297. package/build/types/screens/Profile/components/EditMobileNumber/index.native.d.ts +0 -3
  298. package/build/types/screens/Profile/components/EditPassword/index.d.ts +0 -6
  299. package/build/types/screens/Profile/components/EditPassword/index.native.d.ts +0 -3
  300. package/build/types/screens/Profile/components/EditProfile/index.d.ts +0 -6
  301. package/build/types/screens/Profile/components/EditProfile/index.native.d.ts +0 -3
  302. package/build/types/screens/Profile/components/OtpVerificationModal/index.d.ts +0 -4
  303. package/build/types/screens/Profile/components/OtpVerificationModal/index.native.d.ts +0 -3
  304. package/build/types/screens/Profile/components/ProfileWebComponent/index.d.ts +0 -4
  305. package/build/types/screens/Profile/components/ProfileWebComponent/index.native.d.ts +0 -3
  306. package/build/types/screens/Profile/hooks/internal/useProfile.d.ts +0 -26
  307. package/build/types/screens/Profile/index.d.ts +0 -7
  308. package/build/types/screens/Profile/index.native.d.ts +0 -7
  309. package/build/types/screens/Profile/types.d.ts +0 -53
  310. package/build/types/screens/ResetPassword/hooks/internal/useResetPassword.d.ts +0 -29
  311. package/build/types/screens/ResetPassword/index.d.ts +0 -3
  312. package/build/types/screens/ResetPassword/index.native.d.ts +0 -4
  313. package/build/types/screens/ResetPassword/types.d.ts +0 -11
  314. package/build/types/screens/SSOLogin/AuthWebView/index.d.ts +0 -2
  315. package/build/types/screens/SSOLogin/AuthWebView/index.native.d.ts +0 -4
  316. package/build/types/screens/SSOLogin/AuthWebView/types.d.ts +0 -8
  317. package/build/types/screens/SSOLogin/AuthenticationMethods/hooks/internal/useSSOAuthenticationMethods.d.ts +0 -9
  318. package/build/types/screens/SSOLogin/AuthenticationMethods/index.d.ts +0 -3
  319. package/build/types/screens/SSOLogin/AuthenticationMethods/index.native.d.ts +0 -4
  320. package/build/types/screens/SSOLogin/AuthenticationMethods/types.d.ts +0 -14
  321. package/build/types/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.d.ts +0 -6
  322. package/build/types/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.native.d.ts +0 -2
  323. package/build/types/screens/SSOLogin/SSOCallback/hooks/internal/useSSOCallback.d.ts +0 -15
  324. package/build/types/screens/SSOLogin/SSOCallback/index.d.ts +0 -2
  325. package/build/types/screens/SSOLogin/SSOCallback/index.native.d.ts +0 -4
  326. package/build/types/screens/SSOLogin/SSOCallback/types.d.ts +0 -14
  327. package/build/types/screens/SSOLogin/SearchOrganization/hooks/internal/useSSOSearchOrganization.d.ts +0 -18
  328. package/build/types/screens/SSOLogin/SearchOrganization/index.d.ts +0 -3
  329. package/build/types/screens/SSOLogin/SearchOrganization/index.native.d.ts +0 -4
  330. package/build/types/screens/SSOLogin/SearchOrganization/types.d.ts +0 -13
  331. package/build/types/screens/SignUp/components/SignUpForm/index.d.ts +0 -3
  332. package/build/types/screens/SignUp/components/SignUpForm/index.native.d.ts +0 -2
  333. package/build/types/screens/SignUp/components/SignUpForm/type.d.ts +0 -6
  334. package/build/types/screens/SignUp/components/SignUpWebComponent/index.d.ts +0 -2
  335. package/build/types/screens/SignUp/components/SignUpWebComponent/index.native.d.ts +0 -2
  336. package/build/types/screens/SignUp/components/SignUpWebComponent/types.d.ts +0 -9
  337. package/build/types/screens/SignUp/hooks/internal/useSignUp.d.ts +0 -48
  338. package/build/types/screens/SignUp/index.d.ts +0 -2
  339. package/build/types/screens/SignUp/index.native.d.ts +0 -4
  340. package/build/types/screens/SignUp/types.d.ts +0 -40
  341. package/build/types/screens/UserConsent/hooks/internal/useConsent.d.ts +0 -10
  342. package/build/types/screens/UserConsent/index.d.ts +0 -3
  343. package/build/types/screens/UserConsent/index.native.d.ts +0 -4
  344. package/build/types/screens/UserConsent/types.d.ts +0 -33
  345. package/build/types/screens/VerifyEmail/hooks/internal/useVerifyEmail.d.ts +0 -19
  346. package/build/types/screens/VerifyEmail/index.d.ts +0 -3
  347. package/build/types/screens/VerifyEmail/index.native.d.ts +0 -4
  348. package/build/types/screens/VerifyEmail/types.d.ts +0 -8
  349. package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/hooks/internal/useVerifyLinkPrimaryAccountEmailOTP.d.ts +0 -15
  350. package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/index.d.ts +0 -3
  351. package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/index.native.d.ts +0 -4
  352. package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/types.d.ts +0 -14
  353. package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/hooks/internal/useVerifyLinkPrimaryAccountMobileOTP.d.ts +0 -17
  354. package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/index.d.ts +0 -3
  355. package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/index.native.d.ts +0 -4
  356. package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/types.d.ts +0 -5
  357. package/build/types/screens/VerifyMobile/hooks/internal/useVerifyMobile.d.ts +0 -14
  358. package/build/types/screens/VerifyMobile/index.d.ts +0 -3
  359. package/build/types/screens/VerifyMobile/index.native.d.ts +0 -4
  360. package/build/types/screens/VerifyMobile/types.d.ts +0 -5
  361. package/build/types/screens/VerifyResetPasswordOTP/hooks/internal/useVerifyResetPasswordOTP.d.ts +0 -19
  362. package/build/types/screens/VerifyResetPasswordOTP/index.d.ts +0 -7
  363. package/build/types/screens/VerifyResetPasswordOTP/index.native.d.ts +0 -4
  364. package/build/types/screens/Welcome/SocialAuth/commonSocialAuth.d.ts +0 -50
  365. package/build/types/screens/Welcome/SocialAuth/hooks/useSocialAuth.native.d.ts +0 -7
  366. package/build/types/screens/Welcome/SocialAuth/hooks/useSocialAuth.web.d.ts +0 -7
  367. package/build/types/screens/Welcome/SocialAuth/hooks/web/useFacebookAuth.web.d.ts +0 -5
  368. package/build/types/screens/Welcome/SocialAuth/hooks/web/useGoogleAuth.web.d.ts +0 -4
  369. package/build/types/screens/Welcome/components/SocialLoginModal/index.d.ts +0 -3
  370. package/build/types/screens/Welcome/components/SocialLoginModal/index.native.d.ts +0 -3
  371. package/build/types/screens/Welcome/components/SocialLoginModal/types.d.ts +0 -8
  372. package/build/types/screens/Welcome/hooks/internal/useWelcome.d.ts +0 -22
  373. package/build/types/screens/Welcome/index.d.ts +0 -4
  374. package/build/types/screens/Welcome/index.native.d.ts +0 -4
  375. package/build/types/types/types.d.ts +0 -115
@@ -1,28 +0,0 @@
1
- import type { MultipleAccount } from "../../types";
2
- interface SelectPrimaryAccountSheetProps {
3
- visible: boolean;
4
- hide: () => void;
5
- phone: string;
6
- existingAccounts: MultipleAccount[];
7
- onInitiateAccountLinking?: (response: {
8
- sessionToken: string;
9
- email: string;
10
- }) => void;
11
- }
12
- type LinkPrimaryAccountParams = {
13
- phone: string;
14
- onInitiateLinking: ({ sessionToken }: {
15
- sessionToken: string;
16
- }) => void;
17
- };
18
- interface LinkAccountResponse {
19
- data: {
20
- sessionToken: string;
21
- };
22
- }
23
- interface OptionCardProps {
24
- item: MultipleAccount;
25
- onClick: () => void;
26
- selectedItem: MultipleAccount | null;
27
- }
28
- export type { SelectPrimaryAccountSheetProps, LinkPrimaryAccountParams, LinkAccountResponse, OptionCardProps };
@@ -1,15 +0,0 @@
1
- import type { ValidatePhoneParams, MultipleAccount } from "../../types";
2
- declare const useEnterMobile: () => {
3
- loading: boolean;
4
- phone: string;
5
- isValidPhone: boolean;
6
- countryCode: string;
7
- setCountryCode: import("react").Dispatch<import("react").SetStateAction<string>>;
8
- existingAccounts: MultipleAccount[];
9
- showExistingAccountsSheet: boolean;
10
- setShowExistingAccountsSheet: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
- handleValidatePhone: ({ onValidate }: ValidatePhoneParams) => Promise<void>;
12
- handleEnterMobile: (text: string) => void;
13
- handleClearPhoneInput: () => void;
14
- };
15
- export { useEnterMobile };
@@ -1,4 +0,0 @@
1
- declare const EnterMobile: ({ onPressBack }: {
2
- onPressBack: () => void;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export default EnterMobile;
@@ -1,4 +0,0 @@
1
- import type { AuthScreensProps } from '../../navigator/index.native';
2
- type ScreenProps = AuthScreensProps<'EnterMobile'>;
3
- declare const EnterMobile: ({ navigation }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
4
- export default EnterMobile;
@@ -1,44 +0,0 @@
1
- import type { LoginMethodCode } from "../../enums";
2
- type Member = {
3
- createdOn: string;
4
- email: string;
5
- loginType: number;
6
- memberId: string;
7
- name: string;
8
- };
9
- type Members = Member[];
10
- interface MultipleAccount {
11
- memberId: string;
12
- name: string;
13
- email: string;
14
- loginType: LoginMethodCode;
15
- createdOn: string;
16
- }
17
- interface VerifyLinkedEmailModalProps {
18
- show: boolean;
19
- hide: () => void;
20
- email: string;
21
- sessionToken: string;
22
- onVerifiedOTP: ({ sessionToken }: {
23
- sessionToken: string;
24
- }) => void;
25
- }
26
- interface VerifyLinkedMobileModalProps {
27
- show: boolean;
28
- hide: () => void;
29
- phone: string;
30
- sessionToken: string;
31
- }
32
- interface LoginWithMobileOTPModalProps {
33
- show: boolean;
34
- hide: () => void;
35
- email: string;
36
- phone: string;
37
- }
38
- type ValidatePhoneParams = {
39
- onValidate: (args: {
40
- mobileExist: boolean;
41
- email?: string;
42
- }) => void;
43
- };
44
- export type { Members, ValidatePhoneParams, MultipleAccount, VerifyLinkedEmailModalProps, VerifyLinkedMobileModalProps, LoginWithMobileOTPModalProps };
@@ -1,25 +0,0 @@
1
- type SubmitProps = {
2
- email: string;
3
- source: string;
4
- verifyEmailOTP?: (params: {
5
- mfaEnabled: boolean;
6
- sessionToken: string;
7
- }) => void;
8
- };
9
- /**
10
- * @internal
11
- * Hook for managing Enter Password screen logic and authentication integration.
12
- */
13
- declare const useEnterPassword: () => {
14
- loading: boolean;
15
- password: string;
16
- setPassword: import("react").Dispatch<import("react").SetStateAction<string>>;
17
- isPasswordVisible: boolean;
18
- togglePasswordVisibility: () => void;
19
- handleSubmit: ({ email, source, verifyEmailOTP }: SubmitProps) => Promise<void>;
20
- isDisabled: boolean;
21
- handlePasswordChange: (value: string) => void;
22
- appName: string | undefined;
23
- invalidPassword: boolean;
24
- };
25
- export { useEnterPassword };
@@ -1,3 +0,0 @@
1
- import type { EnterPasswordProps } from './types';
2
- declare const EnterPassword: ({ email, onPressBack, onVerifiedResetPasswordOTP }: EnterPasswordProps) => import("react/jsx-runtime").JSX.Element;
3
- export default EnterPassword;
@@ -1,4 +0,0 @@
1
- import type { AuthScreensProps } from '../../navigator/index.native';
2
- type ScreenProps = AuthScreensProps<'EnterPassword'>;
3
- declare const EnterPassword: ({ navigation, route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
4
- export default EnterPassword;
@@ -1,24 +0,0 @@
1
- interface EnterPasswordProps {
2
- email: string;
3
- onPressBack: () => void;
4
- onVerifiedResetPasswordOTP: ({ sessionToken }: {
5
- sessionToken: string;
6
- }) => void;
7
- }
8
- interface VerifyResetPasswordOTPModalProps {
9
- show: boolean;
10
- hide: () => void;
11
- email: string;
12
- onVerifiedOTP: ({ sessionToken }: {
13
- sessionToken: string;
14
- }) => void;
15
- }
16
- interface LoginWithEmailOTPModalProps {
17
- show: boolean;
18
- hide: () => void;
19
- email: string;
20
- password?: string;
21
- sessionToken?: string;
22
- mfaEnabled?: boolean;
23
- }
24
- export type { EnterPasswordProps, VerifyResetPasswordOTPModalProps, LoginWithEmailOTPModalProps };
@@ -1,2 +0,0 @@
1
- declare const LoginWebComponent: () => import("react/jsx-runtime").JSX.Element;
2
- export { LoginWebComponent };
@@ -1,2 +0,0 @@
1
- declare const LoginWebComponent: () => null;
2
- export { LoginWebComponent };
@@ -1,2 +0,0 @@
1
- declare const Login: () => null;
2
- export default Login;
@@ -1,2 +0,0 @@
1
- declare const Login: () => null;
2
- export default Login;
@@ -1,17 +0,0 @@
1
- /**
2
- * @internal
3
- * Hook for handling Email OTP Login flow.
4
- */
5
- declare const useLoginWithEmailOTP: ({ email, password, source, sessionToken, mfaEnabled }: {
6
- email: string;
7
- password?: string;
8
- source: string;
9
- sessionToken?: string;
10
- mfaEnabled?: boolean;
11
- }) => {
12
- sendOtp: () => void;
13
- verifyOtp: (otp: string) => void;
14
- resendOTPCounter: number;
15
- status: "loading" | "idle" | "valid" | "invalid";
16
- };
17
- export { useLoginWithEmailOTP };
@@ -1,7 +0,0 @@
1
- declare const LoginWithEmailOTP: ({ email, password, sessionToken, mfaEnabled }: {
2
- email: string;
3
- password?: string;
4
- sessionToken?: string;
5
- mfaEnabled?: boolean;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default LoginWithEmailOTP;
@@ -1,4 +0,0 @@
1
- import type { AuthScreensProps } from './../../navigator/index.native';
2
- type ScreenProps = AuthScreensProps<'LoginWithEmailOTP'>;
3
- declare const LoginWithEmailOTP: ({ route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
4
- export default LoginWithEmailOTP;
@@ -1,11 +0,0 @@
1
- declare const useLoginWithMobileOTP: ({ phone, email, source }: {
2
- phone: string;
3
- email: string;
4
- source: string;
5
- }) => {
6
- timer: number;
7
- status: string;
8
- verifyOtp: (otp: string) => void;
9
- sendOtp: () => void;
10
- };
11
- export { useLoginWithMobileOTP };
@@ -1,5 +0,0 @@
1
- declare const LoginWithMobileOTP: ({ phone, email }: {
2
- phone: string;
3
- email: string;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default LoginWithMobileOTP;
@@ -1,4 +0,0 @@
1
- import type { AuthScreensProps } from '../../navigator/index.native';
2
- type ScreenProps = AuthScreensProps<'LoginWithMobileOTP'>;
3
- declare const LoginWithMobileOTP: ({ route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
4
- export default LoginWithMobileOTP;
@@ -1,25 +0,0 @@
1
- interface PartnerLoginWebComponentProps {
2
- /**
3
- * Partner key - can be passed as prop (for react-router) or extracted from query params (for Next.js)
4
- */
5
- partner?: string;
6
- }
7
- /**
8
- * PartnerLoginWebComponent
9
- *
10
- * Handles partner SSO authentication flow for web applications.
11
- * Extracts token and partner from URL query params, authenticates with backend,
12
- * and redirects to the specified path on success.
13
- *
14
- * @example
15
- * ```tsx
16
- * // In your app's partner login route (react-router - pass partner from useParams)
17
- * const { partner } = useParams();
18
- * <PartnerLoginWebComponent partner={partner} />
19
- *
20
- * // In Next.js (partner comes from query params automatically)
21
- * <PartnerLoginWebComponent />
22
- * ```
23
- */
24
- declare const PartnerLoginWebComponent: ({ partner: partnerProp }: PartnerLoginWebComponentProps) => import("react/jsx-runtime").JSX.Element;
25
- export { PartnerLoginWebComponent };
@@ -1,8 +0,0 @@
1
- import type { UsePartnerLoginProps, UsePartnerLoginResult } from '../../types';
2
- /**
3
- * @internal
4
- * Hook for managing Partner SSO Login authentication.
5
- * This hook is not exposed to package consumers.
6
- */
7
- declare const usePartnerLogin: ({ partner, token, path }: UsePartnerLoginProps) => UsePartnerLoginResult;
8
- export { usePartnerLogin };
@@ -1,2 +0,0 @@
1
- export { PartnerLoginWebComponent } from './components/PartnerLoginWebComponent';
2
- export * from './types';
@@ -1,35 +0,0 @@
1
- export interface PartnerLoginProps {
2
- /**
3
- * Called after successful authentication
4
- */
5
- onSuccess?: (data: PartnerLoginSuccessData) => void;
6
- /**
7
- * Called when authentication fails
8
- */
9
- onError?: (error: string) => void;
10
- }
11
- export interface PartnerLoginSuccessData {
12
- token: string;
13
- member: {
14
- memberId: string;
15
- firstName: string;
16
- lastName: string;
17
- name: string;
18
- email: string;
19
- gender: string;
20
- dateOfBirth: string;
21
- clientId: number;
22
- plan: number;
23
- planExpiryDate: string | null;
24
- };
25
- redirectPath: string;
26
- }
27
- export interface UsePartnerLoginProps {
28
- partner: string;
29
- token: string;
30
- path?: string;
31
- }
32
- export interface UsePartnerLoginResult {
33
- isLoading: boolean;
34
- error: string | null;
35
- }
@@ -1,24 +0,0 @@
1
- interface PartnerRegistrationWebComponentProps {
2
- /**
3
- * Partner key - can be passed as prop (for react-router) or extracted from query params (for Next.js)
4
- */
5
- partner?: string;
6
- }
7
- /**
8
- * PartnerRegistrationWebComponent
9
- *
10
- * Handles partner SSO registration flow for web applications.
11
- * Pre-fills form with data from JWT token and collects missing information.
12
- *
13
- * @example
14
- * ```tsx
15
- * // In your app's partner registration route (react-router - pass partner from useParams)
16
- * const { partner } = useParams();
17
- * <PartnerRegistrationWebComponent partner={partner} />
18
- *
19
- * // In Next.js (partner comes from query params automatically)
20
- * <PartnerRegistrationWebComponent />
21
- * ```
22
- */
23
- declare const PartnerRegistrationWebComponent: ({ partner: partnerProp }: PartnerRegistrationWebComponentProps) => import("react/jsx-runtime").JSX.Element;
24
- export { PartnerRegistrationWebComponent };
@@ -1,8 +0,0 @@
1
- import type { UsePartnerRegistrationProps, UsePartnerRegistrationResult } from '../../types';
2
- /**
3
- * @internal
4
- * Hook for managing Partner SSO Registration.
5
- * This hook is not exposed to package consumers.
6
- */
7
- declare const usePartnerRegistration: ({ partner, token, path, }: UsePartnerRegistrationProps) => UsePartnerRegistrationResult;
8
- export { usePartnerRegistration };
@@ -1,2 +0,0 @@
1
- export { PartnerRegistrationWebComponent } from './components/PartnerRegistrationWebComponent';
2
- export * from './types';
@@ -1,63 +0,0 @@
1
- export interface PartnerRegistrationProps {
2
- /**
3
- * Called after successful registration
4
- */
5
- onSuccess?: (data: PartnerRegistrationSuccessData) => void;
6
- /**
7
- * Called when registration fails
8
- */
9
- onError?: (error: string) => void;
10
- }
11
- export interface PartnerRegistrationSuccessData {
12
- token: string;
13
- member: {
14
- memberId: string;
15
- firstName: string;
16
- lastName: string;
17
- name: string;
18
- email: string;
19
- gender: string;
20
- dateOfBirth: string;
21
- clientId: number;
22
- plan: number;
23
- planExpiryDate: string | null;
24
- };
25
- redirectPath: string;
26
- }
27
- export interface UsePartnerRegistrationProps {
28
- partner: string;
29
- token: string;
30
- path?: string;
31
- }
32
- export interface UsePartnerRegistrationResult {
33
- isLoading: boolean;
34
- error: string | null;
35
- tokenData: PartnerTokenData | null;
36
- register: (formData: PartnerRegistrationFormData) => Promise<void>;
37
- checkEmailExists: (email: string) => Promise<boolean>;
38
- }
39
- export interface PartnerTokenData {
40
- partnerId?: number;
41
- employeeId?: string;
42
- firstName?: string;
43
- lastName?: string;
44
- gender?: 'M' | 'F';
45
- dob?: string;
46
- partnerMemberId?: string;
47
- entityId?: string;
48
- email?: string;
49
- }
50
- export interface PartnerRegistrationFormData {
51
- email: string;
52
- countryCode: string;
53
- mobile: string;
54
- firstName: string;
55
- lastName: string;
56
- gender: 'M' | 'F';
57
- dateOfBirth: string;
58
- }
59
- export interface Country {
60
- countryCode: string;
61
- phoneCode: string;
62
- name: string;
63
- }
@@ -1,2 +0,0 @@
1
- export * from './PartnerLogin';
2
- export * from './PartnerRegistration';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface EditMobileNumberProps {
3
- onSuccess?: () => void;
4
- }
5
- declare const EditMobileNumber: React.FC<EditMobileNumberProps>;
6
- export { EditMobileNumber };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EditMobileNumber: React.FC<any>;
3
- export { EditMobileNumber };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface EditPasswordProps {
3
- onSuccess?: () => void;
4
- }
5
- declare const EditPassword: React.FC<EditPasswordProps>;
6
- export { EditPassword };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EditPassword: React.FC<any>;
3
- export { EditPassword };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface EditProfileProps {
3
- onSuccess?: () => void;
4
- }
5
- declare const EditProfile: React.FC<EditProfileProps>;
6
- export { EditProfile };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EditProfile: React.FC<any>;
3
- export { EditProfile };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { OtpVerificationModalProps } from '../../types';
3
- declare const OtpVerificationModal: React.FC<OtpVerificationModalProps>;
4
- export { OtpVerificationModal };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const OtpVerificationModal: React.FC<any>;
3
- export { OtpVerificationModal };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ProfileWebComponentProps } from '../../types';
3
- declare const ProfileWebComponent: React.FC<ProfileWebComponentProps>;
4
- export { ProfileWebComponent };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ProfileWebComponent: React.FC<any>;
3
- export { ProfileWebComponent };
@@ -1,26 +0,0 @@
1
- import type { ProfileData } from '../../types';
2
- declare const useProfile: () => {
3
- loading: boolean;
4
- profile: import("../../../..").MemberProfile | null;
5
- profileData: ProfileData;
6
- imageUrl: string;
7
- setImageUrl: import("react").Dispatch<import("react").SetStateAction<string>>;
8
- updateProfile: (data: {
9
- firstName: string;
10
- lastName: string;
11
- bio?: string;
12
- image?: string;
13
- }, onSuccess?: () => void) => Promise<void>;
14
- uploadProfileImage: (file: File) => Promise<string | null>;
15
- updateMobileNumber: (data: {
16
- countryCode: string;
17
- mobileNo: string;
18
- }, onSuccess?: () => void, onFailure?: () => void) => Promise<void>;
19
- sendMobileOtp: (onSuccess?: () => void, onFailure?: () => void) => Promise<void>;
20
- verifyMobileOtp: (otp: string, onSuccess?: () => void, onFailure?: () => void) => Promise<void>;
21
- changePassword: (data: {
22
- currentPassword: string;
23
- newPassword: string;
24
- }, onSuccess?: () => void, onFailure?: (error?: string) => void) => Promise<void>;
25
- };
26
- export { useProfile };
@@ -1,7 +0,0 @@
1
- export { ProfileWebComponent } from './components/ProfileWebComponent';
2
- export { EditProfile } from './components/EditProfile';
3
- export { EditMobileNumber } from './components/EditMobileNumber';
4
- export { EditPassword } from './components/EditPassword';
5
- export { OtpVerificationModal } from './components/OtpVerificationModal';
6
- export { useProfile } from './hooks/internal/useProfile';
7
- export type * from './types';
@@ -1,7 +0,0 @@
1
- export { ProfileWebComponent } from './components/ProfileWebComponent/index.native';
2
- export { EditProfile } from './components/EditProfile/index.native';
3
- export { EditMobileNumber } from './components/EditMobileNumber/index.native';
4
- export { EditPassword } from './components/EditPassword/index.native';
5
- export { OtpVerificationModal } from './components/OtpVerificationModal/index.native';
6
- export { useProfile } from './hooks/internal/useProfile';
7
- export type * from './types';
@@ -1,53 +0,0 @@
1
- import type React from 'react';
2
- interface ProfileData {
3
- firstName: string;
4
- lastName: string;
5
- dateOfBirth: Date | string;
6
- gender: string;
7
- bio?: string;
8
- image?: string;
9
- phone?: string;
10
- countryCode?: string;
11
- }
12
- interface EditProfileProps {
13
- profileData: ProfileData;
14
- imageUrl?: string;
15
- setImageUrl: React.Dispatch<React.SetStateAction<string>>;
16
- editProfileForm: any;
17
- onSuccess?: () => void;
18
- }
19
- interface EditMobileNumberProps {
20
- countryCode?: string;
21
- editPhoneForm: any;
22
- onSuccess?: () => void;
23
- }
24
- interface EditPasswordProps {
25
- editPasswordForm: any;
26
- onSuccess?: () => void;
27
- }
28
- interface OtpVerificationModalProps {
29
- open: boolean;
30
- onOpenChange: (open: boolean) => void;
31
- phone: string;
32
- countryCode?: string;
33
- onSuccess?: () => void;
34
- successMessage?: string;
35
- title?: string | React.ReactNode;
36
- }
37
- interface ProfileWebComponentProps {
38
- /** Optional header component to wrap the profile content */
39
- HeaderComponent?: React.ComponentType<{
40
- children: React.ReactNode;
41
- }>;
42
- /** Optional footer component */
43
- FooterComponent?: React.ComponentType;
44
- /** Callback when profile is updated successfully */
45
- onProfileUpdate?: () => void;
46
- /** Callback when mobile number is updated successfully */
47
- onMobileUpdate?: () => void;
48
- /** Callback when password is updated successfully */
49
- onPasswordUpdate?: () => void;
50
- /** Custom container className */
51
- containerClassName?: string;
52
- }
53
- export type { ProfileData, EditProfileProps, EditMobileNumberProps, EditPasswordProps, OtpVerificationModalProps, ProfileWebComponentProps };
@@ -1,29 +0,0 @@
1
- /**
2
- * @internal
3
- * Hook for managing ResetPassword screen state and auth context integration.
4
- * This hook is not exposed to package consumers.
5
- */
6
- declare const useResetPassword: ({ sessionToken }: {
7
- sessionToken: string;
8
- }) => {
9
- loading: boolean;
10
- password: string;
11
- setPassword: import("react").Dispatch<import("react").SetStateAction<string>>;
12
- confirmPassword: string;
13
- setConfirmPassword: import("react").Dispatch<import("react").SetStateAction<string>>;
14
- passwordVisible: boolean;
15
- setPasswordVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
16
- confirmPasswordVisible: boolean;
17
- setConfirmPasswordVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
18
- maxLength: number;
19
- setMaxLength: import("react").Dispatch<import("react").SetStateAction<number>>;
20
- criteria: Record<string, boolean>;
21
- setCriteria: import("react").Dispatch<import("react").SetStateAction<Record<string, boolean>>>;
22
- handlePassword: (text: string) => void;
23
- handleContinue: ({ onResult }: {
24
- onResult: () => void;
25
- }) => void;
26
- handleConfirmPassword: (text: string) => void;
27
- isContinueDisabled: boolean;
28
- };
29
- export { useResetPassword };
@@ -1,3 +0,0 @@
1
- import type { ResetPasswordProps } from "./types";
2
- declare const ResetPassword: ({ email, sessionToken, onPressBack, onContinue }: ResetPasswordProps) => import("react/jsx-runtime").JSX.Element;
3
- export default ResetPassword;
@@ -1,4 +0,0 @@
1
- import type { AuthScreensProps } from '../../navigator/index.native';
2
- type ScreenProps = AuthScreensProps<'ResetPassword'>;
3
- declare const ResetPassword: ({ navigation, route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
4
- export default ResetPassword;
@@ -1,11 +0,0 @@
1
- interface ResetPasswordProps {
2
- email: string;
3
- sessionToken: string;
4
- onPressBack?: () => void;
5
- onContinue: () => void;
6
- }
7
- interface ResetPasswordFormData {
8
- password: string;
9
- confirmPassword: string;
10
- }
11
- export type { ResetPasswordProps, ResetPasswordFormData };
@@ -1,2 +0,0 @@
1
- declare const SSOAuthWebView: () => null;
2
- export default SSOAuthWebView;