gbc-kyc-kit 1.8.18 → 1.9.0
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/dist/gbc-kyc-kit.es.js +22 -14
- package/dist/gbc-kyc-kit.umd.js +41 -41
- package/package.json +2 -2
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -22123,7 +22123,7 @@ const saveDataToDB = async ({ data: data2, component, eventId, inProduction, sou
|
|
|
22123
22123
|
return error;
|
|
22124
22124
|
}
|
|
22125
22125
|
};
|
|
22126
|
-
const BlackListController = (clientId, authorize, eventId, inProduction, countryCodeAllowed, source2, validateVpn) => {
|
|
22126
|
+
const BlackListController = (clientId, authorize, eventId, inProduction, countryCodeAllowed, source2, validateVpn, successMessage, alertMessage) => {
|
|
22127
22127
|
const [isLoading, setIsLoading] = useState(false);
|
|
22128
22128
|
const [status, setStatus] = useState(clientId === void 0 ? "CLIENTID" : authorize === void 0 ? "TOKEN" : "");
|
|
22129
22129
|
const [message, setMessage] = useState("");
|
|
@@ -22242,8 +22242,10 @@ const BlackListController = (clientId, authorize, eventId, inProduction, country
|
|
|
22242
22242
|
});
|
|
22243
22243
|
if (!lib(match2)) {
|
|
22244
22244
|
setListMatch(match2[0]);
|
|
22245
|
+
setMessage(alertMessage ? alertMessage : message2);
|
|
22246
|
+
} else {
|
|
22247
|
+
setMessage(successMessage ? successMessage : message2);
|
|
22245
22248
|
}
|
|
22246
|
-
setMessage(message2);
|
|
22247
22249
|
setStatus(status2);
|
|
22248
22250
|
} catch (error) {
|
|
22249
22251
|
let message2 = "";
|
|
@@ -30059,7 +30061,9 @@ function BlackList({
|
|
|
30059
30061
|
source: source2,
|
|
30060
30062
|
eventId,
|
|
30061
30063
|
countryCodeAllowed,
|
|
30062
|
-
validateVpn
|
|
30064
|
+
validateVpn,
|
|
30065
|
+
successMessage,
|
|
30066
|
+
alertMessage
|
|
30063
30067
|
}) {
|
|
30064
30068
|
const {
|
|
30065
30069
|
onSendSubmitDocument,
|
|
@@ -30076,7 +30080,7 @@ function BlackList({
|
|
|
30076
30080
|
complementarySearch,
|
|
30077
30081
|
dataReq,
|
|
30078
30082
|
countryCode
|
|
30079
|
-
} = BlackListController(clientId, authorize, eventId, inProduction, countryCodeAllowed, source2, validateVpn);
|
|
30083
|
+
} = BlackListController(clientId, authorize, eventId, inProduction, countryCodeAllowed, source2, validateVpn, successMessage, alertMessage);
|
|
30080
30084
|
return /* @__PURE__ */ jsxs("div", {
|
|
30081
30085
|
className: `kit-gbc ${mode}`,
|
|
30082
30086
|
children: [/* @__PURE__ */ jsx(k$1, {
|
|
@@ -30195,10 +30199,10 @@ BlackList.propTypes = {
|
|
|
30195
30199
|
eventId: propTypes.exports.PropTypes.string,
|
|
30196
30200
|
validateVpn: propTypes.exports.PropTypes.bool
|
|
30197
30201
|
};
|
|
30198
|
-
const DocumentReaderController = (dataDocument, clientId, authorize, eventId, source2, inProduction, countryCodeAllowed, validateVpn) => {
|
|
30202
|
+
const DocumentReaderController = (dataDocument, clientId, authorize, eventId, source2, inProduction, countryCodeAllowed, validateVpn, successMessage) => {
|
|
30199
30203
|
const [docImage, setDocImage] = useState({});
|
|
30200
30204
|
const [base64, setBase64] = useState({});
|
|
30201
|
-
const [message, setMessage] = useState("Prueba de
|
|
30205
|
+
const [message, setMessage] = useState("Prueba de mensaje");
|
|
30202
30206
|
const [isLoading, setIsLoading] = useState(false);
|
|
30203
30207
|
const [status, setStatus] = useState(clientId === void 0 ? "CLIENTID" : authorize === void 0 ? "TOKEN" : "");
|
|
30204
30208
|
const [countryCode, setCountryCode] = useState(null);
|
|
@@ -30310,7 +30314,7 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
|
|
|
30310
30314
|
message: message2
|
|
30311
30315
|
} = res2.data;
|
|
30312
30316
|
message2 && setStatus(message2);
|
|
30313
|
-
setMessage("Documento verificado con \xE9xito");
|
|
30317
|
+
setMessage(successMessage ? successMessage : "Documento verificado con \xE9xito");
|
|
30314
30318
|
} catch (error) {
|
|
30315
30319
|
let message2 = "";
|
|
30316
30320
|
const {
|
|
@@ -30399,7 +30403,8 @@ function DocumentReader({
|
|
|
30399
30403
|
source: source2,
|
|
30400
30404
|
inProduction,
|
|
30401
30405
|
countryCodeAllowed,
|
|
30402
|
-
validateVpn
|
|
30406
|
+
validateVpn,
|
|
30407
|
+
successMessage
|
|
30403
30408
|
}) {
|
|
30404
30409
|
const {
|
|
30405
30410
|
onSendSubmitDocument,
|
|
@@ -30414,7 +30419,7 @@ function DocumentReader({
|
|
|
30414
30419
|
countryCode,
|
|
30415
30420
|
setDualMode,
|
|
30416
30421
|
dualMode
|
|
30417
|
-
} = DocumentReaderController(dataDocument, clientId, authorize, eventId, source2, inProduction, countryCodeAllowed, validateVpn);
|
|
30422
|
+
} = DocumentReaderController(dataDocument, clientId, authorize, eventId, source2, inProduction, countryCodeAllowed, validateVpn, successMessage);
|
|
30418
30423
|
return /* @__PURE__ */ jsxs("div", {
|
|
30419
30424
|
className: `kit-gbc ${mode}`,
|
|
30420
30425
|
children: [/* @__PURE__ */ jsx(k$1, {
|
|
@@ -30557,7 +30562,7 @@ const fetchFaceMatch = async (faceMatch, selfie, inProduction, customHeaders) =>
|
|
|
30557
30562
|
return error;
|
|
30558
30563
|
}
|
|
30559
30564
|
};
|
|
30560
|
-
const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authorize, inProduction, picBase64, setTakePic, countryCodeAllowed, validateVpn) => {
|
|
30565
|
+
const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authorize, inProduction, picBase64, setTakePic, countryCodeAllowed, validateVpn, successMessage) => {
|
|
30561
30566
|
const [docImage, setDocImage] = useState({});
|
|
30562
30567
|
const [image, setImage] = useState("");
|
|
30563
30568
|
const [message, setMessage] = useState("");
|
|
@@ -30630,7 +30635,7 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
|
|
|
30630
30635
|
message: message2
|
|
30631
30636
|
} = res2.data;
|
|
30632
30637
|
message2 && setStatus(message2);
|
|
30633
|
-
setMessage("Comparaci\xF3n de rostro procesado con \xE9xito");
|
|
30638
|
+
setMessage(successMessage ? successMessage : "Comparaci\xF3n de rostro procesado con \xE9xito");
|
|
30634
30639
|
} catch (error) {
|
|
30635
30640
|
let message2 = "";
|
|
30636
30641
|
const {
|
|
@@ -30647,6 +30652,7 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
|
|
|
30647
30652
|
ErrorHandler(error);
|
|
30648
30653
|
}
|
|
30649
30654
|
} catch (error) {
|
|
30655
|
+
console.log(error);
|
|
30650
30656
|
Q.error("Error - Verificar host con el proveedor");
|
|
30651
30657
|
} finally {
|
|
30652
30658
|
setIsLoading(false);
|
|
@@ -31071,7 +31077,8 @@ function FaceMatch({
|
|
|
31071
31077
|
eventId,
|
|
31072
31078
|
source: source2,
|
|
31073
31079
|
countryCodeAllowed,
|
|
31074
|
-
validateVpn
|
|
31080
|
+
validateVpn,
|
|
31081
|
+
successMessage
|
|
31075
31082
|
}) {
|
|
31076
31083
|
const [takePic, setTakePic] = useState(false);
|
|
31077
31084
|
const {
|
|
@@ -31087,7 +31094,7 @@ function FaceMatch({
|
|
|
31087
31094
|
url,
|
|
31088
31095
|
setUrl,
|
|
31089
31096
|
countryCode
|
|
31090
|
-
} = FaceMatchController(dataFaceMatch, clientId, eventId, source2, authorize, inProduction, picBase64, setTakePic, countryCodeAllowed, validateVpn);
|
|
31097
|
+
} = FaceMatchController(dataFaceMatch, clientId, eventId, source2, authorize, inProduction, picBase64, setTakePic, countryCodeAllowed, validateVpn, successMessage);
|
|
31091
31098
|
const onUserMedia = (e2) => {
|
|
31092
31099
|
console.log(e2, "userMedia");
|
|
31093
31100
|
};
|
|
@@ -31378,8 +31385,9 @@ function LivenessCheck({
|
|
|
31378
31385
|
if (component) {
|
|
31379
31386
|
component.settings = {
|
|
31380
31387
|
locale: "es",
|
|
31381
|
-
videoRecording:
|
|
31388
|
+
videoRecording: true,
|
|
31382
31389
|
closeDisabled: true,
|
|
31390
|
+
retryCount: 3,
|
|
31383
31391
|
url: "https://regula-sandbox.globalbridgeconnections.com.py/face-sdk",
|
|
31384
31392
|
customization: {
|
|
31385
31393
|
fontFamily,
|