@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.
- package/build/constants/app.js +8 -2
- package/build/features/app/auth/authStore.d.ts +24 -3
- package/build/features/app/auth/authStore.js +97 -6
- package/build/features/app/bank/bankStore.d.ts +14 -18
- package/build/features/app/bank/bankStore.js +163 -159
- package/build/features/app/brand/brandStore.d.ts +17 -31
- package/build/features/app/brand/brandStore.js +169 -196
- package/build/features/app/entity/entityStore.d.ts +16 -33
- package/build/features/app/entity/entityStore.js +131 -201
- package/build/features/app/tax/taxStore.d.ts +14 -7
- package/build/features/app/tax/taxStore.js +143 -132
- package/build/features/auth/screens/OTP/OTP.js +3 -0
- package/build/features/auth/screens/OTP/OTPInput.js +12 -2
- package/build/features/auth/screens/PreparingData/PreparingData.js +1 -1
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
- package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
- package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
- package/build/features/bank/screens/Verify/Verify.js +4 -4
- package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
- package/build/features/entity/screens/EntityName/validation.js +1 -10
- package/build/features/featuresScreens.js +5 -0
- package/build/features/tax/screens/Verify/Verify.js +4 -4
- package/package.json +1 -1
|
@@ -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
|
|
49
|
+
var _b, _c;
|
|
50
50
|
var dispatch = useAppDispatch();
|
|
51
|
-
var
|
|
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
|
|
61
|
-
var phone = (
|
|
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());
|