@tap-payments/auth-jsconnect 2.0.49-test → 2.0.50-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 +6 -4
- package/build/@types/app.js +2 -2
- package/build/@types/form.d.ts +3 -0
- package/build/api/auth.d.ts +6 -1
- package/build/api/auth.js +16 -1
- package/build/api/data.d.ts +4 -1
- package/build/api/data.js +6 -2
- package/build/api/index.d.ts +4 -1
- package/build/assets/locales/ar.json +7 -1
- package/build/assets/locales/en.json +7 -1
- package/build/components/AnimationFlow/AnimationFlow.js +3 -5
- package/build/components/AnimationFlow/BottomSheet.js +2 -1
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.js +2 -2
- package/build/components/FileInput/DragAndDrop.d.ts +9 -1
- package/build/components/FileInput/DragAndDrop.js +113 -8
- package/build/components/Lottie/Lottie.d.ts +220 -0
- package/build/components/Lottie/Lottie.js +56 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/constants/api.js +1 -1
- package/build/constants/app.d.ts +1 -0
- package/build/constants/app.js +16 -3
- package/build/constants/assets.d.ts +7 -0
- package/build/constants/assets.js +7 -0
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/bank/bankStore.d.ts +4 -0
- package/build/features/app/bank/bankStore.js +42 -22
- package/build/features/app/business/businessStore.js +16 -12
- package/build/features/app/connect/connectStore.d.ts +9 -1
- package/build/features/app/connect/connectStore.js +115 -13
- package/build/features/app/entity/entityStore.js +13 -9
- package/build/features/bank/screens/BankDetails/BankDetails.js +2 -2
- package/build/features/bank/screens/BankDetails/BankStatement.js +33 -8
- 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.js +11 -5
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +85 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Individual.js +5 -2
- package/build/features/connect/screens/Merchant/Merchant.js +7 -4
- package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
- package/build/features/connect/screens/Merchant/SocialMedia.js +7 -7
- package/build/features/connect/screens/Mobile/Mobile.js +7 -4
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +118 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -1
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +1 -1
- package/build/features/featuresScreens.js +10 -0
- package/build/features/shared/Background/Background.d.ts +2 -5
- package/build/features/shared/Background/Background.js +6 -4
- 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 +8 -3
- package/build/features/shared/UploadFile/UploadFile.js +23 -8
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/locale.js +1 -1
- package/build/utils/string.d.ts +2 -0
- package/build/utils/string.js +9 -0
- package/package.json +2 -1
package/build/utils/device.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ 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,3 +11,16 @@ 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/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[country.toUpperCase()] || locale['default'];
|
|
4
|
+
var data = locale['SA'] || 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/string.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ 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;
|
|
6
7
|
export declare const getIndividualName: (name: string) => {
|
|
7
8
|
first: string;
|
|
8
9
|
middle: string;
|
|
@@ -41,3 +42,4 @@ export declare const removeRequestHeaders: () => void;
|
|
|
41
42
|
export declare const getBaseUrl: () => string;
|
|
42
43
|
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";
|
|
43
44
|
export declare const getEighteenYearsAgo: () => string;
|
|
45
|
+
export declare const isKW: (flag: string) => boolean;
|
package/build/utils/string.js
CHANGED
|
@@ -23,6 +23,12 @@ 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
|
+
};
|
|
26
32
|
export var getIndividualName = function (name) {
|
|
27
33
|
var _a;
|
|
28
34
|
var nameArray = (name === null || name === void 0 ? void 0 : name.split(' ')) || [];
|
|
@@ -167,3 +173,6 @@ export var getEighteenYearsAgo = function () {
|
|
|
167
173
|
var eighteenYearsAgo = new Date();
|
|
168
174
|
return moment(eighteenYearsAgo.setFullYear(eighteenYearsAgo.getFullYear() - 18)).format('YYYY-MM-DD');
|
|
169
175
|
};
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.50-test",
|
|
4
4
|
"description": "connect library, auth",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"i18next-http-backend": "^1.4.1",
|
|
90
90
|
"jsencrypt": "^2.3.1",
|
|
91
91
|
"lodash-es": "^4.17.21",
|
|
92
|
+
"lottie-web": "^5.9.6",
|
|
92
93
|
"moment-hijri": "~2.1.2",
|
|
93
94
|
"react": "^18.2.0",
|
|
94
95
|
"react-calendar": "~3.7.0",
|