@incodetech/welcome 1.85.0-20251209093606.0 → 1.85.0-20251209153124.0

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.
@@ -129,9 +129,9 @@ declare class MlWasmJSApi {
129
129
  setFaceDetectionMode(type: WasmPipelineType, isVideoSelfie: boolean): Promise<void>;
130
130
  setFaceDetectionCallbacks(type: WasmPipelineType, onFarAway: Function, onTooClose: Function, onTooManyFaces: Function, onNoFace: Function, onCapture: Function, onGetReady: Function, onGetReadyFinished: Function, onCenterFace: Function, onDark: Function, onBlur: Function, onFaceAngle: Function, onBestShot: Function, onLenses: Function, onMask: Function, onEyesClosed: Function, onHeadWear: Function, onSwitchToManualCapture: Function, onFaceOccluded: Function): Promise<void>;
131
131
  setIdCaptureThresholds(type: WasmPipelineType, blurThreshold: number, blurChangeThreshold: number, glareThreshold: number, clsThreshold: number, sideThreshold: number, iouThreshold: number, idDetectedTimeout: number, autocaptureTimeout: number, framesAggregationInterval: number, minFaceIdQualityScore: number): Promise<void>;
132
- setIdCaptureCallbacks(type: WasmPipelineType, onFarAway: Function, onDetectionStarted: Function, onMaskChange: Function, onBlur: Function, onGlare: Function, onCapturing: Function, onCapture: Function, onBestFrame: Function, onIDNotDetected: Function, onSwitchToManualCapture: Function, onIDTypeChange: Function, onIDSideChange: Function, onCapturingCounterValueChange: Function): Promise<void>;
132
+ setIdCaptureCallbacks(type: WasmPipelineType, onFarAway: Function, onDetectionStarted: Function, onMaskChange: Function, onBlur: Function, onGlare: Function, onCapturing: Function, onCapture: Function, onBestFrame: Function, onIDNotDetected: Function, onSwitchToManualCapture: Function, onIDTypeChange: Function, onIDSideChange: Function, onCapturingCounterValueChange: Function, runPDF417Recognition: Function): Promise<void>;
133
133
  setIdCaptureGeometryParams(type: WasmPipelineType, areaDown: number, areaUp: number, areaIOSPassportUp: number, areaIOSPassportDown: number, widthIOSUp: number, widthIOSDown: number, widthDown: number, widthUp: number, windowOuterWidth: number, windowOuterHeight: number, windowInnerWidth: number, windowInnerHeight: number): Promise<void>;
134
- setIdCaptureConfigParams(type: WasmPipelineType, isFixedMask: boolean, isIPhone14OrHigher: boolean, idType: string, isBlurCheckEnabled: boolean, isGlareCheckEnabled: boolean, isIdFaceQualityCheckEnabled: boolean, isIouCheckEnabled: boolean): Promise<void>;
134
+ setIdCaptureConfigParams(type: WasmPipelineType, isFixedMask: boolean, isIPhone14OrHigher: boolean, idType: string, isBlurCheckEnabled: boolean, isGlareCheckEnabled: boolean, isIdFaceQualityCheckEnabled: boolean, isIouCheckEnabled: boolean, isPDF417RecognitionEnabled: boolean): Promise<void>;
135
135
  setIdCaptureModelType(pipelineType: WasmPipelineType, modelType: IdCaptureModelType): void;
136
136
  IdPerspectiveTransform(image: ImageData, frameRect: {
137
137
  x: number;
@@ -160,11 +160,9 @@ declare class MlWasmJSApi {
160
160
  getMetadata(): string;
161
161
  prc(): Promise<void>;
162
162
  poc(output: object): Promise<void>;
163
- pc(deviceId: string): Promise<void>;
164
163
  private pipelineTypeToWasmEnum;
165
164
  private pipelineTypeFromWasmEnum;
166
165
  private IdCaptureModelTypeToWasmEnum;
167
- private IdCaptureModelTypeFromWasmEnum;
168
166
  private checkWasmInitialization;
169
167
  private wasmCallWrapper;
170
168
  }
@@ -7772,7 +7772,7 @@ function getProfile(Be) {
7772
7772
  throw new Error(`Profile not found for type: ${Be}`);
7773
7773
  return Le;
7774
7774
  }
7775
- const wasmVersion = "v2.12.38";
7775
+ const wasmVersion = "v2.12.40";
7776
7776
  function generateBundle() {
7777
7777
  const Be = getFeatureFlag("id_text_barcode_readability") ? PipelineProfileName.IdCapture_3_02 : getFeatureFlag("id_model_hebrew_back_id") ? PipelineProfileName.IdCapture_2_02 : PipelineProfileName.IdCapture_2_01, Le = PipelineProfileName.SelfieWithQualityMetrics, Ye = PipelineProfileName.SelfieVideoSelfie, tt = PipelineProfileName.IdVideoSelfie_2_01;
7778
7778
  return [
@@ -8076,7 +8076,7 @@ class MlWasmJSApi {
8076
8076
  yt
8077
8077
  );
8078
8078
  }
8079
- async setIdCaptureCallbacks(Le, Ye, tt, nt, ft, ht, gt, At, xt, Et, yt, Ct, kt, vt) {
8079
+ async setIdCaptureCallbacks(Le, Ye, tt, nt, ft, ht, gt, At, xt, Et, yt, Ct, kt, vt, bt) {
8080
8080
  this.checkWasmInitialization(
8081
8081
  "Unable to set callbacks, cpp API hasn't been initialized"
8082
8082
  ), this.idCaptureWasmApi.setIdCaptureCallbacks(
@@ -8093,7 +8093,8 @@ class MlWasmJSApi {
8093
8093
  yt,
8094
8094
  Ct,
8095
8095
  kt,
8096
- vt
8096
+ vt,
8097
+ bt
8097
8098
  );
8098
8099
  }
8099
8100
  async setIdCaptureGeometryParams(Le, Ye, tt, nt, ft, ht, gt, At, xt, Et, yt, Ct, kt) {
@@ -8115,7 +8116,7 @@ class MlWasmJSApi {
8115
8116
  kt
8116
8117
  );
8117
8118
  }
8118
- async setIdCaptureConfigParams(Le, Ye, tt, nt, ft, ht, gt, At) {
8119
+ async setIdCaptureConfigParams(Le, Ye, tt, nt, ft, ht, gt, At, xt) {
8119
8120
  this.checkWasmInitialization(
8120
8121
  "Unable to set config params, cpp API hasn't been initialized"
8121
8122
  ), this.idCaptureWasmApi.setIdCaptureConfigParams(
@@ -8126,7 +8127,8 @@ class MlWasmJSApi {
8126
8127
  ft,
8127
8128
  ht,
8128
8129
  gt,
8129
- At
8130
+ At,
8131
+ xt
8130
8132
  );
8131
8133
  }
8132
8134
  setIdCaptureModelType(Le, Ye) {
@@ -8284,13 +8286,6 @@ class MlWasmJSApi {
8284
8286
  Le
8285
8287
  ]);
8286
8288
  }
8287
- async pc(Le) {
8288
- this.checkWasmInitialization(
8289
- "Unable to pc, cpp API hasn't been initialized"
8290
- ), await this.wasmCallWrapper(this.utilityApi.pc.bind(this.utilityApi), [
8291
- Le
8292
- ]);
8293
- }
8294
8289
  // Auxiliary part
8295
8290
  pipelineTypeToWasmEnum(Le) {
8296
8291
  switch (Le) {
@@ -8340,18 +8335,6 @@ class MlWasmJSApi {
8340
8335
  throw new Error("Unknown Id Capture model type");
8341
8336
  }
8342
8337
  }
8343
- IdCaptureModelTypeFromWasmEnum(Le) {
8344
- switch (Le) {
8345
- case this.wasmModule.IdCaptureModelType.IdCaptureV1x:
8346
- return IdCaptureModelType.IdCaptureV1x;
8347
- case this.wasmModule.IdCaptureModelType.IdCaptureV2x:
8348
- return IdCaptureModelType.IdCaptureV2x;
8349
- case this.wasmModule.IdCaptureModelType.IdCaptureV3x:
8350
- return IdCaptureModelType.IdCaptureV3x;
8351
- default:
8352
- throw new Error("Unknown Id Capture model type");
8353
- }
8354
- }
8355
8338
  checkWasmInitialization(Le) {
8356
8339
  if (!this.isInitialized())
8357
8340
  throw new Error(Le);
@@ -8374,7 +8357,7 @@ class MlWasmJSApi {
8374
8357
  );
8375
8358
  }
8376
8359
  }
8377
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251209093606.0";
8360
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251209153124.0";
8378
8361
  function e$2(Be, Le) {
8379
8362
  return function(Ye, tt) {
8380
8363
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -145896,14 +145879,13 @@ const multiPageDocumentTypes = [
145896
145879
  }, M0 = (tn) => {
145897
145880
  if (d0.current.pending)
145898
145881
  return;
145899
- d0.current.pending = !0;
145900
145882
  let cn;
145901
145883
  const yn = new Promise((Bn) => {
145902
145884
  cn = () => {
145903
145885
  Bn(), d0.current.pending = !1;
145904
145886
  };
145905
145887
  });
145906
- d0.current = { promise: yn, resolve: cn }, tn && yn.then(() => {
145888
+ d0.current = { promise: yn, resolve: cn, pending: !0 }, tn && yn.then(() => {
145907
145889
  n0.current.play();
145908
145890
  });
145909
145891
  }, P0 = async (tn = !1) => {
@@ -177801,7 +177783,9 @@ class IdDetectorBase {
177801
177783
  At,
177802
177784
  xt,
177803
177785
  Et,
177804
- yt
177786
+ yt,
177787
+ () => {
177788
+ }
177805
177789
  ), await MlWasmJSApi$1.setIdCaptureThresholds(
177806
177790
  Dt,
177807
177791
  It.parameters.sharpnessThreshold,
@@ -177822,7 +177806,8 @@ class IdDetectorBase {
177822
177806
  vt,
177823
177807
  bt,
177824
177808
  It.parameters.isIdFaceQualityCheckEnabled,
177825
- It.parameters.isIouCheckEnabled
177809
+ It.parameters.isIouCheckEnabled,
177810
+ !1
177826
177811
  ), await MlWasmJSApi$1.setIdCaptureGeometryParams(
177827
177812
  Dt,
177828
177813
  It.parameters.areaDown,