idmission-web-sdk 0.0.11 → 0.0.13

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.
@@ -3249,7 +3249,7 @@
3249
3249
  var OverlayContainer = styled__default['default'](PageContainer)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n background: white;\n z-index: 10000;\n"], ["\n background: white;\n z-index: 10000;\n"])));
3250
3250
  var OverlayInner = styled__default['default'].div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n padding: 25px;\n max-height: var(--app-height);\n height: 100%;\n box-sizing: border-box;\n"], ["\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n padding: 25px;\n max-height: var(--app-height);\n height: 100%;\n box-sizing: border-box;\n"])));
3251
3251
  var OverlayImageWrapper = styled__default['default'].div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
3252
- var OverlayImageMultiContainer = styled__default['default'].div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n max-width: 100%;\n max-height: 100%;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n max-width: 100%;\n max-height: 100%;\n }\n }\n"])));
3252
+ var OverlayImageMultiContainer = styled__default['default'].div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n }\n }\n"])));
3253
3253
  var templateObject_1$3, templateObject_2, templateObject_3, templateObject_4;
3254
3254
 
3255
3255
  var __assign = (undefined && undefined.__assign) || function () {
@@ -5662,13 +5662,19 @@
5662
5662
  }
5663
5663
  }, idCardFront && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", null, idCardFrontText), /*#__PURE__*/React__default['default'].createElement("img", {
5664
5664
  src: idCardFront.imageData,
5665
- alt: idCardFrontText
5665
+ alt: idCardFrontText,
5666
+ width: idCardFront.width,
5667
+ height: idCardFront.height
5666
5668
  })), idCardBack && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", null, idCardBackText), /*#__PURE__*/React__default['default'].createElement("img", {
5667
5669
  src: idCardBack.imageData,
5668
- alt: idCardBackText
5670
+ alt: idCardBackText,
5671
+ width: idCardBack.width,
5672
+ height: idCardBack.height
5669
5673
  })), passport && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", null, passportText), /*#__PURE__*/React__default['default'].createElement("img", {
5670
5674
  src: passport.imageData,
5671
- alt: passportText
5675
+ alt: passportText,
5676
+ width: passport.width,
5677
+ height: passport.height
5672
5678
  })))), /*#__PURE__*/React__default['default'].createElement("p", {
5673
5679
  style: {
5674
5680
  fontSize: 18
@@ -16112,6 +16118,7 @@
16112
16118
  onComplete = _a.onComplete,
16113
16119
  onApproved = _a.onApproved,
16114
16120
  onDenied = _a.onDenied,
16121
+ onExitAfterFailure = _a.onExitAfterFailure,
16115
16122
  assets = _a.assets,
16116
16123
  verbiage = _a.verbiage,
16117
16124
  _e = _a.geolocationEnabled,
@@ -16127,12 +16134,12 @@
16127
16134
  onComplete: onComplete,
16128
16135
  onSuccess: onApproved,
16129
16136
  onTimeout: onDenied,
16130
- onExitAfterFailure: onDenied,
16137
+ onExitAfterFailure: onExitAfterFailure,
16131
16138
  assets: assets,
16132
16139
  verbiage: verbiage,
16133
16140
  debugMode: debugMode
16134
16141
  };
16135
- }, [assets, debugMode, onApproved, onComplete, onDenied, timeoutDurationMs, verbiage]);
16142
+ }, [assets, debugMode, onApproved, onComplete, onDenied, onExitAfterFailure, timeoutDurationMs, verbiage]);
16136
16143
  return /*#__PURE__*/React__default['default'].createElement(SubmissionProvider, {
16137
16144
  action: SubmissionAction.NONE,
16138
16145
  environment: submissionEnvironment,
@@ -16181,6 +16188,7 @@
16181
16188
  onComplete = _a.onComplete,
16182
16189
  onApproved = _a.onApproved,
16183
16190
  onDenied = _a.onDenied,
16191
+ onExitAfterFailure = _a.onExitAfterFailure,
16184
16192
  _m = _a.captureSignature,
16185
16193
  captureSignature = _m === void 0 ? false : _m,
16186
16194
  _o = _a.captureSignatureVideo,
@@ -16212,12 +16220,12 @@
16212
16220
  return {
16213
16221
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
16214
16222
  onTimeout: onDenied,
16215
- onExitAfterFailure: onDenied,
16223
+ onExitAfterFailure: onExitAfterFailure,
16216
16224
  assets: faceLivenessAssets,
16217
16225
  verbiage: faceLivenessVerbiage,
16218
16226
  debugMode: debugMode
16219
16227
  };
16220
- }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onDenied]);
16228
+ }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onDenied, onExitAfterFailure]);
16221
16229
  var signatureCaptureProps = React.useMemo(function () {
16222
16230
  return {
16223
16231
  verbiage: {
@@ -16298,6 +16306,7 @@
16298
16306
  onComplete = _a.onComplete,
16299
16307
  onEnrolled = _a.onEnrolled,
16300
16308
  onDenied = _a.onDenied,
16309
+ onExitAfterFailure = _a.onExitAfterFailure,
16301
16310
  _m = _a.captureSignature,
16302
16311
  captureSignature = _m === void 0 ? false : _m,
16303
16312
  _o = _a.captureSignatureVideo,
@@ -16327,12 +16336,13 @@
16327
16336
  }, [debugMode, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCaptureAssets, idCaptureVerbiage, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold]);
16328
16337
  var faceLivenessProps = React.useMemo(function () {
16329
16338
  return {
16339
+ onExitAfterFailure: onExitAfterFailure,
16330
16340
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
16331
16341
  assets: faceLivenessAssets,
16332
16342
  verbiage: faceLivenessVerbiage,
16333
16343
  debugMode: debugMode
16334
16344
  };
16335
- }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage]);
16345
+ }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onExitAfterFailure]);
16336
16346
  var signatureCaptureProps = React.useMemo(function () {
16337
16347
  return {
16338
16348
  verbiage: {
@@ -16757,6 +16767,7 @@
16757
16767
  onComplete = _a.onComplete,
16758
16768
  onCustomerMatched = _a.onCustomerMatched,
16759
16769
  onCustomerNotMatched = _a.onCustomerNotMatched,
16770
+ onExitAfterFailure = _a.onExitAfterFailure,
16760
16771
  _e = _a.geolocationEnabled,
16761
16772
  geolocationEnabled = _e === void 0 ? true : _e,
16762
16773
  _f = _a.geolocationRequired,
@@ -16779,6 +16790,7 @@
16779
16790
  onComplete: onComplete,
16780
16791
  onCustomerMatched: onCustomerMatched,
16781
16792
  onCustomerNotMatched: onCustomerNotMatched,
16793
+ onExitAfterFailure: onExitAfterFailure,
16782
16794
  captureGuidanceTimeoutDurationMs: timeoutDurationMs,
16783
16795
  assets: assets,
16784
16796
  verbiage: verbiage,
@@ -17243,6 +17255,7 @@
17243
17255
  onComplete = _a.onComplete,
17244
17256
  onEnrolled = _a.onEnrolled,
17245
17257
  onDenied = _a.onDenied,
17258
+ onExitAfterFailure = _a.onExitAfterFailure,
17246
17259
  _e = _a.captureSignature,
17247
17260
  captureSignature = _e === void 0 ? false : _e,
17248
17261
  _f = _a.captureSignatureVideo,
@@ -17258,12 +17271,13 @@
17258
17271
  useLanguage(lang);
17259
17272
  var faceLivenessProps = React.useMemo(function () {
17260
17273
  return {
17274
+ onExitAfterFailure: onExitAfterFailure,
17261
17275
  timeoutDurationMs: timeoutDurationMs,
17262
17276
  assets: assets,
17263
17277
  verbiage: verbiage,
17264
17278
  debugMode: debugMode
17265
17279
  };
17266
- }, [assets, debugMode, timeoutDurationMs, verbiage]);
17280
+ }, [assets, debugMode, onExitAfterFailure, timeoutDurationMs, verbiage]);
17267
17281
  var signatureCaptureProps = React.useMemo(function () {
17268
17282
  return {
17269
17283
  verbiage: {