idmission-web-sdk 2.1.32 → 2.1.34

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.
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.1.32';
237
+ var webSdkVersion = '2.1.34';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -6261,8 +6261,8 @@ var _reducer = function reducer(state, action) {
6261
6261
  goodFramesThreshold = Math.ceil(3 * frameCaptureRate);
6262
6262
  }
6263
6263
  }
6264
- var flipRequired = !state.overrideFlipRequirement && !state.allowIdCardBackToFrontCapture && state.requestedDocumentType === 'idCardBack' && detectedDocumentType === 'idCardFront';
6265
- var backDetectedFirst = !state.overrideFlipRequirement && (state.allowIdCardBackToFrontCapture ? 'idCardBack' in state.capturedDocuments && detectedDocumentType === 'idCardBack' : state.requestedDocumentType.includes('idCardFront') && detectedDocumentType === 'idCardBack');
6264
+ var flipRequired = !state.overrideFlipRequirement && (state.allowIdCardBackToFrontCapture ? 'idCardFront' in state.capturedDocuments && detectedDocumentType === 'idCardFront' : state.requestedDocumentType === 'idCardBack' && detectedDocumentType === 'idCardFront');
6265
+ var backDetectedFirst = !state.overrideFlipRequirement && (state.allowIdCardBackToFrontCapture ? 'idCardBack' in state.capturedDocuments && detectedDocumentType === 'idCardBack' : state.requestedDocumentType === 'idCardFront' && detectedDocumentType === 'idCardBack');
6266
6266
  var wrongDocumentTypePredictions = state.wrongDocumentTypePredictions;
6267
6267
  if (state.captureState === 'capturing' && (flipRequired || backDetectedFirst)) {
6268
6268
  wrongDocumentTypePredictions += 1;
@@ -7039,18 +7039,23 @@ var IdCapture = function IdCapture(_a) {
7039
7039
  display: 'block',
7040
7040
  margin: 'auto 12px auto 0'
7041
7041
  }
7042
- }, "It appears that you are attempting to capture the wrong side of your ID card, but perhaps we are wrong about that. Would you like to proceed with capture anyway?"), /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
7043
- variant: "positive",
7042
+ }, "It appears that you are attempting to capture the wrong side of your ID card, but perhaps we are wrong about that. Would you like to proceed with capture anyway?"), /*#__PURE__*/React__namespace.default.createElement("div", {
7044
7043
  style: {
7045
7044
  marginLeft: 'auto',
7046
- whiteSpace: 'nowrap'
7045
+ display: 'flex'
7046
+ }
7047
+ }, /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
7048
+ variant: "positive",
7049
+ style: {
7050
+ whiteSpace: 'nowrap',
7051
+ margin: 'auto'
7047
7052
  },
7048
7053
  onClick: function onClick() {
7049
7054
  return dispatch({
7050
7055
  type: 'overrideFlipRequirement'
7051
7056
  });
7052
7057
  }
7053
- }, "Capture Anyway")))))), debugMode && ( /*#__PURE__*/React__namespace.default.createElement(DebugBoundingBoxOverlay, {
7058
+ }, "Capture Anyway"))))))), debugMode && ( /*#__PURE__*/React__namespace.default.createElement(DebugBoundingBoxOverlay, {
7054
7059
  "$flipX": !((_j = cameraRef.current) === null || _j === void 0 ? void 0 : _j.isRearFacing),
7055
7060
  scaling: debugScalingDetails
7056
7061
  }, state.detectedObjects.map(function (obj, i) {