idmission-web-sdk 2.2.94 → 2.2.95

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.94';
214
+ var webSdkVersion = '2.2.95';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -24359,15 +24359,16 @@
24359
24359
  return /*#__PURE__*/React.createElement(React.Fragment, null);
24360
24360
  }
24361
24361
  }
24362
+ var shouldLoadIdCaptureModels = !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.forceFallbackMode) && !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.allowUploadingDocumentsFromStorage);
24362
24363
  switch (checks[checkIndex]) {
24363
24364
  case 'IdCapture':
24364
24365
  return /*#__PURE__*/React.createElement(CameraStoreProvider, {
24365
24366
  onCameraAccessDenied: onCameraAccessDenied,
24366
24367
  onMicrophoneAccessDenied: onMicrophoneAccessDenied,
24367
- requestAccessAutomatically: !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.forceFallbackMode) && !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.allowUploadingDocumentsFromStorage)
24368
+ requestAccessAutomatically: shouldLoadIdCaptureModels
24368
24369
  }, /*#__PURE__*/React.createElement(IdCaptureModelsProvider, {
24369
24370
  autoStart: false,
24370
- shouldLoadModels: !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.forceFallbackMode),
24371
+ shouldLoadModels: shouldLoadIdCaptureModels,
24371
24372
  documentDetectionModelUrl: (_d = (_c = idCaptureProps.assets) === null || _c === void 0 ? void 0 : _c.documentDetectionModelUrl) !== null && _d !== void 0 ? _d : '',
24372
24373
  focusModelUrl: (_f = (_e = idCaptureProps.assets) === null || _e === void 0 ? void 0 : _e.focusModelUrl) !== null && _f !== void 0 ? _f : '',
24373
24374
  onModelError: idCaptureProps.onModelError,