idmission-web-sdk 2.3.1 → 2.3.2
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/IdValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +58 -56
- 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 +58 -56
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +58 -56
- 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
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.3.
|
|
207
|
+
var webSdkVersion = '2.3.2';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -15569,42 +15569,44 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15569
15569
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
15570
15570
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
15571
15571
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
15572
|
+
_c = _a.captureOnly,
|
|
15573
|
+
captureOnly = _c === void 0 ? false : _c,
|
|
15572
15574
|
precapturedDocuments = _a.precapturedDocuments,
|
|
15573
|
-
|
|
15574
|
-
loadingOverlayMode =
|
|
15575
|
+
_d = _a.loadingOverlayMode,
|
|
15576
|
+
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
15575
15577
|
customOverlayContent = _a.customOverlayContent,
|
|
15576
15578
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
15577
|
-
|
|
15578
|
-
idCaptureRequirement =
|
|
15579
|
-
|
|
15580
|
-
allowSinglePageIdCapture =
|
|
15581
|
-
|
|
15582
|
-
separateIdCardCaptureSequence =
|
|
15583
|
-
|
|
15584
|
-
idCaptureThresholds =
|
|
15585
|
-
|
|
15586
|
-
skipSuccessScreen =
|
|
15579
|
+
_e = _a.idCaptureRequirement,
|
|
15580
|
+
idCaptureRequirement = _e === void 0 ? 'idCardOrPassport' : _e,
|
|
15581
|
+
_f = _a.allowSinglePageIdCapture,
|
|
15582
|
+
allowSinglePageIdCapture = _f === void 0 ? false : _f,
|
|
15583
|
+
_g = _a.separateIdCardCaptureSequence,
|
|
15584
|
+
separateIdCardCaptureSequence = _g === void 0 ? false : _g,
|
|
15585
|
+
_h = _a.idCaptureThresholds,
|
|
15586
|
+
idCaptureThresholds = _h === void 0 ? defaultIdCaptureThresholds : _h,
|
|
15587
|
+
_j = _a.skipSuccessScreen,
|
|
15588
|
+
skipSuccessScreen = _j === void 0 ? false : _j,
|
|
15587
15589
|
instructions = _a.instructions,
|
|
15588
|
-
|
|
15589
|
-
guideType =
|
|
15590
|
-
|
|
15591
|
-
guideImages =
|
|
15592
|
-
|
|
15593
|
-
portraitGuidesOnMobile =
|
|
15594
|
-
|
|
15595
|
-
rotateLoadingOverlayImageWhenPortrait =
|
|
15596
|
-
|
|
15597
|
-
modelLoadTimeoutMs =
|
|
15598
|
-
|
|
15599
|
-
forceFallbackMode =
|
|
15600
|
-
|
|
15601
|
-
allowIdCardBackToFrontCapture =
|
|
15602
|
-
|
|
15603
|
-
enableOverrideWrongDocumentTypeDialog =
|
|
15604
|
-
|
|
15605
|
-
allowOverrideWrongDocumentTypeAfterMs =
|
|
15606
|
-
|
|
15607
|
-
allowUploadingDocumentsFromStorage =
|
|
15590
|
+
_k = _a.guideType,
|
|
15591
|
+
guideType = _k === void 0 ? 'fit' : _k,
|
|
15592
|
+
_l = _a.guideImages,
|
|
15593
|
+
guideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
|
|
15594
|
+
_m = _a.portraitGuidesOnMobile,
|
|
15595
|
+
portraitGuidesOnMobile = _m === void 0 ? true : _m,
|
|
15596
|
+
_o = _a.rotateLoadingOverlayImageWhenPortrait,
|
|
15597
|
+
rotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
|
|
15598
|
+
_p = _a.modelLoadTimeoutMs,
|
|
15599
|
+
modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
|
|
15600
|
+
_q = _a.forceFallbackMode,
|
|
15601
|
+
forceFallbackMode = _q === void 0 ? false : _q,
|
|
15602
|
+
_r = _a.allowIdCardBackToFrontCapture,
|
|
15603
|
+
allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
|
|
15604
|
+
_s = _a.enableOverrideWrongDocumentTypeDialog,
|
|
15605
|
+
enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
|
|
15606
|
+
_t = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
15607
|
+
allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
|
|
15608
|
+
_u = _a.allowUploadingDocumentsFromStorage,
|
|
15609
|
+
allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
|
|
15608
15610
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
15609
15611
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
15610
15612
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -15620,28 +15622,28 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15620
15622
|
onModelError = _a.onModelError,
|
|
15621
15623
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
15622
15624
|
onCameraTamperingDetected = _a.onCameraTamperingDetected,
|
|
15623
|
-
|
|
15624
|
-
theme =
|
|
15625
|
-
|
|
15626
|
-
assets =
|
|
15627
|
-
|
|
15628
|
-
classNames =
|
|
15629
|
-
|
|
15630
|
-
colors =
|
|
15631
|
-
|
|
15632
|
-
verbiage =
|
|
15633
|
-
|
|
15634
|
-
captureSignature =
|
|
15635
|
-
|
|
15636
|
-
captureSignatureVideo =
|
|
15637
|
-
|
|
15638
|
-
captureAdditionalDocuments =
|
|
15639
|
-
|
|
15640
|
-
geolocationEnabled =
|
|
15641
|
-
|
|
15642
|
-
geolocationRequired =
|
|
15643
|
-
|
|
15644
|
-
debugMode =
|
|
15625
|
+
_v = _a.theme,
|
|
15626
|
+
theme = _v === void 0 ? 'default' : _v,
|
|
15627
|
+
_w = _a.assets,
|
|
15628
|
+
assets = _w === void 0 ? {} : _w,
|
|
15629
|
+
_x = _a.classNames,
|
|
15630
|
+
classNames = _x === void 0 ? {} : _x,
|
|
15631
|
+
_y = _a.colors,
|
|
15632
|
+
colors = _y === void 0 ? {} : _y,
|
|
15633
|
+
_z = _a.verbiage,
|
|
15634
|
+
verbiage = _z === void 0 ? {} : _z,
|
|
15635
|
+
_0 = _a.captureSignature,
|
|
15636
|
+
captureSignature = _0 === void 0 ? false : _0,
|
|
15637
|
+
_1 = _a.captureSignatureVideo,
|
|
15638
|
+
captureSignatureVideo = _1 === void 0 ? false : _1,
|
|
15639
|
+
_2 = _a.captureAdditionalDocuments,
|
|
15640
|
+
captureAdditionalDocuments = _2 === void 0 ? [] : _2,
|
|
15641
|
+
_3 = _a.geolocationEnabled,
|
|
15642
|
+
geolocationEnabled = _3 === void 0 ? true : _3,
|
|
15643
|
+
_4 = _a.geolocationRequired,
|
|
15644
|
+
geolocationRequired = _4 === void 0 ? false : _4,
|
|
15645
|
+
_5 = _a.debugMode,
|
|
15646
|
+
debugMode = _5 === void 0 ? false : _5;
|
|
15645
15647
|
useLanguage(lang);
|
|
15646
15648
|
useDebugLogging(debugMode);
|
|
15647
15649
|
var idCaptureProps = useMemo(function () {
|
|
@@ -15714,7 +15716,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15714
15716
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
15715
15717
|
theme: theme
|
|
15716
15718
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
15717
|
-
action: SubmissionAction.VALIDATE,
|
|
15719
|
+
action: captureOnly ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
|
|
15718
15720
|
submissionUrl: submissionUrl,
|
|
15719
15721
|
clientRequestID: clientRequestID,
|
|
15720
15722
|
documentServiceUrl: documentServiceUrl,
|