idmission-web-sdk 1.0.222 → 1.0.224

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.
@@ -49,7 +49,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
49
49
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
50
50
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
51
51
 
52
- var webSdkVersion = '1.0.222';
52
+ var webSdkVersion = '1.0.224';
53
53
 
54
54
  function getPlatform() {
55
55
  if (typeof window === 'undefined') return;
@@ -1783,6 +1783,7 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1783
1783
  selectedCamera = iphoneContinuityCamera;
1784
1784
  }
1785
1785
  } else if ((platform === null || platform === void 0 ? void 0 : platform.os.family) === 'Android') {
1786
+ if (debugMode) console.log('flipping available cameras because platform is android');
1786
1787
  availableCameras.reverse();
1787
1788
  }
1788
1789
  if (preferFrontFacingCamera) {
@@ -1824,7 +1825,7 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1824
1825
  throw e;
1825
1826
  }
1826
1827
  });
1827
- }, [cameraAccessDenied, iphoneContinuityCameraAllowed, iphoneContinuityCameraDenied, preferFrontFacingCamera]);
1828
+ }, [cameraAccessDenied, debugMode, iphoneContinuityCameraAllowed, iphoneContinuityCameraDenied, preferFrontFacingCamera]);
1828
1829
  React.useEffect(function () {
1829
1830
  var _a;
1830
1831
  if (!videoDevice) return;
@@ -13989,7 +13990,8 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13989
13990
  borderRadius: '50%',
13990
13991
  aspectRatio: '1 / 1.618',
13991
13992
  height: '100%',
13992
- margin: '4% auto auto'
13993
+ margin: '4% auto auto',
13994
+ minHeight: '33dvh'
13993
13995
  }
13994
13996
  }), requestedAction === 'FLIP_ID' ? ( /*#__PURE__*/React__default['default'].createElement(IdVideoCaptureFlipIdPrompt, {
13995
13997
  assets: assets,
@@ -14062,7 +14064,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
14062
14064
  }
14063
14065
  }, instructionText))))));
14064
14066
  };
14065
- var GuideImage = styled__default['default'].img(templateObject_1$8 || (templateObject_1$8 = tslib.__makeTemplateObject(["\n width: 100%;\n ", "\n"], ["\n width: 100%;\n ", "\n"])), function (props) {
14067
+ var GuideImage = styled__default['default'].img(templateObject_1$8 || (templateObject_1$8 = tslib.__makeTemplateObject(["\n width: 100%;\n max-height: 100%;\n ", "\n"], ["\n width: 100%;\n max-height: 100%;\n ", "\n"])), function (props) {
14066
14068
  return props.$isMirrored ? 'transform: scaleX(-1);' : '';
14067
14069
  });
14068
14070
  var templateObject_1$8;