@idscan/idvc2 3.3.0 → 3.4.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.
@@ -24,6 +24,7 @@ export type StepConfig = {
24
24
  enableDesktopNotification?: boolean;
25
25
  enableFourCornerCapture?: boolean;
26
26
  shouldRecordVideo?: boolean;
27
+ delayUntilCaptureButtonVisible?: number;
27
28
  };
28
29
  export type DocumentType = {
29
30
  type: DocumentTypeName;
@@ -52,6 +52,7 @@ interface IHintTexts {
52
52
  holdCamera: string;
53
53
  captureCorners: string;
54
54
  frontSideNotMatch: string;
55
+ demandCaptureMessage: string;
55
56
  }
56
57
  interface IGeneral {
57
58
  step: string;
@@ -3,7 +3,8 @@ export interface IMrzCoords {
3
3
  locations: MRZLocation;
4
4
  color: 'green' | 'yellow';
5
5
  }
6
- export declare const loopTimeout: (ms: number) => Promise<unknown>;
6
+ export declare const loopTimeout: (ms: number) => Promise<void>;
7
+ export declare const demandCapturingTimeout: (ms: number) => Promise<void>;
7
8
  export declare const unmountIDVC: () => void;
8
9
  export declare const loop: () => Promise<false>;
9
10
  declare const _default: {
@@ -21,6 +21,7 @@ export interface IStepObj {
21
21
  configs?: StepConfig[];
22
22
  stepTypeImageName: StepTypeImageName;
23
23
  shouldRecordVideo?: boolean;
24
+ delayUntilCaptureButtonVisible?: number;
24
25
  }
25
26
  export interface IStepCallback {
26
27
  /** base64 encoded step image */
@@ -68,6 +69,7 @@ export default class Step implements IStepCallback, IStepObj {
68
69
  cameraInfo: Record<string, any>;
69
70
  stepTypeImageName: StepTypeImageName;
70
71
  shouldRecordVideo: boolean;
72
+ delayUntilCaptureButtonVisible?: number;
71
73
  constructor(nameOrObj: string | IStepObj, type?: StepType, camera?: VideoFacingModeEnum, time?: number, img?: Base64Image | null);
72
74
  get isShowManualSwitchButton(): boolean;
73
75
  get capturingMode(): StepMode;
@@ -0,0 +1,2 @@
1
+ import { TemplateResult } from 'lit-html';
2
+ export declare const iconTemplate: (type: string) => TemplateResult;
@@ -31,6 +31,7 @@ export declare class VideoWrapper {
31
31
  private cameraErrorHeader;
32
32
  private cameraErrorText;
33
33
  private UIComponents;
34
+ private isShowDemandButton;
34
35
  constructor(componentWrapper: HTMLElement);
35
36
  updateVideoWrap({ currentStepImg, currentStepObj, }: UpdateVideoWrapParams): void;
36
37
  setMirroring(isMirroring: boolean): void;
@@ -39,6 +40,7 @@ export declare class VideoWrapper {
39
40
  setFakeContourStyles(width: number): void;
40
41
  hideVideoError(): void;
41
42
  showVideoError(errorCode: string): void;
43
+ showDemandButton(): void;
42
44
  private init;
43
45
  setCameraErrorText(header: string, text: string): void;
44
46
  showCameraError(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idscan/idvc2",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "component for the capturing documents",
5
5
  "main": "dist/idvc.js",
6
6
  "types": "dist/types/idvc.d.ts",
@@ -1 +0,0 @@
1
- export declare const template: (state: any) => import("lit-html").TemplateResult<1>;