@authme/identity-verification 2.7.2 → 2.7.4-patch.1

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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@authme/identity-verification",
3
- "version": "2.7.2",
3
+ "version": "2.7.4-patch.1",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
6
  "lottie-web": "^5.9.2",
7
7
  "rxjs": "^7.4.0",
8
- "@authme/core": "2.7.2",
9
- "@authme/engine": "2.7.2",
10
- "@authme/id-recognition": "2.7.2",
11
- "@authme/util": "2.7.2",
12
- "@authme/liveness": "2.7.2"
8
+ "@authme/core": "2.7.4-patch.1",
9
+ "@authme/engine": "2.7.4-patch.1",
10
+ "@authme/id-recognition": "2.7.4-patch.1",
11
+ "@authme/util": "2.7.4-patch.1",
12
+ "@authme/liveness": "2.7.4-patch.1"
13
13
  },
14
14
  "module": "./index.js",
15
15
  "main": "./index.cjs",
@@ -56,6 +56,7 @@ export interface IdRecognitionConfig {
56
56
  antiFraudIMetalTagValidCountTh?: number | false;
57
57
  cardTypes?: string[];
58
58
  cardTypeConfigs?: object[];
59
+ captureTimeout?: number;
59
60
  }
60
61
  export interface GetCardTypeAndCountryConfig {
61
62
  supportCountries: CountryCode[];
@@ -73,6 +74,7 @@ export interface OcrEngineConfig {
73
74
  fraudTimeout: number;
74
75
  fraudMaxFps: number;
75
76
  expiredIn?: number;
77
+ captureTimeout?: number;
76
78
  }
77
79
  export interface LivenessEngineConfig {
78
80
  fasThreshold: number;
@@ -5,6 +5,7 @@ export declare const renderExtraUI: (config: {
5
5
  titleTextPanel: HTMLDivElement;
6
6
  titleText: HTMLSpanElement;
7
7
  confirmImageContainer: HTMLDivElement;
8
+ confirmContainer: HTMLDivElement;
8
9
  checkOtherImageContainer: HTMLDivElement;
9
10
  imageTypeText: HTMLDivElement;
10
11
  retryBtn: HTMLButtonElement;
@@ -23,7 +23,7 @@ export declare function startOCR(config: {
23
23
  number,
24
24
  number
25
25
  ]
26
- ], type: EAuthMeCardClass, setBorderType: any, setCardBorderColor: any, setBorderSuccess: any, scanAnimationContainer: HTMLElement, successAnimationContainer: HTMLElement, frameImage: any, frameText: any, faceMode: FacingMode, cardType: string, retry?: boolean) => Promise<boolean>;
26
+ ], type: EAuthMeCardClass, setBorderType: any, setCardBorderColor: any, setBorderSuccess: any, scanAnimationContainer: HTMLElement, successContainer: HTMLElement, frameImage: any, frameText: any, faceMode: FacingMode, cardType: string, retry?: boolean) => Promise<boolean>;
27
27
  thicknessStart?: (points: [
28
28
  [
29
29
  number,
@@ -41,7 +41,7 @@ export declare function startOCR(config: {
41
41
  number,
42
42
  number
43
43
  ]
44
- ], type: EAuthMeCardClass, setBorderType: any, setCardBorderColor: any, setBorderSuccess: any, scanAnimationContainer: HTMLElement, successAnimationContainer: HTMLElement, frameImage: any, frameText: any, faceMode: FacingMode, cardType: string, cardTypeConfig: object, retry?: boolean) => Promise<{
44
+ ], type: EAuthMeCardClass, setBorderType: any, setCardBorderColor: any, setBorderSuccess: any, scanAnimationContainer: HTMLElement, successContainer: HTMLElement, frameImage: any, frameText: any, faceMode: FacingMode, cardType: string, cardTypeConfig: object, retry?: boolean) => Promise<{
45
45
  thicknessWelcomeSetting: WelcomePageConfig;
46
46
  }>;
47
47
  onThicknessFrame?: (img: Uint8ClampedArray, base64: {
@@ -56,7 +56,12 @@ export declare function startOCR(config: {
56
56
  jpg: string;
57
57
  png: string;
58
58
  }, cardType?: string, type?: EAuthMeCardClass) => Promise<CardOCRResult | PassportResult>;
59
- confirmImage: (type: EAuthMeCardClass, cardType: string) => Promise<boolean>;
59
+ confirmImage: (option: {
60
+ type: EAuthMeCardClass;
61
+ cardType: string;
62
+ imageData?: Blob;
63
+ manual?: boolean;
64
+ }) => Promise<boolean>;
60
65
  ocrCancel?: (type: EAuthMeCardClass, cardType: string, imageData?: Blob) => Promise<boolean>;
61
66
  antiFraudStart: (points: [
62
67
  [
@@ -75,7 +80,7 @@ export declare function startOCR(config: {
75
80
  number,
76
81
  number
77
82
  ]
78
- ], setBorderType: any, setCardBorderColor: any, setBorderSuccess: any, scanAnimationContainer: HTMLElement, successAnimationContainer: HTMLElement, frameImage: any, frameText: any, faceMode: FacingMode) => Promise<boolean>;
83
+ ], setBorderType: any, setCardBorderColor: any, setBorderSuccess: any, scanAnimationContainer: HTMLElement, successContainer: HTMLElement, frameImage: any, frameText: any, faceMode: FacingMode) => Promise<boolean>;
79
84
  onAntiFraudFrame: (data: Uint8ClampedArray) => Promise<IDCardAntiFraudResult>;
80
85
  setFrameSize: (width: number, height: number, points?: [
81
86
  [
@@ -51,7 +51,6 @@ export interface lottieSuccessSetting {
51
51
  export declare function setHtmlRotate(htmlElement: HTMLElement, direction: OcrRotateAnimationName): void;
52
52
  export declare function setHtmlRotateNew(htmlElement: HTMLElement, direction: OcrRotateAnimationName): void;
53
53
  export declare const initScanAnimation: (params: lottieScanSetting) => void;
54
- export declare const initSuccessAnimation: (params: lottieSuccessSetting) => void;
55
54
  export declare const renderCameraSwitch: (config: {
56
55
  container: HTMLDivElement;
57
56
  }) => {
@@ -73,11 +72,12 @@ export declare const renderOCRUI: (config: {
73
72
  statusTextPanel: HTMLDivElement;
74
73
  lottieMask: HTMLDivElement;
75
74
  arrowAnimationContainer: HTMLDivElement;
76
- successAnimationContainer: HTMLDivElement;
77
- successAnimationDom: HTMLDivElement;
75
+ successContainer: HTMLDivElement;
76
+ successBlockDom: HTMLDivElement;
78
77
  scanAnimationContainer: HTMLDivElement;
79
78
  antiFraudInstructionAnimationContainer: HTMLDivElement;
80
79
  confirmImageContainer: HTMLDivElement;
80
+ confirmContainer: HTMLDivElement;
81
81
  imageTypeText: HTMLDivElement;
82
82
  statementContainer: HTMLDivElement;
83
83
  retryBtn: HTMLButtonElement;
@@ -1,4 +1,5 @@
1
1
  export * from './thickness';
2
2
  export * from './ui/button';
3
+ export * from './ui/toast';
3
4
  export * from './utilities/index';
4
5
  export * from './interface/index';
@@ -73,4 +73,4 @@ export declare const startThickness: (type: EAuthMeCardClass, cardType: string,
73
73
  strokeOpacity?: number;
74
74
  mirrored?: boolean;
75
75
  color?: string;
76
- }) => void, setBorderSuccess: (color: string, opacity: number) => void, scanAnimationContainer: HTMLDivElement, successAnimationContainer: HTMLDivElement, frameImage: (faceMode: FacingMode, zIndex: number, base64: string, color: string, opacity: number) => void, frameText: (zIndex: number, text: string, color: string, opacity: number) => void, facingMode: FacingMode, ocrEngineConfig: OcrEngineConfig, sdkFlowTimeout: NodeJS.Timeout | undefined, makeSDKFlowTimeout: (expiredIn: number) => NodeJS.Timeout, image: HTMLCanvasElement, video: HTMLVideoElement, retryBtn: HTMLButtonElement, completeBtn: HTMLButtonElement, confirmImageContainer: HTMLDivElement) => any;
76
+ }) => void, setBorderSuccess: (color: string, opacity: number) => void, scanAnimationContainer: HTMLDivElement, successAnimationContainer: HTMLDivElement, frameImage: (faceMode: FacingMode, zIndex: number, base64: string, color: string, opacity: number) => void, frameText: (zIndex: number, text: string, color: string, opacity: number) => void, facingMode: FacingMode, ocrEngineConfig: OcrEngineConfig, sdkFlowTimeout: NodeJS.Timeout | undefined, makeSDKFlowTimeout: (expiredIn: number) => NodeJS.Timeout, image: HTMLCanvasElement, video: HTMLVideoElement, retryBtn: HTMLButtonElement, completeBtn: HTMLButtonElement, confirmImageContainer: HTMLDivElement, confrimContainer: HTMLDivElement) => any;
@@ -0,0 +1,7 @@
1
+ export declare const toast: (arg: {
2
+ message: string;
3
+ duration?: number;
4
+ transition?: boolean;
5
+ }) => {
6
+ clear: () => void;
7
+ };
@@ -1,6 +1,8 @@
1
1
  export declare const tiltFrame: (isTilt: boolean) => void;
2
2
  export declare const resetFrame: () => void;
3
3
  export declare const countdownTimer: (time: number, doSomething?: any) => {
4
+ pause: () => number;
5
+ clear: () => number;
4
6
  init: () => void;
5
7
  end: () => boolean;
6
8
  };