idmission-web-sdk 1.0.18 → 1.0.20
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/index.d.ts +9 -9
- package/dist/sdk2.cjs.development.js +394 -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 +394 -63
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +394 -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,15 +9,15 @@ import { VideoIdValidation, VideoIdValidationProps } from './components/customer
|
|
|
9
9
|
import { preloadModels } from './lib/models/preloadModels';
|
|
10
10
|
import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
|
|
11
11
|
type TargetElement = Element | DocumentFragment | string | undefined;
|
|
12
|
-
export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) =>
|
|
13
|
-
export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) =>
|
|
14
|
-
export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) =>
|
|
15
|
-
export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) =>
|
|
16
|
-
export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) =>
|
|
17
|
-
export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) =>
|
|
18
|
-
export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) =>
|
|
19
|
-
export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) =>
|
|
20
|
-
export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) =>
|
|
12
|
+
export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => Element | DocumentFragment;
|
|
13
|
+
export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => Element | DocumentFragment;
|
|
14
|
+
export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => Element | DocumentFragment;
|
|
15
|
+
export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
|
|
16
|
+
export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
|
|
17
|
+
export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => Element | DocumentFragment;
|
|
18
|
+
export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => Element | DocumentFragment;
|
|
19
|
+
export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => Element | DocumentFragment;
|
|
20
|
+
export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => Element | DocumentFragment;
|
|
21
21
|
export type IDmissionSDK = {
|
|
22
22
|
renderIdValidation: typeof renderIdValidation;
|
|
23
23
|
renderFaceValidation: typeof renderFaceValidation;
|