@tap-payments/auth-jsconnect 2.8.1-test → 2.8.8-test

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.
@@ -36,6 +36,7 @@ import AuthCivilIDScreen from './auth/screens/CivilID';
36
36
  import AuthVerifyPACIScreen from './auth/screens/VerifyPACI';
37
37
  import AuthOTPScreen from './auth/screens/OTP';
38
38
  import AuthPasswordScreen from './auth/screens/Password';
39
+ import AuthResetPasswordMessageScreen from './auth/screens/ResetPasswordMessage';
39
40
  import PreparingDataScreen from './auth/screens/PreparingData';
40
41
  import AccountNotFoundScreen from './auth/screens/AccountNotFound';
41
42
  import AuthAuthenticationListScreen from './auth/screens/AuthenticationList';
@@ -255,6 +256,10 @@ export var authFeatureScreens = [
255
256
  name: 'AUTH_PASSWORD_STEP',
256
257
  element: AuthPasswordScreen
257
258
  },
259
+ {
260
+ name: 'AUTH_RESET_PASSWORD_MESSAGE_STEP',
261
+ element: AuthResetPasswordMessageScreen
262
+ },
258
263
  {
259
264
  name: 'AUTH_VERIFY_PACI_STEP',
260
265
  element: AuthVerifyPACIScreen
@@ -46,9 +46,9 @@ var FormStyled = styled(Form)(function () { return ({
46
46
  flexDirection: 'column'
47
47
  }); });
48
48
  var VerifyNumber = function (_a) {
49
- var _b, _c, _d, _e;
49
+ var _b, _c;
50
50
  var dispatch = useAppDispatch();
51
- var _f = useAppSelector(taxSelector), data = _f.data, loading = _f.loading, error = _f.error;
51
+ var _d = useAppSelector(taxSelector), data = _d.data, loading = _d.loading, error = _d.error;
52
52
  var methods = useForm({
53
53
  resolver: yupResolver(OTPValidation),
54
54
  defaultValues: data.otpData,
@@ -57,8 +57,8 @@ var VerifyNumber = function (_a) {
57
57
  useSetFromDefaultValues(methods, data.otpData);
58
58
  var t = useTranslation().t;
59
59
  var isAr = useLanguage().isAr;
60
- var _g = React.useState(false), resendLoading = _g[0], setResendLoading = _g[1];
61
- var phone = (_e = (_d = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.contact) === null || _d === void 0 ? void 0 : _d.phone) === null || _e === void 0 ? void 0 : _e.number;
60
+ var _e = React.useState(false), resendLoading = _e[0], setResendLoading = _e[1];
61
+ var phone = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.verification_by) === null || _c === void 0 ? void 0 : _c.sent_to;
62
62
  React.useEffect(function () {
63
63
  if (error && methods.formState.isValid && phone)
64
64
  dispatch(clearError());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.8.1-test",
3
+ "version": "2.8.8-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",