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
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.76';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -13683,35 +13683,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13683
13683
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
13684
13684
|
_d = _a.idCaptureRequirement,
|
|
13685
13685
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
13686
|
-
_e = _a.
|
|
13687
|
-
|
|
13688
|
-
_f = _a.
|
|
13689
|
-
|
|
13690
|
-
_g = _a.
|
|
13691
|
-
|
|
13692
|
-
_h = _a.
|
|
13693
|
-
|
|
13686
|
+
_e = _a.allowSinglePageIdCapture,
|
|
13687
|
+
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
13688
|
+
_f = _a.idCaptureThresholds,
|
|
13689
|
+
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
13690
|
+
_g = _a.faceLivenessLoadingOverlayMode,
|
|
13691
|
+
faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
|
|
13692
|
+
_h = _a.faceLivenessTimeoutDurationMs,
|
|
13693
|
+
faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
|
|
13694
|
+
_j = _a.skipSuccessScreen,
|
|
13695
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
13694
13696
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
13695
|
-
|
|
13696
|
-
idCaptureGuideType =
|
|
13697
|
-
|
|
13698
|
-
idCaptureGuideImages =
|
|
13699
|
-
|
|
13700
|
-
idCapturePortraitGuidesOnMobile =
|
|
13701
|
-
|
|
13702
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
13703
|
-
|
|
13704
|
-
idCaptureModelLoadTimeoutMs =
|
|
13705
|
-
|
|
13706
|
-
idCaptureForceFallbackMode =
|
|
13707
|
-
|
|
13708
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
13709
|
-
|
|
13710
|
-
allowIdCardBackToFrontCapture =
|
|
13711
|
-
|
|
13712
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
13713
|
-
|
|
13714
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
13697
|
+
_k = _a.idCaptureGuideType,
|
|
13698
|
+
idCaptureGuideType = _k === void 0 ? 'fit' : _k,
|
|
13699
|
+
_l = _a.idCaptureGuideImages,
|
|
13700
|
+
idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
13701
|
+
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
13702
|
+
idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
13703
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
13704
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
13705
|
+
_p = _a.idCaptureModelLoadTimeoutMs,
|
|
13706
|
+
idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
13707
|
+
_q = _a.idCaptureForceFallbackMode,
|
|
13708
|
+
idCaptureForceFallbackMode = _q === void 0 ? false : _q,
|
|
13709
|
+
_r = _a.selfieCaptureModelLoadTimeoutMs,
|
|
13710
|
+
selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
|
|
13711
|
+
_s = _a.allowIdCardBackToFrontCapture,
|
|
13712
|
+
allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
|
|
13713
|
+
_t = _a.enableOverrideWrongDocumentTypeDialog,
|
|
13714
|
+
enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
|
|
13715
|
+
_u = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
13716
|
+
allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
|
|
13715
13717
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
13716
13718
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
13717
13719
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -13728,28 +13730,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13728
13730
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
13729
13731
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
13730
13732
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
13731
|
-
|
|
13732
|
-
captureSignature =
|
|
13733
|
-
|
|
13734
|
-
captureSignatureVideo =
|
|
13735
|
-
|
|
13736
|
-
captureAdditionalDocuments =
|
|
13737
|
-
|
|
13738
|
-
theme =
|
|
13739
|
-
|
|
13740
|
-
assets =
|
|
13741
|
-
|
|
13742
|
-
classNames =
|
|
13743
|
-
|
|
13744
|
-
colors =
|
|
13745
|
-
|
|
13746
|
-
verbiage =
|
|
13747
|
-
|
|
13748
|
-
geolocationEnabled =
|
|
13749
|
-
|
|
13750
|
-
geolocationRequired =
|
|
13751
|
-
|
|
13752
|
-
debugMode =
|
|
13733
|
+
_v = _a.captureSignature,
|
|
13734
|
+
captureSignature = _v === void 0 ? false : _v,
|
|
13735
|
+
_w = _a.captureSignatureVideo,
|
|
13736
|
+
captureSignatureVideo = _w === void 0 ? false : _w,
|
|
13737
|
+
_x = _a.captureAdditionalDocuments,
|
|
13738
|
+
captureAdditionalDocuments = _x === void 0 ? [] : _x,
|
|
13739
|
+
_y = _a.theme,
|
|
13740
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
13741
|
+
_z = _a.assets,
|
|
13742
|
+
assets = _z === void 0 ? {} : _z,
|
|
13743
|
+
_0 = _a.classNames,
|
|
13744
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
13745
|
+
_1 = _a.colors,
|
|
13746
|
+
colors = _1 === void 0 ? {} : _1,
|
|
13747
|
+
_2 = _a.verbiage,
|
|
13748
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
13749
|
+
_3 = _a.geolocationEnabled,
|
|
13750
|
+
geolocationEnabled = _3 === void 0 ? true : _3,
|
|
13751
|
+
_4 = _a.geolocationRequired,
|
|
13752
|
+
geolocationRequired = _4 === void 0 ? false : _4,
|
|
13753
|
+
_5 = _a.debugMode,
|
|
13754
|
+
debugMode = _5 === void 0 ? false : _5;
|
|
13753
13755
|
useLanguage(lang);
|
|
13754
13756
|
useDebugLogging(debugMode);
|
|
13755
13757
|
var idCaptureProps = useMemo(function () {
|
|
@@ -13763,6 +13765,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13763
13765
|
verbiage: verbiage.idCapture,
|
|
13764
13766
|
precapturedDocuments: precapturedDocuments,
|
|
13765
13767
|
captureRequirement: idCaptureRequirement,
|
|
13768
|
+
allowSinglePageIdCapture: allowSinglePageIdCapture,
|
|
13766
13769
|
thresholds: idCaptureThresholds,
|
|
13767
13770
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
13768
13771
|
instructions: idCaptureInstructions,
|
|
@@ -13778,7 +13781,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13778
13781
|
skipSuccessScreen: skipSuccessScreen,
|
|
13779
13782
|
debugMode: debugMode
|
|
13780
13783
|
};
|
|
13781
|
-
}, [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]);
|
|
13784
|
+
}, [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]);
|
|
13782
13785
|
var faceLivenessProps = useMemo(function () {
|
|
13783
13786
|
return {
|
|
13784
13787
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -13920,35 +13923,37 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13920
13923
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
13921
13924
|
_d = _a.idCaptureRequirement,
|
|
13922
13925
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
13923
|
-
_e = _a.
|
|
13924
|
-
|
|
13925
|
-
_f = _a.
|
|
13926
|
-
|
|
13927
|
-
_g = _a.
|
|
13928
|
-
|
|
13929
|
-
_h = _a.
|
|
13930
|
-
|
|
13926
|
+
_e = _a.allowSinglePageIdCapture,
|
|
13927
|
+
allowSinglePageIdCapture = _e === void 0 ? false : _e,
|
|
13928
|
+
_f = _a.idCaptureThresholds,
|
|
13929
|
+
idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
|
|
13930
|
+
_g = _a.faceLivenessTimeoutDurationMs,
|
|
13931
|
+
faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
|
|
13932
|
+
_h = _a.faceLivenessLoadingOverlayMode,
|
|
13933
|
+
faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
|
|
13934
|
+
_j = _a.skipSuccessScreen,
|
|
13935
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
13931
13936
|
idCaptureInstructions = _a.idCaptureInstructions,
|
|
13932
|
-
|
|
13933
|
-
idCaptureGuideType =
|
|
13934
|
-
|
|
13935
|
-
idCaptureGuideImages =
|
|
13936
|
-
|
|
13937
|
-
idCapturePortraitGuidesOnMobile =
|
|
13938
|
-
|
|
13939
|
-
idCaptureRotateLoadingOverlayImageWhenPortrait =
|
|
13940
|
-
|
|
13941
|
-
idCaptureModelLoadTimeoutMs =
|
|
13942
|
-
|
|
13943
|
-
idCaptureForceFallbackMode =
|
|
13944
|
-
|
|
13945
|
-
selfieCaptureModelLoadTimeoutMs =
|
|
13946
|
-
|
|
13947
|
-
allowIdCardBackToFrontCapture =
|
|
13948
|
-
|
|
13949
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
13950
|
-
|
|
13951
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
13937
|
+
_k = _a.idCaptureGuideType,
|
|
13938
|
+
idCaptureGuideType = _k === void 0 ? 'fit' : _k,
|
|
13939
|
+
_l = _a.idCaptureGuideImages,
|
|
13940
|
+
idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
13941
|
+
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
13942
|
+
idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
13943
|
+
_o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
13944
|
+
idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
13945
|
+
_p = _a.idCaptureModelLoadTimeoutMs,
|
|
13946
|
+
idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
13947
|
+
_q = _a.idCaptureForceFallbackMode,
|
|
13948
|
+
idCaptureForceFallbackMode = _q === void 0 ? false : _q,
|
|
13949
|
+
_r = _a.selfieCaptureModelLoadTimeoutMs,
|
|
13950
|
+
selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
|
|
13951
|
+
_s = _a.allowIdCardBackToFrontCapture,
|
|
13952
|
+
allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
|
|
13953
|
+
_t = _a.enableOverrideWrongDocumentTypeDialog,
|
|
13954
|
+
enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
|
|
13955
|
+
_u = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
13956
|
+
allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
|
|
13952
13957
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
13953
13958
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
13954
13959
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -13964,31 +13969,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13964
13969
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
13965
13970
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
13966
13971
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
13967
|
-
|
|
13968
|
-
captureSignature =
|
|
13969
|
-
|
|
13970
|
-
captureSignatureVideo =
|
|
13971
|
-
|
|
13972
|
-
captureAdditionalDocuments =
|
|
13973
|
-
|
|
13974
|
-
captureVideoId =
|
|
13972
|
+
_v = _a.captureSignature,
|
|
13973
|
+
captureSignature = _v === void 0 ? false : _v,
|
|
13974
|
+
_w = _a.captureSignatureVideo,
|
|
13975
|
+
captureSignatureVideo = _w === void 0 ? false : _w,
|
|
13976
|
+
_x = _a.captureAdditionalDocuments,
|
|
13977
|
+
captureAdditionalDocuments = _x === void 0 ? [] : _x,
|
|
13978
|
+
_y = _a.captureVideoId,
|
|
13979
|
+
captureVideoId = _y === void 0 ? false : _y,
|
|
13975
13980
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
13976
|
-
|
|
13977
|
-
theme =
|
|
13978
|
-
|
|
13979
|
-
assets =
|
|
13980
|
-
|
|
13981
|
-
classNames =
|
|
13982
|
-
|
|
13983
|
-
colors =
|
|
13984
|
-
|
|
13985
|
-
verbiage =
|
|
13986
|
-
|
|
13987
|
-
geolocationEnabled =
|
|
13988
|
-
|
|
13989
|
-
geolocationRequired =
|
|
13990
|
-
|
|
13991
|
-
debugMode =
|
|
13981
|
+
_z = _a.theme,
|
|
13982
|
+
theme = _z === void 0 ? 'default' : _z,
|
|
13983
|
+
_0 = _a.assets,
|
|
13984
|
+
assets = _0 === void 0 ? {} : _0,
|
|
13985
|
+
_1 = _a.classNames,
|
|
13986
|
+
classNames = _1 === void 0 ? {} : _1,
|
|
13987
|
+
_2 = _a.colors,
|
|
13988
|
+
colors = _2 === void 0 ? {} : _2,
|
|
13989
|
+
_3 = _a.verbiage,
|
|
13990
|
+
verbiage = _3 === void 0 ? {} : _3,
|
|
13991
|
+
_4 = _a.geolocationEnabled,
|
|
13992
|
+
geolocationEnabled = _4 === void 0 ? true : _4,
|
|
13993
|
+
_5 = _a.geolocationRequired,
|
|
13994
|
+
geolocationRequired = _5 === void 0 ? false : _5,
|
|
13995
|
+
_6 = _a.debugMode,
|
|
13996
|
+
debugMode = _6 === void 0 ? false : _6;
|
|
13992
13997
|
useLanguage(lang);
|
|
13993
13998
|
useDebugLogging(debugMode);
|
|
13994
13999
|
var idCaptureProps = useMemo(function () {
|
|
@@ -13998,6 +14003,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
13998
14003
|
colors: colors.idCapture,
|
|
13999
14004
|
verbiage: verbiage.idCapture,
|
|
14000
14005
|
captureRequirement: idCaptureRequirement,
|
|
14006
|
+
allowSinglePageIdCapture: allowSinglePageIdCapture,
|
|
14001
14007
|
thresholds: idCaptureThresholds,
|
|
14002
14008
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
14003
14009
|
instructions: idCaptureInstructions,
|
|
@@ -14016,7 +14022,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14016
14022
|
skipSuccessScreen: skipSuccessScreen,
|
|
14017
14023
|
debugMode: debugMode
|
|
14018
14024
|
};
|
|
14019
|
-
}, [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]);
|
|
14025
|
+
}, [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]);
|
|
14020
14026
|
var faceLivenessProps = useMemo(function () {
|
|
14021
14027
|
return {
|
|
14022
14028
|
onExitCapture: onExitCapture,
|