@tap-payments/auth-jsconnect 1.0.69 → 1.0.72

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 (67) hide show
  1. package/build/@types/app.d.ts +9 -1
  2. package/build/@types/form.d.ts +1 -1
  3. package/build/assets/locales/ar.json +10 -5
  4. package/build/assets/locales/en.json +15 -4
  5. package/build/components/SimpleList/SimpleList.js +5 -2
  6. package/build/constants/api.js +1 -1
  7. package/build/constants/assets.d.ts +2 -0
  8. package/build/constants/assets.js +2 -0
  9. package/build/features/app/business/businessStore.js +32 -23
  10. package/build/features/app/connect/connectStore.js +3 -1
  11. package/build/features/app/individual/individualStore.d.ts +7 -1
  12. package/build/features/app/individual/individualStore.js +41 -2
  13. package/build/features/bank/screens/BankDetails/BankName.js +18 -5
  14. package/build/features/bank/screens/BankDetails/IBAN.js +1 -8
  15. package/build/features/bank/screens/BankDetails/validation.d.ts +3 -3
  16. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  17. package/build/features/bank/screens/Success/Success.js +1 -1
  18. package/build/features/bank/screens/Verify/Verify.js +3 -4
  19. package/build/features/business/screens/Activities/Activities.js +2 -3
  20. package/build/features/business/screens/Activities/ActivitiesList.js +2 -3
  21. package/build/features/business/screens/Activities/SalesChannels.js +2 -3
  22. package/build/features/business/screens/BusinessType/BusinessType.js +2 -3
  23. package/build/features/business/screens/BusinessType/LicenseList.js +2 -3
  24. package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
  25. package/build/features/business/screens/Customers/CustomerLocations.js +2 -3
  26. package/build/features/business/screens/Customers/Customers.js +6 -7
  27. package/build/features/business/screens/Customers/ExpectedCustomers.js +2 -3
  28. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -1
  29. package/build/features/business/screens/Customers/ExpectedSalesRange.js +43 -35
  30. package/build/features/business/screens/IDBOD/DOB.js +6 -0
  31. package/build/features/business/screens/IDBOD/IDBOD.js +3 -8
  32. package/build/features/business/screens/OTP/OTP.js +3 -4
  33. package/build/features/business/screens/OTP/OTPInput.js +2 -3
  34. package/build/features/business/screens/Success/Success.js +1 -1
  35. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -14
  36. package/build/features/business/screens/Verify/Verify.js +3 -4
  37. package/build/features/connect/screens/Individual/Individual.js +2 -3
  38. package/build/features/connect/screens/Individual/MobileNumber.js +22 -8
  39. package/build/features/connect/screens/Merchant/BrandName.js +2 -3
  40. package/build/features/connect/screens/Merchant/Merchant.js +2 -3
  41. package/build/features/connect/screens/Mobile/Mobile.js +3 -4
  42. package/build/features/connect/screens/Mobile/MobileNumber.js +25 -9
  43. package/build/features/connect/screens/NID/DOB.js +2 -3
  44. package/build/features/connect/screens/NID/NID.js +3 -4
  45. package/build/features/connect/screens/OTP/OTP.js +2 -3
  46. package/build/features/connect/screens/OTP/OTPInput.js +2 -3
  47. package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
  48. package/build/features/individual/Individual.js +4 -1
  49. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -5
  50. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +5 -8
  51. package/build/features/individual/screens/Success/Success.js +1 -1
  52. package/build/features/individual/screens/Verify/Verify.js +3 -4
  53. package/build/features/password/screens/Success/Success.js +1 -1
  54. package/build/features/password/screens/Verify/Verify.js +3 -4
  55. package/build/features/shared/Footer/Footer.js +2 -3
  56. package/build/features/shared/Search/Search.d.ts +7 -0
  57. package/build/features/shared/Search/Search.js +25 -0
  58. package/build/features/shared/Search/index.d.ts +2 -0
  59. package/build/features/shared/Search/index.js +2 -0
  60. package/build/features/shared/SearchIcon/SearchIcon.d.ts +6 -0
  61. package/build/features/shared/SearchIcon/SearchIcon.js +26 -0
  62. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +2 -1
  63. package/build/features/shared/SuccessScreen/SuccessScreen.js +9 -20
  64. package/build/features/tax/screens/Success/Success.js +1 -1
  65. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -3
  66. package/build/features/tax/screens/Verify/Verify.js +3 -4
  67. package/package.json +1 -1
@@ -13,13 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useAppDispatch } from '../../../../hooks';
15
15
  import { useTranslation } from 'react-i18next';
16
- import { useSelector } from 'react-redux';
17
16
  import { useForm, FormProvider } from 'react-hook-form';
18
17
  import { yupResolver } from '@hookform/resolvers/yup';
19
18
  import Box from '@mui/material/Box/Box';
20
19
  import { styled } from '@mui/material/styles';
21
20
  import { handlePrevScreenStep } from '../../../../app/settings';
22
- import { useLanguage } from '../../../../hooks';
21
+ import { useLanguage, useAppSelector } from '../../../../hooks';
23
22
  import { maskPhone } from '../../../../utils';
24
23
  import Form from '../../../../components/Form';
25
24
  import Text from '../../../../components/Text';
@@ -50,7 +49,7 @@ var FormStyled = styled(Form)(function () { return ({
50
49
  var VerifyNumber = function (_a) {
51
50
  var _b, _c, _d;
52
51
  var dispatch = useAppDispatch();
53
- var _e = useSelector(taxSelector), data = _e.data, loading = _e.loading, error = _e.error;
52
+ var _e = useAppSelector(taxSelector), data = _e.data, loading = _e.loading, error = _e.error;
54
53
  var methods = useForm({
55
54
  resolver: yupResolver(OTPValidation),
56
55
  defaultValues: data.otpData,
@@ -73,6 +72,6 @@ var VerifyNumber = function (_a) {
73
72
  };
74
73
  var phone = (_d = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.contact) === null || _c === void 0 ? void 0 : _c.phone) === null || _d === void 0 ? void 0 : _d.number;
75
74
  var disabled = !methods.formState.isValid || !!error || !phone;
76
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, type: 'submit', isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
75
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
77
76
  };
78
77
  export default React.memo(VerifyNumber);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "1.0.69",
3
+ "version": "1.0.72",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",