@tap-payments/auth-jsconnect 2.0.40-test → 2.0.42-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/app/store.d.ts +1 -1
- package/build/features/auth/Auth.d.ts +1 -1
- package/build/features/auth/Auth.js +3 -2
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +3 -2
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +3 -2
- package/build/features/entity/Entity.d.ts +1 -1
- package/build/features/entity/Entity.js +3 -2
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +3 -2
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +3 -2
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +3 -2
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +3 -2
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +20 -20
- package/package.json +128 -128
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
package/build/app/store.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
11
11
|
entity: import("../features/app/entity/entityStore").EntityState;
|
|
12
12
|
otp: import("../features/app/otp/otpStore").OtpState;
|
|
13
13
|
auth: import("../features/app/auth/authStore").AuthState;
|
|
14
|
-
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("
|
|
14
|
+
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
|
|
15
15
|
settings: import("./settings").SettingsState;
|
|
16
16
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
17
17
|
business: import("../features/app/business/businessStore").BusinessState;
|
|
@@ -6,4 +6,4 @@ export interface AuthLibProps extends LibConfig {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function AuthLib(props: AuthLibProps): JSX.Element;
|
|
8
8
|
export declare function renderAuthLib(config: AuthLibProps, elementId: string): void;
|
|
9
|
-
export declare function unmountAuthLib(elementId: string): void;
|
|
9
|
+
export declare function unmountAuthLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -47,12 +47,13 @@ export function AuthLib(props) {
|
|
|
47
47
|
export function renderAuthLib(config, elementId) {
|
|
48
48
|
reactElement(elementId).render(_jsx(AuthLib, __assign({}, config)));
|
|
49
49
|
}
|
|
50
|
-
export function unmountAuthLib(elementId) {
|
|
50
|
+
export function unmountAuthLib(elementId, unmountTimeout) {
|
|
51
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
51
52
|
var element = document.getElementById(elementId);
|
|
52
53
|
setTimeout(function () {
|
|
53
54
|
var _a;
|
|
54
55
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
55
56
|
removeElement(DIALOG_ID);
|
|
56
57
|
reactElement(elementId).unmount();
|
|
57
|
-
},
|
|
58
|
+
}, unmountTimeout);
|
|
58
59
|
}
|
|
@@ -4,4 +4,4 @@ export interface BusinessLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function BusinessLib(props: BusinessLibProps): JSX.Element;
|
|
6
6
|
export declare function renderBusinessLib(config: BusinessLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountBusinessLib(elementId: string): void;
|
|
7
|
+
export declare function unmountBusinessLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -58,12 +58,13 @@ export function BusinessLib(props) {
|
|
|
58
58
|
export function renderBusinessLib(config, elementId) {
|
|
59
59
|
reactElement(elementId).render(_jsx(BusinessLib, __assign({}, config)));
|
|
60
60
|
}
|
|
61
|
-
export function unmountBusinessLib(elementId) {
|
|
61
|
+
export function unmountBusinessLib(elementId, unmountTimeout) {
|
|
62
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
62
63
|
var element = document.getElementById(elementId);
|
|
63
64
|
setTimeout(function () {
|
|
64
65
|
var _a;
|
|
65
66
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
66
67
|
removeElement(DIALOG_ID);
|
|
67
68
|
reactElement(elementId).unmount();
|
|
68
|
-
},
|
|
69
|
+
}, unmountTimeout);
|
|
69
70
|
}
|
|
@@ -4,4 +4,4 @@ export interface ConnectLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function ConnectLib(props: ConnectLibProps): JSX.Element;
|
|
6
6
|
export declare function renderConnectLib(config: ConnectLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountConnectLib(elementId: string): void;
|
|
7
|
+
export declare function unmountConnectLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -44,12 +44,13 @@ export function ConnectLib(props) {
|
|
|
44
44
|
export function renderConnectLib(config, elementId) {
|
|
45
45
|
reactElement(elementId).render(_jsx(ConnectLib, __assign({}, config)));
|
|
46
46
|
}
|
|
47
|
-
export function unmountConnectLib(elementId) {
|
|
47
|
+
export function unmountConnectLib(elementId, unmountTimeout) {
|
|
48
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
48
49
|
var element = document.getElementById(elementId);
|
|
49
50
|
setTimeout(function () {
|
|
50
51
|
var _a;
|
|
51
52
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
52
53
|
removeElement(DIALOG_ID);
|
|
53
54
|
reactElement(elementId).unmount();
|
|
54
|
-
},
|
|
55
|
+
}, unmountTimeout);
|
|
55
56
|
}
|
|
@@ -4,4 +4,4 @@ export interface EntityLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function EntityLib(props: EntityLibProps): JSX.Element;
|
|
6
6
|
export declare function renderEntityLib(config: EntityLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountEntityLib(elementId: string): void;
|
|
7
|
+
export declare function unmountEntityLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -58,12 +58,13 @@ export function EntityLib(props) {
|
|
|
58
58
|
export function renderEntityLib(config, elementId) {
|
|
59
59
|
reactElement(elementId).render(_jsx(EntityLib, __assign({}, config)));
|
|
60
60
|
}
|
|
61
|
-
export function unmountEntityLib(elementId) {
|
|
61
|
+
export function unmountEntityLib(elementId, unmountTimeout) {
|
|
62
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
62
63
|
var element = document.getElementById(elementId);
|
|
63
64
|
setTimeout(function () {
|
|
64
65
|
var _a;
|
|
65
66
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
66
67
|
removeElement(DIALOG_ID);
|
|
67
68
|
reactElement(elementId).unmount();
|
|
68
|
-
},
|
|
69
|
+
}, unmountTimeout);
|
|
69
70
|
}
|
|
@@ -4,4 +4,4 @@ export interface IndividualLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function IndividualLib(props: IndividualLibProps): JSX.Element;
|
|
6
6
|
export declare function renderIndividualLib(config: IndividualLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountIndividualLib(elementId: string): void;
|
|
7
|
+
export declare function unmountIndividualLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -58,12 +58,13 @@ export function IndividualLib(props) {
|
|
|
58
58
|
export function renderIndividualLib(config, elementId) {
|
|
59
59
|
reactElement(elementId).render(_jsx(IndividualLib, __assign({}, config)));
|
|
60
60
|
}
|
|
61
|
-
export function unmountIndividualLib(elementId) {
|
|
61
|
+
export function unmountIndividualLib(elementId, unmountTimeout) {
|
|
62
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
62
63
|
var element = document.getElementById(elementId);
|
|
63
64
|
setTimeout(function () {
|
|
64
65
|
var _a;
|
|
65
66
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
66
67
|
removeElement(DIALOG_ID);
|
|
67
68
|
reactElement(elementId).unmount();
|
|
68
|
-
},
|
|
69
|
+
}, unmountTimeout);
|
|
69
70
|
}
|
|
@@ -4,4 +4,4 @@ export interface PasswordLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function PasswordLib(props: PasswordLibProps): JSX.Element;
|
|
6
6
|
export declare function renderPasswordLib(config: PasswordLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountPasswordLib(elementId: string): void;
|
|
7
|
+
export declare function unmountPasswordLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -65,12 +65,13 @@ export function PasswordLib(props) {
|
|
|
65
65
|
export function renderPasswordLib(config, elementId) {
|
|
66
66
|
reactElement(elementId).render(_jsx(PasswordLib, __assign({}, config)));
|
|
67
67
|
}
|
|
68
|
-
export function unmountPasswordLib(elementId) {
|
|
68
|
+
export function unmountPasswordLib(elementId, unmountTimeout) {
|
|
69
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
69
70
|
var element = document.getElementById(elementId);
|
|
70
71
|
setTimeout(function () {
|
|
71
72
|
var _a;
|
|
72
73
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
73
74
|
removeElement(DIALOG_ID);
|
|
74
75
|
reactElement(elementId).unmount();
|
|
75
|
-
},
|
|
76
|
+
}, unmountTimeout);
|
|
76
77
|
}
|
|
@@ -4,4 +4,4 @@ export interface SignInLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function SignInLib(props: SignInLibProps): JSX.Element;
|
|
6
6
|
export declare function renderSignInLib(config: SignInLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountSignInLib(elementId: string): void;
|
|
7
|
+
export declare function unmountSignInLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -44,7 +44,8 @@ export function SignInLib(props) {
|
|
|
44
44
|
export function renderSignInLib(config, elementId) {
|
|
45
45
|
reactElement(elementId).render(_jsx(SignInLib, __assign({}, config)));
|
|
46
46
|
}
|
|
47
|
-
export function unmountSignInLib(elementId) {
|
|
47
|
+
export function unmountSignInLib(elementId, unmountTimeout) {
|
|
48
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
48
49
|
var element = document.getElementById(elementId);
|
|
49
50
|
var dialogEl = document.getElementById(DIALOG_ID);
|
|
50
51
|
setTimeout(function () {
|
|
@@ -52,5 +53,5 @@ export function unmountSignInLib(elementId) {
|
|
|
52
53
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
53
54
|
dialogEl && dialogEl.remove();
|
|
54
55
|
reactElement(elementId).unmount();
|
|
55
|
-
},
|
|
56
|
+
}, unmountTimeout);
|
|
56
57
|
}
|
|
@@ -4,4 +4,4 @@ export interface TaxLibProps extends LibConfig {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function TaxLib(props: TaxLibProps): JSX.Element;
|
|
6
6
|
export declare function renderTaxLib(config: TaxLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountTaxLib(elementId: string): void;
|
|
7
|
+
export declare function unmountTaxLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -58,7 +58,8 @@ export function TaxLib(props) {
|
|
|
58
58
|
export function renderTaxLib(config, elementId) {
|
|
59
59
|
reactElement(elementId).render(_jsx(TaxLib, __assign({}, config)));
|
|
60
60
|
}
|
|
61
|
-
export function unmountTaxLib(elementId) {
|
|
61
|
+
export function unmountTaxLib(elementId, unmountTimeout) {
|
|
62
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
62
63
|
var element = document.getElementById(elementId);
|
|
63
64
|
var dialogEl = document.getElementById(DIALOG_ID);
|
|
64
65
|
setTimeout(function () {
|
|
@@ -66,5 +67,5 @@ export function unmountTaxLib(elementId) {
|
|
|
66
67
|
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
67
68
|
dialogEl && dialogEl.remove();
|
|
68
69
|
reactElement(elementId).unmount();
|
|
69
|
-
},
|
|
70
|
+
}, unmountTimeout);
|
|
70
71
|
}
|
package/build/utils/rsa.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const encryptObject: (data: unknown) =>
|
|
2
|
-
export declare const encryptString: (string: string) =>
|
|
1
|
+
export declare const encryptObject: (data: unknown) => any;
|
|
2
|
+
export declare const encryptString: (string: string) => any;
|
package/build/utils/rsa.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSEncrypt } from 'jsencrypt';
|
|
2
1
|
import { RSA_FRONTEND_MW_PUBLIC_KEY } from '../constants';
|
|
2
|
+
var JSEncrypt = require('jsencrypt').JSEncrypt;
|
|
3
3
|
var rsa = new JSEncrypt();
|
|
4
4
|
rsa.setPublicKey(RSA_FRONTEND_MW_PUBLIC_KEY);
|
|
5
5
|
export var encryptObject = function (data) {
|
package/build/utils/string.d.ts
CHANGED
|
@@ -15,27 +15,27 @@ export declare const getFlowUrl: (path: string, lang: string) => string;
|
|
|
15
15
|
export declare const getResetFlowUrl: (path: string, lang: string, operationType: string, id: string, infoId: string) => string;
|
|
16
16
|
export declare const capitalizeTheFirstLetterOfEachWord: (words: string) => string;
|
|
17
17
|
export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
|
|
18
|
-
al:
|
|
19
|
-
at:
|
|
20
|
-
aid:
|
|
21
|
-
an:
|
|
22
|
-
av:
|
|
23
|
-
acv:
|
|
24
|
-
asv:
|
|
25
|
-
rn:
|
|
26
|
-
rt:
|
|
27
|
-
rb:
|
|
28
|
-
rm:
|
|
29
|
-
ro:
|
|
30
|
-
rov:
|
|
31
|
-
bn:
|
|
32
|
-
bb:
|
|
33
|
-
bv:
|
|
34
|
-
bua:
|
|
18
|
+
al: any;
|
|
19
|
+
at: any;
|
|
20
|
+
aid: any;
|
|
21
|
+
an: any;
|
|
22
|
+
av: any;
|
|
23
|
+
acv: any;
|
|
24
|
+
asv: any;
|
|
25
|
+
rn: any;
|
|
26
|
+
rt: any;
|
|
27
|
+
rb: any;
|
|
28
|
+
rm: any;
|
|
29
|
+
ro: any;
|
|
30
|
+
rov: any;
|
|
31
|
+
bn: any;
|
|
32
|
+
bb: any;
|
|
33
|
+
bv: any;
|
|
34
|
+
bua: any;
|
|
35
35
|
bi: string;
|
|
36
|
-
ci:
|
|
37
|
-
cm:
|
|
38
|
-
l:
|
|
36
|
+
ci: any;
|
|
37
|
+
cm: any;
|
|
38
|
+
l: any;
|
|
39
39
|
};
|
|
40
40
|
export declare const removeRequestHeaders: () => void;
|
|
41
41
|
export declare const getBaseUrl: () => string;
|
package/package.json
CHANGED
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.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": "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/moment-hijri": "^2.1.0",
|
|
39
|
-
"@types/react": "^18.0.15",
|
|
40
|
-
"@types/react-calendar": "~3.5.1",
|
|
41
|
-
"@types/react-dom": "^18.0.6",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
43
|
-
"@typescript-eslint/parser": "^5.30.5",
|
|
44
|
-
"babel-loader": "^8.2.5",
|
|
45
|
-
"copyfiles": "^2.4.1",
|
|
46
|
-
"cross-env": "^7.0.3",
|
|
47
|
-
"css-loader": "^6.7.1",
|
|
48
|
-
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
49
|
-
"eslint": "^8.19.0",
|
|
50
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
51
|
-
"eslint-config-prettier": "^8.5.0",
|
|
52
|
-
"eslint-plugin-import": "^2.26.0",
|
|
53
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
54
|
-
"eslint-plugin-node": "^11.1.0",
|
|
55
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
-
"eslint-plugin-react": "^7.30.1",
|
|
57
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
58
|
-
"file-loader": "^6.2.0",
|
|
59
|
-
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
60
|
-
"html-loader": "^3.1.2",
|
|
61
|
-
"html-webpack-plugin": "^5.5.0",
|
|
62
|
-
"husky": "^8.0.1",
|
|
63
|
-
"lint-staged": "^13.0.3",
|
|
64
|
-
"mini-css-extract-plugin": "^2.6.1",
|
|
65
|
-
"prettier": "^2.7.1",
|
|
66
|
-
"sass": "^1.53.0",
|
|
67
|
-
"sass-loader": "^13.0.2",
|
|
68
|
-
"style-loader": "^3.3.1",
|
|
69
|
-
"terser-webpack-plugin": "^5.3.3",
|
|
70
|
-
"tsc-alias": "^1.6.11",
|
|
71
|
-
"typescript": "^4.7.4",
|
|
72
|
-
"webpack": "^5.73.0",
|
|
73
|
-
"webpack-cli": "^4.10.0",
|
|
74
|
-
"webpack-dev-server": "^4.9.3",
|
|
75
|
-
"webpack-merge": "^5.8.0"
|
|
76
|
-
},
|
|
77
|
-
"dependencies": {
|
|
78
|
-
"@emotion/react": "^11.9.3",
|
|
79
|
-
"@emotion/styled": "^11.9.3",
|
|
80
|
-
"@fingerprintjs/fingerprintjs": "~3.3.4",
|
|
81
|
-
"@hookform/resolvers": "^2.9.6",
|
|
82
|
-
"@mui/icons-material": "^5.8.4",
|
|
83
|
-
"@mui/material": "^5.8.7",
|
|
84
|
-
"@reduxjs/toolkit": "^1.8.3",
|
|
85
|
-
"axios": "^0.27.2",
|
|
86
|
-
"device-detector-js": "^3.0.3",
|
|
87
|
-
"i18next": "^21.8.14",
|
|
88
|
-
"i18next-browser-languagedetector": "^6.1.4",
|
|
89
|
-
"i18next-http-backend": "^1.4.1",
|
|
90
|
-
"jsencrypt": "^3.
|
|
91
|
-
"lodash-es": "^4.17.21",
|
|
92
|
-
"moment-hijri": "~2.1.2",
|
|
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-otp-input": "^2.4.0",
|
|
101
|
-
"react-redux": "^8.0.2",
|
|
102
|
-
"react-spring-bottom-sheet": "^3.4.1",
|
|
103
|
-
"yup": "^0.32.11"
|
|
104
|
-
},
|
|
105
|
-
"peerDependencies": {
|
|
106
|
-
"react": "^18.2.0",
|
|
107
|
-
"react-dom": "^18.2.0"
|
|
108
|
-
},
|
|
109
|
-
"lint-staged": {
|
|
110
|
-
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
111
|
-
"yarn run prettier:fix",
|
|
112
|
-
"yarn run lint",
|
|
113
|
-
"git add ."
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
"browserslist": {
|
|
117
|
-
"production": [
|
|
118
|
-
">0.2%",
|
|
119
|
-
"not dead",
|
|
120
|
-
"not op_mini all"
|
|
121
|
-
],
|
|
122
|
-
"development": [
|
|
123
|
-
"last 1 chrome version",
|
|
124
|
-
"last 1 firefox version",
|
|
125
|
-
"last 1 safari version"
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
+
"version": "2.0.42-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/moment-hijri": "^2.1.0",
|
|
39
|
+
"@types/react": "^18.0.15",
|
|
40
|
+
"@types/react-calendar": "~3.5.1",
|
|
41
|
+
"@types/react-dom": "^18.0.6",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
43
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
44
|
+
"babel-loader": "^8.2.5",
|
|
45
|
+
"copyfiles": "^2.4.1",
|
|
46
|
+
"cross-env": "^7.0.3",
|
|
47
|
+
"css-loader": "^6.7.1",
|
|
48
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
49
|
+
"eslint": "^8.19.0",
|
|
50
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
51
|
+
"eslint-config-prettier": "^8.5.0",
|
|
52
|
+
"eslint-plugin-import": "^2.26.0",
|
|
53
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
54
|
+
"eslint-plugin-node": "^11.1.0",
|
|
55
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
+
"eslint-plugin-react": "^7.30.1",
|
|
57
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
58
|
+
"file-loader": "^6.2.0",
|
|
59
|
+
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
60
|
+
"html-loader": "^3.1.2",
|
|
61
|
+
"html-webpack-plugin": "^5.5.0",
|
|
62
|
+
"husky": "^8.0.1",
|
|
63
|
+
"lint-staged": "^13.0.3",
|
|
64
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
65
|
+
"prettier": "^2.7.1",
|
|
66
|
+
"sass": "^1.53.0",
|
|
67
|
+
"sass-loader": "^13.0.2",
|
|
68
|
+
"style-loader": "^3.3.1",
|
|
69
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
70
|
+
"tsc-alias": "^1.6.11",
|
|
71
|
+
"typescript": "^4.7.4",
|
|
72
|
+
"webpack": "^5.73.0",
|
|
73
|
+
"webpack-cli": "^4.10.0",
|
|
74
|
+
"webpack-dev-server": "^4.9.3",
|
|
75
|
+
"webpack-merge": "^5.8.0"
|
|
76
|
+
},
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"@emotion/react": "^11.9.3",
|
|
79
|
+
"@emotion/styled": "^11.9.3",
|
|
80
|
+
"@fingerprintjs/fingerprintjs": "~3.3.4",
|
|
81
|
+
"@hookform/resolvers": "^2.9.6",
|
|
82
|
+
"@mui/icons-material": "^5.8.4",
|
|
83
|
+
"@mui/material": "^5.8.7",
|
|
84
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
85
|
+
"axios": "^0.27.2",
|
|
86
|
+
"device-detector-js": "^3.0.3",
|
|
87
|
+
"i18next": "^21.8.14",
|
|
88
|
+
"i18next-browser-languagedetector": "^6.1.4",
|
|
89
|
+
"i18next-http-backend": "^1.4.1",
|
|
90
|
+
"jsencrypt": "^2.3.1",
|
|
91
|
+
"lodash-es": "^4.17.21",
|
|
92
|
+
"moment-hijri": "~2.1.2",
|
|
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-otp-input": "^2.4.0",
|
|
101
|
+
"react-redux": "^8.0.2",
|
|
102
|
+
"react-spring-bottom-sheet": "^3.4.1",
|
|
103
|
+
"yup": "^0.32.11"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"react": "^18.2.0",
|
|
107
|
+
"react-dom": "^18.2.0"
|
|
108
|
+
},
|
|
109
|
+
"lint-staged": {
|
|
110
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
111
|
+
"yarn run prettier:fix",
|
|
112
|
+
"yarn run lint",
|
|
113
|
+
"git add ."
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"browserslist": {
|
|
117
|
+
"production": [
|
|
118
|
+
">0.2%",
|
|
119
|
+
"not dead",
|
|
120
|
+
"not op_mini all"
|
|
121
|
+
],
|
|
122
|
+
"development": [
|
|
123
|
+
"last 1 chrome version",
|
|
124
|
+
"last 1 firefox version",
|
|
125
|
+
"last 1 safari version"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
.date_picker_input {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.react-calendar {
|
|
6
|
-
width: 100%;
|
|
7
|
-
border: none;
|
|
8
|
-
padding: 15px 0px 15px 0px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.react-calendar__navigation {
|
|
12
|
-
display: flex;
|
|
13
|
-
position: relative;
|
|
14
|
-
}
|
|
15
|
-
.react-calendar__navigation__label__labelText {
|
|
16
|
-
font-family: 'Lato', 'Roboto';
|
|
17
|
-
}
|
|
18
|
-
.react-calendar__navigation button:enabled:hover,
|
|
19
|
-
.react-calendar__navigation button:enabled:focus {
|
|
20
|
-
background-color: #ffffff;
|
|
21
|
-
}
|
|
22
|
-
.react-calendar__navigation__prev-button {
|
|
23
|
-
top: 20px;
|
|
24
|
-
left: 86px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.react-calendar__navigation__next-button {
|
|
28
|
-
top: 0px;
|
|
29
|
-
left: 86px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.react-calendar__navigation__prev2-button {
|
|
33
|
-
top: 20px;
|
|
34
|
-
right: 13px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.react-calendar__navigation__next2-button {
|
|
38
|
-
top: 0px;
|
|
39
|
-
right: 13px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.react-calendar__navigation__arrow {
|
|
43
|
-
background-color: transparent !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
abbr[title] {
|
|
47
|
-
text-decoration: none;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
color: #abaeb6;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.react-calendar__tile {
|
|
53
|
-
transition: all 0.5s ease;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.react-calendar__tile:enabled:hover,
|
|
57
|
-
.react-calendar__tile:enabled:focus {
|
|
58
|
-
background-color: transparent;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.react-calendar__tile:enabled:hover {
|
|
62
|
-
background: radial-gradient(circle closest-side, #fafafa 0%, #fafafa 98%, rgba(0, 0, 0, 0) 100%);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.react-calendar__month-view__days__day--weekend,
|
|
66
|
-
.react-calendar__tile {
|
|
67
|
-
color: #3a4154;
|
|
68
|
-
}
|
|
69
|
-
.react-calendar__tile--hasActive {
|
|
70
|
-
background: radial-gradient(circle closest-side, #fafafa 0%, #fafafa 98%, rgba(0, 0, 0, 0) 100%);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.react-calendar__tile--active,
|
|
74
|
-
.react-calendar__tile--active:enabled:hover,
|
|
75
|
-
.react-calendar__tile--active:enabled:focus {
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
background: radial-gradient(circle closest-side, #3a4154 0%, #3a4154 98%, rgba(0, 0, 0, 0) 100%);
|
|
78
|
-
color: #ffffff;
|
|
79
|
-
}
|
|
80
|
-
.react-calendar__tile--now {
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
}
|
|
83
|
-
.react-calendar__navigation button:disabled {
|
|
84
|
-
background-color: #ffffff;
|
|
85
|
-
color: #3a4154;
|
|
86
|
-
}
|
package/build/index.css
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
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
|
-
overflow-y: hidden;
|
|
117
|
-
}
|
|
118
|
-
ol,
|
|
119
|
-
ul {
|
|
120
|
-
list-style: none;
|
|
121
|
-
}
|
|
122
|
-
blockquote,
|
|
123
|
-
q {
|
|
124
|
-
quotes: none;
|
|
125
|
-
}
|
|
126
|
-
blockquote:before,
|
|
127
|
-
blockquote:after,
|
|
128
|
-
q:before,
|
|
129
|
-
q:after {
|
|
130
|
-
content: '';
|
|
131
|
-
content: none;
|
|
132
|
-
}
|
|
133
|
-
table {
|
|
134
|
-
border-collapse: collapse;
|
|
135
|
-
border-spacing: 0;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
* {
|
|
139
|
-
box-sizing: border-box;
|
|
140
|
-
}
|