idmission-web-sdk 2.2.25 → 2.2.27
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/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +74 -68
- 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 +74 -68
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +74 -68
- 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 +3 -3
package/dist/sdk2.esm.js
CHANGED
|
@@ -201,7 +201,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
201
201
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
var webSdkVersion = '2.2.
|
|
204
|
+
var webSdkVersion = '2.2.27';
|
|
205
205
|
|
|
206
206
|
function getPlatform() {
|
|
207
207
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -11720,8 +11720,8 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
11720
11720
|
}, [idCaptureGuideImagesByUrl]);
|
|
11721
11721
|
var idCardImageStyle = useMemo(function () {
|
|
11722
11722
|
return {
|
|
11723
|
-
maxWidth: idCardGuideWidth >
|
|
11724
|
-
maxHeight: idCardGuideHeight,
|
|
11723
|
+
maxWidth: idCardGuideWidth > idCardGuideHeight ? idCardGuideWidth : undefined,
|
|
11724
|
+
maxHeight: idCardGuideHeight > idCardGuideWidth ? idCardGuideHeight : undefined,
|
|
11725
11725
|
height: '100%',
|
|
11726
11726
|
aspectRatio: aspectRatio
|
|
11727
11727
|
};
|
|
@@ -11781,7 +11781,7 @@ var Container = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTem
|
|
|
11781
11781
|
var Inner = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"], ["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
11782
11782
|
var FaceGuideContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: relative;\n height: 65%;\n"], ["\n position: relative;\n height: 65%;\n"])));
|
|
11783
11783
|
var IdCardGuideContainer = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"])));
|
|
11784
|
-
var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n"], ["\n position: relative;\n height: 100%;\n"])));
|
|
11784
|
+
var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n width: 100%;\n"], ["\n position: relative;\n height: 100%;\n width: 100%;\n"])));
|
|
11785
11785
|
var IdCardGuideInstructionsContainer = styled.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n width: 100%;\n text-align: center;\n color: white;\n display: flex;\n flex-direction: column;\n justify-content: end;\n padding: 0 40px;\n position: fixed;\n bottom: 14px;\n left: 0;\n right: 0;\n box-sizing: border-box;\n"], ["\n width: 100%;\n text-align: center;\n color: white;\n display: flex;\n flex-direction: column;\n justify-content: end;\n padding: 0 40px;\n position: fixed;\n bottom: 14px;\n left: 0;\n right: 0;\n box-sizing: border-box;\n"])));
|
|
11786
11786
|
var IdCardGuideInstructions = styled(GuidanceMessage)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-content: center;\n margin: 12px auto;\n padding: 8px 12px;\n font-weight: bold;\n font-size: 18px;\n"], ["\n align-content: center;\n margin: 12px auto;\n padding: 8px 12px;\n font-weight: bold;\n font-size: 18px;\n"])));
|
|
11787
11787
|
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$2, templateObject_5$1, templateObject_6$1, templateObject_7;
|
|
@@ -13537,14 +13537,16 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13537
13537
|
idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
|
|
13538
13538
|
_o = _a.idCaptureModelLoadTimeoutMs,
|
|
13539
13539
|
idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
|
|
13540
|
-
_p = _a.
|
|
13541
|
-
|
|
13542
|
-
_q = _a.
|
|
13543
|
-
|
|
13544
|
-
_r = _a.
|
|
13545
|
-
|
|
13546
|
-
_s = _a.
|
|
13547
|
-
|
|
13540
|
+
_p = _a.idCaptureForceFallbackMode,
|
|
13541
|
+
idCaptureForceFallbackMode = _p === void 0 ? false : _p,
|
|
13542
|
+
_q = _a.selfieCaptureModelLoadTimeoutMs,
|
|
13543
|
+
selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
|
|
13544
|
+
_r = _a.allowIdCardBackToFrontCapture,
|
|
13545
|
+
allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
|
|
13546
|
+
_s = _a.enableOverrideWrongDocumentTypeDialog,
|
|
13547
|
+
enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
|
|
13548
|
+
_t = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
13549
|
+
allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
|
|
13548
13550
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
13549
13551
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
13550
13552
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -13561,28 +13563,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13561
13563
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
13562
13564
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
13563
13565
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
13564
|
-
|
|
13565
|
-
captureSignature =
|
|
13566
|
-
|
|
13567
|
-
captureSignatureVideo =
|
|
13568
|
-
|
|
13569
|
-
captureAdditionalDocuments =
|
|
13570
|
-
|
|
13571
|
-
theme =
|
|
13572
|
-
|
|
13573
|
-
assets =
|
|
13574
|
-
|
|
13575
|
-
classNames =
|
|
13576
|
-
|
|
13577
|
-
colors =
|
|
13578
|
-
|
|
13579
|
-
verbiage =
|
|
13580
|
-
|
|
13581
|
-
geolocationEnabled =
|
|
13582
|
-
|
|
13583
|
-
geolocationRequired =
|
|
13584
|
-
|
|
13585
|
-
debugMode =
|
|
13566
|
+
_u = _a.captureSignature,
|
|
13567
|
+
captureSignature = _u === void 0 ? false : _u,
|
|
13568
|
+
_v = _a.captureSignatureVideo,
|
|
13569
|
+
captureSignatureVideo = _v === void 0 ? false : _v,
|
|
13570
|
+
_w = _a.captureAdditionalDocuments,
|
|
13571
|
+
captureAdditionalDocuments = _w === void 0 ? [] : _w,
|
|
13572
|
+
_x = _a.theme,
|
|
13573
|
+
theme = _x === void 0 ? 'default' : _x,
|
|
13574
|
+
_y = _a.assets,
|
|
13575
|
+
assets = _y === void 0 ? {} : _y,
|
|
13576
|
+
_z = _a.classNames,
|
|
13577
|
+
classNames = _z === void 0 ? {} : _z,
|
|
13578
|
+
_0 = _a.colors,
|
|
13579
|
+
colors = _0 === void 0 ? {} : _0,
|
|
13580
|
+
_1 = _a.verbiage,
|
|
13581
|
+
verbiage = _1 === void 0 ? {} : _1,
|
|
13582
|
+
_2 = _a.geolocationEnabled,
|
|
13583
|
+
geolocationEnabled = _2 === void 0 ? true : _2,
|
|
13584
|
+
_3 = _a.geolocationRequired,
|
|
13585
|
+
geolocationRequired = _3 === void 0 ? false : _3,
|
|
13586
|
+
_4 = _a.debugMode,
|
|
13587
|
+
debugMode = _4 === void 0 ? false : _4;
|
|
13586
13588
|
useLanguage(lang);
|
|
13587
13589
|
useDebugLogging(debugMode);
|
|
13588
13590
|
var idCaptureProps = useMemo(function () {
|
|
@@ -13607,10 +13609,11 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13607
13609
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
13608
13610
|
enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
|
|
13609
13611
|
allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
|
|
13612
|
+
forceFallbackMode: idCaptureForceFallbackMode,
|
|
13610
13613
|
skipSuccessScreen: skipSuccessScreen,
|
|
13611
13614
|
debugMode: debugMode
|
|
13612
13615
|
};
|
|
13613
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, skipSuccessScreen, debugMode]);
|
|
13616
|
+
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
|
|
13614
13617
|
var faceLivenessProps = useMemo(function () {
|
|
13615
13618
|
return {
|
|
13616
13619
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -13771,14 +13774,16 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13771
13774
|
idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
|
|
13772
13775
|
_o = _a.idCaptureModelLoadTimeoutMs,
|
|
13773
13776
|
idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
|
|
13774
|
-
_p = _a.
|
|
13775
|
-
|
|
13776
|
-
_q = _a.
|
|
13777
|
-
|
|
13778
|
-
_r = _a.
|
|
13779
|
-
|
|
13780
|
-
_s = _a.
|
|
13781
|
-
|
|
13777
|
+
_p = _a.idCaptureForceFallbackMode,
|
|
13778
|
+
idCaptureForceFallbackMode = _p === void 0 ? false : _p,
|
|
13779
|
+
_q = _a.selfieCaptureModelLoadTimeoutMs,
|
|
13780
|
+
selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
|
|
13781
|
+
_r = _a.allowIdCardBackToFrontCapture,
|
|
13782
|
+
allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
|
|
13783
|
+
_s = _a.enableOverrideWrongDocumentTypeDialog,
|
|
13784
|
+
enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
|
|
13785
|
+
_t = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
13786
|
+
allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
|
|
13782
13787
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
13783
13788
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
13784
13789
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -13794,31 +13799,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13794
13799
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
13795
13800
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
13796
13801
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
13797
|
-
|
|
13798
|
-
captureSignature =
|
|
13799
|
-
|
|
13800
|
-
captureSignatureVideo =
|
|
13801
|
-
|
|
13802
|
-
captureAdditionalDocuments =
|
|
13803
|
-
|
|
13804
|
-
captureVideoId =
|
|
13802
|
+
_u = _a.captureSignature,
|
|
13803
|
+
captureSignature = _u === void 0 ? false : _u,
|
|
13804
|
+
_v = _a.captureSignatureVideo,
|
|
13805
|
+
captureSignatureVideo = _v === void 0 ? false : _v,
|
|
13806
|
+
_w = _a.captureAdditionalDocuments,
|
|
13807
|
+
captureAdditionalDocuments = _w === void 0 ? [] : _w,
|
|
13808
|
+
_x = _a.captureVideoId,
|
|
13809
|
+
captureVideoId = _x === void 0 ? false : _x,
|
|
13805
13810
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
13806
|
-
|
|
13807
|
-
theme =
|
|
13808
|
-
|
|
13809
|
-
assets =
|
|
13810
|
-
|
|
13811
|
-
classNames =
|
|
13812
|
-
|
|
13813
|
-
colors =
|
|
13814
|
-
|
|
13815
|
-
verbiage =
|
|
13816
|
-
|
|
13817
|
-
geolocationEnabled =
|
|
13818
|
-
|
|
13819
|
-
geolocationRequired =
|
|
13820
|
-
|
|
13821
|
-
debugMode =
|
|
13811
|
+
_y = _a.theme,
|
|
13812
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
13813
|
+
_z = _a.assets,
|
|
13814
|
+
assets = _z === void 0 ? {} : _z,
|
|
13815
|
+
_0 = _a.classNames,
|
|
13816
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
13817
|
+
_1 = _a.colors,
|
|
13818
|
+
colors = _1 === void 0 ? {} : _1,
|
|
13819
|
+
_2 = _a.verbiage,
|
|
13820
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
13821
|
+
_3 = _a.geolocationEnabled,
|
|
13822
|
+
geolocationEnabled = _3 === void 0 ? true : _3,
|
|
13823
|
+
_4 = _a.geolocationRequired,
|
|
13824
|
+
geolocationRequired = _4 === void 0 ? false : _4,
|
|
13825
|
+
_5 = _a.debugMode,
|
|
13826
|
+
debugMode = _5 === void 0 ? false : _5;
|
|
13822
13827
|
useLanguage(lang);
|
|
13823
13828
|
useDebugLogging(debugMode);
|
|
13824
13829
|
var idCaptureProps = useMemo(function () {
|
|
@@ -13837,6 +13842,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13837
13842
|
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
13838
13843
|
modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
|
|
13839
13844
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
13845
|
+
forceFallbackMode: idCaptureForceFallbackMode,
|
|
13840
13846
|
enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
|
|
13841
13847
|
allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
|
|
13842
13848
|
onExitCapture: onExitCapture,
|
|
@@ -13845,7 +13851,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13845
13851
|
skipSuccessScreen: skipSuccessScreen,
|
|
13846
13852
|
debugMode: debugMode
|
|
13847
13853
|
};
|
|
13848
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
13854
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
13849
13855
|
var faceLivenessProps = useMemo(function () {
|
|
13850
13856
|
return {
|
|
13851
13857
|
onExitCapture: onExitCapture,
|