idmission-web-sdk 1.0.319 → 1.0.321
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/components/video_id/IdVideoCaptureSuccess.d.ts +2 -0
- package/dist/lib/locales/es/translation.d.ts +5 -0
- package/dist/lib/locales/index.d.ts +5 -0
- package/dist/sdk2.cjs.development.js +15 -7
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +15 -7
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +15 -7
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,8 @@ export type IdVideoCaptureSuccessVerbiage = {
|
|
|
21
21
|
headingText?: CustomerSuppliedVerbiage;
|
|
22
22
|
retryBtnText?: CustomerSuppliedVerbiage;
|
|
23
23
|
doneBtnText?: CustomerSuppliedVerbiage;
|
|
24
|
+
idFrontText?: CustomerSuppliedVerbiage;
|
|
25
|
+
idBackText?: CustomerSuppliedVerbiage;
|
|
24
26
|
};
|
|
25
27
|
export type IdVideoCaptureSuccessProps = {
|
|
26
28
|
videoUrl: string;
|
|
@@ -68,8 +68,11 @@ declare const _default: {
|
|
|
68
68
|
'Display the front of your ID card...': string;
|
|
69
69
|
'Display the back of your ID card...': string;
|
|
70
70
|
'Please move your face to the center...': string;
|
|
71
|
+
'Searching for ID card...': string;
|
|
71
72
|
'Please read the following text aloud': string;
|
|
72
73
|
'Video ID has been successfully captured!': string;
|
|
74
|
+
'ID Front Image': string;
|
|
75
|
+
'ID Back Image': string;
|
|
73
76
|
"We're having some trouble.": string;
|
|
74
77
|
'On-device capture guidance failed, please capture a selfie manually.': string;
|
|
75
78
|
'Verifying...': string;
|
|
@@ -82,6 +85,8 @@ declare const _default: {
|
|
|
82
85
|
'On-device capture guidance failed, please capture a photo of your passport manually.': string;
|
|
83
86
|
'On-device capture guidance failed, please capture photos of your ID card and passport manually.': string;
|
|
84
87
|
'On-device capture guidance failed, please capture photos of your ID card or passport manually.': string;
|
|
88
|
+
'Capture ID page of passport': string;
|
|
89
|
+
'Capture back of ID card': string;
|
|
85
90
|
'Downloading...': string;
|
|
86
91
|
'Accessing camera...': string;
|
|
87
92
|
'Camera ready': string;
|
|
@@ -76,8 +76,11 @@ export declare const resources: {
|
|
|
76
76
|
'Display the front of your ID card...': string;
|
|
77
77
|
'Display the back of your ID card...': string;
|
|
78
78
|
'Please move your face to the center...': string;
|
|
79
|
+
'Searching for ID card...': string;
|
|
79
80
|
'Please read the following text aloud': string;
|
|
80
81
|
'Video ID has been successfully captured!': string;
|
|
82
|
+
'ID Front Image': string;
|
|
83
|
+
'ID Back Image': string;
|
|
81
84
|
"We're having some trouble.": string;
|
|
82
85
|
'On-device capture guidance failed, please capture a selfie manually.': string;
|
|
83
86
|
'Verifying...': string;
|
|
@@ -90,6 +93,8 @@ export declare const resources: {
|
|
|
90
93
|
'On-device capture guidance failed, please capture a photo of your passport manually.': string;
|
|
91
94
|
'On-device capture guidance failed, please capture photos of your ID card and passport manually.': string;
|
|
92
95
|
'On-device capture guidance failed, please capture photos of your ID card or passport manually.': string;
|
|
96
|
+
'Capture ID page of passport': string;
|
|
97
|
+
'Capture back of ID card': string;
|
|
93
98
|
'Downloading...': string;
|
|
94
99
|
'Accessing camera...': string;
|
|
95
100
|
'Camera ready': string;
|
|
@@ -50,7 +50,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
50
50
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
51
51
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
52
52
|
|
|
53
|
-
var webSdkVersion = '1.0.
|
|
53
|
+
var webSdkVersion = '1.0.321';
|
|
54
54
|
|
|
55
55
|
function getPlatform() {
|
|
56
56
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -10427,8 +10427,11 @@ var esTranslation = {
|
|
|
10427
10427
|
'Display the front of your ID card...': 'Hay que mostrar el frente de la identificación...',
|
|
10428
10428
|
'Display the back of your ID card...': 'Hay que mostrar el reverso de la identificación...',
|
|
10429
10429
|
'Please move your face to the center...': 'Por favor, hay que mover la cabeza hacia el centro...',
|
|
10430
|
+
'Searching for ID card...': 'Localizando la identificación...',
|
|
10430
10431
|
'Please read the following text aloud': 'Hay que leer el siguiente texto en voz alta',
|
|
10431
10432
|
'Video ID has been successfully captured!': 'Video ID capturado exitosamente!',
|
|
10433
|
+
'ID Front Image': 'Frente de ID',
|
|
10434
|
+
'ID Back Image': 'Reverso de ID',
|
|
10432
10435
|
"We're having some trouble.": 'Se ha presentado un problema.',
|
|
10433
10436
|
'On-device capture guidance failed, please capture a selfie manually.': 'La captura automática para toma de selfie falló. Por favor, hay que tomarse la selfie manualmente.',
|
|
10434
10437
|
'Verifying...': 'Verificando....',
|
|
@@ -10441,6 +10444,8 @@ var esTranslation = {
|
|
|
10441
10444
|
'On-device capture guidance failed, please capture a photo of your passport manually.': 'La captura automática falló. Por favor hay que tomar una foto de la pasaporte manualmente.',
|
|
10442
10445
|
'On-device capture guidance failed, please capture photos of your ID card and passport manually.': 'La captura automática falló. Por favor hay que tomar una foto de la identificación y del pasaporte manualmente.',
|
|
10443
10446
|
'On-device capture guidance failed, please capture photos of your ID card or passport manually.': 'La captura automática falló. Por favor hay que tomar una foto de la identificación o del pasaporte manualmente.',
|
|
10447
|
+
'Capture ID page of passport': 'Captura pasaporte (página de la foto)',
|
|
10448
|
+
'Capture back of ID card': 'Captura del reverso',
|
|
10444
10449
|
'Downloading...': 'Descargando...',
|
|
10445
10450
|
'Accessing camera...': 'Accediendo a la cámara',
|
|
10446
10451
|
'Camera ready': 'Cámara está lista',
|
|
@@ -16305,17 +16310,18 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
16305
16310
|
if (goodFramesCount === 1) setFirstGoodFrameTime(new Date().getTime());
|
|
16306
16311
|
}, [goodFramesCount]);
|
|
16307
16312
|
var delaySatisfied = requestedAction !== 'SHOW_ID_FRONT' || idFrontCaptureStartedAt !== null && new Date().getTime() > idFrontCaptureStartedAt + idCardFrontDelay;
|
|
16313
|
+
var translatedText = useVerbiage(readTextPrompt, '');
|
|
16308
16314
|
var onIdBackCaptureComplete = React.useCallback(function () {
|
|
16309
16315
|
var _a;
|
|
16310
|
-
if (
|
|
16316
|
+
if (translatedText) {
|
|
16311
16317
|
setRequestedAction('READ_TEXT');
|
|
16312
16318
|
startRecordingAudio();
|
|
16313
16319
|
setIdCaptureVideoAudioStartsAt(new Date().getTime() - ((_a = videoStartsAt === null || videoStartsAt === void 0 ? void 0 : videoStartsAt.getTime()) !== null && _a !== void 0 ? _a : 0));
|
|
16314
|
-
setExpectedAudioText(
|
|
16320
|
+
setExpectedAudioText(translatedText);
|
|
16315
16321
|
} else {
|
|
16316
16322
|
stopRecordingVideo();
|
|
16317
16323
|
}
|
|
16318
|
-
}, [
|
|
16324
|
+
}, [translatedText, setIdCaptureVideoAudioStartsAt, startRecordingAudio, stopRecordingVideo, videoStartsAt]);
|
|
16319
16325
|
var frameWidth = (_c = (_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) !== null && _c !== void 0 ? _c : 0;
|
|
16320
16326
|
var frameHeight = (_e = (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) !== null && _e !== void 0 ? _e : 0;
|
|
16321
16327
|
var faceBox = (_f = faces === null || faces === void 0 ? void 0 : faces[0]) === null || _f === void 0 ? void 0 : _f.box;
|
|
@@ -16537,7 +16543,9 @@ var IdVideoCaptureSuccess = function IdVideoCaptureSuccess(_a) {
|
|
|
16537
16543
|
var verbiage = useTranslations(rawVerbiage, {
|
|
16538
16544
|
headingText: 'Video ID has been successfully captured!',
|
|
16539
16545
|
retryBtnText: 'Retry',
|
|
16540
|
-
doneBtnText: 'Done'
|
|
16546
|
+
doneBtnText: 'Done',
|
|
16547
|
+
idFrontText: 'ID Front Image',
|
|
16548
|
+
idBackText: 'ID Back Image'
|
|
16541
16549
|
});
|
|
16542
16550
|
return /*#__PURE__*/React__default['default'].createElement(OverlayContainer, {
|
|
16543
16551
|
className: classNames.container
|
|
@@ -16583,7 +16591,7 @@ var IdVideoCaptureSuccess = function IdVideoCaptureSuccess(_a) {
|
|
|
16583
16591
|
}
|
|
16584
16592
|
}), /*#__PURE__*/React__default['default'].createElement("label", {
|
|
16585
16593
|
htmlFor: "displayedAssetIdFrontImage"
|
|
16586
|
-
},
|
|
16594
|
+
}, verbiage.idFrontText)), idBackImageUrl && ( /*#__PURE__*/React__default['default'].createElement(AssetSelectorOption, {
|
|
16587
16595
|
className: classNames.assetSelectorOption
|
|
16588
16596
|
}, /*#__PURE__*/React__default['default'].createElement("input", {
|
|
16589
16597
|
type: "radio",
|
|
@@ -16595,7 +16603,7 @@ var IdVideoCaptureSuccess = function IdVideoCaptureSuccess(_a) {
|
|
|
16595
16603
|
}
|
|
16596
16604
|
}), /*#__PURE__*/React__default['default'].createElement("label", {
|
|
16597
16605
|
htmlFor: "displayedAssetIdBackImage"
|
|
16598
|
-
},
|
|
16606
|
+
}, verbiage.idBackText)))), /*#__PURE__*/React__default['default'].createElement(OverlayImageContainer, {
|
|
16599
16607
|
className: classNames.videoContainer
|
|
16600
16608
|
}, displayedAsset === 'video' ? ( /*#__PURE__*/React__default['default'].createElement(StyledVideo, {
|
|
16601
16609
|
src: videoUrl,
|