idmission-web-sdk 2.1.12 → 2.1.14

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.
@@ -104,7 +104,7 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
104
104
  idCaptureInstructions?: ReactNode;
105
105
  /** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
106
106
  idCaptureGuideType?: IdCaptureGuideType;
107
- /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
107
+ /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
108
108
  idCapturePortraitGuidesOnMobile?: boolean;
109
109
  /** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
110
110
  idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
@@ -101,7 +101,7 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
101
101
  idCaptureInstructions?: ReactNode;
102
102
  /** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
103
103
  idCaptureGuideType?: IdCaptureGuideType;
104
- /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
104
+ /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
105
105
  idCapturePortraitGuidesOnMobile?: boolean;
106
106
  /** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
107
107
  idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
@@ -86,7 +86,7 @@ export interface IdValidationProps extends PropsWithChildren {
86
86
  instructions?: ReactNode;
87
87
  /** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
88
88
  guideType?: IdCaptureGuideType;
89
- /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
89
+ /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
90
90
  portraitGuidesOnMobile?: boolean;
91
91
  /** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
92
92
  rotateLoadingOverlayImageWhenPortrait?: boolean;
@@ -127,7 +127,7 @@ export interface VideoIdValidationProps extends PropsWithChildren {
127
127
  idCaptureLoadingOverlayMode?: IdCaptureLoadingOverlayMode;
128
128
  /** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
129
129
  idCaptureGuideType?: IdCaptureGuideType;
130
- /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `false`. */
130
+ /** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
131
131
  idCapturePortraitGuidesOnMobile?: boolean;
132
132
  /** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
133
133
  idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ObjectDetector, ObjectDetectorResult } from '@mediapipe/tasks-vision';
3
- export declare const defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240614/model_fp16.tflite";
3
+ export declare const defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240802/model_fp16.tflite";
4
4
  export declare const defaultDocumentDetectionScoreThreshold = 0.1;
5
5
  export declare const defaultDocumentDetectionModelLoadTimeoutMs = 45000;
6
6
  export declare const defaultDocumentDetectionThresholds: DocumentDetectionThresholds;
@@ -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 = '2.1.12';
52
+ var webSdkVersion = '2.1.14';
53
53
 
54
54
  function getPlatform() {
55
55
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -3140,7 +3140,7 @@ function sumUpProgressForDependencies(dependencies) {
3140
3140
  });
3141
3141
  }
3142
3142
 
3143
- var defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240614/model_fp16.tflite";
3143
+ var defaultDocumentDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240802/model_fp16.tflite";
3144
3144
  var defaultDocumentDetectionScoreThreshold = 0.1;
3145
3145
  var defaultDocumentDetectionModelLoadTimeoutMs = 45000;
3146
3146
  var defaultDocumentDetectionThresholds = {
@@ -6369,7 +6369,7 @@ function IdCaptureGuides(_a) {
6369
6369
  var _d = _a.guideType,
6370
6370
  guideType = _d === void 0 ? 'fit' : _d,
6371
6371
  _e = _a.portraitGuidesOnMobile,
6372
- portraitGuidesOnMobile = _e === void 0 ? false : _e,
6372
+ portraitGuidesOnMobile = _e === void 0 ? true : _e,
6373
6373
  _f = _a.requestingFlip,
6374
6374
  requestingFlip = _f === void 0 ? false : _f,
6375
6375
  _g = _a.flipIdPromptAssets,
@@ -7328,7 +7328,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
7328
7328
  _z = _a.guideType,
7329
7329
  guideType = _z === void 0 ? 'fit' : _z,
7330
7330
  _0 = _a.portraitGuidesOnMobile,
7331
- portraitGuidesOnMobile = _0 === void 0 ? false : _0,
7331
+ portraitGuidesOnMobile = _0 === void 0 ? true : _0,
7332
7332
  _1 = _a.rotateLoadingOverlayImageWhenPortrait,
7333
7333
  rotateLoadingOverlayImageWhenPortrait = _1 === void 0 ? true : _1,
7334
7334
  _2 = _a.silentFallback,
@@ -8316,7 +8316,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
8316
8316
  switch (_b.label) {
8317
8317
  case 0:
8318
8318
  _b.trys.push([0, 3,, 4]);
8319
- imageUrl_1 = cropToShoulders(rawCanvas.current, cropCanvas.current, resizeCanvas.current, frame, face, 0.92, 500);
8319
+ imageUrl_1 = cropToShoulders(rawCanvas.current, cropCanvas.current, resizeCanvas.current, frame, face, 0.92, 600);
8320
8320
  setImageUrl(imageUrl_1);
8321
8321
  _a = checkLiveness;
8322
8322
  return [4 /*yield*/, dataUrlToBase64(imageUrl_1)];
@@ -11058,7 +11058,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
11058
11058
  _q = _a.idCaptureGuideType,
11059
11059
  idCaptureGuideType = _q === void 0 ? 'fit' : _q,
11060
11060
  _r = _a.idCapturePortraitGuidesOnMobile,
11061
- idCapturePortraitGuidesOnMobile = _r === void 0 ? false : _r,
11061
+ idCapturePortraitGuidesOnMobile = _r === void 0 ? true : _r,
11062
11062
  _s = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
11063
11063
  idCaptureRotateLoadingOverlayImageWhenPortrait = _s === void 0 ? true : _s,
11064
11064
  _t = _a.idCaptureModelLoadTimeoutMs,
@@ -11738,7 +11738,7 @@ var IdValidation = function IdValidation(_a) {
11738
11738
  _h = _a.guideType,
11739
11739
  guideType = _h === void 0 ? 'fit' : _h,
11740
11740
  _j = _a.portraitGuidesOnMobile,
11741
- portraitGuidesOnMobile = _j === void 0 ? false : _j,
11741
+ portraitGuidesOnMobile = _j === void 0 ? true : _j,
11742
11742
  _k = _a.rotateLoadingOverlayImageWhenPortrait,
11743
11743
  rotateLoadingOverlayImageWhenPortrait = _k === void 0 ? true : _k,
11744
11744
  _l = _a.modelLoadTimeoutMs,
@@ -12035,7 +12035,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
12035
12035
  _j = _a.idCaptureGuideType,
12036
12036
  idCaptureGuideType = _j === void 0 ? 'fit' : _j,
12037
12037
  _k = _a.idCapturePortraitGuidesOnMobile,
12038
- idCapturePortraitGuidesOnMobile = _k === void 0 ? false : _k,
12038
+ idCapturePortraitGuidesOnMobile = _k === void 0 ? true : _k,
12039
12039
  _l = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
12040
12040
  idCaptureRotateLoadingOverlayImageWhenPortrait = _l === void 0 ? true : _l,
12041
12041
  _m = _a.idCaptureModelLoadTimeoutMs,
@@ -12253,7 +12253,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
12253
12253
  _j = _a.idCaptureGuideType,
12254
12254
  idCaptureGuideType = _j === void 0 ? 'fit' : _j,
12255
12255
  _k = _a.idCapturePortraitGuidesOnMobile,
12256
- idCapturePortraitGuidesOnMobile = _k === void 0 ? false : _k,
12256
+ idCapturePortraitGuidesOnMobile = _k === void 0 ? true : _k,
12257
12257
  _l = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
12258
12258
  idCaptureRotateLoadingOverlayImageWhenPortrait = _l === void 0 ? true : _l,
12259
12259
  _m = _a.idCaptureModelLoadTimeoutMs,
@@ -13681,7 +13681,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
13681
13681
  _l = _a.idCaptureGuideType,
13682
13682
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
13683
13683
  _m = _a.idCapturePortraitGuidesOnMobile,
13684
- idCapturePortraitGuidesOnMobile = _m === void 0 ? false : _m,
13684
+ idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
13685
13685
  _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
13686
13686
  idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
13687
13687
  idCardForFaceMatch = _a.idCardForFaceMatch,