idmission-web-sdk 2.1.104 → 2.1.106

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.
@@ -44,6 +44,7 @@ export declare function useLoadDocumentDetector({ modelPath, modelLoadTimeoutMs,
44
44
  setModelError: import("react").Dispatch<import("react").SetStateAction<Error | null>>;
45
45
  };
46
46
  export type DocumentDetectionPrediction = {
47
+ prediction: ObjectDetectorPrediction;
47
48
  detectedObjects: DetectedObject[];
48
49
  detectionTime: number;
49
50
  detectionScore: number;
@@ -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.104';
237
+ var webSdkVersion = '2.1.106';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -5841,6 +5841,7 @@ function processDocumentDetectorPrediction(prediction, thresholds, boundaries) {
5841
5841
  }
5842
5842
  }
5843
5843
  return {
5844
+ prediction: prediction,
5844
5845
  detectedObjects: detectedObjects,
5845
5846
  detectionScore: detectionScore,
5846
5847
  detectionTime: time,
@@ -7366,7 +7367,7 @@ var IdCapture = function IdCapture(_a) {
7366
7367
  });
7367
7368
  var satisfied = state.isGoodFrame;
7368
7369
  if (typeof guidanceSatisfied === 'boolean') satisfied = guidanceSatisfied;
7369
- guidanceMessage || (guidanceMessage = satisfied ? verbiage.guidanceSatisfiedText : !state.detectionThresholdMet ? verbiage.guidanceNotDetectedText : state.backDetectedFirst ? verbiage.guidanceBackDetectedFirstText : state.flipRequired ? verbiage.guidancePleaseFlipText : state.idCardDetectedButNotAllowed ? verbiage.guidanceIdCardNotAllowedText : state.passportDetectedButNotAllowed ? verbiage.guidancePassportNotAllowedText : !state.documentInBounds ? verbiage.guidanceNotCenteredText : state.documentTooClose ? verbiage.guidanceTooCloseText : !state.focusThresholdMet ? verbiage.guidanceTooBlurryText : !state.documentIsStable ? verbiage.guidanceNotStableText : '');
7370
+ guidanceMessage || (guidanceMessage = satisfied ? verbiage.guidanceSatisfiedText : !state.detectionThresholdMet ? verbiage.guidanceNotDetectedText : state.backDetectedFirst ? verbiage.guidanceBackDetectedFirstText : state.flipRequired ? verbiage.guidancePleaseFlipText : state.idCardDetectedButNotAllowed ? verbiage.guidanceIdCardNotAllowedText : state.passportDetectedButNotAllowed ? verbiage.guidancePassportNotAllowedText : !state.documentInBounds ? verbiage.guidanceNotCenteredText : state.documentTooClose ? verbiage.guidanceTooCloseText : !state.documentIsStable ? verbiage.guidanceNotStableText : !state.focusThresholdMet ? verbiage.guidanceTooBlurryText : '');
7370
7371
  return /*#__PURE__*/React__namespace.default.createElement(PageContainer, {
7371
7372
  ref: ref,
7372
7373
  className: "flex ".concat((_h = classNames.container) !== null && _h !== void 0 ? _h : '')