idmission-web-sdk 1.0.17 → 1.0.19
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/common/debug.d.ts +2 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +4 -4
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +4 -4
- package/dist/components/customer_flows/CustomerIdentification.d.ts +4 -4
- package/dist/components/customer_flows/CustomerVerification.d.ts +4 -4
- package/dist/components/customer_flows/FaceValidation.d.ts +4 -4
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +4 -4
- package/dist/components/customer_flows/IdValidation.d.ts +4 -4
- package/dist/components/customer_flows/SignatureKYC.d.ts +4 -4
- package/dist/components/customer_flows/VideoIdValidation.d.ts +16 -0
- package/dist/components/video_id/IdVideoCapture.d.ts +6 -0
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +7 -0
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +23 -0
- package/dist/index.d.ts +15 -12
- package/dist/sdk2.cjs.development.js +385 -80
- 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 +384 -81
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +388 -83
- 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/stories/CustomerFlows/VideoIdValidation.stories.d.ts +29 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -306,8 +306,9 @@ export type DetectedObjectDebugBoxProps = {
|
|
|
306
306
|
obj: DetectedObject;
|
|
307
307
|
scaling: DebugScalingDetails;
|
|
308
308
|
flipX?: boolean;
|
|
309
|
+
color?: string;
|
|
309
310
|
};
|
|
310
|
-
export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, scaling: { horizontal, pageWidth, pageHeight, scaledWidth, scaledHeight, xOffset, yOffset, }, }: DetectedObjectDebugBoxProps): ReactElement;
|
|
311
|
+
export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, color, scaling: { horizontal, pageWidth, pageHeight, scaledWidth, scaledHeight, xOffset, yOffset, }, }: DetectedObjectDebugBoxProps): ReactElement;
|
|
311
312
|
export type SelfieCaptureFaceDebugBoxProps = {
|
|
312
313
|
face: Face;
|
|
313
314
|
scaling: DebugScalingDetails;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
4
|
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
@@ -19,7 +19,7 @@ export type CustomerBiometricsEnrollmentVerbiage = {
|
|
|
19
19
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
20
20
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
|
|
23
23
|
enrollmentId: string;
|
|
24
24
|
lang?: LangOption;
|
|
25
25
|
submissionToken: string;
|
|
@@ -47,5 +47,5 @@ export type CustomerBiometricsEnrollmentProps = {
|
|
|
47
47
|
geolocationEnabled?: boolean;
|
|
48
48
|
geolocationRequired?: boolean;
|
|
49
49
|
debugMode?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export declare const CustomerBiometricsEnrollment:
|
|
50
|
+
}
|
|
51
|
+
export declare const CustomerBiometricsEnrollment: FC<CustomerBiometricsEnrollmentProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
4
|
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
@@ -23,7 +23,7 @@ export type CustomerEnrollmentVerbiage = {
|
|
|
23
23
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
24
24
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
27
27
|
enrollmentId: string;
|
|
28
28
|
lang?: LangOption;
|
|
29
29
|
submissionToken: string;
|
|
@@ -61,5 +61,5 @@ export type CustomerEnrollmentProps = {
|
|
|
61
61
|
geolocationEnabled?: boolean;
|
|
62
62
|
geolocationRequired?: boolean;
|
|
63
63
|
debugMode?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export declare const CustomerIdAndBiometricsEnrollment:
|
|
64
|
+
}
|
|
65
|
+
export declare const CustomerIdAndBiometricsEnrollment: FC<CustomerEnrollmentProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { CustomerIdentificationAssets, CustomerIdentificationColors, CustomerIdentificationVerbiage } from '../customer_identification/CustomerIdentificationWizard';
|
|
4
4
|
import { LangOption } from '../../lib/locales';
|
|
5
|
-
export
|
|
5
|
+
export interface CustomerIdentificationProps extends PropsWithChildren {
|
|
6
6
|
lang?: LangOption;
|
|
7
7
|
submissionToken: string;
|
|
8
8
|
submissionEnvironment?: SubmissionEnvironment;
|
|
@@ -25,5 +25,5 @@ export type CustomerIdentificationProps = {
|
|
|
25
25
|
geolocationEnabled?: boolean;
|
|
26
26
|
geolocationRequired?: boolean;
|
|
27
27
|
debugMode?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare const CustomerIdentification:
|
|
28
|
+
}
|
|
29
|
+
export declare const CustomerIdentification: FC<CustomerIdentificationProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { LangOption } from '../../lib/locales';
|
|
4
4
|
import { CustomerVerificationAssets, CustomerVerificationColors, CustomerVerificationVerbiage } from '../customer_verification/CustomerVerificationWizard';
|
|
5
|
-
export
|
|
5
|
+
export interface CustomerVerificationProps extends PropsWithChildren {
|
|
6
6
|
enrollmentId: string;
|
|
7
7
|
lang?: LangOption;
|
|
8
8
|
submissionToken: string;
|
|
@@ -25,5 +25,5 @@ export type CustomerVerificationProps = {
|
|
|
25
25
|
geolocationEnabled?: boolean;
|
|
26
26
|
geolocationRequired?: boolean;
|
|
27
27
|
debugMode?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare const CustomerVerification:
|
|
28
|
+
}
|
|
29
|
+
export declare const CustomerVerification: FC<CustomerVerificationProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
4
|
import { LangOption } from '../../lib/locales';
|
|
5
|
-
export
|
|
5
|
+
export interface FaceValidationProps extends PropsWithChildren {
|
|
6
6
|
lang?: LangOption;
|
|
7
7
|
submissionToken: string;
|
|
8
8
|
submissionEnvironment?: SubmissionEnvironment;
|
|
@@ -24,5 +24,5 @@ export type FaceValidationProps = {
|
|
|
24
24
|
geolocationEnabled?: boolean;
|
|
25
25
|
geolocationRequired?: boolean;
|
|
26
26
|
debugMode?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare const FaceValidation:
|
|
27
|
+
}
|
|
28
|
+
export declare const FaceValidation: FC<FaceValidationProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
4
|
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
@@ -23,7 +23,7 @@ export type IdAndFaceValidationVerbiage = {
|
|
|
23
23
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
24
24
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
27
27
|
lang?: LangOption;
|
|
28
28
|
submissionToken: string;
|
|
29
29
|
submissionEnvironment?: SubmissionEnvironment;
|
|
@@ -58,5 +58,5 @@ export type IdAndFaceValidationProps = {
|
|
|
58
58
|
geolocationEnabled?: boolean;
|
|
59
59
|
geolocationRequired?: boolean;
|
|
60
60
|
debugMode?: boolean;
|
|
61
|
-
}
|
|
62
|
-
export declare const IdAndFaceValidation:
|
|
61
|
+
}
|
|
62
|
+
export declare const IdAndFaceValidation: FC<IdAndFaceValidationProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
4
4
|
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
@@ -15,7 +15,7 @@ export type IdValidationVerbiage = IdCaptureWizardVerbiage & {
|
|
|
15
15
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
16
16
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export interface IdValidationProps extends PropsWithChildren {
|
|
19
19
|
lang?: LangOption;
|
|
20
20
|
submissionToken: string;
|
|
21
21
|
submissionEnvironment?: SubmissionEnvironment;
|
|
@@ -47,5 +47,5 @@ export type IdValidationProps = {
|
|
|
47
47
|
geolocationEnabled?: boolean;
|
|
48
48
|
geolocationRequired?: boolean;
|
|
49
49
|
debugMode?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export declare const IdValidation:
|
|
50
|
+
}
|
|
51
|
+
export declare const IdValidation: FC<IdValidationProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { LangOption } from '../../lib/locales';
|
|
3
3
|
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
4
|
import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
5
|
-
export
|
|
5
|
+
export interface SignatureKYCProps extends PropsWithChildren {
|
|
6
6
|
lang?: LangOption;
|
|
7
7
|
submissionToken: string;
|
|
8
8
|
submissionEnvironment?: SubmissionEnvironment;
|
|
@@ -15,5 +15,5 @@ export type SignatureKYCProps = {
|
|
|
15
15
|
geolocationEnabled?: boolean;
|
|
16
16
|
geolocationRequired?: boolean;
|
|
17
17
|
debugMode?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const SignatureKYC:
|
|
18
|
+
}
|
|
19
|
+
export declare const SignatureKYC: FC<SignatureKYCProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
+
import { LangOption } from '../../lib/locales';
|
|
4
|
+
export interface VideoIdValidationProps extends PropsWithChildren {
|
|
5
|
+
lang?: LangOption;
|
|
6
|
+
submissionToken: string;
|
|
7
|
+
submissionEnvironment?: SubmissionEnvironment;
|
|
8
|
+
submissionUrl?: string;
|
|
9
|
+
onBeforeSubmit?: (request: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
10
|
+
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
11
|
+
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
12
|
+
geolocationEnabled?: boolean;
|
|
13
|
+
geolocationRequired?: boolean;
|
|
14
|
+
debugMode?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const VideoIdValidation: FC<VideoIdValidationProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export type IdVideoCaptureGuidesProps = {
|
|
3
|
+
borderWidth?: number;
|
|
4
|
+
borderColor?: string;
|
|
5
|
+
guideImageUrl?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const IdVideoCaptureGuides: ({ borderWidth, borderColor, guideImageUrl, }: IdVideoCaptureGuidesProps) => ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardProps, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
3
|
+
import { FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
+
export type VideoIdWizardAssets = {
|
|
5
|
+
idCapture?: IdCaptureWizardAssets;
|
|
6
|
+
};
|
|
7
|
+
export type VideoIdWizardColors = {
|
|
8
|
+
idCapture?: IdCaptureWizardColors;
|
|
9
|
+
faceLiveness?: FaceLivenessColors;
|
|
10
|
+
};
|
|
11
|
+
export type VideoIdWizardVerbiage = {
|
|
12
|
+
idCapture?: IdCaptureWizardVerbiage;
|
|
13
|
+
faceLiveness?: FaceLivenessVerbiage;
|
|
14
|
+
};
|
|
15
|
+
export type VideoIdWizardProps = {
|
|
16
|
+
idCaptureProps?: IdCaptureWizardProps;
|
|
17
|
+
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
18
|
+
assets?: VideoIdWizardAssets;
|
|
19
|
+
colors?: VideoIdWizardColors;
|
|
20
|
+
verbiage?: VideoIdWizardVerbiage;
|
|
21
|
+
debugMode?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const VideoIdWizard: ({ idCaptureProps, assets, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { IdValidation, IdValidationProps } from './components/customer_flows/IdValidation';
|
|
2
2
|
import { FaceValidation, FaceValidationProps } from './components/customer_flows/FaceValidation';
|
|
3
3
|
import { IdAndFaceValidation, IdAndFaceValidationProps } from './components/customer_flows/IdAndFaceValidation';
|
|
4
|
-
import {
|
|
4
|
+
import { CustomerEnrollmentProps, CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
|
|
5
5
|
import { CustomerVerification, CustomerVerificationProps } from './components/customer_flows/CustomerVerification';
|
|
6
6
|
import { CustomerIdentification, CustomerIdentificationProps } from './components/customer_flows/CustomerIdentification';
|
|
7
|
+
import { SignatureKYC, SignatureKYCProps } from './components/customer_flows/SignatureKYC';
|
|
8
|
+
import { VideoIdValidation, VideoIdValidationProps } from './components/customer_flows/VideoIdValidation';
|
|
7
9
|
import { preloadModels } from './lib/models/preloadModels';
|
|
8
10
|
import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
11
|
+
type TargetElement = Element | DocumentFragment | string | undefined;
|
|
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;
|
|
19
21
|
export type IDmissionSDK = {
|
|
20
22
|
renderIdValidation: typeof renderIdValidation;
|
|
21
23
|
renderFaceValidation: typeof renderFaceValidation;
|
|
@@ -25,6 +27,7 @@ export type IDmissionSDK = {
|
|
|
25
27
|
renderCustomerVerification: typeof renderCustomerVerification;
|
|
26
28
|
renderCustomerIdentification: typeof renderCustomerIdentification;
|
|
27
29
|
renderSignatureKYC: typeof renderSignatureKYC;
|
|
30
|
+
renderVideoIdValidation: typeof renderVideoIdValidation;
|
|
28
31
|
preloadModels: typeof preloadModels;
|
|
29
32
|
version: string;
|
|
30
33
|
ready: boolean;
|
|
@@ -32,4 +35,4 @@ export type IDmissionSDK = {
|
|
|
32
35
|
declare global {
|
|
33
36
|
var IDmissionSDK: IDmissionSDK;
|
|
34
37
|
}
|
|
35
|
-
export { preloadModels, IdValidation, FaceValidation, IdAndFaceValidation, CustomerIdAndBiometricsEnrollment, CustomerBiometricsEnrollment, CustomerVerification, CustomerIdentification, SignatureKYC, };
|
|
38
|
+
export { preloadModels, IdValidation, FaceValidation, IdAndFaceValidation, CustomerIdAndBiometricsEnrollment, CustomerBiometricsEnrollment, CustomerVerification, CustomerIdentification, SignatureKYC, VideoIdValidation, };
|