@idscan/idvc2 2.10.3 → 2.11.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.
@@ -28,7 +28,7 @@ export type DocumentType = {
28
28
  mode?: StepMode;
29
29
  };
30
30
  type ImageURI = 'png' | 'jpeg' | 'webp';
31
- export type DefaultConfigName = 'el' | 'licenseKey' | 'networkUrl' | 'chunkPublicPath' | 'language' | 'documentTypes' | 'realFaceMode' | 'modalPosition' | 'resizeUploadedImage' | 'showSubmitBtn' | 'isShowDocumentTypeSelect' | 'useCDN' | 'processingImageFormat' | 'allowSubmitWithWarnings' | 'autoContinue' | 'autocaptureDelay' | 'isShowGuidelinesButton' | 'fixFrontOrientAfterUpload' | 'onChange' | 'clickGuidlines' | 'onReset' | 'submit' | 'onRetakeHook' | 'onCameraError' | 'onMounted' | 'onReloaded';
31
+ export type DefaultConfigName = 'el' | 'licenseKey' | 'networkUrl' | 'chunkPublicPath' | 'language' | 'documentTypes' | 'realFaceMode' | 'modalPosition' | 'resizeUploadedImage' | 'showSubmitBtn' | 'isShowDocumentTypeSelect' | 'useCDN' | 'processingImageFormat' | 'allowSubmitWithWarnings' | 'autoContinue' | 'autoStart' | 'playPreviewAnimations' | 'autocaptureDelay' | 'isShowGuidelinesButton' | 'fixFrontOrientAfterUpload' | 'onChange' | 'clickGuidlines' | 'onReset' | 'submit' | 'onRetakeHook' | 'onCameraError' | 'onMounted' | 'onReloaded';
32
32
  /**
33
33
  * IDefaultConfig
34
34
  * @param {string} name,
@@ -1,4 +1,5 @@
1
1
  import { IConfig } from '../modules/Config';
2
+ export declare const startProcessing: () => Promise<void>;
2
3
  type BLTemp2 = {
3
4
  postInit: () => Promise<void>;
4
5
  mount: (() => Promise<void>);
@@ -1,5 +1,4 @@
1
1
  import { MRZLocation } from './modules/manualUploadProcessing';
2
- import { Cancel } from './types/loop';
3
2
  export interface IMrzCoords {
4
3
  locations: MRZLocation;
5
4
  color: 'green' | 'yellow';
@@ -8,9 +7,7 @@ export declare const loopTimeout: (ms: number) => Promise<unknown>;
8
7
  export declare const unmountIDVC: () => void;
9
8
  export declare const loop: () => Promise<false>;
10
9
  declare const _default: {
11
- loop: () => Promise<false>;
12
- stopProccesing: () => void;
13
- cancel: Cancel;
10
+ cancel: (topImage: any) => Promise<void>;
14
11
  unmountIDVC: () => void;
15
12
  };
16
13
  export default _default;
@@ -31,6 +31,7 @@ export declare class WeblibUI {
31
31
  private setCropFace;
32
32
  private initMainScreenComponents;
33
33
  private initStepsList;
34
+ updateInitScreenDocuments(allowedTypesIds: any): void;
34
35
  private initDocumentsList;
35
36
  private mainScreenEditButtonClick;
36
37
  private mainScreenControlButtonClick;
@@ -95,6 +95,14 @@ export interface IConfig {
95
95
  * This option allows the user to perform a 'submit' even if there are warnings
96
96
  */
97
97
  allowSubmitWithWarnings?: boolean;
98
+ /**
99
+ * This option allows you not to display the step selection screen when selecting a document.
100
+ */
101
+ autoStart?: boolean;
102
+ /**
103
+ * This option allows you to turn off step preview animations.
104
+ */
105
+ playPreviewAnimations?: boolean;
98
106
  /** callback-function which will be called after guidelines button. */
99
107
  clickGuidlines?: () => void;
100
108
  /** function which will be called after each step completes */
@@ -44,5 +44,6 @@ export declare class MeshFace {
44
44
  */
45
45
  calculateTurn(firstDistance: any, secondDistance: any): number;
46
46
  calculateDistance(): void;
47
+ allocate(): void;
47
48
  }
48
49
  export default MeshFace;
@@ -0,0 +1,9 @@
1
+ import { Component } from '../Component';
2
+ type StatusPlankState = {
3
+ status: 'ready' | 'warning' | 'success' | 'disabled';
4
+ };
5
+ export declare class StatusPlank extends Component<StatusPlankState> {
6
+ constructor(mountElement: any, state: StatusPlankState);
7
+ protected addEventListeners(): void;
8
+ }
9
+ export {};
@@ -6,7 +6,7 @@ type StepPreviewState = {
6
6
  export declare class StepPreview extends Component<StepPreviewState> {
7
7
  private backgroundElement;
8
8
  constructor(mountElement: any, state: StepPreviewState);
9
- showPreview(timeToShow: number): Promise<void>;
9
+ showPreview(timeToShow: number, isEnabled: boolean): Promise<void>;
10
10
  backToInitialState(): void;
11
11
  protected updateView(): void;
12
12
  protected addEventListeners(): void;
@@ -5,6 +5,7 @@ import { UiHints } from './UIHints';
5
5
  import Step from '../../Step';
6
6
  import { StepPreview } from './StepPreview/StepPreview';
7
7
  import { ControlButton } from '../ControlButton/ControlButton';
8
+ import { StatusPlank } from '../StatusPlank/StatusPlank';
8
9
  export type UpdateVideoWrapParams = {
9
10
  currentStepImg: string;
10
11
  currentStepObj: Step;
@@ -18,6 +19,7 @@ export declare class VideoWrapper {
18
19
  hints: UiHints;
19
20
  stepPreview: StepPreview;
20
21
  captureButton: ControlButton;
22
+ statusPlank: StatusPlank;
21
23
  video: HTMLVideoElement;
22
24
  videoWrap: HTMLDivElement;
23
25
  stepImage: HTMLDivElement;
@@ -28,6 +30,7 @@ export declare class VideoWrapper {
28
30
  private cameraErrorContainer;
29
31
  private cameraErrorHeader;
30
32
  private cameraErrorText;
33
+ private UIComponents;
31
34
  constructor(componentWrapper: HTMLElement);
32
35
  updateVideoWrap({ currentStepImg, currentStepObj, }: UpdateVideoWrapParams): void;
33
36
  setMirroring(isMirroring: boolean): void;
@@ -40,5 +43,7 @@ export declare class VideoWrapper {
40
43
  setCameraErrorText(header: string, text: string): void;
41
44
  showCameraError(): void;
42
45
  hideCameraError(): void;
46
+ changeType(step: Step): void;
47
+ remountUIComponents(): void;
43
48
  private getFakeContourWidth;
44
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idscan/idvc2",
3
- "version": "2.10.3",
3
+ "version": "2.11.0",
4
4
  "description": "component for the capturing documents",
5
5
  "main": "dist/idvc.js",
6
6
  "types": "dist/types/idvc.d.ts",