@tap-payments/auth-jsconnect 2.12.13-development → 2.12.13
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/README.md +30 -0
- package/build/@types/app.d.ts +2 -0
- package/build/@types/app.js +1 -0
- package/build/@types/form.d.ts +1 -0
- package/build/api/document.d.ts +1 -1
- package/build/assets/locales/ar.json +13 -10
- package/build/assets/locales/en.json +9 -6
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +2 -2
- package/build/constants/api.js +10 -2
- package/build/constants/app.d.ts +2 -0
- package/build/constants/app.js +2 -0
- package/build/features/app/connectExpress/connectExpressStore.js +19 -16
- package/build/features/app/entity/entityStore.js +56 -35
- package/build/features/app/individual/individualStore.js +1 -0
- package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
- package/build/features/connectExpress/ConnectExpress.js +4 -4
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +9 -9
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -6
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +8 -8
- package/build/features/connectExpress/screens/NIDMissed/NID.js +5 -6
- package/build/features/connectExpress/screens/OTP/OTP.js +7 -8
- package/build/features/connectExpress/screens/OTP/OTPInput.js +5 -8
- package/build/features/entity/screens/EntityName/EntityDocumentUpload.d.ts +12 -0
- package/build/features/entity/screens/EntityName/{LicenseCertificate.js → EntityDocumentUpload.js} +10 -15
- package/build/features/entity/screens/EntityName/EntityName.js +10 -4
- package/build/features/entity/screens/EntityName/validation.d.ts +9 -0
- package/build/features/entity/screens/EntityName/validation.js +3 -0
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useIsEmailAuth.d.ts +1 -0
- package/build/hooks/useIsEmailAuth.js +11 -0
- package/build/utils/array.d.ts +1 -1
- package/build/utils/array.js +3 -2
- package/build/utils/common.js +6 -7
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +3 -1
- package/package.json +2 -2
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +0 -9
package/build/utils/string.js
CHANGED
|
@@ -229,6 +229,9 @@ export var isQA = function (flag) {
|
|
|
229
229
|
return false;
|
|
230
230
|
return ['qa', 'qat'].includes(flag.toLowerCase());
|
|
231
231
|
};
|
|
232
|
+
export var isEmailAuthEnabled = function (emailAuth, countryIso2) {
|
|
233
|
+
return emailAuth && isQA(countryIso2);
|
|
234
|
+
};
|
|
232
235
|
export var isKWOrSA = function (flag) {
|
|
233
236
|
return isKW(flag) || isSA(flag);
|
|
234
237
|
};
|
|
@@ -360,4 +363,3 @@ export function formatCode(code, chunkSize, delimiter) {
|
|
|
360
363
|
if (delimiter === void 0) { delimiter = ' - '; }
|
|
361
364
|
return ((_a = code.match(new RegExp(".{1,".concat(chunkSize, "}"), 'g'))) === null || _a === void 0 ? void 0 : _a.join(delimiter)) || code;
|
|
362
365
|
}
|
|
363
|
-
export var isDisasterRecoveryEnv = function (type) { return type === 'dr'; };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.12.13
|
|
3
|
+
"version": "2.12.13",
|
|
4
4
|
"description": "connect library, auth",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
22
|
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
23
|
"ts:build": "rm -rf build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
-
"push": "npm publish --access public
|
|
24
|
+
"push": "npm publish --access public"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [],
|
|
27
27
|
"author": {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FileDetails } from '../../../../@types';
|
|
3
|
-
interface LicenseCertificateProps {
|
|
4
|
-
show: boolean;
|
|
5
|
-
readOnly?: boolean;
|
|
6
|
-
defaultFiles?: Array<FileDetails>;
|
|
7
|
-
}
|
|
8
|
-
declare const LicenseCertificate: ({ show, readOnly, defaultFiles }: LicenseCertificateProps) => JSX.Element;
|
|
9
|
-
export default LicenseCertificate;
|