@idscan/idvc2 3.7.0 → 3.8.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.
@@ -1 +1,4 @@
1
- export declare const SHOW_PREVIEW_DELAY = 4000;
1
+ export declare const TIME_TO_SCALE = 1000;
2
+ export declare const TIME_TO_ROTATE = 1000;
3
+ export declare const TIME_TO_SCAN = 1000;
4
+ export declare const SHOW_PREVIEW_DELAY: number;
@@ -0,0 +1,3 @@
1
+ import type { StepType } from './stepsDescription';
2
+ import { DocumentTypeName } from './documentTypes';
3
+ export declare const checkIsNeedRotateCard: (stepType: StepType, documentTypeName: '' | DocumentTypeName) => boolean;
@@ -1,2 +1,5 @@
1
1
  import { StepTypeImageName } from '../environment/stepsDescription';
2
- export declare const getStepBackground: (stepType: StepTypeImageName) => string;
2
+ import { DocumentTypeName } from '../environment/documentTypes';
3
+ export declare const getFrontImageOfDocument: (documentTypeName: DocumentTypeName | '') => string;
4
+ export declare const getScanLineTranslateYRange: (stepType: StepTypeImageName, documentTypeName: DocumentTypeName | '') => readonly [string, string];
5
+ export declare const getStepBackground: (stepType: StepTypeImageName, documentTypeName: DocumentTypeName | '') => string | undefined;
@@ -70,7 +70,7 @@ export default class Step implements IStepCallback, IStepObj {
70
70
  stepTypeImageName: StepTypeImageName;
71
71
  shouldRecordMultiImages: boolean;
72
72
  delayUntilCaptureButtonVisible?: number;
73
- constructor(nameOrObj: string | IStepObj, type?: StepType, camera?: VideoFacingModeEnum, time?: number, img?: Base64Image | null);
73
+ constructor(nameOrObj: string | IStepObj);
74
74
  get isShowManualSwitchButton(): boolean;
75
75
  get capturingMode(): StepMode;
76
76
  static createStep(stepObj: IStepObj, currentDocumentType: DocumentTypeName | ''): Step;
@@ -4,7 +4,7 @@ import { CardStep } from '../CardStep/CardStep';
4
4
  import { VideoWrapper } from '../VideoWrapper/VideoWrapper';
5
5
  import { UploaderUI } from '../Uploader/UploaderUI';
6
6
  import { StepType } from '../../../environment/stepsDescription';
7
- import { ControlButton, ControlButtonClickedCustomEvent } from '../ControlButton/ControlButton';
7
+ import { ControlButton, ControlButtonClickedCustomEvent } from '../ControlButton';
8
8
  import { CallbackHandler, MessageBox } from '../MessageBox/MessageBox';
9
9
  import { DesktopNotification, DesktopNotificationVisibility } from '../DesktopNotification/DesktopNotification';
10
10
  import { LoaderUI } from '../Loader/LoaderUI';
@@ -1,4 +1,5 @@
1
1
  import { ComponentLit } from '../ComponentLit';
2
+ import { DocumentTypeName } from '../../../environment/documentTypes';
2
3
  import type { StepTypeImageName } from '../../../environment/stepsDescription';
3
4
  import type { ErrorCodes } from '../../../environment/langs';
4
5
  import Step from '../../Step';
@@ -9,6 +10,7 @@ export type UploaderState = {
9
10
  image: string;
10
11
  errorCode?: ErrorCodes;
11
12
  isBadImage?: boolean;
13
+ documentTypeName: DocumentTypeName | '';
12
14
  };
13
15
  export type UploaderUIEvents = {
14
16
  onFileInput: (event: Event) => void;
@@ -1,16 +1,19 @@
1
1
  import { ComponentLit } from '../../ComponentLit';
2
2
  import type { StepType } from '../../../../environment/stepsDescription';
3
+ import { DocumentTypeName } from '../../../../environment/documentTypes';
3
4
  type StepPreviewState = {
4
5
  stepType: StepType;
6
+ documentTypeName: DocumentTypeName | '';
5
7
  };
6
8
  export declare class StepPreview extends ComponentLit<StepPreviewState> {
7
- private backgroundElement;
9
+ #private;
8
10
  constructor(mountElement: any, state: StepPreviewState);
9
- showPreview(timeToShow: number, isEnabled: boolean): Promise<void>;
11
+ showPreview(isEnabled: boolean): Promise<void>;
12
+ stopAnimation: () => void;
10
13
  backToInitialState(): void;
11
14
  remount(): void;
12
- protected updateView(): void;
13
- private setStepBackground;
14
- private getStepTypeBackground;
15
+ protected updateView(): Promise<void>;
16
+ private updateStepBackground;
17
+ private setBackgroundMarkup;
15
18
  }
16
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idscan/idvc2",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "component for the capturing documents",
5
5
  "main": "dist/idvc.js",
6
6
  "types": "dist/types/idvc.d.ts",