@tap-payments/auth-jsconnect 2.8.26-test → 2.8.27-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/@types/app.d.ts +3 -0
- package/build/constants/dummy.d.ts +2 -223
- package/build/constants/dummy.js +57 -6215
- package/build/features/connect/screens/Individual/Individual.js +1 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -2
- package/package.json +1 -1
|
@@ -37,7 +37,6 @@ import { ScreenContainer } from '../../../shared/Containers';
|
|
|
37
37
|
import { clearError, connectSelector, resetIndividualScreen, updateLeadIndividual } from '../../../app/connect/connectStore';
|
|
38
38
|
import { useLanguage } from '../../../../hooks';
|
|
39
39
|
import MobileNumber from './MobileNumber';
|
|
40
|
-
import { countriesCode } from '../../../../constants';
|
|
41
40
|
import { AuthForType } from '../../../../@types';
|
|
42
41
|
import Collapse from '../../../../components/Collapse';
|
|
43
42
|
import { deepCopy, isKW, sendCustomEventToGTM } from '../../../../utils';
|
|
@@ -103,6 +102,6 @@ var Individual = function (_a) {
|
|
|
103
102
|
var isEmailValid = typeof is_available === 'undefined' ? isLeadEmailAvailable : is_available;
|
|
104
103
|
var emailErrChecks = !methods.formState.isValid || !!methods.formState.errors.email;
|
|
105
104
|
var disabled = emailErrChecks || emailChecking || !isEmailValid;
|
|
106
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Name, { show: !listActive }), _jsx(MobileNumber, { show: !isMobile, onListOpen: function () { return handleMenuListClick(); }, onListClose: function () { return handleMenuListClick(); }, countries:
|
|
105
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Name, { show: !listActive }), _jsx(MobileNumber, { show: !isMobile, onListOpen: function () { return handleMenuListClick(); }, onListClose: function () { return handleMenuListClick(); }, countries: settingsData.countries }), _jsx(Email, { show: !listActive, fetchingEmail: function (v) { return setEmailChecking(v); }, emailChecking: emailChecking }), _jsx(Collapse, __assign({ in: !listActive }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
|
|
107
106
|
};
|
|
108
107
|
export default React.memo(Individual);
|
package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js
CHANGED
|
@@ -19,7 +19,6 @@ import { useAppDispatch, useAppSelector, useExcludeReadOnlyFelids, useFormErrorA
|
|
|
19
19
|
import { AuthForType } from '../../../../@types';
|
|
20
20
|
import { useLanguage } from '../../../../hooks';
|
|
21
21
|
import { deepCopy, isKW } from '../../../../utils';
|
|
22
|
-
import { countriesCode } from '../../../../constants';
|
|
23
22
|
import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
|
|
24
23
|
import Form from '../../../../components/Form';
|
|
25
24
|
import Collapse from '../../../../components/Collapse';
|
|
@@ -93,6 +92,6 @@ var CollectIndividualInfo = function (_a) {
|
|
|
93
92
|
var emailErrChecks = !methods.formState.isValid || !!methods.formState.errors.email;
|
|
94
93
|
var disabled = emailErrChecks || emailChecking || !isEmailValid;
|
|
95
94
|
var emailReadOnly = readOnly['email'] && !((_b = methods.getFieldState('email').error) === null || _b === void 0 ? void 0 : _b.message) && !methods.getFieldState('email').isDirty;
|
|
96
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Name, { readOnly: readOnly['name'], show: !listActive }), _jsx(MobileNumber, { readOnly: readOnly['mobile'], show: true, onListOpen: function () { return handleMenuListClick(); }, onListClose: function () { return handleMenuListClick(); }, countries:
|
|
95
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(Name, { readOnly: readOnly['name'], show: !listActive }), _jsx(MobileNumber, { readOnly: readOnly['mobile'], show: true, onListOpen: function () { return handleMenuListClick(); }, onListClose: function () { return handleMenuListClick(); }, countries: settingsData.countries }), _jsx(Email, { readOnly: emailReadOnly, show: !listActive, fetchingEmail: function (v) { return setEmailChecking(v); }, emailChecking: emailChecking }), _jsx(Collapse, __assign({ in: !listActive }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
|
|
97
96
|
};
|
|
98
97
|
export default React.memo(CollectIndividualInfo);
|