@tap-payments/auth-jsconnect 2.1.63-test → 2.1.65-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 +4 -1
- package/build/app/rootReducer.d.ts +0 -1
- package/build/app/rootReducer.js +0 -2
- package/build/app/store.d.ts +0 -2
- package/build/constants/app.d.ts +0 -1
- package/build/constants/app.js +0 -14
- package/build/features/app/connectExpress/connectExpressStore.d.ts +5 -0
- package/build/features/app/connectExpress/connectExpressStore.js +24 -26
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +7 -4
- package/build/features/brand/Brand.d.ts +1 -1
- package/build/features/brand/Brand.js +8 -6
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +7 -4
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +11 -20
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +7 -4
- package/build/features/entity/Entity.d.ts +1 -1
- package/build/features/entity/Entity.js +7 -4
- package/build/features/featuresScreens.d.ts +0 -1
- package/build/features/featuresScreens.js +0 -12
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +7 -4
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +7 -4
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +7 -4
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +7 -4
- package/build/hooks/useAppDispatch.d.ts +0 -1
- package/build/index.d.ts +12 -13
- package/build/index.js +12 -15
- package/build/utils/html.d.ts +0 -1
- package/build/utils/html.js +2 -10
- package/package.json +129 -130
- package/build/features/app/auth/authStore.d.ts +0 -46
- package/build/features/app/auth/authStore.js +0 -256
- package/build/features/auth/Auth.d.ts +0 -11
- package/build/features/auth/Auth.js +0 -79
- package/build/features/auth/index.d.ts +0 -1
- package/build/features/auth/index.js +0 -1
- package/build/features/auth/screens/NID/DOB.d.ts +0 -7
- package/build/features/auth/screens/NID/DOB.js +0 -47
- package/build/features/auth/screens/NID/IDNumber.d.ts +0 -3
- package/build/features/auth/screens/NID/IDNumber.js +0 -64
- package/build/features/auth/screens/NID/NID.d.ts +0 -5
- package/build/features/auth/screens/NID/NID.js +0 -68
- package/build/features/auth/screens/NID/TAC.d.ts +0 -3
- package/build/features/auth/screens/NID/TAC.js +0 -85
- package/build/features/auth/screens/NID/index.d.ts +0 -3
- package/build/features/auth/screens/NID/index.js +0 -2
- package/build/features/auth/screens/NID/validation.d.ts +0 -27
- package/build/features/auth/screens/NID/validation.js +0 -19
- package/build/features/auth/screens/OTP/OTP.d.ts +0 -5
- package/build/features/auth/screens/OTP/OTP.js +0 -76
- package/build/features/auth/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/auth/screens/OTP/OTPInput.js +0 -51
- package/build/features/auth/screens/OTP/index.d.ts +0 -3
- package/build/features/auth/screens/OTP/index.js +0 -2
- package/build/features/auth/screens/OTP/validation.d.ts +0 -8
- package/build/features/auth/screens/OTP/validation.js +0 -4
|
@@ -11,13 +11,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { memo } from 'react';
|
|
14
|
+
import { createRoot } from 'react-dom/client';
|
|
14
15
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
|
|
15
16
|
import { settingsSelector } from '../../app/settings';
|
|
16
17
|
import AnimationFlow from '../../components/AnimationFlow';
|
|
17
18
|
import { store } from '../../app/store';
|
|
18
19
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
19
20
|
import Collapse from '../../components/Collapse';
|
|
20
|
-
import {
|
|
21
|
+
import { createElementAndInject } from '../../utils';
|
|
21
22
|
import { FeatureContainer } from '../shared/Containers';
|
|
22
23
|
import { SigIn_SCREENS_NAVIGATION } from '../../constants';
|
|
23
24
|
import { signInFeatureScreens } from '../featuresScreens';
|
|
@@ -38,11 +39,13 @@ var SignIn = memo(function (props) {
|
|
|
38
39
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
39
40
|
}) }) })) })) })));
|
|
40
41
|
});
|
|
41
|
-
export function
|
|
42
|
+
export function SignInElement(props) {
|
|
42
43
|
return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(SignIn, __assign({}, props)) })));
|
|
43
44
|
}
|
|
44
45
|
export function renderSignInLib(config, elementId) {
|
|
45
|
-
var
|
|
46
|
-
|
|
46
|
+
var element = createElementAndInject(elementId);
|
|
47
|
+
var root = createRoot(element);
|
|
48
|
+
root.render(_jsx(SignInElement, __assign({}, config)));
|
|
49
|
+
var unmount = function () { return root.unmount(); };
|
|
47
50
|
return { unmount: unmount };
|
|
48
51
|
}
|
|
@@ -3,7 +3,7 @@ import { LibConfig } from '../../@types';
|
|
|
3
3
|
export interface TaxLibProps extends LibConfig {
|
|
4
4
|
verifyToken?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function TaxElement(props: TaxLibProps): JSX.Element;
|
|
7
7
|
export declare function renderTaxLib(config: TaxLibProps, elementId: string): {
|
|
8
8
|
unmount: () => void;
|
|
9
9
|
};
|
|
@@ -22,13 +22,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { memo } from 'react';
|
|
25
|
+
import { createRoot } from 'react-dom/client';
|
|
25
26
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
26
27
|
import { settingsSelector } from '../../app/settings';
|
|
27
28
|
import AnimationFlow from '../../components/AnimationFlow';
|
|
28
29
|
import { store } from '../../app/store';
|
|
29
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
30
31
|
import Collapse from '../../components/Collapse';
|
|
31
|
-
import {
|
|
32
|
+
import { createElementAndInject } from '../../utils';
|
|
32
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
33
34
|
import { TAX_SCREENS_NAVIGATION } from '../../constants';
|
|
34
35
|
import { taxFeatureScreens } from '../featuresScreens';
|
|
@@ -59,11 +60,13 @@ var Tax = memo(function (_a) {
|
|
|
59
60
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
60
61
|
}) }) })) })) })));
|
|
61
62
|
});
|
|
62
|
-
export function
|
|
63
|
+
export function TaxElement(props) {
|
|
63
64
|
return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Tax, __assign({}, props)) })));
|
|
64
65
|
}
|
|
65
66
|
export function renderTaxLib(config, elementId) {
|
|
66
|
-
var
|
|
67
|
-
|
|
67
|
+
var element = createElementAndInject(elementId);
|
|
68
|
+
var root = createRoot(element);
|
|
69
|
+
root.render(_jsx(TaxElement, __assign({}, config)));
|
|
70
|
+
var unmount = function () { return root.unmount(); };
|
|
68
71
|
return { unmount: unmount };
|
|
69
72
|
}
|
|
@@ -8,7 +8,6 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
|
8
8
|
password: import("../features/app/password/passwordStore").PasswordState;
|
|
9
9
|
signIn: import("../features/app/signIn/signInStore").SignInState;
|
|
10
10
|
entity: import("../features/app/entity/entityStore").EntityState;
|
|
11
|
-
auth: import("../features/app/auth/authStore").AuthState;
|
|
12
11
|
brand: import("../features/app/brand/brandStore").BrandState;
|
|
13
12
|
connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
|
|
14
13
|
}, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
package/build/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import './i18n';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
export { ConnectLib, renderConnectLib, ConnectExpressLib, renderConnectExpressLib, BusinessLib, renderBusinessLib, PasswordLib, renderPasswordLib, IndividualLib, renderIndividualLib, BankLib, renderBankLib, TaxLib, renderTaxLib, EntityLib, renderEntityLib, BrandLib, renderBrandLib, SignInLib, renderSignInLib, AuthLib, renderAuthLib };
|
|
3
|
+
import { ConnectElement, ConnectLibProps } from './features/connect';
|
|
4
|
+
import { ConnectExpressElement, renderConnectExpressLib, ConnectExpressLibProps } from './features/connectExpress';
|
|
5
|
+
import { BusinessElement, BusinessLibProps } from './features/business';
|
|
6
|
+
import { PasswordElement, PasswordLibProps } from './features/password';
|
|
7
|
+
import { IndividualElement, IndividualLibProps } from './features/individual';
|
|
8
|
+
import { BankElement, BankLibProps } from './features/bank';
|
|
9
|
+
import { TaxElement, TaxLibProps } from './features/tax';
|
|
10
|
+
import { SignInElement, SignInLibProps } from './features/signIn';
|
|
11
|
+
import { EntityElement, EntityLibProps } from './features/entity';
|
|
12
|
+
import { BrandElement, BrandLibProps } from './features/brand';
|
|
13
|
+
export type { ConnectLibProps, ConnectExpressLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps, EntityLibProps, BrandLibProps, SignInLibProps };
|
|
14
|
+
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement, renderConnectExpressLib };
|
package/build/index.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import './i18n';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
export { ConnectLib, renderConnectLib, ConnectExpressLib, renderConnectExpressLib, BusinessLib, renderBusinessLib, PasswordLib, renderPasswordLib, IndividualLib, renderIndividualLib, BankLib, renderBankLib, TaxLib, renderTaxLib, EntityLib, renderEntityLib, BrandLib, renderBrandLib, SignInLib, renderSignInLib, AuthLib, renderAuthLib };
|
|
3
|
+
import { ConnectElement, renderConnectLib } from './features/connect';
|
|
4
|
+
import { ConnectExpressElement, renderConnectExpressLib } from './features/connectExpress';
|
|
5
|
+
import { BusinessElement, renderBusinessLib } from './features/business';
|
|
6
|
+
import { PasswordElement, renderPasswordLib } from './features/password';
|
|
7
|
+
import { IndividualElement, renderIndividualLib } from './features/individual';
|
|
8
|
+
import { BankElement, renderBankLib } from './features/bank';
|
|
9
|
+
import { TaxElement, renderTaxLib } from './features/tax';
|
|
10
|
+
import { SignInElement } from './features/signIn';
|
|
11
|
+
import { EntityElement, renderEntityLib } from './features/entity';
|
|
12
|
+
import { BrandElement, renderBrandLib } from './features/brand';
|
|
13
|
+
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement, renderConnectExpressLib };
|
|
15
14
|
window['TapAuth'] = {
|
|
16
15
|
renderConnectLib: renderConnectLib,
|
|
17
16
|
renderConnectExpressLib: renderConnectExpressLib,
|
|
@@ -21,8 +20,6 @@ window['TapAuth'] = {
|
|
|
21
20
|
renderBankLib: renderBankLib,
|
|
22
21
|
renderTaxLib: renderTaxLib,
|
|
23
22
|
renderEntityLib: renderEntityLib,
|
|
24
|
-
renderBrandLib: renderBrandLib
|
|
25
|
-
renderSignInLib: renderSignInLib,
|
|
26
|
-
renderAuthLib: renderAuthLib
|
|
23
|
+
renderBrandLib: renderBrandLib
|
|
27
24
|
};
|
|
28
25
|
console.log("TapAuth version: ".concat(require('../package.json').version));
|
package/build/utils/html.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const createElementAndInject: (id: string) => HTMLDivElement;
|
|
2
|
-
export declare const reactElement: (elementId: string) => import("react-dom/client").Root;
|
|
3
2
|
export declare const scrollUp: (elementId: string, top?: number) => void;
|
|
4
3
|
export declare const scrollDown: (elementId: string) => void;
|
|
5
4
|
export declare const removeElement: (elementId: string) => void;
|
package/build/utils/html.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { createRoot } from 'react-dom/client';
|
|
2
1
|
export var createElementAndInject = function (id) {
|
|
3
2
|
var element = document.createElement('div');
|
|
4
|
-
element.setAttribute('id', id);
|
|
5
|
-
document.body.
|
|
3
|
+
element.setAttribute('id', id || 'tap-connect-sdk-element');
|
|
4
|
+
document.body.prepend(element);
|
|
6
5
|
return element;
|
|
7
6
|
};
|
|
8
|
-
export var reactElement = function (elementId) {
|
|
9
|
-
var element = document.getElementById(elementId);
|
|
10
|
-
if (!element) {
|
|
11
|
-
element = createElementAndInject('tap-payments-sdk-element');
|
|
12
|
-
}
|
|
13
|
-
return createRoot(element);
|
|
14
|
-
};
|
|
15
7
|
export var scrollUp = function (elementId, top) {
|
|
16
8
|
var el = document.getElementById(elementId);
|
|
17
9
|
if (!el)
|
package/package.json
CHANGED
|
@@ -1,130 +1,129 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.1.
|
|
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": "rm -rf build
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
"@babel/
|
|
35
|
-
"@babel/preset-
|
|
36
|
-
"@babel/preset-
|
|
37
|
-
"@
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/react": "
|
|
40
|
-
"@types/react-
|
|
41
|
-
"@
|
|
42
|
-
"@typescript-eslint/
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"css-
|
|
48
|
-
"
|
|
49
|
-
"eslint": "^
|
|
50
|
-
"eslint-config-
|
|
51
|
-
"eslint-
|
|
52
|
-
"eslint-plugin-
|
|
53
|
-
"eslint-plugin-
|
|
54
|
-
"eslint-plugin-
|
|
55
|
-
"eslint-plugin-
|
|
56
|
-
"eslint-plugin-react": "^
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"html-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"sass": "^
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"webpack": "^
|
|
73
|
-
"webpack-
|
|
74
|
-
"webpack-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"@emotion/
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@mui/
|
|
83
|
-
"@
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"i18next": "^
|
|
88
|
-
"i18next-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"react": "
|
|
95
|
-
"react-
|
|
96
|
-
"react-
|
|
97
|
-
"react-
|
|
98
|
-
"react-
|
|
99
|
-
"react-
|
|
100
|
-
"react-
|
|
101
|
-
"react-
|
|
102
|
-
"react-
|
|
103
|
-
"react-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"react": "^18.2.0"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"yarn run
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
"not
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"last 1
|
|
126
|
-
"last 1
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
+
"version": "2.1.65-test",
|
|
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": "rm -rf 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": "rm -rf 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
|
+
"@fingerprintjs/fingerprintjs": "~3.3.4",
|
|
80
|
+
"@hookform/resolvers": "^2.9.6",
|
|
81
|
+
"@mui/icons-material": "^5.8.4",
|
|
82
|
+
"@mui/material": "^5.8.7",
|
|
83
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
84
|
+
"axios": "^0.27.2",
|
|
85
|
+
"device-detector-js": "^3.0.3",
|
|
86
|
+
"i18next": "^21.8.14",
|
|
87
|
+
"i18next-browser-languagedetector": "^6.1.4",
|
|
88
|
+
"i18next-http-backend": "^1.4.1",
|
|
89
|
+
"jsencrypt": "^2.3.1",
|
|
90
|
+
"lodash-es": "^4.17.21",
|
|
91
|
+
"lottie-web": "^5.9.6",
|
|
92
|
+
"moment": "^2.29.4",
|
|
93
|
+
"react": "^18.2.0",
|
|
94
|
+
"react-calendar": "~3.7.0",
|
|
95
|
+
"react-device-detect": "^2.2.2",
|
|
96
|
+
"react-dom": "^18.2.0",
|
|
97
|
+
"react-dropzone": "^14.2.2",
|
|
98
|
+
"react-hook-form": "^7.33.1",
|
|
99
|
+
"react-i18next": "^11.18.1",
|
|
100
|
+
"react-multi-date-picker": "^3.3.4",
|
|
101
|
+
"react-otp-input": "^2.4.0",
|
|
102
|
+
"react-redux": "^8.0.2",
|
|
103
|
+
"react-spring-bottom-sheet": "^3.4.1",
|
|
104
|
+
"yup": "^0.32.11"
|
|
105
|
+
},
|
|
106
|
+
"peerDependencies": {
|
|
107
|
+
"react": "^18.2.0",
|
|
108
|
+
"react-dom": "^18.2.0"
|
|
109
|
+
},
|
|
110
|
+
"lint-staged": {
|
|
111
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
112
|
+
"yarn run prettier:fix",
|
|
113
|
+
"yarn run lint",
|
|
114
|
+
"git add ."
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"browserslist": {
|
|
118
|
+
"production": [
|
|
119
|
+
">0.2%",
|
|
120
|
+
"not dead",
|
|
121
|
+
"not op_mini all"
|
|
122
|
+
],
|
|
123
|
+
"development": [
|
|
124
|
+
"last 1 chrome version",
|
|
125
|
+
"last 1 firefox version",
|
|
126
|
+
"last 1 safari version"
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ResponseData, OTPFormValues, SharedState, ActionState, NIDFormValues } from '../../../@types';
|
|
3
|
-
export declare const retrieveLead: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
4
|
-
export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
|
-
response: any;
|
|
6
|
-
formData: OTPFormValues;
|
|
7
|
-
}, OTPFormValues, {}>;
|
|
8
|
-
export declare const createAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
|
-
data: any;
|
|
10
|
-
formData: NIDFormValues;
|
|
11
|
-
}, NIDFormValues, {}>;
|
|
12
|
-
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
13
|
-
export interface AuthData extends ResponseData {
|
|
14
|
-
verifyToken: string | undefined;
|
|
15
|
-
leadId: string;
|
|
16
|
-
postUrl: string;
|
|
17
|
-
otp: string;
|
|
18
|
-
nid: string;
|
|
19
|
-
termAndConditionChecked: boolean;
|
|
20
|
-
device_token?: string;
|
|
21
|
-
service_name?: string;
|
|
22
|
-
dob: string;
|
|
23
|
-
countryISOCode: string;
|
|
24
|
-
}
|
|
25
|
-
export interface AuthState extends SharedState<AuthData> {
|
|
26
|
-
customLoading?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
29
|
-
clearError: (state: AuthState) => void;
|
|
30
|
-
stopLoader: (state: AuthState) => void;
|
|
31
|
-
resetOTPScreen: (state: AuthState) => void;
|
|
32
|
-
storeLeadId: (state: AuthState, action: ActionState<{
|
|
33
|
-
leadId: string;
|
|
34
|
-
}>) => void;
|
|
35
|
-
storePostUrl: (state: AuthState, action: ActionState<{
|
|
36
|
-
postUrl: string;
|
|
37
|
-
}>) => void;
|
|
38
|
-
}, "auth/store">;
|
|
39
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
|
-
leadId: string;
|
|
41
|
-
}, string>, storePostUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
42
|
-
postUrl: string;
|
|
43
|
-
}, string>;
|
|
44
|
-
declare const _default: import("redux").Reducer<AuthState, import("redux").AnyAction>;
|
|
45
|
-
export default _default;
|
|
46
|
-
export declare const authSelector: (state: RootState) => AuthState;
|