@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.
- package/README.md +3 -0
- package/dist/idvc.js +1 -1
- package/dist/idvc.js.gzip +0 -0
- package/dist/index.html +8 -0
- package/dist/js/environment/previewAnimation.ts +9 -0
- package/dist/networks/Face-chunk.js +1 -1
- package/dist/types/constatnts/animations.d.ts +4 -1
- package/dist/types/environment/previewAnimation.d.ts +3 -0
- package/dist/types/helpers/step-background.d.ts +4 -1
- package/dist/types/modules/Step.d.ts +1 -1
- package/dist/types/modules/ui/MainScreen/MainScreen.d.ts +1 -1
- package/dist/types/modules/ui/Uploader/UploaderUI.d.ts +2 -0
- package/dist/types/modules/ui/VideoWrapper/StepPreview/StepPreview.d.ts +8 -5
- package/package.json +1 -1
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { StepTypeImageName } from '../environment/stepsDescription';
|
|
2
|
-
|
|
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
|
|
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
|
|
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
|
|
9
|
+
#private;
|
|
8
10
|
constructor(mountElement: any, state: StepPreviewState);
|
|
9
|
-
showPreview(
|
|
11
|
+
showPreview(isEnabled: boolean): Promise<void>;
|
|
12
|
+
stopAnimation: () => void;
|
|
10
13
|
backToInitialState(): void;
|
|
11
14
|
remount(): void;
|
|
12
|
-
protected updateView(): void
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
+
protected updateView(): Promise<void>;
|
|
16
|
+
private updateStepBackground;
|
|
17
|
+
private setBackgroundMarkup;
|
|
15
18
|
}
|
|
16
19
|
export {};
|