@tap-payments/auth-jsconnect 1.0.90-test → 1.0.91-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.
Files changed (191) hide show
  1. package/build/api/account.js +1 -1
  2. package/build/api/auth.js +1 -1
  3. package/build/api/availabilityServices.js +1 -1
  4. package/build/api/axios.js +2 -2
  5. package/build/api/country.js +1 -1
  6. package/build/api/data.js +1 -1
  7. package/build/api/entity.js +1 -1
  8. package/build/api/firebase.js +1 -1
  9. package/build/api/individual.js +1 -1
  10. package/build/api/ip.js +1 -1
  11. package/build/api/lead.js +1 -1
  12. package/build/api/operator.js +1 -1
  13. package/build/app/rootReducer.d.ts +7 -7
  14. package/build/app/rootReducer.js +7 -7
  15. package/build/app/settings.d.ts +3 -3
  16. package/build/app/settings.js +5 -5
  17. package/build/components/AnimationFlow/Dialog.js +2 -2
  18. package/build/components/DatePicker/DatePicker.js +3 -3
  19. package/build/components/DatePicker/customStyle.css +86 -0
  20. package/build/components/Footer/Footer.d.ts +0 -2
  21. package/build/components/Footer/Footer.js +3 -4
  22. package/build/components/Input/Input.js +2 -2
  23. package/build/components/OTPTimer/OTPTimer.js +1 -1
  24. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  25. package/build/components/SimpleList/SimpleList.js +1 -1
  26. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  27. package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
  28. package/build/constants/app.d.ts +1 -1
  29. package/build/constants/app.js +1 -1
  30. package/build/features/Landing/Landing.d.ts +1 -1
  31. package/build/features/Landing/Landing.js +8 -8
  32. package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.js +6 -6
  33. package/build/features/app/bank/bankStore.d.ts +2 -2
  34. package/build/features/app/bank/bankStore.js +4 -4
  35. package/build/features/app/business/businessStore.d.ts +4 -4
  36. package/build/features/app/business/businessStore.js +5 -5
  37. package/build/features/app/connect/connectStore.d.ts +2 -2
  38. package/build/features/app/connect/connectStore.js +5 -5
  39. package/build/features/app/individual/individualStore.d.ts +2 -2
  40. package/build/features/app/individual/individualStore.js +4 -4
  41. package/build/features/app/landing/landingStore.d.ts +2 -2
  42. package/build/features/app/landing/landingStore.js +1 -1
  43. package/build/features/app/password/passwordStore.d.ts +2 -2
  44. package/build/features/app/password/passwordStore.js +4 -4
  45. package/build/features/app/tax/taxStore.d.ts +2 -2
  46. package/build/features/app/tax/taxStore.js +4 -4
  47. package/build/features/bank/Bank.d.ts +1 -1
  48. package/build/features/bank/Bank.js +10 -10
  49. package/build/features/bank/screens/BankDetails/BankDetails.js +8 -8
  50. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  51. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  52. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  53. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  54. package/build/features/bank/screens/Success/Success.js +3 -3
  55. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
  56. package/build/features/bank/screens/Verify/OTPInput.js +2 -2
  57. package/build/features/bank/screens/Verify/Verify.js +9 -9
  58. package/build/features/business/Business.d.ts +1 -1
  59. package/build/features/business/Business.js +10 -10
  60. package/build/features/business/screens/Activities/Activities.js +7 -7
  61. package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
  62. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  63. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  64. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  65. package/build/features/business/screens/Activities/SalesChannels.js +7 -7
  66. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  67. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  68. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  69. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  70. package/build/features/business/screens/BusinessType/validation.js +2 -2
  71. package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
  72. package/build/features/business/screens/Customers/CustomerLocations.js +8 -8
  73. package/build/features/business/screens/Customers/Customers.js +8 -8
  74. package/build/features/business/screens/Customers/ExpectedCustomers.js +6 -6
  75. package/build/features/business/screens/Customers/ExpectedSalesRange.js +7 -7
  76. package/build/features/business/screens/Customers/RefundPolicy.d.ts +2 -2
  77. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  78. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  79. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  80. package/build/features/business/screens/IDBOD/ID.js +6 -6
  81. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  82. package/build/features/business/screens/OTP/OTP.js +9 -9
  83. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  84. package/build/features/business/screens/Success/Success.js +3 -3
  85. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
  86. package/build/features/business/screens/Verify/OTPInput.js +2 -2
  87. package/build/features/business/screens/Verify/Verify.js +9 -9
  88. package/build/features/connect/Connect.d.ts +1 -1
  89. package/build/features/connect/Connect.js +10 -10
  90. package/build/features/connect/screens/Individual/Email.js +7 -7
  91. package/build/features/connect/screens/Individual/Individual.js +9 -9
  92. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  93. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  94. package/build/features/connect/screens/Individual/Name.js +6 -6
  95. package/build/features/connect/screens/Individual/validation.js +1 -1
  96. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  97. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  98. package/build/features/connect/screens/Merchant/BrandName.js +10 -10
  99. package/build/features/connect/screens/Merchant/Merchant.js +7 -7
  100. package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
  101. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  102. package/build/features/connect/screens/Merchant/validation.js +1 -1
  103. package/build/features/connect/screens/Mobile/Mobile.js +10 -10
  104. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  105. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  106. package/build/features/connect/screens/Mobile/Title.js +2 -2
  107. package/build/features/connect/screens/NID/DOB.js +5 -5
  108. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  109. package/build/features/connect/screens/NID/NID.js +9 -9
  110. package/build/features/connect/screens/OTP/OTP.js +9 -9
  111. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  112. package/build/features/connect/screens/ThankYou/ThankYou.js +3 -3
  113. package/build/features/featuresScreens.d.ts +1 -1
  114. package/build/features/featuresScreens.js +31 -31
  115. package/build/features/individual/Individual.d.ts +1 -1
  116. package/build/features/individual/Individual.js +10 -10
  117. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -8
  118. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  119. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  120. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  121. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  122. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  123. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -9
  124. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  125. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  126. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +8 -8
  127. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  128. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  129. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  130. package/build/features/individual/screens/Success/Success.js +3 -3
  131. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
  132. package/build/features/individual/screens/Verify/OTPInput.js +2 -2
  133. package/build/features/individual/screens/Verify/Verify.js +9 -9
  134. package/build/features/password/Password.d.ts +1 -1
  135. package/build/features/password/Password.js +10 -10
  136. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  137. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  138. package/build/features/password/screens/CreatePassword/CreatePassword.js +7 -7
  139. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  140. package/build/features/password/screens/Success/Success.js +3 -3
  141. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
  142. package/build/features/password/screens/Verify/OTPInput.js +2 -2
  143. package/build/features/password/screens/Verify/Verify.js +9 -9
  144. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  145. package/build/features/shared/Background/LogoBackground.js +4 -7
  146. package/build/features/shared/Button/AbsherButton.d.ts +2 -3
  147. package/build/features/shared/Button/AbsherButton.js +4 -4
  148. package/build/features/shared/Button/Button.d.ts +1 -1
  149. package/build/features/shared/Button/Button.js +7 -7
  150. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  151. package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
  152. package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
  153. package/build/features/shared/Button/FlowsButtons.js +5 -5
  154. package/build/features/shared/Button/MobileButton.d.ts +2 -3
  155. package/build/features/shared/Button/MobileButton.js +4 -4
  156. package/build/features/shared/Button/SuccessButton.js +1 -1
  157. package/build/features/shared/Footer/Footer.js +5 -5
  158. package/build/features/shared/Input/Input.d.ts +1 -1
  159. package/build/features/shared/Input/Input.js +2 -2
  160. package/build/features/shared/OTP/OTP.d.ts +1 -1
  161. package/build/features/shared/OTP/OTP.js +3 -3
  162. package/build/features/shared/Search/Search.js +1 -1
  163. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  164. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  165. package/build/features/tax/Tax.d.ts +1 -1
  166. package/build/features/tax/Tax.js +10 -10
  167. package/build/features/tax/screens/Success/Success.js +3 -3
  168. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
  169. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
  170. package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
  171. package/build/features/tax/screens/Verify/OTPInput.js +2 -2
  172. package/build/features/tax/screens/Verify/Verify.js +9 -9
  173. package/build/hooks/useAppConfig.d.ts +1 -1
  174. package/build/hooks/useAppConfig.js +4 -4
  175. package/build/hooks/useAppSelector.d.ts +1 -1
  176. package/build/hooks/useAppTheme.d.ts +1 -1
  177. package/build/hooks/useAppTheme.js +3 -3
  178. package/build/hooks/useErrorListener.js +2 -2
  179. package/build/hooks/useLanguage.js +1 -1
  180. package/build/hooks/useRedirectionListener.js +1 -1
  181. package/build/i18n.js +1 -1
  182. package/build/index.css +135 -0
  183. package/build/index.d.ts +7 -7
  184. package/build/index.js +7 -7
  185. package/build/theme/theme.d.ts +1 -1
  186. package/build/utils/locale.d.ts +1 -1
  187. package/build/utils/locale.js +1 -1
  188. package/build/utils/rsa.js +1 -1
  189. package/build/utils/string.d.ts +1 -1
  190. package/build/utils/string.js +3 -3
  191. package/package.json +1 -1
@@ -26,7 +26,7 @@ import Button from './Button';
26
26
  import { styled } from '@mui/material/styles';
27
27
  import Box from '@mui/material/Box';
28
28
  var ButtonStyled = styled(Button, {
29
- shouldForwardProp: function (prop) { return prop !== 'isLoading'; }
29
+ shouldForwardProp: function (prop) { return !['isLoading', 'isAr'].includes(prop); }
30
30
  })(function (_a) {
31
31
  var theme = _a.theme, isLoading = _a.isLoading;
32
32
  return ({
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LanguageMode } from '@types';
3
- import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
4
- import { handleLanguage } from '@app/settings';
5
- import Footer from '@components/Footer';
2
+ import { LanguageMode } from '../../../@types';
3
+ import { useAppDispatch, useLanguage, useAppSelector } from '../../../hooks';
4
+ import { handleLanguage } from '../../../app/settings';
5
+ import Footer from '../../../components/Footer';
6
6
  import { useTranslation } from 'react-i18next';
7
- import { connectSelector } from '@features/app/connect/connectStore';
7
+ import { connectSelector } from '../../app/connect/connectStore';
8
8
  export default function CustomFooter() {
9
9
  var isEn = useLanguage().isEn;
10
10
  var t = useTranslation().t;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from '@components/Input';
2
+ import { InputProps } from '../../../components/Input';
3
3
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
4
4
  align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
5
5
  children?: React.ReactNode;
@@ -22,9 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
24
  import { styled, alpha } from '@mui/material/styles';
25
- import Text from '@components/Text';
25
+ import Text from '../../../components/Text';
26
26
  import Box from '@mui/material/Box';
27
- import Input from '@components/Input';
27
+ import Input from '../../../components/Input';
28
28
  import Mandatory from '../Mandatory';
29
29
  export var InputLabelStyled = styled(Text)(function (_a) {
30
30
  var theme = _a.theme;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { OTPFieldProps } from '@components/OTPField';
2
+ import { OTPFieldProps } from '../../../components/OTPField';
3
3
  interface OTPProps extends OTPFieldProps {
4
4
  timerInSeconds?: number;
5
5
  onResetClick?: () => void;
@@ -24,9 +24,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
26
  import Box from '@mui/material/Box/Box';
27
- import OTPField from '@components/OTPField';
28
- import OTPTimer from '@components/OTPTimer';
29
- import { useContainerDimensions } from '@hooks';
27
+ import OTPField from '../../../components/OTPField';
28
+ import OTPTimer from '../../../components/OTPTimer';
29
+ import { useContainerDimensions } from '../../../hooks';
30
30
  var OTPStyled = styled(OTPField)(function (_a) {
31
31
  var _b;
32
32
  var theme = _a.theme, parentWidth = _a.parentWidth;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import Input from '@features/shared/Input';
4
+ import Input from '../../shared/Input';
5
5
  var Search = function (_a) {
6
6
  var onSearchValue = _a.onSearchValue;
7
7
  var t = useTranslation().t;
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import Icon from '@src/components/Icon';
13
+ import Icon from '../../../components/Icon';
14
14
  import { styled } from '@mui/material/styles';
15
- import { ICONS_NAMES } from '@src/constants';
15
+ import { ICONS_NAMES } from '../../../constants';
16
16
  var SearchIcon = styled(Icon)(function (_a) {
17
17
  var theme = _a.theme;
18
18
  return ({
@@ -14,12 +14,12 @@ import Box from '@mui/material/Box/Box';
14
14
  import { styled } from '@mui/material/styles';
15
15
  import * as React from 'react';
16
16
  import { useTranslation } from 'react-i18next';
17
- import Text from '@components/Text';
17
+ import Text from '../../../components/Text';
18
18
  import Container from '../Containers/ScreenContainer';
19
- import { EmailProvidersButton, SuccessButton } from '@features/shared/Button';
20
- import Icon from '@components/Icon';
21
- import { ICONS_NAMES } from '@constants';
22
- import { useLanguage } from '@hooks';
19
+ import { EmailProvidersButton, SuccessButton } from '../../shared/Button';
20
+ import Icon from '../../../components/Icon';
21
+ import { ICONS_NAMES } from '../../../constants';
22
+ import { useLanguage } from '../../../hooks';
23
23
  var MailBoxStyled = styled(Box)(function () { return ({
24
24
  width: '100%'
25
25
  }); });
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LibConfig } from '@types';
2
+ import { LibConfig } from '../../@types';
3
3
  export interface TaxLibProps extends LibConfig {
4
4
  }
5
5
  export declare function TaxLib(props: TaxLibProps): JSX.Element;
@@ -11,18 +11,18 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { memo, useEffect } from 'react';
14
- import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener } from '@hooks';
15
- import { handleLanguage, settingsSelector } from '@app/settings';
16
- import AnimationFlow from '@components/AnimationFlow';
17
- import { store } from '@app/store';
18
- import { ReduxProvider, ThemeProvider } from '@components/Providers';
19
- import Collapse from '@components/Collapse';
20
- import { getParameterByName, reactElement } from '@utils';
21
- import { FeatureContainer } from '@features/shared/Containers';
22
- import { TAX_SCREENS_NAVIGATION } from '@constants';
14
+ import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener } from '../../hooks';
15
+ import { handleLanguage, settingsSelector } from '../../app/settings';
16
+ import AnimationFlow from '../../components/AnimationFlow';
17
+ import { store } from '../../app/store';
18
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
19
+ import Collapse from '../../components/Collapse';
20
+ import { getParameterByName, reactElement } from '../../utils';
21
+ import { FeatureContainer } from '../shared/Containers';
22
+ import { TAX_SCREENS_NAVIGATION } from '../../constants';
23
23
  import { taxFeatureScreens } from '../featuresScreens';
24
24
  import CustomFooter from '../shared/Footer';
25
- import { taxSelector, verifyLeadToken } from '@features/app/tax/taxStore';
25
+ import { taxSelector, verifyLeadToken } from '../app/tax/taxStore';
26
26
  import Background from '../shared/Background';
27
27
  var Tax = memo(function (props) {
28
28
  var theme = useAppTheme().theme;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { useAppDispatch, useAppSelector } from '@hooks';
5
- import { updateLeadSuccess, taxSelector } from '@features/app/tax/taxStore';
6
- import SuccessScreen from '@features/shared/SuccessScreen';
4
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
5
+ import { updateLeadSuccess, taxSelector } from '../../../app/tax/taxStore';
6
+ import SuccessScreen from '../../../shared/SuccessScreen';
7
7
  var Success = function (_a) {
8
8
  var t = useTranslation().t;
9
9
  var dispatch = useAppDispatch();
@@ -13,15 +13,15 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
13
  import React, { memo, useEffect, useState } from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { styled } from '@mui/material/styles';
16
- import { FlowsButtons } from '@features/shared/Button';
17
- import { ICONS_NAMES } from '@constants';
18
- import { useAppSelector, useLanguage } from '@hooks';
19
- import { allAreTruthy, showLastFour } from '@utils';
20
- import { taxSelector } from '@features/app/tax/taxStore';
16
+ import { FlowsButtons } from '../../../shared/Button';
17
+ import { ICONS_NAMES } from '../../../../constants';
18
+ import { useAppSelector, useLanguage } from '../../../../hooks';
19
+ import { allAreTruthy, showLastFour } from '../../../../utils';
20
+ import { taxSelector } from '../../../app/tax/taxStore';
21
21
  import Box from '@mui/material/Box';
22
- import Text from '@components/Text';
23
- import Container from '@features/shared/Containers/ScreenContainer';
24
- import AcceptancePayouts from '@features/shared/AcceptancePayouts';
22
+ import Text from '../../../../components/Text';
23
+ import Container from '../../../shared/Containers/ScreenContainer';
24
+ import AcceptancePayouts from '../../../shared/AcceptancePayouts';
25
25
  var TitleStyled = styled(Text)(function (_a) {
26
26
  var _b;
27
27
  var theme = _a.theme;
@@ -10,17 +10,17 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { ScreenContainer } from '@features/shared/Containers';
14
- import Button from '@features/shared/Button';
15
- import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
13
+ import { ScreenContainer } from '../../../shared/Containers';
14
+ import Button from '../../../shared/Button';
15
+ import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import { useForm, FormProvider } from 'react-hook-form';
19
- import Form from '@components/Form';
19
+ import Form from '../../../../components/Form';
20
20
  import { Validation } from './validation';
21
21
  import { yupResolver } from '@hookform/resolvers/yup';
22
- import { taxSelector, updateTaxInfo } from '@features/app/tax/taxStore';
23
- import { handleCurrentActiveScreen } from '@app/settings';
22
+ import { taxSelector, updateTaxInfo } from '../../../app/tax/taxStore';
23
+ import { handleCurrentActiveScreen } from '../../../../app/settings';
24
24
  import VATId from './VATId';
25
25
  var FormStyled = styled(Form)(function () { return ({
26
26
  display: 'flex',
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { FeatureContainer } from '@features/shared/Containers';
3
- import Input from '@features/shared/Input';
2
+ import { FeatureContainer } from '../../../shared/Containers';
3
+ import Input from '../../../shared/Input';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { useController, useFormContext } from 'react-hook-form';
6
- import { VAT_ID_LENGTH } from '@constants';
7
- import ClearIcon from '@features/shared/ClearIcon';
8
- import CheckIcon from '@features/shared/CheckIcon';
9
- import { removeAllCharsFromNumber } from '@utils';
6
+ import { VAT_ID_LENGTH } from '../../../../constants';
7
+ import ClearIcon from '../../../shared/ClearIcon';
8
+ import CheckIcon from '../../../shared/CheckIcon';
9
+ import { removeAllCharsFromNumber } from '../../../../utils';
10
10
  var VATId = function () {
11
11
  var _a;
12
12
  var t = useTranslation().t;
@@ -13,10 +13,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import Box from '@mui/material/Box/Box';
15
15
  import { styled } from '@mui/material/styles';
16
- import OTPField from '@features/shared/OTP';
16
+ import OTPField from '../../../shared/OTP';
17
17
  import { useController, useFormContext } from 'react-hook-form';
18
18
  import { useTranslation } from 'react-i18next';
19
- import { DEFAULT_TIMER_VALUE } from '@constants';
19
+ import { DEFAULT_TIMER_VALUE } from '../../../../constants';
20
20
  var BoxStyled = styled(Box)(function (_a) {
21
21
  var theme = _a.theme;
22
22
  return ({
@@ -11,20 +11,20 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
- import { useAppDispatch } from '@hooks';
14
+ import { useAppDispatch } from '../../../../hooks';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
18
  import Box from '@mui/material/Box/Box';
19
19
  import { styled } from '@mui/material/styles';
20
- import { handlePrevScreenStep } from '@app/settings';
21
- import { useLanguage, useAppSelector } from '@hooks';
22
- import { maskPhone } from '@utils';
23
- import Form from '@components/Form';
24
- import Text from '@components/Text';
25
- import { ScreenContainer } from '@features/shared/Containers';
26
- import { taxSelector, clearError, resetOTPScreen, verifyTaxLeadOTP } from '@features/app/tax/taxStore';
27
- import Button from '@features/shared/Button';
20
+ import { handlePrevScreenStep } from '../../../../app/settings';
21
+ import { useLanguage, useAppSelector } from '../../../../hooks';
22
+ import { maskPhone } from '../../../../utils';
23
+ import Form from '../../../../components/Form';
24
+ import Text from '../../../../components/Text';
25
+ import { ScreenContainer } from '../../../shared/Containers';
26
+ import { taxSelector, clearError, resetOTPScreen, verifyTaxLeadOTP } from '../../../app/tax/taxStore';
27
+ import Button from '../../../shared/Button';
28
28
  import { OTPValidation } from './validation';
29
29
  import OTPInput from './OTPInput';
30
30
  var OTPTitleContainerStyled = styled(Box)(function (_a) {
@@ -1,4 +1,4 @@
1
- import { LibConfig, ScreenStepNavigation } from '@types';
1
+ import { LibConfig, ScreenStepNavigation } from '../@types';
2
2
  interface AppConfigProps extends LibConfig {
3
3
  navigation: ScreenStepNavigation[];
4
4
  }
@@ -57,12 +57,12 @@ var __rest = (this && this.__rest) || function (s, e) {
57
57
  return t;
58
58
  };
59
59
  import { useEffect, useState } from 'react';
60
- import { handleActiveFlowScreens, settingsSelector, getClientIp, getLocale, getBrowserFingerPrint, getOperator, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin } from '@app/settings';
60
+ import { handleActiveFlowScreens, settingsSelector, getClientIp, getLocale, getBrowserFingerPrint, getOperator, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin } from '../app/settings';
61
61
  import { useAppDispatch } from './useAppDispatch';
62
62
  import { useAppSelector } from './useAppSelector';
63
- import { setAxiosGlobalHeaders, axiosInstance } from '@api';
64
- import { getRequestHeaders, encryptString, isTapDomain } from '@utils';
65
- import { ENDPOINT_PATHS } from '@constants';
63
+ import { setAxiosGlobalHeaders, axiosInstance } from '../api';
64
+ import { getRequestHeaders, encryptString, isTapDomain } from '../utils';
65
+ import { ENDPOINT_PATHS } from '../constants';
66
66
  export var useAppConfig = function (_a) {
67
67
  var appInfo = _a.appInfo, navigation = _a.navigation, publicKey = _a.publicKey, rest = __rest(_a, ["appInfo", "navigation", "publicKey"]);
68
68
  var _b = useState(true), loading = _b[0], setLoading = _b[1];
@@ -1,3 +1,3 @@
1
1
  import { TypedUseSelectorHook } from 'react-redux';
2
- import { RootState } from '@app/store';
2
+ import { RootState } from '../app/store';
3
3
  export declare const useAppSelector: TypedUseSelectorHook<RootState>;
@@ -1,4 +1,4 @@
1
- import { ThemContext } from '@types';
1
+ import { ThemContext } from '../@types';
2
2
  export declare const useAppTheme: () => {
3
3
  theme: ThemContext | undefined;
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { useEffect, useState } from 'react';
2
- import { LanguageMode, DirectionMode } from '@types';
3
- import { settingsSelector } from '@app/settings';
2
+ import { LanguageMode, DirectionMode } from '../@types';
3
+ import { settingsSelector } from '../app/settings';
4
4
  import { useAppSelector } from './useAppSelector';
5
- import { appTheme } from '@theme';
5
+ import { appTheme } from '../theme';
6
6
  export var useAppTheme = function () {
7
7
  var _a = useState(), theme = _a[0], setTheme = _a[1];
8
8
  var data = useAppSelector(settingsSelector).data;
@@ -1,7 +1,7 @@
1
1
  import { useEffect } from 'react';
2
- import { settingsSelector } from '@app/settings';
2
+ import { settingsSelector } from '../app/settings';
3
3
  import { useAppSelector } from './useAppSelector';
4
- import { connectSelector } from '@features/app/connect/connectStore';
4
+ import { connectSelector } from '../features/app/connect/connectStore';
5
5
  export var useErrorListener = function () {
6
6
  var settings = useAppSelector(settingsSelector);
7
7
  var connect = useAppSelector(connectSelector);
@@ -1,5 +1,5 @@
1
1
  import { useTranslation } from 'react-i18next';
2
- import { LanguageMode } from '@types';
2
+ import { LanguageMode } from '../@types';
3
3
  export function useLanguage() {
4
4
  var i18n = useTranslation().i18n;
5
5
  var isAr = i18n.language === LanguageMode.AR;
@@ -1,4 +1,4 @@
1
- import { decodeObjectBase64, getParameterByName } from '@utils';
1
+ import { decodeObjectBase64, getParameterByName } from '../utils';
2
2
  export var useRedirectionData = function (dataKey) {
3
3
  if (dataKey === void 0) { dataKey = 'data'; }
4
4
  var dataToken = getParameterByName(dataKey);
package/build/i18n.js CHANGED
@@ -2,7 +2,7 @@ import i18n from 'i18next';
2
2
  import { initReactI18next } from 'react-i18next';
3
3
  import Backend from 'i18next-http-backend';
4
4
  import LanguageDetector from 'i18next-browser-languagedetector';
5
- import { LOCAL_STORAGE_KEYS } from '@constants';
5
+ import { LOCAL_STORAGE_KEYS } from './constants';
6
6
  import translationEN from './assets/locales/en.json';
7
7
  import translationAR from './assets/locales/ar.json';
8
8
  var resources = {
@@ -0,0 +1,135 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
2
+ @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
3
+ @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
4
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
5
+ @import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
6
+
7
+ /* http://meyerweb.com/eric/tools/css/reset/
8
+ v2.0 | 20110126
9
+ License: none (public domain)
10
+ */
11
+
12
+ html,
13
+ body,
14
+ div,
15
+ span,
16
+ applet,
17
+ object,
18
+ iframe,
19
+ h1,
20
+ h2,
21
+ h3,
22
+ h4,
23
+ h5,
24
+ h6,
25
+ p,
26
+ blockquote,
27
+ pre,
28
+ a,
29
+ abbr,
30
+ acronym,
31
+ address,
32
+ big,
33
+ cite,
34
+ code,
35
+ del,
36
+ dfn,
37
+ em,
38
+ img,
39
+ ins,
40
+ kbd,
41
+ q,
42
+ s,
43
+ samp,
44
+ small,
45
+ strike,
46
+ strong,
47
+ sub,
48
+ sup,
49
+ tt,
50
+ var,
51
+ b,
52
+ u,
53
+ i,
54
+ center,
55
+ dl,
56
+ dt,
57
+ dd,
58
+ ol,
59
+ ul,
60
+ li,
61
+ fieldset,
62
+ form,
63
+ label,
64
+ legend,
65
+ table,
66
+ caption,
67
+ tbody,
68
+ tfoot,
69
+ thead,
70
+ tr,
71
+ th,
72
+ td,
73
+ article,
74
+ aside,
75
+ canvas,
76
+ details,
77
+ embed,
78
+ figure,
79
+ figcaption,
80
+ footer,
81
+ header,
82
+ hgroup,
83
+ menu,
84
+ nav,
85
+ output,
86
+ ruby,
87
+ section,
88
+ summary,
89
+ time,
90
+ mark,
91
+ audio,
92
+ video {
93
+ margin: 0;
94
+ padding: 0;
95
+ border: 0;
96
+ font-size: 100%;
97
+ font: inherit;
98
+ vertical-align: baseline;
99
+ }
100
+ /* HTML5 display-role reset for older browsers */
101
+ article,
102
+ aside,
103
+ details,
104
+ figcaption,
105
+ figure,
106
+ footer,
107
+ header,
108
+ hgroup,
109
+ menu,
110
+ nav,
111
+ section {
112
+ display: block;
113
+ }
114
+ body {
115
+ line-height: 1;
116
+ }
117
+ ol,
118
+ ul {
119
+ list-style: none;
120
+ }
121
+ blockquote,
122
+ q {
123
+ quotes: none;
124
+ }
125
+ blockquote:before,
126
+ blockquote:after,
127
+ q:before,
128
+ q:after {
129
+ content: '';
130
+ content: none;
131
+ }
132
+ table {
133
+ border-collapse: collapse;
134
+ border-spacing: 0;
135
+ }
package/build/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import './index.css';
2
2
  import './i18n';
3
- import { ConnectLib, renderConnectLib, ConnectLibProps, unmountConnectLib } from '@features/connect';
4
- import { BusinessLib, renderBusinessLib, BusinessLibProps, unmountBusinessLib } from '@features/business';
5
- import { PasswordLib, renderPasswordLib, PasswordLibProps, unmountPasswordLib } from '@features/password';
6
- import { IndividualLib, renderIndividualLib, IndividualLibProps, unmountIndividualLib } from '@features/individual';
7
- import { BankLib, renderBankLib, BankLibProps, unmountBankLib } from '@features/bank';
8
- import { TaxLib, renderTaxLib, TaxLibProps, unmountTaxLib } from '@features/tax';
9
- import { LandingLib, LandingProps, renderLandingLib, unmountLandingLib } from '@features/Landing';
3
+ import { ConnectLib, renderConnectLib, ConnectLibProps, unmountConnectLib } from './features/connect';
4
+ import { BusinessLib, renderBusinessLib, BusinessLibProps, unmountBusinessLib } from './features/business';
5
+ import { PasswordLib, renderPasswordLib, PasswordLibProps, unmountPasswordLib } from './features/password';
6
+ import { IndividualLib, renderIndividualLib, IndividualLibProps, unmountIndividualLib } from './features/individual';
7
+ import { BankLib, renderBankLib, BankLibProps, unmountBankLib } from './features/bank';
8
+ import { TaxLib, renderTaxLib, TaxLibProps, unmountTaxLib } from './features/tax';
9
+ import { LandingLib, LandingProps, renderLandingLib, unmountLandingLib } from './features/Landing';
10
10
  export type { ConnectLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps, LandingProps };
11
11
  export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib, IndividualLib, renderIndividualLib, unmountIndividualLib, BankLib, renderBankLib, unmountBankLib, TaxLib, renderTaxLib, unmountTaxLib, LandingLib, renderLandingLib, unmountLandingLib };
package/build/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import './index.css';
2
2
  import './i18n';
3
- import { ConnectLib, renderConnectLib, unmountConnectLib } from '@features/connect';
4
- import { BusinessLib, renderBusinessLib, unmountBusinessLib } from '@features/business';
5
- import { PasswordLib, renderPasswordLib, unmountPasswordLib } from '@features/password';
6
- import { IndividualLib, renderIndividualLib, unmountIndividualLib } from '@features/individual';
7
- import { BankLib, renderBankLib, unmountBankLib } from '@features/bank';
8
- import { TaxLib, renderTaxLib, unmountTaxLib } from '@features/tax';
9
- import { LandingLib, renderLandingLib, unmountLandingLib } from '@features/Landing';
3
+ import { ConnectLib, renderConnectLib, unmountConnectLib } from './features/connect';
4
+ import { BusinessLib, renderBusinessLib, unmountBusinessLib } from './features/business';
5
+ import { PasswordLib, renderPasswordLib, unmountPasswordLib } from './features/password';
6
+ import { IndividualLib, renderIndividualLib, unmountIndividualLib } from './features/individual';
7
+ import { BankLib, renderBankLib, unmountBankLib } from './features/bank';
8
+ import { TaxLib, renderTaxLib, unmountTaxLib } from './features/tax';
9
+ import { LandingLib, renderLandingLib, unmountLandingLib } from './features/Landing';
10
10
  export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib, IndividualLib, renderIndividualLib, unmountIndividualLib, BankLib, renderBankLib, unmountBankLib, TaxLib, renderTaxLib, unmountTaxLib, LandingLib, renderLandingLib, unmountLandingLib };
11
11
  window['TapAuth'] = {
12
12
  renderConnectLib: renderConnectLib,
@@ -1,2 +1,2 @@
1
- import { DirectionMode, ThemeMode } from '@types';
1
+ import { DirectionMode, ThemeMode } from '../@types';
2
2
  export declare const appTheme: (mode: ThemeMode, dir: DirectionMode) => import("@mui/material/styles").Theme;
@@ -1,2 +1,2 @@
1
- import { LocalProps } from '@types';
1
+ import { LocalProps } from '../@types';
2
2
  export declare const updateLocale: (locale: LocalProps, country: string) => void;
@@ -1,5 +1,5 @@
1
1
  import { initReactI18next } from 'react-i18next';
2
- import i18n from '@src/i18n';
2
+ import i18n from '../i18n';
3
3
  export var updateLocale = function (locale, country) {
4
4
  var data = locale[country.toUpperCase()] || locale['default'];
5
5
  if (i18n.isInitialized) {
@@ -1,5 +1,5 @@
1
1
  import { JSEncrypt } from 'jsencrypt';
2
- import { RSA_FRONTEND_MW_PUBLIC_KEY } from '@constants';
2
+ import { RSA_FRONTEND_MW_PUBLIC_KEY } from '../constants';
3
3
  var rsa = new JSEncrypt();
4
4
  rsa.setPublicKey(RSA_FRONTEND_MW_PUBLIC_KEY);
5
5
  export var encryptObject = function (data) {
@@ -1,4 +1,4 @@
1
- import { DeviceInfo } from '@types';
1
+ import { DeviceInfo } from '../@types';
2
2
  export declare const maskPhone: (str?: string) => string;
3
3
  export declare const maskID: (str: string) => string;
4
4
  export declare const showLastFour: (str: string) => string;
@@ -1,6 +1,6 @@
1
- import { encryptString } from '@utils';
2
- import { removeAxiosGlobalHeaders } from '@api';
3
- import { ENDPOINT_PATHS } from '@constants';
1
+ import { encryptString } from '.';
2
+ import { removeAxiosGlobalHeaders } from '../api';
3
+ import { ENDPOINT_PATHS } from '../constants';
4
4
  export var maskPhone = function (str) {
5
5
  if (str === void 0) { str = ''; }
6
6
  var lastTwo = str.substring(str.length - 2, str.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "1.0.90-test",
3
+ "version": "1.0.91-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",