@tap-payments/auth-jsconnect 2.0.52-test → 2.0.54-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 -15
- package/build/@types/app.js +0 -9
- package/build/@types/form.d.ts +0 -11
- package/build/api/auth.d.ts +1 -14
- package/build/api/auth.js +1 -24
- package/build/api/axios.js +2 -2
- package/build/api/data.d.ts +1 -4
- package/build/api/data.js +2 -6
- package/build/api/entity.d.ts +0 -2
- package/build/api/index.d.ts +1 -5
- package/build/app/rootReducer.d.ts +0 -3
- package/build/app/rootReducer.js +1 -7
- package/build/app/settings.js +2 -8
- package/build/app/store.d.ts +1 -7
- package/build/assets/locales/ar.json +4 -14
- package/build/assets/locales/en.json +4 -14
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -4
- package/build/components/AnimationFlow/AnimationFlow.js +7 -5
- package/build/components/AnimationFlow/BottomSheet.js +1 -2
- package/build/components/AnimationFlow/Dialog.d.ts +1 -4
- package/build/components/AnimationFlow/Dialog.js +4 -9
- package/build/components/FileInput/DragAndDrop.d.ts +1 -9
- package/build/components/FileInput/DragAndDrop.js +8 -113
- package/build/components/ProgressBar/index.d.ts +0 -2
- package/build/components/ProgressBar/index.js +0 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +34 -27
- package/build/constants/api.d.ts +0 -1
- package/build/constants/api.js +2 -5
- package/build/constants/app.d.ts +0 -15
- package/build/constants/app.js +3 -75
- package/build/constants/assets.d.ts +1 -17
- package/build/constants/assets.js +6 -22
- package/build/constants/validation.d.ts +0 -1
- package/build/constants/validation.js +0 -1
- package/build/features/app/bank/bankStore.d.ts +0 -4
- package/build/features/app/bank/bankStore.js +22 -42
- package/build/features/app/business/businessStore.js +12 -16
- package/build/features/app/connect/connectStore.d.ts +1 -13
- package/build/features/app/connect/connectStore.js +4 -164
- package/build/features/app/signIn/signInStore.js +2 -2
- package/build/features/bank/Bank.js +4 -10
- package/build/features/bank/screens/BankDetails/BankDetails.js +2 -2
- package/build/features/bank/screens/BankDetails/BankStatement.js +8 -33
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +5 -12
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +10 -40
- package/build/features/connect/screens/Individual/Individual.js +2 -6
- package/build/features/connect/screens/Merchant/Merchant.js +11 -35
- package/build/features/connect/screens/Merchant/SocialMedia.js +11 -56
- package/build/features/connect/screens/Merchant/validation.d.ts +0 -87
- package/build/features/connect/screens/Merchant/validation.js +2 -68
- package/build/features/connect/screens/Mobile/Mobile.js +4 -7
- package/build/features/featuresScreens.d.ts +0 -3
- package/build/features/featuresScreens.js +0 -48
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +5 -12
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +5 -12
- package/build/features/shared/Background/Background.d.ts +5 -7
- package/build/features/shared/Background/Background.js +5 -16
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadFile.js +8 -23
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +4 -12
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +4 -12
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/index.js +0 -1
- package/build/hooks/useAppConfig.js +0 -2
- package/build/hooks/useAppDispatch.d.ts +0 -3
- package/build/hooks/useErrorListener.js +2 -3
- package/build/index.d.ts +2 -5
- package/build/index.js +2 -11
- package/build/utils/device.d.ts +0 -1
- package/build/utils/device.js +0 -13
- package/build/utils/html.d.ts +0 -1
- package/build/utils/html.js +0 -6
- package/build/utils/locale.js +1 -1
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +20 -22
- package/build/utils/string.js +0 -9
- package/package.json +129 -129
- package/build/components/Lottie/Lottie.d.ts +0 -878
- package/build/components/Lottie/Lottie.js +0 -58
- package/build/components/Lottie/files/pulsating_circle_waves.json +0 -236
- package/build/components/Lottie/files/success.json +0 -425
- package/build/components/Lottie/index.d.ts +0 -3
- package/build/components/Lottie/index.js +0 -3
- package/build/components/ProgressBar/CircularProgressBar.d.ts +0 -14
- package/build/components/ProgressBar/CircularProgressBar.js +0 -48
- package/build/features/app/auth/authStore.d.ts +0 -35
- package/build/features/app/auth/authStore.js +0 -148
- package/build/features/app/entity/entityStore.d.ts +0 -53
- package/build/features/app/entity/entityStore.js +0 -461
- package/build/features/app/otp/otpStore.d.ts +0 -28
- package/build/features/app/otp/otpStore.js +0 -153
- package/build/features/auth/Auth.d.ts +0 -10
- package/build/features/auth/Auth.js +0 -87
- package/build/features/auth/index.d.ts +0 -1
- package/build/features/auth/index.js +0 -1
- package/build/features/auth/screens/OTP/OTP.d.ts +0 -5
- package/build/features/auth/screens/OTP/OTP.js +0 -72
- package/build/features/auth/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/auth/screens/OTP/OTPInput.js +0 -44
- 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
- package/build/features/connect/screens/CivilID/CivilID.d.ts +0 -5
- package/build/features/connect/screens/CivilID/CivilID.js +0 -85
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +0 -7
- package/build/features/connect/screens/CivilID/IDNumber.js +0 -59
- package/build/features/connect/screens/CivilID/index.d.ts +0 -3
- package/build/features/connect/screens/CivilID/index.js +0 -2
- package/build/features/connect/screens/CivilID/validation.d.ts +0 -8
- package/build/features/connect/screens/CivilID/validation.js +0 -4
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +0 -5
- package/build/features/connect/screens/Merchant/SalesChannels.js +0 -114
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +0 -5
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +0 -169
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +0 -5
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +0 -22
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +0 -5
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +0 -8
- package/build/features/connect/screens/VerifyPACI/index.d.ts +0 -3
- package/build/features/connect/screens/VerifyPACI/index.js +0 -2
- package/build/features/entity/Entity.d.ts +0 -7
- package/build/features/entity/Entity.js +0 -70
- package/build/features/entity/index.d.ts +0 -1
- package/build/features/entity/index.js +0 -1
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -54
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +0 -139
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -56
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -17
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +0 -28
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -38
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -112
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +0 -2
- package/build/features/entity/screens/EntityInfoConfirm/index.js +0 -2
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +0 -107
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +0 -17
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -9
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/entity/screens/Success/Success.d.ts +0 -5
- package/build/features/entity/screens/Success/Success.js +0 -16
- package/build/features/entity/screens/Success/index.d.ts +0 -3
- package/build/features/entity/screens/Success/index.js +0 -2
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -109
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/entity/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/entity/screens/Verify/OTPInput.js +0 -47
- package/build/features/entity/screens/Verify/Verify.d.ts +0 -5
- package/build/features/entity/screens/Verify/Verify.js +0 -78
- package/build/features/entity/screens/Verify/index.d.ts +0 -2
- package/build/features/entity/screens/Verify/index.js +0 -2
- package/build/features/entity/screens/Verify/validation.d.ts +0 -8
- package/build/features/entity/screens/Verify/validation.js +0 -4
- package/build/features/otp/OTP.d.ts +0 -7
- package/build/features/otp/OTP.js +0 -58
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +0 -1
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +0 -6
- package/build/features/otp/screens/OTPVerify/OTPInput.js +0 -47
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +0 -5
- package/build/features/otp/screens/OTPVerify/Verify.js +0 -49
- package/build/features/otp/screens/OTPVerify/index.d.ts +0 -2
- package/build/features/otp/screens/OTPVerify/index.js +0 -2
- package/build/features/otp/screens/OTPVerify/validation.d.ts +0 -8
- package/build/features/otp/screens/OTPVerify/validation.js +0 -4
- package/build/features/shared/Dialog/CloseDialog.d.ts +0 -11
- package/build/features/shared/Dialog/CloseDialog.js +0 -62
- package/build/features/shared/Dialog/DialogContainer.d.ts +0 -8
- package/build/features/shared/Dialog/DialogContainer.js +0 -56
- package/build/features/shared/Dialog/index.d.ts +0 -4
- package/build/features/shared/Dialog/index.js +0 -4
- package/build/hooks/useScreen.d.ts +0 -3
- package/build/hooks/useScreen.js +0 -14
package/build/index.js
CHANGED
|
@@ -7,10 +7,7 @@ import { IndividualLib, renderIndividualLib, unmountIndividualLib } from './feat
|
|
|
7
7
|
import { BankLib, renderBankLib, unmountBankLib } from './features/bank';
|
|
8
8
|
import { TaxLib, renderTaxLib, unmountTaxLib } from './features/tax';
|
|
9
9
|
import { SignInLib, renderSignInLib, unmountSignInLib } from './features/signIn';
|
|
10
|
-
|
|
11
|
-
import { OTPLib, renderOTPLib, unmountOTPLib } from './features/otp/OTP';
|
|
12
|
-
import { AuthLib, renderAuthLib, unmountAuthLib } from './features/auth';
|
|
13
|
-
export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib, IndividualLib, renderIndividualLib, unmountIndividualLib, BankLib, renderBankLib, unmountBankLib, TaxLib, renderTaxLib, unmountTaxLib, EntityLib, renderEntityLib, unmountEntityLib, OTPLib, renderOTPLib, unmountOTPLib, SignInLib, renderSignInLib, unmountSignInLib, AuthLib, renderAuthLib, unmountAuthLib };
|
|
10
|
+
export { ConnectLib, renderConnectLib, unmountConnectLib, BusinessLib, renderBusinessLib, unmountBusinessLib, PasswordLib, renderPasswordLib, unmountPasswordLib, IndividualLib, renderIndividualLib, unmountIndividualLib, BankLib, renderBankLib, unmountBankLib, TaxLib, renderTaxLib, unmountTaxLib, SignInLib, renderSignInLib, unmountSignInLib };
|
|
14
11
|
window['TapAuth'] = {
|
|
15
12
|
renderConnectLib: renderConnectLib,
|
|
16
13
|
unmountConnectLib: unmountConnectLib,
|
|
@@ -24,13 +21,7 @@ window['TapAuth'] = {
|
|
|
24
21
|
unmountBankLib: unmountBankLib,
|
|
25
22
|
renderTaxLib: renderTaxLib,
|
|
26
23
|
unmountTaxLib: unmountTaxLib,
|
|
27
|
-
renderEntityLib: renderEntityLib,
|
|
28
|
-
unmountEntityLib: unmountEntityLib,
|
|
29
|
-
renderOTPLib: renderOTPLib,
|
|
30
|
-
unmountOTPLib: unmountOTPLib,
|
|
31
24
|
renderSignInLib: renderSignInLib,
|
|
32
|
-
unmountSignInLib: unmountSignInLib
|
|
33
|
-
renderAuthLib: renderAuthLib,
|
|
34
|
-
unmountAuthLib: unmountAuthLib
|
|
25
|
+
unmountSignInLib: unmountSignInLib
|
|
35
26
|
};
|
|
36
27
|
console.log("TapAuth version: ".concat(require('../package.json').version));
|
package/build/utils/device.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ import { DeviceDetectorResult } from 'device-detector-js';
|
|
|
2
2
|
import { GetResult } from '@fingerprintjs/fingerprintjs';
|
|
3
3
|
export declare const getBrowserInfo: () => DeviceDetectorResult;
|
|
4
4
|
export declare const getFingerPrint: () => Promise<GetResult>;
|
|
5
|
-
export declare const mobileOS: () => 'Windows Phone' | 'Android' | 'iOS' | 'unknown';
|
package/build/utils/device.js
CHANGED
|
@@ -11,16 +11,3 @@ export var getFingerPrint = function () {
|
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
|
-
export var mobileOS = function () {
|
|
15
|
-
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
|
16
|
-
if (/windows phone/i.test(userAgent)) {
|
|
17
|
-
return 'Windows Phone';
|
|
18
|
-
}
|
|
19
|
-
if (/android/i.test(userAgent)) {
|
|
20
|
-
return 'Android';
|
|
21
|
-
}
|
|
22
|
-
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
|
|
23
|
-
return 'iOS';
|
|
24
|
-
}
|
|
25
|
-
return 'unknown';
|
|
26
|
-
};
|
package/build/utils/html.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export declare const createElementAndInject: (id: string) => HTMLDivElement;
|
|
|
2
2
|
export declare const reactElement: (elementId: string) => import("react-dom/client").Root;
|
|
3
3
|
export declare const scrollUp: (elementId: string, top?: number) => void;
|
|
4
4
|
export declare const scrollDown: (elementId: string) => void;
|
|
5
|
-
export declare const removeElement: (elementId: string) => void;
|
package/build/utils/html.js
CHANGED
package/build/utils/locale.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
2
|
import i18n from '../i18n';
|
|
3
3
|
export var updateLocale = function (locale, country) {
|
|
4
|
-
var data = locale[
|
|
4
|
+
var data = locale[country.toUpperCase()] || locale['default'];
|
|
5
5
|
if (i18n.isInitialized) {
|
|
6
6
|
i18n.removeResourceBundle('*', 'translation');
|
|
7
7
|
i18n.addResourceBundle('en', 'translation', data.en.translation);
|
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) => string | false;
|
|
2
|
+
export declare const encryptString: (string: string) => string;
|
package/build/utils/rsa.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { JSEncrypt } from 'jsencrypt';
|
|
1
2
|
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
|
@@ -3,7 +3,6 @@ export declare const maskPhone: (str?: string) => string;
|
|
|
3
3
|
export declare const maskID: (str: string) => string;
|
|
4
4
|
export declare const maskEmail: (str: string) => string;
|
|
5
5
|
export declare const showLastFour: (str: string) => string;
|
|
6
|
-
export declare const maskFileName: (str: string) => string;
|
|
7
6
|
export declare const getIndividualName: (name: string) => {
|
|
8
7
|
first: string;
|
|
9
8
|
middle: string;
|
|
@@ -16,30 +15,29 @@ export declare const getFlowUrl: (path: string, lang: string) => string;
|
|
|
16
15
|
export declare const getResetFlowUrl: (path: string, lang: string, operationType: string, id: string, infoId: string) => string;
|
|
17
16
|
export declare const capitalizeTheFirstLetterOfEachWord: (words: string) => string;
|
|
18
17
|
export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
|
|
19
|
-
al:
|
|
20
|
-
at:
|
|
21
|
-
aid:
|
|
22
|
-
an:
|
|
23
|
-
av:
|
|
24
|
-
acv:
|
|
25
|
-
asv:
|
|
26
|
-
rn:
|
|
27
|
-
rt:
|
|
28
|
-
rb:
|
|
29
|
-
rm:
|
|
30
|
-
ro:
|
|
31
|
-
rov:
|
|
32
|
-
bn:
|
|
33
|
-
bb:
|
|
34
|
-
bv:
|
|
35
|
-
bua:
|
|
18
|
+
al: string;
|
|
19
|
+
at: string;
|
|
20
|
+
aid: string;
|
|
21
|
+
an: string;
|
|
22
|
+
av: string;
|
|
23
|
+
acv: string;
|
|
24
|
+
asv: string;
|
|
25
|
+
rn: string;
|
|
26
|
+
rt: string;
|
|
27
|
+
rb: string;
|
|
28
|
+
rm: string;
|
|
29
|
+
ro: string;
|
|
30
|
+
rov: string;
|
|
31
|
+
bn: string;
|
|
32
|
+
bb: string;
|
|
33
|
+
bv: string;
|
|
34
|
+
bua: string;
|
|
36
35
|
bi: string;
|
|
37
|
-
ci:
|
|
38
|
-
cm:
|
|
39
|
-
l:
|
|
36
|
+
ci: string;
|
|
37
|
+
cm: string;
|
|
38
|
+
l: string;
|
|
40
39
|
};
|
|
41
40
|
export declare const removeRequestHeaders: () => void;
|
|
42
41
|
export declare const getBaseUrl: () => string;
|
|
43
42
|
export declare const getScreenNameBasedOnFlow: (flow: string) => "CONNECT_NID_STEP" | "" | "BUSINESS_BUSINESS_TYPE_STEP" | "INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP" | "BANK_BANK_DETAILS_STEP" | "TAX_TAX_DETAILS_STEP";
|
|
44
43
|
export declare const getEighteenYearsAgo: () => string;
|
|
45
|
-
export declare const isKW: (flag: string) => boolean;
|
package/build/utils/string.js
CHANGED
|
@@ -23,12 +23,6 @@ export var showLastFour = function (str) {
|
|
|
23
23
|
}
|
|
24
24
|
return str;
|
|
25
25
|
};
|
|
26
|
-
export var maskFileName = function (str) {
|
|
27
|
-
if (str.length < 28)
|
|
28
|
-
return str;
|
|
29
|
-
var first = str.substring(0, 28);
|
|
30
|
-
return first + '....';
|
|
31
|
-
};
|
|
32
26
|
export var getIndividualName = function (name) {
|
|
33
27
|
var _a;
|
|
34
28
|
var nameArray = (name === null || name === void 0 ? void 0 : name.split(' ')) || [];
|
|
@@ -173,6 +167,3 @@ export var getEighteenYearsAgo = function () {
|
|
|
173
167
|
var eighteenYearsAgo = new Date();
|
|
174
168
|
return moment(eighteenYearsAgo.setFullYear(eighteenYearsAgo.getFullYear() - 18)).format('YYYY-MM-DD');
|
|
175
169
|
};
|
|
176
|
-
export var isKW = function (flag) {
|
|
177
|
-
return ['kw', 'kwd'].includes(flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
178
|
-
};
|
package/package.json
CHANGED
|
@@ -1,129 +1,129 @@
|
|
|
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": "^2.3.1",
|
|
91
|
-
"lodash-es": "^4.17.21",
|
|
92
|
-
"lottie-web": "^5.9.6",
|
|
93
|
-
"moment-hijri": "~2.1.2",
|
|
94
|
-
"react": "^18.2.0",
|
|
95
|
-
"react-calendar": "~3.7.0",
|
|
96
|
-
"react-device-detect": "^2.2.2",
|
|
97
|
-
"react-dom": "^18.2.0",
|
|
98
|
-
"react-dropzone": "^14.2.2",
|
|
99
|
-
"react-hook-form": "^7.33.1",
|
|
100
|
-
"react-i18next": "^11.18.1",
|
|
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
|
+
{
|
|
2
|
+
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
+
"version": "2.0.54-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
|
+
"lottie-web": "^5.9.6",
|
|
93
|
+
"moment-hijri": "~2.1.2",
|
|
94
|
+
"react": "^18.2.0",
|
|
95
|
+
"react-calendar": "~3.7.0",
|
|
96
|
+
"react-device-detect": "^2.2.2",
|
|
97
|
+
"react-dom": "^18.2.0",
|
|
98
|
+
"react-dropzone": "^14.2.2",
|
|
99
|
+
"react-hook-form": "^7.33.1",
|
|
100
|
+
"react-i18next": "^11.18.1",
|
|
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
|
+
}
|