idmission-web-sdk 2.2.75 → 2.2.76
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/sdk2.cjs.development.js +111 -105
- 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 +111 -105
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +111 -105
- 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
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.76';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -23525,35 +23525,37 @@
|
|
|
23525
23525
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
23526
23526
|
_d = _a.idCaptureRequirement,
|
|
23527
23527
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
23528
|
-
_e = _a.
|
|
23529
|
-
|
|
23530
|
-
_f = _a.
|
|
23531
|
-
|
|
23532
|
-
_g = _a.
|
|
23533
|
-
|
|
23534
|
-
_h = _a.
|
|
23535
|
-
|
|
23528
|
+
_e = _a.allowSinglePageIdCapture,
|
|
23529
|
+
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
23530
|
+
_f = _a.idCaptureThresholds,
|
|
23531
|
+
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
23532
|
+
_g = _a.faceLivenessLoadingOverlayMode,
|
|
23533
|
+
faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
|
|
23534
|
+
_h = _a.faceLivenessTimeoutDurationMs,
|
|
23535
|
+
faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
|
|
23536
|
+
_j = _a.skipSuccessScreen,
|
|
23537
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
23536
23538
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
23537
|
-
|
|
23538
|
-
idCaptureGuideType =
|
|
23539
|
-
|
|
23540
|
-
idCaptureGuideImages =
|
|
23541
|
-
|
|
23542
|
-
idCapturePortraitGuidesOnMobile =
|
|
23543
|
-
|
|
23544
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
23545
|
-
|
|
23546
|
-
idCaptureModelLoadTimeoutMs =
|
|
23547
|
-
|
|
23548
|
-
idCaptureForceFallbackMode =
|
|
23549
|
-
|
|
23550
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
23551
|
-
|
|
23552
|
-
allowIdCardBackToFrontCapture =
|
|
23553
|
-
|
|
23554
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
23555
|
-
|
|
23556
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
23539
|
+
_k = _a.idCaptureGuideType,
|
|
23540
|
+
idCaptureGuideType = _k === void 0 ? 'fit' : _k,
|
|
23541
|
+
_l = _a.idCaptureGuideImages,
|
|
23542
|
+
idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
23543
|
+
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
23544
|
+
idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
23545
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
23546
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
23547
|
+
_p = _a.idCaptureModelLoadTimeoutMs,
|
|
23548
|
+
idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
23549
|
+
_q = _a.idCaptureForceFallbackMode,
|
|
23550
|
+
idCaptureForceFallbackMode = _q === void 0 ? false : _q,
|
|
23551
|
+
_r = _a.selfieCaptureModelLoadTimeoutMs,
|
|
23552
|
+
selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
|
|
23553
|
+
_s = _a.allowIdCardBackToFrontCapture,
|
|
23554
|
+
allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
|
|
23555
|
+
_t = _a.enableOverrideWrongDocumentTypeDialog,
|
|
23556
|
+
enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
|
|
23557
|
+
_u = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
23558
|
+
allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
|
|
23557
23559
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
23558
23560
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
23559
23561
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -23570,28 +23572,28 @@
|
|
|
23570
23572
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
23571
23573
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
23572
23574
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23573
|
-
|
|
23574
|
-
captureSignature =
|
|
23575
|
-
|
|
23576
|
-
captureSignatureVideo =
|
|
23577
|
-
|
|
23578
|
-
captureAdditionalDocuments =
|
|
23579
|
-
|
|
23580
|
-
theme =
|
|
23581
|
-
|
|
23582
|
-
assets =
|
|
23583
|
-
|
|
23584
|
-
classNames =
|
|
23585
|
-
|
|
23586
|
-
colors =
|
|
23587
|
-
|
|
23588
|
-
verbiage =
|
|
23589
|
-
|
|
23590
|
-
geolocationEnabled =
|
|
23591
|
-
|
|
23592
|
-
geolocationRequired =
|
|
23593
|
-
|
|
23594
|
-
debugMode =
|
|
23575
|
+
_v = _a.captureSignature,
|
|
23576
|
+
captureSignature = _v === void 0 ? false : _v,
|
|
23577
|
+
_w = _a.captureSignatureVideo,
|
|
23578
|
+
captureSignatureVideo = _w === void 0 ? false : _w,
|
|
23579
|
+
_x = _a.captureAdditionalDocuments,
|
|
23580
|
+
captureAdditionalDocuments = _x === void 0 ? [] : _x,
|
|
23581
|
+
_y = _a.theme,
|
|
23582
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
23583
|
+
_z = _a.assets,
|
|
23584
|
+
assets = _z === void 0 ? {} : _z,
|
|
23585
|
+
_0 = _a.classNames,
|
|
23586
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
23587
|
+
_1 = _a.colors,
|
|
23588
|
+
colors = _1 === void 0 ? {} : _1,
|
|
23589
|
+
_2 = _a.verbiage,
|
|
23590
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
23591
|
+
_3 = _a.geolocationEnabled,
|
|
23592
|
+
geolocationEnabled = _3 === void 0 ? true : _3,
|
|
23593
|
+
_4 = _a.geolocationRequired,
|
|
23594
|
+
geolocationRequired = _4 === void 0 ? false : _4,
|
|
23595
|
+
_5 = _a.debugMode,
|
|
23596
|
+
debugMode = _5 === void 0 ? false : _5;
|
|
23595
23597
|
useLanguage(lang);
|
|
23596
23598
|
useDebugLogging(debugMode);
|
|
23597
23599
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -23605,6 +23607,7 @@
|
|
|
23605
23607
|
verbiage: verbiage.idCapture,
|
|
23606
23608
|
precapturedDocuments: precapturedDocuments,
|
|
23607
23609
|
captureRequirement: idCaptureRequirement,
|
|
23610
|
+
allowSinglePageIdCapture: allowSinglePageIdCapture,
|
|
23608
23611
|
thresholds: idCaptureThresholds,
|
|
23609
23612
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
23610
23613
|
instructions: idCaptureInstructions,
|
|
@@ -23620,7 +23623,7 @@
|
|
|
23620
23623
|
skipSuccessScreen: skipSuccessScreen,
|
|
23621
23624
|
debugMode: debugMode
|
|
23622
23625
|
};
|
|
23623
|
-
}, [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]);
|
|
23626
|
+
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
|
|
23624
23627
|
var faceLivenessProps = React.useMemo(function () {
|
|
23625
23628
|
return {
|
|
23626
23629
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -23762,35 +23765,37 @@
|
|
|
23762
23765
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
23763
23766
|
_d = _a.idCaptureRequirement,
|
|
23764
23767
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
23765
|
-
_e = _a.
|
|
23766
|
-
|
|
23767
|
-
_f = _a.
|
|
23768
|
-
|
|
23769
|
-
_g = _a.
|
|
23770
|
-
|
|
23771
|
-
_h = _a.
|
|
23772
|
-
|
|
23768
|
+
_e = _a.allowSinglePageIdCapture,
|
|
23769
|
+
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
23770
|
+
_f = _a.idCaptureThresholds,
|
|
23771
|
+
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
23772
|
+
_g = _a.faceLivenessTimeoutDurationMs,
|
|
23773
|
+
faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
|
|
23774
|
+
_h = _a.faceLivenessLoadingOverlayMode,
|
|
23775
|
+
faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
|
|
23776
|
+
_j = _a.skipSuccessScreen,
|
|
23777
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
23773
23778
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
23774
|
-
|
|
23775
|
-
idCaptureGuideType =
|
|
23776
|
-
|
|
23777
|
-
idCaptureGuideImages =
|
|
23778
|
-
|
|
23779
|
-
idCapturePortraitGuidesOnMobile =
|
|
23780
|
-
|
|
23781
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
23782
|
-
|
|
23783
|
-
idCaptureModelLoadTimeoutMs =
|
|
23784
|
-
|
|
23785
|
-
idCaptureForceFallbackMode =
|
|
23786
|
-
|
|
23787
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
23788
|
-
|
|
23789
|
-
allowIdCardBackToFrontCapture =
|
|
23790
|
-
|
|
23791
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
23792
|
-
|
|
23793
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
23779
|
+
_k = _a.idCaptureGuideType,
|
|
23780
|
+
idCaptureGuideType = _k === void 0 ? 'fit' : _k,
|
|
23781
|
+
_l = _a.idCaptureGuideImages,
|
|
23782
|
+
idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
23783
|
+
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
23784
|
+
idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
23785
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
23786
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
23787
|
+
_p = _a.idCaptureModelLoadTimeoutMs,
|
|
23788
|
+
idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
23789
|
+
_q = _a.idCaptureForceFallbackMode,
|
|
23790
|
+
idCaptureForceFallbackMode = _q === void 0 ? false : _q,
|
|
23791
|
+
_r = _a.selfieCaptureModelLoadTimeoutMs,
|
|
23792
|
+
selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
|
|
23793
|
+
_s = _a.allowIdCardBackToFrontCapture,
|
|
23794
|
+
allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
|
|
23795
|
+
_t = _a.enableOverrideWrongDocumentTypeDialog,
|
|
23796
|
+
enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
|
|
23797
|
+
_u = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
23798
|
+
allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
|
|
23794
23799
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
23795
23800
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
23796
23801
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -23806,31 +23811,31 @@
|
|
|
23806
23811
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
23807
23812
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
23808
23813
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23809
|
-
|
|
23810
|
-
captureSignature =
|
|
23811
|
-
|
|
23812
|
-
captureSignatureVideo =
|
|
23813
|
-
|
|
23814
|
-
captureAdditionalDocuments =
|
|
23815
|
-
|
|
23816
|
-
captureVideoId =
|
|
23814
|
+
_v = _a.captureSignature,
|
|
23815
|
+
captureSignature = _v === void 0 ? false : _v,
|
|
23816
|
+
_w = _a.captureSignatureVideo,
|
|
23817
|
+
captureSignatureVideo = _w === void 0 ? false : _w,
|
|
23818
|
+
_x = _a.captureAdditionalDocuments,
|
|
23819
|
+
captureAdditionalDocuments = _x === void 0 ? [] : _x,
|
|
23820
|
+
_y = _a.captureVideoId,
|
|
23821
|
+
captureVideoId = _y === void 0 ? false : _y,
|
|
23817
23822
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
23818
|
-
|
|
23819
|
-
theme =
|
|
23820
|
-
|
|
23821
|
-
assets =
|
|
23822
|
-
|
|
23823
|
-
classNames =
|
|
23824
|
-
|
|
23825
|
-
colors =
|
|
23826
|
-
|
|
23827
|
-
verbiage =
|
|
23828
|
-
|
|
23829
|
-
geolocationEnabled =
|
|
23830
|
-
|
|
23831
|
-
geolocationRequired =
|
|
23832
|
-
|
|
23833
|
-
debugMode =
|
|
23823
|
+
_z = _a.theme,
|
|
23824
|
+
theme = _z === void 0 ? 'default' : _z,
|
|
23825
|
+
_0 = _a.assets,
|
|
23826
|
+
assets = _0 === void 0 ? {} : _0,
|
|
23827
|
+
_1 = _a.classNames,
|
|
23828
|
+
classNames = _1 === void 0 ? {} : _1,
|
|
23829
|
+
_2 = _a.colors,
|
|
23830
|
+
colors = _2 === void 0 ? {} : _2,
|
|
23831
|
+
_3 = _a.verbiage,
|
|
23832
|
+
verbiage = _3 === void 0 ? {} : _3,
|
|
23833
|
+
_4 = _a.geolocationEnabled,
|
|
23834
|
+
geolocationEnabled = _4 === void 0 ? true : _4,
|
|
23835
|
+
_5 = _a.geolocationRequired,
|
|
23836
|
+
geolocationRequired = _5 === void 0 ? false : _5,
|
|
23837
|
+
_6 = _a.debugMode,
|
|
23838
|
+
debugMode = _6 === void 0 ? false : _6;
|
|
23834
23839
|
useLanguage(lang);
|
|
23835
23840
|
useDebugLogging(debugMode);
|
|
23836
23841
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -23840,6 +23845,7 @@
|
|
|
23840
23845
|
colors: colors.idCapture,
|
|
23841
23846
|
verbiage: verbiage.idCapture,
|
|
23842
23847
|
captureRequirement: idCaptureRequirement,
|
|
23848
|
+
allowSinglePageIdCapture: allowSinglePageIdCapture,
|
|
23843
23849
|
thresholds: idCaptureThresholds,
|
|
23844
23850
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
23845
23851
|
instructions: idCaptureInstructions,
|
|
@@ -23858,7 +23864,7 @@
|
|
|
23858
23864
|
skipSuccessScreen: skipSuccessScreen,
|
|
23859
23865
|
debugMode: debugMode
|
|
23860
23866
|
};
|
|
23861
|
-
}, [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]);
|
|
23867
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
23862
23868
|
var faceLivenessProps = React.useMemo(function () {
|
|
23863
23869
|
return {
|
|
23864
23870
|
onExitCapture: onExitCapture,
|