idmission-web-sdk 1.0.19 → 1.0.21
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/dist/components/video_id/IdVideoCapture.d.ts +11 -1
- package/dist/components/video_id/IdVideoCaptureFlipIdPrompt.d.ts +15 -0
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +3 -1
- package/dist/components/video_id/IdVideoCaptureSuccess.d.ts +20 -0
- package/dist/sdk2.cjs.development.js +396 -63
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +396 -63
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +396 -63
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
|
+
export type IdVideoCaptureVerbiage = {
|
|
4
|
+
idFrontInstructionText?: CustomerSuppliedVerbiage;
|
|
5
|
+
idBackInstructionText?: CustomerSuppliedVerbiage;
|
|
6
|
+
};
|
|
2
7
|
export type IdVideoCaptureProps = {
|
|
8
|
+
onComplete?: (videoUrl: string) => void;
|
|
3
9
|
onFaceNotDetected?: () => void;
|
|
10
|
+
idDetectionThreshold?: number;
|
|
11
|
+
idFocusThreshold?: number;
|
|
12
|
+
goodFramesThreshold?: number;
|
|
13
|
+
verbiage?: IdVideoCaptureVerbiage;
|
|
4
14
|
debugMode?: boolean;
|
|
5
15
|
};
|
|
6
|
-
export declare const IdVideoCapture: ({ onFaceNotDetected, debugMode, }: IdVideoCaptureProps) => ReactElement;
|
|
16
|
+
export declare const IdVideoCapture: ({ onComplete, onFaceNotDetected, idDetectionThreshold, idFocusThreshold, goodFramesThreshold, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
|
+
export type IdVideoCaptureFlipIdPromptAssets = {
|
|
4
|
+
frontImageUrl?: string;
|
|
5
|
+
backImageUrl?: string;
|
|
6
|
+
};
|
|
7
|
+
export type IdVideoCaptureFlipIdPromptVerbiage = {
|
|
8
|
+
instructionText?: CustomerSuppliedVerbiage;
|
|
9
|
+
};
|
|
10
|
+
export type IdVideoCaptureFlipIdPromptProps = {
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
assets?: IdVideoCaptureFlipIdPromptAssets;
|
|
13
|
+
verbiage?: IdVideoCaptureFlipIdPromptVerbiage;
|
|
14
|
+
};
|
|
15
|
+
export declare const IdVideoCaptureFlipIdPrompt: ({ style, assets, verbiage, }: IdVideoCaptureFlipIdPromptProps) => ReactElement;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
export type IdVideoCaptureGuidesProps = {
|
|
3
|
+
instructionText?: string;
|
|
3
4
|
borderWidth?: number;
|
|
4
5
|
borderColor?: string;
|
|
5
6
|
guideImageUrl?: string;
|
|
7
|
+
flipping?: boolean;
|
|
6
8
|
};
|
|
7
|
-
export declare const IdVideoCaptureGuides: ({ borderWidth, borderColor, guideImageUrl, }: IdVideoCaptureGuidesProps) => ReactElement;
|
|
9
|
+
export declare const IdVideoCaptureGuides: ({ instructionText, borderWidth, borderColor, guideImageUrl, flipping, }: IdVideoCaptureGuidesProps) => ReactElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
|
+
export type IdVideoCaptureSuccessColors = {
|
|
5
|
+
retryBtn?: LoaderButtonColors;
|
|
6
|
+
doneBtn?: LoaderButtonColors;
|
|
7
|
+
};
|
|
8
|
+
export type IdVideoCaptureSuccessVerbiage = {
|
|
9
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
10
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
11
|
+
doneBtnText?: CustomerSuppliedVerbiage;
|
|
12
|
+
};
|
|
13
|
+
export type IdVideoCaptureSuccessProps = {
|
|
14
|
+
videoUrl: string;
|
|
15
|
+
onDoneClick?: () => void;
|
|
16
|
+
onRetryClick?: () => void;
|
|
17
|
+
colors?: IdVideoCaptureSuccessColors;
|
|
18
|
+
verbiage?: IdVideoCaptureSuccessVerbiage;
|
|
19
|
+
};
|
|
20
|
+
export declare const IdVideoCaptureSuccess: ({ videoUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: IdVideoCaptureSuccessProps) => ReactElement;
|