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.
package/dist/sdk2.esm.js CHANGED
@@ -192,7 +192,7 @@ var templateObject_1$4;
192
192
  var OverlayContainer = styled(PageContainer)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n background: white;\n z-index: 10000;\n"], ["\n background: white;\n z-index: 10000;\n"])));
193
193
  var OverlayInner = styled.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"])));
194
194
  var OverlayImageWrapper = styled.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"])));
195
- var OverlayImageMultiContainer = styled.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"])));
195
+ var OverlayImageMultiContainer = styled.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"])));
196
196
  var templateObject_1$3, templateObject_2, templateObject_3, templateObject_4;
197
197
 
198
198
  var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
@@ -2015,13 +2015,19 @@ var IdCaptureSuccess = function IdCaptureSuccess(_a) {
2015
2015
  }
2016
2016
  }, idCardFront && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", null, idCardFrontText), /*#__PURE__*/React__default.createElement("img", {
2017
2017
  src: idCardFront.imageData,
2018
- alt: idCardFrontText
2018
+ alt: idCardFrontText,
2019
+ width: idCardFront.width,
2020
+ height: idCardFront.height
2019
2021
  })), idCardBack && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", null, idCardBackText), /*#__PURE__*/React__default.createElement("img", {
2020
2022
  src: idCardBack.imageData,
2021
- alt: idCardBackText
2023
+ alt: idCardBackText,
2024
+ width: idCardBack.width,
2025
+ height: idCardBack.height
2022
2026
  })), passport && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", null, passportText), /*#__PURE__*/React__default.createElement("img", {
2023
2027
  src: passport.imageData,
2024
- alt: passportText
2028
+ alt: passportText,
2029
+ width: passport.width,
2030
+ height: passport.height
2025
2031
  })))), /*#__PURE__*/React__default.createElement("p", {
2026
2032
  style: {
2027
2033
  fontSize: 18
@@ -11843,6 +11849,7 @@ var FaceValidation = function FaceValidation(_a) {
11843
11849
  onComplete = _a.onComplete,
11844
11850
  onApproved = _a.onApproved,
11845
11851
  onDenied = _a.onDenied,
11852
+ onExitAfterFailure = _a.onExitAfterFailure,
11846
11853
  assets = _a.assets,
11847
11854
  verbiage = _a.verbiage,
11848
11855
  _e = _a.geolocationEnabled,
@@ -11858,12 +11865,12 @@ var FaceValidation = function FaceValidation(_a) {
11858
11865
  onComplete: onComplete,
11859
11866
  onSuccess: onApproved,
11860
11867
  onTimeout: onDenied,
11861
- onExitAfterFailure: onDenied,
11868
+ onExitAfterFailure: onExitAfterFailure,
11862
11869
  assets: assets,
11863
11870
  verbiage: verbiage,
11864
11871
  debugMode: debugMode
11865
11872
  };
11866
- }, [assets, debugMode, onApproved, onComplete, onDenied, timeoutDurationMs, verbiage]);
11873
+ }, [assets, debugMode, onApproved, onComplete, onDenied, onExitAfterFailure, timeoutDurationMs, verbiage]);
11867
11874
  return /*#__PURE__*/React__default.createElement(SubmissionProvider, {
11868
11875
  action: SubmissionAction.NONE,
11869
11876
  environment: submissionEnvironment,
@@ -11912,6 +11919,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
11912
11919
  onComplete = _a.onComplete,
11913
11920
  onApproved = _a.onApproved,
11914
11921
  onDenied = _a.onDenied,
11922
+ onExitAfterFailure = _a.onExitAfterFailure,
11915
11923
  _m = _a.captureSignature,
11916
11924
  captureSignature = _m === void 0 ? false : _m,
11917
11925
  _o = _a.captureSignatureVideo,
@@ -11943,12 +11951,12 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
11943
11951
  return {
11944
11952
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
11945
11953
  onTimeout: onDenied,
11946
- onExitAfterFailure: onDenied,
11954
+ onExitAfterFailure: onExitAfterFailure,
11947
11955
  assets: faceLivenessAssets,
11948
11956
  verbiage: faceLivenessVerbiage,
11949
11957
  debugMode: debugMode
11950
11958
  };
11951
- }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onDenied]);
11959
+ }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onDenied, onExitAfterFailure]);
11952
11960
  var signatureCaptureProps = useMemo(function () {
11953
11961
  return {
11954
11962
  verbiage: {
@@ -12029,6 +12037,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
12029
12037
  onComplete = _a.onComplete,
12030
12038
  onEnrolled = _a.onEnrolled,
12031
12039
  onDenied = _a.onDenied,
12040
+ onExitAfterFailure = _a.onExitAfterFailure,
12032
12041
  _m = _a.captureSignature,
12033
12042
  captureSignature = _m === void 0 ? false : _m,
12034
12043
  _o = _a.captureSignatureVideo,
@@ -12058,12 +12067,13 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
12058
12067
  }, [debugMode, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCaptureAssets, idCaptureVerbiage, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold]);
12059
12068
  var faceLivenessProps = useMemo(function () {
12060
12069
  return {
12070
+ onExitAfterFailure: onExitAfterFailure,
12061
12071
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
12062
12072
  assets: faceLivenessAssets,
12063
12073
  verbiage: faceLivenessVerbiage,
12064
12074
  debugMode: debugMode
12065
12075
  };
12066
- }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage]);
12076
+ }, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onExitAfterFailure]);
12067
12077
  var signatureCaptureProps = useMemo(function () {
12068
12078
  return {
12069
12079
  verbiage: {
@@ -12488,6 +12498,7 @@ var CustomerVerification = function CustomerVerification(_a) {
12488
12498
  onComplete = _a.onComplete,
12489
12499
  onCustomerMatched = _a.onCustomerMatched,
12490
12500
  onCustomerNotMatched = _a.onCustomerNotMatched,
12501
+ onExitAfterFailure = _a.onExitAfterFailure,
12491
12502
  _e = _a.geolocationEnabled,
12492
12503
  geolocationEnabled = _e === void 0 ? true : _e,
12493
12504
  _f = _a.geolocationRequired,
@@ -12510,6 +12521,7 @@ var CustomerVerification = function CustomerVerification(_a) {
12510
12521
  onComplete: onComplete,
12511
12522
  onCustomerMatched: onCustomerMatched,
12512
12523
  onCustomerNotMatched: onCustomerNotMatched,
12524
+ onExitAfterFailure: onExitAfterFailure,
12513
12525
  captureGuidanceTimeoutDurationMs: timeoutDurationMs,
12514
12526
  assets: assets,
12515
12527
  verbiage: verbiage,
@@ -12974,6 +12986,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
12974
12986
  onComplete = _a.onComplete,
12975
12987
  onEnrolled = _a.onEnrolled,
12976
12988
  onDenied = _a.onDenied,
12989
+ onExitAfterFailure = _a.onExitAfterFailure,
12977
12990
  _e = _a.captureSignature,
12978
12991
  captureSignature = _e === void 0 ? false : _e,
12979
12992
  _f = _a.captureSignatureVideo,
@@ -12989,12 +13002,13 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
12989
13002
  useLanguage(lang);
12990
13003
  var faceLivenessProps = useMemo(function () {
12991
13004
  return {
13005
+ onExitAfterFailure: onExitAfterFailure,
12992
13006
  timeoutDurationMs: timeoutDurationMs,
12993
13007
  assets: assets,
12994
13008
  verbiage: verbiage,
12995
13009
  debugMode: debugMode
12996
13010
  };
12997
- }, [assets, debugMode, timeoutDurationMs, verbiage]);
13011
+ }, [assets, debugMode, onExitAfterFailure, timeoutDurationMs, verbiage]);
12998
13012
  var signatureCaptureProps = useMemo(function () {
12999
13013
  return {
13000
13014
  verbiage: {