@tap-payments/auth-jsconnect 1.0.14 → 1.0.16
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/assets/locales/ar.json +18 -8
- package/build/assets/locales/en.json +11 -1
- package/build/components/DatePicker/DatePicker.js +5 -16
- package/build/components/ExpandIcon/ExpandIcon.d.ts +7 -0
- package/build/components/ExpandIcon/ExpandIcon.js +24 -0
- package/build/components/ExpandIcon/index.d.ts +2 -0
- package/build/components/ExpandIcon/index.js +2 -0
- package/build/components/Footer/Footer.js +1 -1
- package/build/components/Warning/Warning.d.ts +1 -2
- package/build/components/Warning/Warning.js +1 -2
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +8 -8
- package/build/constants/dummy.js +3 -3
- package/build/features/bank/screens/BankDetails/Beneficiary.js +2 -2
- package/build/features/bank/screens/BankDetails/validation.js +4 -4
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -16
- package/build/features/business/screens/Activities/ActivitiesList.js +3 -17
- package/build/features/business/screens/BusinessType/CRNumber.js +2 -1
- package/build/features/business/screens/BusinessType/CompanyLicense.js +1 -1
- package/build/features/business/screens/BusinessType/FLNumber.js +2 -1
- package/build/features/business/screens/BusinessType/FreelanceLicense.js +1 -1
- package/build/features/business/screens/BusinessType/validation.js +2 -8
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +0 -24
- package/build/features/business/screens/Customers/CustomerLocations.js +3 -17
- package/build/features/business/screens/Customers/ExpectedCustomers.js +4 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +4 -2
- package/build/features/business/screens/Customers/validation.js +1 -1
- package/build/features/business/screens/IDBOD/DOB.js +3 -11
- package/build/features/business/screens/IDBOD/validation.js +1 -0
- package/build/features/business/screens/OTP/OTPInput.js +1 -0
- package/build/features/business/screens/OTP/validation.js +1 -1
- package/build/features/business/screens/VerifyNumber/OTPInput.js +1 -0
- package/build/features/business/screens/VerifyNumber/validation.js +1 -1
- package/build/features/connect/screens/Individual/Name.js +2 -2
- package/build/features/connect/screens/MID/BusinessCountry.d.ts +1 -0
- package/build/features/connect/screens/MID/BusinessCountry.js +1 -1
- package/build/features/connect/screens/MID/DOB.d.ts +6 -0
- package/build/features/connect/screens/MID/DOB.js +38 -0
- package/build/features/connect/screens/MID/IDNumber.js +3 -14
- package/build/features/connect/screens/MID/MID.js +13 -7
- package/build/features/connect/screens/MID/MobileNumber.d.ts +1 -0
- package/build/features/connect/screens/MID/MobileNumber.js +28 -10
- package/build/features/connect/screens/MID/validation.d.ts +1 -1
- package/build/features/connect/screens/MID/validation.js +3 -2
- package/build/features/connect/screens/Merchant/SocialMedia.js +1 -1
- package/build/features/connect/screens/OTP/OTPInput.js +1 -0
- package/build/features/connect/screens/OTP/validation.js +1 -1
- package/build/features/connect/screens/Password/PasswordInput.js +1 -1
- package/build/features/connect/screens/Password/validation.js +1 -1
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +9 -9
- package/build/features/individual/Individual.d.ts +6 -0
- package/build/features/individual/Individual.js +50 -0
- package/build/features/individual/index.d.ts +1 -0
- package/build/features/individual/index.js +1 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +8 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +81 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +81 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +40 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +45 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +36 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +45 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +9 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +87 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +3 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/index.js +2 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +25 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +35 -0
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +19 -0
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +52 -0
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +3 -0
- package/build/features/individual/screens/ShowIndividualInfo/index.js +2 -0
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +7 -0
- package/build/features/individual/screens/ShowIndividualInfo/info.js +28 -0
- package/build/features/individual/screens/Success/Success.d.ts +5 -0
- package/build/features/individual/screens/Success/Success.js +14 -0
- package/build/features/individual/screens/Success/index.d.ts +3 -0
- package/build/features/individual/screens/Success/index.js +2 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +4 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +2 -8
- package/build/features/password/screens/CreatePassword/Password.js +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +10 -1
- package/build/index.d.ts +3 -3
- package/build/index.js +4 -4
- package/package.json +120 -120
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import Box from '@mui/material/Box';
|
|
15
|
+
import { useTranslation } from 'react-i18next';
|
|
16
|
+
import { useAppDispatch } from '../../../../hooks';
|
|
17
|
+
import { handleNextScreenStep } from '../../../../app/settings';
|
|
18
|
+
import { styled } from '@mui/material/styles';
|
|
19
|
+
import Collapse from '../../../../components/Collapse';
|
|
20
|
+
import Button from '../../../shared/Button';
|
|
21
|
+
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
22
|
+
import { useLanguage } from '../../../../hooks';
|
|
23
|
+
import Info from './info';
|
|
24
|
+
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
25
|
+
var _b;
|
|
26
|
+
var theme = _a.theme;
|
|
27
|
+
return (_b = {
|
|
28
|
+
paddingBottom: theme.spacing(5)
|
|
29
|
+
},
|
|
30
|
+
_b[theme.transitions.create(['padding-bottom'])] = {
|
|
31
|
+
duration: theme.transitions.duration.standard
|
|
32
|
+
},
|
|
33
|
+
_b);
|
|
34
|
+
});
|
|
35
|
+
var ShowOwnerInfo = function (_a) {
|
|
36
|
+
var citizenship = _a.citizenship, nationalAddr = _a.nationalAddr, birthDate = _a.birthDate, placeOfBirth = _a.placeOfBirth, maritalStatus = _a.maritalStatus;
|
|
37
|
+
var t = useTranslation().t;
|
|
38
|
+
var isAr = useLanguage().isAr;
|
|
39
|
+
var dispatch = useAppDispatch();
|
|
40
|
+
var handleClickNext = function () {
|
|
41
|
+
dispatch(handleNextScreenStep());
|
|
42
|
+
};
|
|
43
|
+
return (_jsxs(ScreenContainer, { children: [_jsxs(InputsContainerStyled, { children: [_jsx(Collapse, __assign({ in: !!citizenship }, { children: _jsx(Info, { label: 'citizenship', value: citizenship }) })), _jsx(Collapse, __assign({ in: !!nationalAddr }, { children: _jsx(Info, { label: 'national_address', value: nationalAddr }) })), _jsx(Info, { label: t('birthdate'), value: birthDate }), _jsx(Info, { label: 'place_of_birth', value: placeOfBirth }), _jsx(Collapse, __assign({ in: !!maritalStatus }, { children: _jsx(Info, { label: 'marital_status', value: maritalStatus }) }))] }), _jsx(Button, __assign({ isAr: isAr, disabled: false, loading: false, onClick: handleClickNext }, { children: t('next') }))] }));
|
|
44
|
+
};
|
|
45
|
+
export default React.memo(ShowOwnerInfo);
|
|
46
|
+
ShowOwnerInfo.defaultProps = {
|
|
47
|
+
citizenship: '',
|
|
48
|
+
nationalAddr: 'Kuwait',
|
|
49
|
+
birthDate: '18-12-1983',
|
|
50
|
+
placeOfBirth: 'Kuwait',
|
|
51
|
+
maritalStatus: ''
|
|
52
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useTranslation } from 'react-i18next';
|
|
14
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
15
|
+
import Text from '../../../../components/Text';
|
|
16
|
+
var LabelTextStyled = styled(Text)(function (_a) {
|
|
17
|
+
var theme = _a.theme;
|
|
18
|
+
return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), paddingInlineStart: theme.spacing(2.5), marginBlockStart: theme.spacing(3.5), marginBlockEnd: theme.spacing(1.25) }));
|
|
19
|
+
});
|
|
20
|
+
var ValueTextStyled = styled(Text)(function (_a) {
|
|
21
|
+
var theme = _a.theme;
|
|
22
|
+
return (__assign(__assign({ background: theme.palette.common.white, color: theme.palette.text.primary, border: "".concat(theme.spacing(0.125), " solid ").concat(theme.palette.divider), maxHeight: theme.spacing(5.5), paddingBlock: theme.spacing(1.75), paddingInlineStart: theme.spacing(2.5), fontWeight: theme.typography.fontWeightLight }, theme.typography.body2), { lineHeight: theme.spacing(2.125) }));
|
|
23
|
+
});
|
|
24
|
+
export default function Info(_a) {
|
|
25
|
+
var label = _a.label, value = _a.value;
|
|
26
|
+
var t = useTranslation().t;
|
|
27
|
+
return (_jsxs(_Fragment, { children: [_jsx(LabelTextStyled, { children: t(label) }), _jsx(ValueTextStyled, { children: value })] }));
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import SuccessScreen from '../../../shared/SuccessScreen';
|
|
5
|
+
var Success = function (_a) {
|
|
6
|
+
var t = useTranslation().t;
|
|
7
|
+
var onSuccess = function () {
|
|
8
|
+
console.log('success');
|
|
9
|
+
alert('Account created successfully, please check your email');
|
|
10
|
+
alert("It's a fake message, plz wait us to integrate with the backend. <A.Sharkawy>");
|
|
11
|
+
};
|
|
12
|
+
return _jsx(SuccessScreen, { title: t('ide_successfully_updated_message'), onSuccess: onSuccess });
|
|
13
|
+
};
|
|
14
|
+
export default React.memo(Success);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
interface ConfirmPasswordProps {
|
|
3
|
+
showPassword: boolean;
|
|
4
|
+
onShowPassword: () => void;
|
|
5
|
+
onHidePassword: () => void;
|
|
3
6
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: ConfirmPasswordProps) => JSX.Element>;
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ showPassword, onShowPassword, onHidePassword }: ConfirmPasswordProps) => JSX.Element>;
|
|
5
8
|
export default _default;
|
|
@@ -7,22 +7,16 @@ import PasswordIcon from '../../../shared/PasswordIcon';
|
|
|
7
7
|
import Input from '../../../shared/Input';
|
|
8
8
|
var ConfirmPassword = function (_a) {
|
|
9
9
|
var _b;
|
|
10
|
+
var showPassword = _a.showPassword, onShowPassword = _a.onShowPassword, onHidePassword = _a.onHidePassword;
|
|
10
11
|
var t = useTranslation().t;
|
|
11
12
|
var control = useFormContext().control;
|
|
12
|
-
var _c = React.useState(false), showPassword = _c[0], setShowPassword = _c[1];
|
|
13
13
|
var passwordControl = useController({ control: control, name: 'confirmPassword' });
|
|
14
14
|
var handlePasswordChange = function (_a) {
|
|
15
15
|
var target = _a.target;
|
|
16
16
|
passwordControl.field.onChange(target.value);
|
|
17
17
|
};
|
|
18
|
-
var handleShowPassword = function () {
|
|
19
|
-
setShowPassword(true);
|
|
20
|
-
};
|
|
21
|
-
var handleHidePassword = function () {
|
|
22
|
-
setShowPassword(false);
|
|
23
|
-
};
|
|
24
18
|
var passwordValue = passwordControl.field.value;
|
|
25
19
|
var error = (_b = passwordControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
26
|
-
return (_jsx(ScreenContainer, { children: _jsx(Input, { onChange: handlePasswordChange, value: passwordValue, autoComplete: 'confirm-password', endAdornment: _jsx(PasswordIcon, { show: showPassword, onShow:
|
|
20
|
+
return (_jsx(ScreenContainer, { children: _jsx(Input, { onChange: handlePasswordChange, value: passwordValue, autoComplete: 'confirm-password', endAdornment: _jsx(PasswordIcon, { show: showPassword, onShow: onShowPassword, onHide: onHidePassword }), placeholder: t('tap_js_confirm_password_description'), warningType: 'alert', type: showPassword ? 'text' : 'password', warningMessage: error && t(error) }) }));
|
|
27
21
|
};
|
|
28
22
|
export default React.memo(ConfirmPassword);
|
|
@@ -71,6 +71,6 @@ var Password = function (_a) {
|
|
|
71
71
|
isPasswordHasSpecialLetter(passwordValue)
|
|
72
72
|
];
|
|
73
73
|
var error = (_b = passwordControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
74
|
-
return (_jsxs(ScreenContainer, { children: [_jsx(Input, { label: t('tap_js_password_description'), onChange: handlePasswordChange, value: passwordValue, autoComplete: 'new-password', endAdornment: _jsx(PasswordIcon, { show: showPassword, onShow: handleShowPassword, onHide: handleHidePassword }), placeholder: t('tap_js_password_placeholder'), warningType: 'alert', type: showPassword ? 'text' : 'password', warningMessage: error && t(error) }), _jsxs(BarBoxStyled, { children: [_jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 1 }), _jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 2 }), _jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 3 }), _jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 4, sx: { marginInlineEnd: 0 } })] }), _jsx(Collapse, __assign({ in: !(passwordConditions.filter(Boolean).length >= 4), timeout: { enter: 1000, exit: 800 } }, { children: _jsxs(ListStyled, { children: [_jsx(ConditionText, { active: isPasswordMatchLength, text: '- ' + t('password_length') }), _jsx(ConditionText, { active: isPasswordHasUpper, text: '- ' + t('password_upper') }), _jsx(ConditionText, { active: isPasswordHasLower, text: '- ' + t('password_lower') }), _jsx(ConditionText, { active: isPasswordHasSpecial, text: '- ' + t('password_special') })] }) })), _jsxs(Collapse, __assign({ in: passwordConditions.filter(Boolean).length === 4, timeout: { enter: 800, exit: 1000 } }, { children: [_jsx(TextStyled, { children: t('notify_strong_password') }), _jsx(ConfirmPassword, {})] }))] }));
|
|
74
|
+
return (_jsxs(ScreenContainer, { children: [_jsx(Input, { label: t('tap_js_password_description'), onChange: handlePasswordChange, value: passwordValue, autoComplete: 'new-password', endAdornment: _jsx(PasswordIcon, { show: showPassword, onShow: handleShowPassword, onHide: handleHidePassword }), placeholder: t('tap_js_password_placeholder'), warningType: 'alert', type: showPassword ? 'text' : 'password', warningMessage: error && t(error) }), _jsxs(BarBoxStyled, { children: [_jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 1 }), _jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 2 }), _jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 3 }), _jsx(PasswordBar, { active: passwordConditions.filter(Boolean).length >= 4, sx: { marginInlineEnd: 0 } })] }), _jsx(Collapse, __assign({ in: !(passwordConditions.filter(Boolean).length >= 4), timeout: { enter: 1000, exit: 800 } }, { children: _jsxs(ListStyled, { children: [_jsx(ConditionText, { active: isPasswordMatchLength, text: '- ' + t('password_length') }), _jsx(ConditionText, { active: isPasswordHasUpper, text: '- ' + t('password_upper') }), _jsx(ConditionText, { active: isPasswordHasLower, text: '- ' + t('password_lower') }), _jsx(ConditionText, { active: isPasswordHasSpecial, text: '- ' + t('password_special') })] }) })), _jsxs(Collapse, __assign({ in: passwordConditions.filter(Boolean).length === 4, timeout: { enter: 800, exit: 1000 } }, { children: [_jsx(TextStyled, { children: t('notify_strong_password') }), _jsx(ConfirmPassword, { showPassword: showPassword, onShowPassword: handleShowPassword, onHidePassword: handleHidePassword })] }))] }));
|
|
75
75
|
};
|
|
76
76
|
export default React.memo(Password);
|
|
@@ -35,6 +35,7 @@ var TextContainerStyled = styled(Box)(function (_a) {
|
|
|
35
35
|
return (_b = {
|
|
36
36
|
background: theme.palette.common.white,
|
|
37
37
|
border: '1px solid',
|
|
38
|
+
width: '100%',
|
|
38
39
|
borderColor: theme.palette.divider,
|
|
39
40
|
borderRadius: theme.spacing(0, 0, 1.25, 1.25)
|
|
40
41
|
},
|
|
@@ -47,8 +48,16 @@ var TitleStyled = styled(Text)(function (_a) {
|
|
|
47
48
|
var theme = _a.theme;
|
|
48
49
|
return (__assign({ fontWeight: theme.typography.fontWeightRegular, color: theme.palette.text.primary, marginBlock: theme.spacing(1.75), lineHeight: 1.75, padding: '0px 20px' }, theme.typography.subtitle2));
|
|
49
50
|
});
|
|
51
|
+
var ContainerStyled = styled(Container)(function (_a) {
|
|
52
|
+
var theme = _a.theme;
|
|
53
|
+
return ({
|
|
54
|
+
justifyContent: 'space-between',
|
|
55
|
+
minHeight: theme.spacing(30),
|
|
56
|
+
alignItems: 'center'
|
|
57
|
+
});
|
|
58
|
+
});
|
|
50
59
|
var ThankYou = function (_a) {
|
|
51
60
|
var onSuccess = _a.onSuccess, title = _a.title;
|
|
52
|
-
return (_jsxs(
|
|
61
|
+
return (_jsxs(ContainerStyled, { children: [title && (_jsx(TextContainerStyled, { children: _jsxs(TitleStyled, { children: [title, " "] }) })), _jsx(ButtonStyled, __assign({ onClick: onSuccess }, { children: _jsx("img", { src: ICONS_NAMES.SUCCESS, alt: 'success Icon' }) }))] }));
|
|
53
62
|
};
|
|
54
63
|
export default React.memo(ThankYou);
|
package/build/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import './i18n';
|
|
|
3
3
|
import { ConnectLib, renderConnectLib, ConnectLibProps, unmountConnectLib } from './features/connect';
|
|
4
4
|
import { BusinessLib, renderBusinessLib, BusinessLibProps, unmountBusinessLib } from './features/business';
|
|
5
5
|
import { PasswordLib, renderPasswordLib, PasswordLibProps, unmountPasswordLib } from './features/password';
|
|
6
|
-
import {
|
|
6
|
+
import { IndividualLib, renderIndividualLib, IndividualLibProps, unmountIndividualLib } from './features/individual';
|
|
7
7
|
import { BankLib, renderBankLib, BankLibProps, unmountBankLib } from './features/bank';
|
|
8
8
|
import { TaxLib, renderTaxLib, TaxLibProps, unmountTaxLib } from './features/tax';
|
|
9
|
-
export type { ConnectLibProps, BusinessLibProps, PasswordLibProps,
|
|
10
|
-
export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib,
|
|
9
|
+
export type { ConnectLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps };
|
|
10
|
+
export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib, IndividualLib, renderIndividualLib, unmountIndividualLib, BankLib, renderBankLib, unmountBankLib, TaxLib, renderTaxLib, unmountTaxLib };
|
package/build/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import './i18n';
|
|
|
3
3
|
import { ConnectLib, renderConnectLib, unmountConnectLib } from './features/connect';
|
|
4
4
|
import { BusinessLib, renderBusinessLib, unmountBusinessLib } from './features/business';
|
|
5
5
|
import { PasswordLib, renderPasswordLib, unmountPasswordLib } from './features/password';
|
|
6
|
-
import {
|
|
6
|
+
import { IndividualLib, renderIndividualLib, unmountIndividualLib } from './features/individual';
|
|
7
7
|
import { BankLib, renderBankLib, unmountBankLib } from './features/bank';
|
|
8
8
|
import { TaxLib, renderTaxLib, unmountTaxLib } from './features/tax';
|
|
9
|
-
export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib,
|
|
9
|
+
export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib, IndividualLib, renderIndividualLib, unmountIndividualLib, BankLib, renderBankLib, unmountBankLib, TaxLib, renderTaxLib, unmountTaxLib };
|
|
10
10
|
window['TapAuth'] = {
|
|
11
11
|
renderConnectLib: renderConnectLib,
|
|
12
12
|
unmountConnectLib: unmountConnectLib,
|
|
@@ -14,8 +14,8 @@ window['TapAuth'] = {
|
|
|
14
14
|
unmountBusinessLib: unmountBusinessLib,
|
|
15
15
|
renderPasswordLib: renderPasswordLib,
|
|
16
16
|
unmountPasswordLib: unmountPasswordLib,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
renderIndividualLib: renderIndividualLib,
|
|
18
|
+
unmountIndividualLib: unmountIndividualLib,
|
|
19
19
|
renderBankLib: renderBankLib,
|
|
20
20
|
unmountBankLib: unmountBankLib,
|
|
21
21
|
renderTaxLib: renderTaxLib,
|
package/package.json
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "connect library, auth",
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "build/index.js",
|
|
7
|
-
"module": "build/index.js",
|
|
8
|
-
"types": "build/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"build",
|
|
11
|
-
"README.md"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"husky:setup": "npx husky install",
|
|
15
|
-
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\" *.json *.js",
|
|
16
|
-
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\" *.json *.js",
|
|
17
|
-
"lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
|
|
18
|
-
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
19
|
-
"start": "cross-env NODE_ENV=development webpack serve",
|
|
20
|
-
"build": "cross-env NODE_ENV=production webpack",
|
|
21
|
-
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
|
-
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
|
-
"ts:build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
-
"push": "npm publish --access public"
|
|
25
|
-
},
|
|
26
|
-
"keywords": [],
|
|
27
|
-
"author": {
|
|
28
|
-
"name": "Ahmed Elsharkawy",
|
|
29
|
-
"email": "a.elsharkawy@tap.company"
|
|
30
|
-
},
|
|
31
|
-
"license": "ISC",
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@babel/core": "^7.18.6",
|
|
34
|
-
"@babel/preset-env": "^7.18.6",
|
|
35
|
-
"@babel/preset-react": "^7.18.6",
|
|
36
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
37
|
-
"@types/lodash-es": "^4.17.6",
|
|
38
|
-
"@types/react": "^18.0.15",
|
|
39
|
-
"@types/react-calendar": "~3.5.1",
|
|
40
|
-
"@types/react-dom": "^18.0.6",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
42
|
-
"@typescript-eslint/parser": "^5.30.5",
|
|
43
|
-
"babel-loader": "^8.2.5",
|
|
44
|
-
"copyfiles": "^2.4.1",
|
|
45
|
-
"cross-env": "^7.0.3",
|
|
46
|
-
"css-loader": "^6.7.1",
|
|
47
|
-
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
48
|
-
"eslint": "^8.19.0",
|
|
49
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
50
|
-
"eslint-config-prettier": "^8.5.0",
|
|
51
|
-
"eslint-plugin-import": "^2.26.0",
|
|
52
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
53
|
-
"eslint-plugin-node": "^11.1.0",
|
|
54
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
55
|
-
"eslint-plugin-react": "^7.30.1",
|
|
56
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
57
|
-
"file-loader": "^6.2.0",
|
|
58
|
-
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
59
|
-
"html-loader": "^3.1.2",
|
|
60
|
-
"html-webpack-plugin": "^5.5.0",
|
|
61
|
-
"husky": "^8.0.1",
|
|
62
|
-
"lint-staged": "^13.0.3",
|
|
63
|
-
"mini-css-extract-plugin": "^2.6.1",
|
|
64
|
-
"prettier": "^2.7.1",
|
|
65
|
-
"sass": "^1.53.0",
|
|
66
|
-
"sass-loader": "^13.0.2",
|
|
67
|
-
"style-loader": "^3.3.1",
|
|
68
|
-
"terser-webpack-plugin": "^5.3.3",
|
|
69
|
-
"tsc-alias": "^1.6.11",
|
|
70
|
-
"typescript": "^4.7.4",
|
|
71
|
-
"webpack": "^5.73.0",
|
|
72
|
-
"webpack-cli": "^4.10.0",
|
|
73
|
-
"webpack-dev-server": "^4.9.3",
|
|
74
|
-
"webpack-merge": "^5.8.0"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@emotion/react": "^11.9.3",
|
|
78
|
-
"@emotion/styled": "^11.9.3",
|
|
79
|
-
"@hookform/resolvers": "^2.9.6",
|
|
80
|
-
"@mui/icons-material": "^5.8.4",
|
|
81
|
-
"@mui/material": "^5.8.7",
|
|
82
|
-
"@reduxjs/toolkit": "^1.8.3",
|
|
83
|
-
"i18next": "^21.8.14",
|
|
84
|
-
"i18next-browser-languagedetector": "^6.1.4",
|
|
85
|
-
"i18next-http-backend": "^1.4.1",
|
|
86
|
-
"lodash-es": "^4.17.21",
|
|
87
|
-
"react": "^18.2.0",
|
|
88
|
-
"react-calendar": "~3.7.0",
|
|
89
|
-
"react-dom": "^18.2.0",
|
|
90
|
-
"react-hook-form": "^7.33.1",
|
|
91
|
-
"react-i18next": "^11.18.1",
|
|
92
|
-
"react-otp-input": "^2.4.0",
|
|
93
|
-
"react-redux": "^8.0.2",
|
|
94
|
-
"react-spring-bottom-sheet": "^3.4.1",
|
|
95
|
-
"yup": "^0.32.11"
|
|
96
|
-
},
|
|
97
|
-
"peerDependencies": {
|
|
98
|
-
"react": "^18.2.0",
|
|
99
|
-
"react-dom": "^18.2.0"
|
|
100
|
-
},
|
|
101
|
-
"lint-staged": {
|
|
102
|
-
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
103
|
-
"yarn run prettier:fix",
|
|
104
|
-
"yarn run lint",
|
|
105
|
-
"git add ."
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
"browserslist": {
|
|
109
|
-
"production": [
|
|
110
|
-
">0.2%",
|
|
111
|
-
"not dead",
|
|
112
|
-
"not op_mini all"
|
|
113
|
-
],
|
|
114
|
-
"development": [
|
|
115
|
-
"last 1 chrome version",
|
|
116
|
-
"last 1 firefox version",
|
|
117
|
-
"last 1 safari version"
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
+
"version": "1.0.16",
|
|
4
|
+
"description": "connect library, auth",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "build/index.js",
|
|
7
|
+
"module": "build/index.js",
|
|
8
|
+
"types": "build/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"build",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"husky:setup": "npx husky install",
|
|
15
|
+
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\" *.json *.js",
|
|
16
|
+
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\" *.json *.js",
|
|
17
|
+
"lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
|
|
18
|
+
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
19
|
+
"start": "cross-env NODE_ENV=development webpack serve",
|
|
20
|
+
"build": "cross-env NODE_ENV=production webpack",
|
|
21
|
+
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
|
+
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
|
+
"ts:build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
+
"push": "npm publish --access public"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [],
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Ahmed Elsharkawy",
|
|
29
|
+
"email": "a.elsharkawy@tap.company"
|
|
30
|
+
},
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@babel/core": "^7.18.6",
|
|
34
|
+
"@babel/preset-env": "^7.18.6",
|
|
35
|
+
"@babel/preset-react": "^7.18.6",
|
|
36
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
37
|
+
"@types/lodash-es": "^4.17.6",
|
|
38
|
+
"@types/react": "^18.0.15",
|
|
39
|
+
"@types/react-calendar": "~3.5.1",
|
|
40
|
+
"@types/react-dom": "^18.0.6",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
42
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
43
|
+
"babel-loader": "^8.2.5",
|
|
44
|
+
"copyfiles": "^2.4.1",
|
|
45
|
+
"cross-env": "^7.0.3",
|
|
46
|
+
"css-loader": "^6.7.1",
|
|
47
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
48
|
+
"eslint": "^8.19.0",
|
|
49
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
50
|
+
"eslint-config-prettier": "^8.5.0",
|
|
51
|
+
"eslint-plugin-import": "^2.26.0",
|
|
52
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
53
|
+
"eslint-plugin-node": "^11.1.0",
|
|
54
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
55
|
+
"eslint-plugin-react": "^7.30.1",
|
|
56
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
57
|
+
"file-loader": "^6.2.0",
|
|
58
|
+
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
59
|
+
"html-loader": "^3.1.2",
|
|
60
|
+
"html-webpack-plugin": "^5.5.0",
|
|
61
|
+
"husky": "^8.0.1",
|
|
62
|
+
"lint-staged": "^13.0.3",
|
|
63
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
64
|
+
"prettier": "^2.7.1",
|
|
65
|
+
"sass": "^1.53.0",
|
|
66
|
+
"sass-loader": "^13.0.2",
|
|
67
|
+
"style-loader": "^3.3.1",
|
|
68
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
69
|
+
"tsc-alias": "^1.6.11",
|
|
70
|
+
"typescript": "^4.7.4",
|
|
71
|
+
"webpack": "^5.73.0",
|
|
72
|
+
"webpack-cli": "^4.10.0",
|
|
73
|
+
"webpack-dev-server": "^4.9.3",
|
|
74
|
+
"webpack-merge": "^5.8.0"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@emotion/react": "^11.9.3",
|
|
78
|
+
"@emotion/styled": "^11.9.3",
|
|
79
|
+
"@hookform/resolvers": "^2.9.6",
|
|
80
|
+
"@mui/icons-material": "^5.8.4",
|
|
81
|
+
"@mui/material": "^5.8.7",
|
|
82
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
83
|
+
"i18next": "^21.8.14",
|
|
84
|
+
"i18next-browser-languagedetector": "^6.1.4",
|
|
85
|
+
"i18next-http-backend": "^1.4.1",
|
|
86
|
+
"lodash-es": "^4.17.21",
|
|
87
|
+
"react": "^18.2.0",
|
|
88
|
+
"react-calendar": "~3.7.0",
|
|
89
|
+
"react-dom": "^18.2.0",
|
|
90
|
+
"react-hook-form": "^7.33.1",
|
|
91
|
+
"react-i18next": "^11.18.1",
|
|
92
|
+
"react-otp-input": "^2.4.0",
|
|
93
|
+
"react-redux": "^8.0.2",
|
|
94
|
+
"react-spring-bottom-sheet": "^3.4.1",
|
|
95
|
+
"yup": "^0.32.11"
|
|
96
|
+
},
|
|
97
|
+
"peerDependencies": {
|
|
98
|
+
"react": "^18.2.0",
|
|
99
|
+
"react-dom": "^18.2.0"
|
|
100
|
+
},
|
|
101
|
+
"lint-staged": {
|
|
102
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
103
|
+
"yarn run prettier:fix",
|
|
104
|
+
"yarn run lint",
|
|
105
|
+
"git add ."
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"browserslist": {
|
|
109
|
+
"production": [
|
|
110
|
+
">0.2%",
|
|
111
|
+
"not dead",
|
|
112
|
+
"not op_mini all"
|
|
113
|
+
],
|
|
114
|
+
"development": [
|
|
115
|
+
"last 1 chrome version",
|
|
116
|
+
"last 1 firefox version",
|
|
117
|
+
"last 1 safari version"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|