idmission-web-sdk 1.0.72 → 1.0.73
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/additional_document_capture/AdditionalDocumentCapture.d.ts +12 -1
- package/dist/components/additional_document_capture/AdditionalDocumentCaptureWizard.d.ts +4 -2
- package/dist/components/common/SelfieProgressPreview.d.ts +22 -5
- package/dist/components/common/signature.d.ts +5 -5
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +12 -4
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +14 -5
- package/dist/components/customer_flows/CustomerIdentification.d.ts +3 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +3 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +14 -5
- package/dist/components/customer_flows/IdValidation.d.ts +8 -4
- package/dist/components/customer_flows/SignatureKYC.d.ts +3 -1
- package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts +7 -2
- package/dist/components/customer_identification/CustomerIdentificationFailure.d.ts +12 -1
- package/dist/components/customer_identification/CustomerIdentificationSuccess.d.ts +12 -1
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +11 -5
- package/dist/components/customer_verification/CustomerVerificationCapture.d.ts +7 -2
- package/dist/components/customer_verification/CustomerVerificationFailure.d.ts +12 -1
- package/dist/components/customer_verification/CustomerVerificationSuccess.d.ts +12 -1
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +11 -5
- package/dist/components/face_liveness/FaceCaptureGuideOverlay.d.ts +6 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +7 -2
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts +12 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +4 -2
- package/dist/components/fallback_flows/IdCapture.d.ts +16 -1
- package/dist/components/fallback_flows/SelfieCapture.d.ts +13 -1
- package/dist/components/id_capture/DocumentCaptureGuideOverlay.d.ts +280 -6
- package/dist/components/id_capture/FlipIdPrompt.d.ts +0 -1
- package/dist/components/id_capture/IdCapture.d.ts +2 -0
- package/dist/components/id_capture/IdCaptureWizard.d.ts +3 -2
- package/dist/components/selfie_capture/SelfieCapture.d.ts +13 -1
- package/dist/components/signature_capture/SignatureCapture.d.ts +17 -4
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureCapture.d.ts +15 -1
- package/dist/components/video_signature_capture/VideoSignatureSuccess.d.ts +12 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +11 -4
- package/dist/sdk2.cjs.development.js +884 -723
- 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 +884 -723
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +884 -723
- 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/Components/AdditionalDocumentCapture.stories.d.ts +12 -5
- package/dist/stories/Components/SignatureCapture.stories.d.ts +17 -0
- package/dist/stories/Components/VideoSignatureCapture.stories.d.ts +19 -0
- package/dist/stories/FallbackFlows/IdCapture.stories.d.ts +12 -4
- package/dist/stories/FallbackFlows/SelfieCapture.stories.d.ts +12 -4
- package/dist/themes/index.d.ts +91 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/video_signature_capture/VideoSignatureLoadingOverlay.d.ts +0 -8
- package/dist/stories/Components/SignatureCapture/SignatureCapture.stories.d.ts +0 -7
- package/dist/stories/Components/SignatureCapture/VideoSignatureCapture.stories.d.ts +0 -12
|
@@ -9,13 +9,24 @@ export type UploadedDocument = {
|
|
|
9
9
|
documentName: string;
|
|
10
10
|
additionalDocument: string | Record<string, string>;
|
|
11
11
|
};
|
|
12
|
+
export type AdditionalDocumentCaptureClassNames = {
|
|
13
|
+
container?: string;
|
|
14
|
+
inner?: string;
|
|
15
|
+
heading?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
buttonsRow?: string;
|
|
18
|
+
captureBtn?: string;
|
|
19
|
+
nextBtn?: string;
|
|
20
|
+
};
|
|
12
21
|
export type AdditionalDocumentCaptureVerbiage = {
|
|
13
22
|
headingText?: CustomerSuppliedVerbiage;
|
|
23
|
+
captureBtnText?: CustomerSuppliedVerbiage;
|
|
14
24
|
nextBtnText?: CustomerSuppliedVerbiage;
|
|
15
25
|
};
|
|
16
26
|
export type AdditionalDocumentCaptureProps = {
|
|
17
27
|
document: AdditionalDocument;
|
|
18
28
|
onComplete?: (uploadedDocument: UploadedDocument) => void;
|
|
29
|
+
classNames?: AdditionalDocumentCaptureClassNames;
|
|
19
30
|
verbiage?: AdditionalDocumentCaptureVerbiage;
|
|
20
31
|
};
|
|
21
|
-
export declare const AdditionalDocumentCapture: ({ document, onComplete, verbiage: rawVerbiage, }: AdditionalDocumentCaptureProps) => ReactElement;
|
|
32
|
+
export declare const AdditionalDocumentCapture: ({ document, onComplete, classNames, verbiage: rawVerbiage, }: AdditionalDocumentCaptureProps) => ReactElement;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { AdditionalDocument, AdditionalDocumentCaptureVerbiage, UploadedDocument } from './AdditionalDocumentCapture';
|
|
2
|
+
import { AdditionalDocument, AdditionalDocumentCaptureClassNames, AdditionalDocumentCaptureVerbiage, UploadedDocument } from './AdditionalDocumentCapture';
|
|
3
|
+
export type AdditionalDocumentCaptureWizardClassNames = AdditionalDocumentCaptureClassNames;
|
|
3
4
|
export type AdditionalDocumentCaptureWizardVerbiage = AdditionalDocumentCaptureVerbiage;
|
|
4
5
|
export type AdditionalDocumentCaptureWizardProps = {
|
|
5
6
|
documents: AdditionalDocument[];
|
|
6
7
|
onComplete?: (uploadedDocuments: UploadedDocument[]) => void;
|
|
8
|
+
classNames?: AdditionalDocumentCaptureWizardClassNames;
|
|
7
9
|
verbiage?: AdditionalDocumentCaptureWizardVerbiage;
|
|
8
10
|
};
|
|
9
|
-
export declare const AdditionalDocumentCaptureWizard: ({ documents, onComplete, verbiage, }: AdditionalDocumentCaptureWizardProps) => ReactElement;
|
|
11
|
+
export declare const AdditionalDocumentCaptureWizard: ({ documents, onComplete, classNames, verbiage, }: AdditionalDocumentCaptureWizardProps) => ReactElement;
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type IdCaptureImagePreviewClassNames = {
|
|
3
|
+
container?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
imageContainer?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
};
|
|
8
|
+
export type IdCaptureImagePreviewProps = {
|
|
9
|
+
classNames?: IdCaptureImagePreviewClassNames;
|
|
10
|
+
text?: string;
|
|
4
11
|
imageUrl: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const
|
|
12
|
+
};
|
|
13
|
+
export declare const IdCaptureImagePreview: ({ classNames, text, imageUrl, }: IdCaptureImagePreviewProps) => React.JSX.Element;
|
|
14
|
+
export type SelfieProgressPreviewClassNames = {
|
|
15
|
+
container?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
spinner?: string;
|
|
18
|
+
imageContainer?: string;
|
|
19
|
+
image?: string;
|
|
20
|
+
};
|
|
21
|
+
export type SelfieProgressPreviewProps = {
|
|
22
|
+
classNames?: SelfieProgressPreviewClassNames;
|
|
7
23
|
text: string;
|
|
8
24
|
imageUrl: string;
|
|
9
|
-
}
|
|
25
|
+
};
|
|
26
|
+
export declare const SelfieProgressPreview: ({ classNames, text, imageUrl, }: SelfieProgressPreviewProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const SignaturePaperBacking: import("styled-components").IStyledComponent<"web", {
|
|
4
4
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
5
5
|
key?: import("react").Key | null | undefined;
|
|
6
6
|
defaultChecked?: boolean | undefined;
|
|
@@ -272,7 +272,7 @@ export declare const SignatureCanvasContainer: import("styled-components").IStyl
|
|
|
272
272
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
273
273
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
274
274
|
}>;
|
|
275
|
-
export declare const
|
|
275
|
+
export declare const SignatureCanvasContainer: import("styled-components").IStyledComponent<"web", {
|
|
276
276
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
277
277
|
key?: import("react").Key | null | undefined;
|
|
278
278
|
defaultChecked?: boolean | undefined;
|
|
@@ -544,7 +544,7 @@ export declare const SignaturePad: import("styled-components").IStyledComponent<
|
|
|
544
544
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
545
545
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
546
546
|
}>;
|
|
547
|
-
export declare const
|
|
547
|
+
export declare const SignaturePad: import("styled-components").IStyledComponent<"web", {
|
|
548
548
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
549
549
|
key?: import("react").Key | null | undefined;
|
|
550
550
|
defaultChecked?: boolean | undefined;
|
|
@@ -816,8 +816,7 @@ export declare const SignatureButtonsContainer: import("styled-components").ISty
|
|
|
816
816
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
817
817
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
818
818
|
}>;
|
|
819
|
-
export declare const
|
|
820
|
-
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
819
|
+
export declare const SignatureButtonsContainer: import("styled-components").IStyledComponent<"web", {
|
|
821
820
|
key?: import("react").Key | null | undefined;
|
|
822
821
|
defaultChecked?: boolean | undefined;
|
|
823
822
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -1087,4 +1086,5 @@ export declare const SignaturePaperBacking: import("styled-components").IStyledC
|
|
|
1087
1086
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
1088
1087
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1089
1088
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1089
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
1090
1090
|
}>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
-
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
3
|
+
import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
+
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
5
5
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
6
6
|
import { LangOption } from '../../lib/locales';
|
|
7
|
-
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
8
|
-
import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
7
|
+
import { SignatureCaptureClassNames, SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
8
|
+
import { VideoSignatureClassNames, VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
9
9
|
import { ThemeInput } from '../../themes';
|
|
10
10
|
export type CustomerBiometricsEnrollmentAssets = {
|
|
11
11
|
faceLiveness?: FaceLivenessAssets;
|
|
12
12
|
};
|
|
13
|
+
export type CustomerBiometricsEnrollmentClassNames = {
|
|
14
|
+
faceLiveness?: FaceLivenessClassNames;
|
|
15
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardClassNames;
|
|
16
|
+
signatureCapture?: SignatureCaptureClassNames;
|
|
17
|
+
videoSignatureCapture?: VideoSignatureClassNames;
|
|
18
|
+
};
|
|
13
19
|
export type CustomerBiometricsEnrollmentColors = {
|
|
14
20
|
faceLiveness?: FaceLivenessColors;
|
|
15
21
|
videoSignatureCapture?: VideoSignatureColors;
|
|
@@ -73,6 +79,8 @@ export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
|
|
|
73
79
|
theme?: ThemeInput;
|
|
74
80
|
/** Object containing any asset overrides. */
|
|
75
81
|
assets?: CustomerBiometricsEnrollmentAssets;
|
|
82
|
+
/** Object containing any classNames for inner components. **/
|
|
83
|
+
classNames?: CustomerBiometricsEnrollmentClassNames;
|
|
76
84
|
/** Object containing any color overrides. */
|
|
77
85
|
colors?: CustomerBiometricsEnrollmentColors;
|
|
78
86
|
/** Object containing any verbiage overrides. */
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CardData, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
-
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
5
|
-
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
3
|
+
import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
+
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
5
|
+
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
7
7
|
import { LangOption } from '../../lib/locales';
|
|
8
|
-
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
9
|
-
import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
8
|
+
import { SignatureCaptureClassNames, SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
9
|
+
import { VideoSignatureClassNames, VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
10
10
|
import { ThemeInput } from '../../themes';
|
|
11
11
|
export type CustomerEnrollmentAssets = {
|
|
12
12
|
idCapture?: IdCaptureWizardAssets;
|
|
13
13
|
faceLiveness?: FaceLivenessAssets;
|
|
14
14
|
};
|
|
15
|
+
export type CustomerEnrollmentClassNames = {
|
|
16
|
+
idCapture?: IdCaptureWizardClassNames;
|
|
17
|
+
faceLiveness?: FaceLivenessClassNames;
|
|
18
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardClassNames;
|
|
19
|
+
signatureCapture?: SignatureCaptureClassNames;
|
|
20
|
+
videoSignatureCapture?: VideoSignatureClassNames;
|
|
21
|
+
};
|
|
15
22
|
export type CustomerEnrollmentColors = {
|
|
16
23
|
idCapture?: IdCaptureWizardColors;
|
|
17
24
|
faceLiveness?: FaceLivenessColors;
|
|
@@ -105,6 +112,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
105
112
|
theme?: ThemeInput;
|
|
106
113
|
/** Object containing any asset overrides. */
|
|
107
114
|
assets?: CustomerEnrollmentAssets;
|
|
115
|
+
/** Object containing any classNames for inner components. **/
|
|
116
|
+
classNames?: CustomerEnrollmentClassNames;
|
|
108
117
|
/** Object containing any color overrides. */
|
|
109
118
|
colors?: CustomerEnrollmentColors;
|
|
110
119
|
/** Object containing any verbiage overrides. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { CustomerIdentificationAssets, CustomerIdentificationColors, CustomerIdentificationVerbiage } from '../customer_identification/CustomerIdentificationWizard';
|
|
3
|
+
import { CustomerIdentificationAssets, CustomerIdentificationClassNames, CustomerIdentificationColors, CustomerIdentificationVerbiage } from '../customer_identification/CustomerIdentificationWizard';
|
|
4
4
|
import { LangOption } from '../../lib/locales';
|
|
5
5
|
import { ThemeInput } from '../../themes';
|
|
6
6
|
export interface CustomerIdentificationProps extends PropsWithChildren {
|
|
@@ -47,6 +47,8 @@ export interface CustomerIdentificationProps extends PropsWithChildren {
|
|
|
47
47
|
theme?: ThemeInput;
|
|
48
48
|
/** Object containing any asset overrides. */
|
|
49
49
|
assets?: CustomerIdentificationAssets;
|
|
50
|
+
/** Object containing any classNames for inner components. **/
|
|
51
|
+
classNames?: CustomerIdentificationClassNames;
|
|
50
52
|
/** Object containing any color overrides. */
|
|
51
53
|
colors?: CustomerIdentificationColors;
|
|
52
54
|
/** Object containing any verbiage overrides. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { LangOption } from '../../lib/locales';
|
|
4
|
-
import { CustomerVerificationAssets, CustomerVerificationColors, CustomerVerificationVerbiage } from '../customer_verification/CustomerVerificationWizard';
|
|
4
|
+
import { CustomerVerificationAssets, CustomerVerificationClassNames, CustomerVerificationColors, CustomerVerificationVerbiage } from '../customer_verification/CustomerVerificationWizard';
|
|
5
5
|
import { ThemeInput } from '../../themes';
|
|
6
6
|
export interface CustomerVerificationProps extends PropsWithChildren {
|
|
7
7
|
/** The unique identifier to match from previously enrolled customers. */
|
|
@@ -34,6 +34,8 @@ export interface CustomerVerificationProps extends PropsWithChildren {
|
|
|
34
34
|
theme?: ThemeInput;
|
|
35
35
|
/** Object containing any asset overrides. */
|
|
36
36
|
assets?: CustomerVerificationAssets;
|
|
37
|
+
/** Object containing any classNames for inner components. **/
|
|
38
|
+
classNames?: CustomerVerificationClassNames;
|
|
37
39
|
/** Object containing any color overrides. */
|
|
38
40
|
colors?: CustomerVerificationColors;
|
|
39
41
|
/** Object containing any verbiage overrides. */
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CardData, LivenessCheckRequest, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
-
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
5
|
-
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
3
|
+
import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
+
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
5
|
+
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
7
7
|
import { LangOption } from '../../lib/locales';
|
|
8
|
-
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
9
|
-
import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
8
|
+
import { SignatureCaptureClassNames, SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
9
|
+
import { VideoSignatureClassNames, VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
10
10
|
import { ThemeInput } from '../../themes';
|
|
11
11
|
export type IdAndFaceValidationAssets = {
|
|
12
12
|
idCapture?: IdCaptureWizardAssets;
|
|
13
13
|
faceLiveness?: FaceLivenessAssets;
|
|
14
14
|
};
|
|
15
|
+
export type IdAndFaceValidationClassNames = {
|
|
16
|
+
idCapture?: IdCaptureWizardClassNames;
|
|
17
|
+
faceLiveness?: FaceLivenessClassNames;
|
|
18
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardClassNames;
|
|
19
|
+
signatureCapture?: SignatureCaptureClassNames;
|
|
20
|
+
videoSignatureCapture?: VideoSignatureClassNames;
|
|
21
|
+
};
|
|
15
22
|
export type IdAndFaceValidationColors = {
|
|
16
23
|
idCapture?: IdCaptureWizardColors;
|
|
17
24
|
faceLiveness?: FaceLivenessColors;
|
|
@@ -99,6 +106,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
99
106
|
theme?: ThemeInput;
|
|
100
107
|
/** Object containing any asset overrides. */
|
|
101
108
|
assets?: IdAndFaceValidationAssets;
|
|
109
|
+
/** Object containing any classNames for inner components. **/
|
|
110
|
+
classNames?: IdAndFaceValidationClassNames;
|
|
102
111
|
/** Object containing any color overrides. */
|
|
103
112
|
colors?: IdAndFaceValidationColors;
|
|
104
113
|
/** Object containing any verbiage overrides. */
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CardData, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
4
|
-
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
4
|
+
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
5
5
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
6
6
|
import { LangOption } from '../../lib/locales';
|
|
7
|
-
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
8
|
-
import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
7
|
+
import { SignatureCaptureClassNames, SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
8
|
+
import { VideoSignatureClassNames, VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
9
9
|
import { ThemeInput } from '../../themes';
|
|
10
10
|
export type IdValidationAssets = IdCaptureWizardAssets;
|
|
11
|
-
export type IdValidationClassNames = IdCaptureWizardClassNames
|
|
11
|
+
export type IdValidationClassNames = IdCaptureWizardClassNames & {
|
|
12
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardClassNames;
|
|
13
|
+
signatureCapture?: SignatureCaptureClassNames;
|
|
14
|
+
videoSignatureCapture?: VideoSignatureClassNames;
|
|
15
|
+
};
|
|
12
16
|
export type IdValidationColors = IdCaptureWizardColors & {
|
|
13
17
|
videoSignatureCapture?: VideoSignatureColors;
|
|
14
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { LangOption } from '../../lib/locales';
|
|
3
3
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
|
-
import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
4
|
+
import { VideoSignatureClassNames, VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
5
5
|
import { ThemeInput } from '../../themes';
|
|
6
6
|
export interface SignatureKYCProps extends PropsWithChildren {
|
|
7
7
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
@@ -18,6 +18,8 @@ export interface SignatureKYCProps extends PropsWithChildren {
|
|
|
18
18
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
19
19
|
/** Name of an included theme or object containing theme properties. **/
|
|
20
20
|
theme?: ThemeInput;
|
|
21
|
+
/** Object containing any classNames for inner components. **/
|
|
22
|
+
classNames?: VideoSignatureClassNames;
|
|
21
23
|
/** Object containing any color overrides. */
|
|
22
24
|
colors?: VideoSignatureColors;
|
|
23
25
|
/** Object containing any verbiage overrides. */
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
2
|
+
import { SelfieCaptureClassNames, SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
3
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
|
+
import { SelfieProgressPreviewClassNames } from '../common/SelfieProgressPreview';
|
|
4
5
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
6
|
+
export type CustomerIdentificationCaptureClassNames = SelfieCaptureClassNames & {
|
|
7
|
+
imagePreview?: SelfieProgressPreviewClassNames;
|
|
8
|
+
};
|
|
5
9
|
export type CustomerIdentificationCaptureColors = SelfieCaptureColors;
|
|
6
10
|
export type CustomerIdentificationCaptureVerbiage = SelfieCaptureVerbiage & {
|
|
7
11
|
progressPreviewText?: CustomerSuppliedVerbiage;
|
|
@@ -12,8 +16,9 @@ export type CustomerIdentificationCaptureProps = {
|
|
|
12
16
|
onCaptureGuidanceTimeout?: () => void;
|
|
13
17
|
onExit?: () => void;
|
|
14
18
|
captureGuidanceTimeoutDurationMs?: number;
|
|
19
|
+
classNames?: CustomerIdentificationCaptureClassNames;
|
|
15
20
|
colors?: CustomerIdentificationCaptureColors;
|
|
16
21
|
verbiage?: CustomerIdentificationCaptureVerbiage;
|
|
17
22
|
debugMode?: boolean;
|
|
18
23
|
};
|
|
19
|
-
export declare const CustomerIdentificationCapture: ({ onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExit, captureGuidanceTimeoutDurationMs, colors, verbiage, debugMode, }: CustomerIdentificationCaptureProps) => ReactElement;
|
|
24
|
+
export declare const CustomerIdentificationCapture: ({ onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExit, captureGuidanceTimeoutDurationMs, classNames, colors, verbiage, debugMode, }: CustomerIdentificationCaptureProps) => ReactElement;
|
|
@@ -4,6 +4,16 @@ import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
|
4
4
|
export type CustomerIdentificationFailureAssets = {
|
|
5
5
|
imageUrl?: string;
|
|
6
6
|
};
|
|
7
|
+
export type CustomerIdentificationFailureClassNames = {
|
|
8
|
+
container?: string;
|
|
9
|
+
inner?: string;
|
|
10
|
+
heading?: string;
|
|
11
|
+
imageContainer?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
buttonsRow?: string;
|
|
14
|
+
retryBtn?: string;
|
|
15
|
+
exitBtn?: string;
|
|
16
|
+
};
|
|
7
17
|
export type CustomerIdentificationFailureColors = {
|
|
8
18
|
retryBtn?: LoaderButtonColors;
|
|
9
19
|
exitBtn?: LoaderButtonColors;
|
|
@@ -18,7 +28,8 @@ export type CustomerIdentificationFailureProps = {
|
|
|
18
28
|
onRetryClick?: () => void;
|
|
19
29
|
onExitClick?: () => void;
|
|
20
30
|
assets?: CustomerIdentificationFailureAssets;
|
|
31
|
+
classNames?: CustomerIdentificationFailureClassNames;
|
|
21
32
|
colors?: CustomerIdentificationFailureColors;
|
|
22
33
|
verbiage?: CustomerIdentificationFailureVerbiage;
|
|
23
34
|
};
|
|
24
|
-
export declare const CustomerIdentificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage: rawVerbiage, }: CustomerIdentificationFailureProps) => ReactElement;
|
|
35
|
+
export declare const CustomerIdentificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, classNames, colors, verbiage: rawVerbiage, }: CustomerIdentificationFailureProps) => ReactElement;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
3
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
|
+
export type CustomerIdentificationSuccessClassNames = {
|
|
5
|
+
container?: string;
|
|
6
|
+
inner?: string;
|
|
7
|
+
heading?: string;
|
|
8
|
+
imageContainer?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
buttonsRow?: string;
|
|
11
|
+
doneBtn?: string;
|
|
12
|
+
retryBtn?: string;
|
|
13
|
+
};
|
|
4
14
|
export type CustomerIdentificationSuccessColors = {
|
|
5
15
|
doneBtn?: LoaderButtonColors;
|
|
6
16
|
retryBtn?: LoaderButtonColors;
|
|
@@ -14,7 +24,8 @@ export type CustomerIdentificationSuccessProps = {
|
|
|
14
24
|
imageUrl: string;
|
|
15
25
|
onDoneClick?: () => void;
|
|
16
26
|
onRetryClick?: () => void;
|
|
27
|
+
classNames?: CustomerIdentificationSuccessClassNames;
|
|
17
28
|
colors?: CustomerIdentificationSuccessColors;
|
|
18
29
|
verbiage?: CustomerIdentificationSuccessVerbiage;
|
|
19
30
|
};
|
|
20
|
-
export declare const CustomerIdentificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: CustomerIdentificationSuccessProps) => ReactElement;
|
|
31
|
+
export declare const CustomerIdentificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, classNames, colors, verbiage: rawVerbiage, }: CustomerIdentificationSuccessProps) => ReactElement;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
|
-
import { CustomerIdentificationCaptureColors, CustomerIdentificationCaptureVerbiage } from './CustomerIdentificationCapture';
|
|
5
|
-
import { CustomerIdentificationSuccessColors, CustomerIdentificationSuccessVerbiage } from './CustomerIdentificationSuccess';
|
|
6
|
-
import { CustomerIdentificationFailureAssets, CustomerIdentificationFailureColors, CustomerIdentificationFailureVerbiage } from './CustomerIdentificationFailure';
|
|
3
|
+
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayClassNames, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
|
+
import { CustomerIdentificationCaptureClassNames, CustomerIdentificationCaptureColors, CustomerIdentificationCaptureVerbiage } from './CustomerIdentificationCapture';
|
|
5
|
+
import { CustomerIdentificationSuccessClassNames, CustomerIdentificationSuccessColors, CustomerIdentificationSuccessVerbiage } from './CustomerIdentificationSuccess';
|
|
6
|
+
import { CustomerIdentificationFailureAssets, CustomerIdentificationFailureClassNames, CustomerIdentificationFailureColors, CustomerIdentificationFailureVerbiage } from './CustomerIdentificationFailure';
|
|
7
7
|
export type CustomerIdentificationAssets = {
|
|
8
8
|
loadingOverlay?: SelfieCaptureLoadingOverlayAssets;
|
|
9
9
|
failure?: CustomerIdentificationFailureAssets;
|
|
10
10
|
};
|
|
11
|
+
export type CustomerIdentificationClassNames = CustomerIdentificationCaptureClassNames & {
|
|
12
|
+
loadingOverlay?: SelfieCaptureLoadingOverlayClassNames;
|
|
13
|
+
success?: CustomerIdentificationSuccessClassNames;
|
|
14
|
+
failure?: CustomerIdentificationFailureClassNames;
|
|
15
|
+
};
|
|
11
16
|
export type CustomerIdentificationColors = CustomerIdentificationCaptureColors & {
|
|
12
17
|
loadingOverlay?: SelfieCaptureLoadingOverlayColors;
|
|
13
18
|
success?: CustomerIdentificationSuccessColors;
|
|
@@ -28,8 +33,9 @@ export type CustomerIdentificationWizardProps = {
|
|
|
28
33
|
captureGuidanceTimeoutDurationMs?: number;
|
|
29
34
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
30
35
|
assets?: CustomerIdentificationAssets;
|
|
36
|
+
classNames?: CustomerIdentificationClassNames;
|
|
31
37
|
colors?: CustomerIdentificationColors;
|
|
32
38
|
verbiage?: CustomerIdentificationVerbiage;
|
|
33
39
|
debugMode?: boolean;
|
|
34
40
|
};
|
|
35
|
-
export declare const CustomerIdentificationWizard: ({ onComplete, onCustomerMatched, onCustomerNotMatched, onExitCapture, onExitAfterFailure, onCaptureGuidanceTimeout, captureGuidanceTimeoutDurationMs, skipSuccessScreen, assets, colors, verbiage, debugMode, }: CustomerIdentificationWizardProps) => ReactElement;
|
|
41
|
+
export declare const CustomerIdentificationWizard: ({ onComplete, onCustomerMatched, onCustomerNotMatched, onExitCapture, onExitAfterFailure, onCaptureGuidanceTimeout, captureGuidanceTimeoutDurationMs, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: CustomerIdentificationWizardProps) => ReactElement;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
|
+
import { SelfieCaptureClassNames, SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
4
|
+
import { SelfieProgressPreviewClassNames } from '../common/SelfieProgressPreview';
|
|
4
5
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
6
|
+
export type CustomerVerificationCaptureClassNames = SelfieCaptureClassNames & {
|
|
7
|
+
imagePreview?: SelfieProgressPreviewClassNames;
|
|
8
|
+
};
|
|
5
9
|
export type CustomerVerificationCaptureColors = SelfieCaptureColors;
|
|
6
10
|
export type CustomerVerificationCaptureVerbiage = SelfieCaptureVerbiage & {
|
|
7
11
|
progressPreviewText?: CustomerSuppliedVerbiage;
|
|
@@ -12,8 +16,9 @@ export type CustomerVerificationCaptureProps = {
|
|
|
12
16
|
onCaptureGuidanceTimeout?: () => void;
|
|
13
17
|
onExit?: () => void;
|
|
14
18
|
captureGuidanceTimeoutDurationMs?: number;
|
|
19
|
+
classNames?: CustomerVerificationCaptureClassNames;
|
|
15
20
|
colors?: CustomerVerificationCaptureColors;
|
|
16
21
|
verbiage?: CustomerVerificationCaptureVerbiage;
|
|
17
22
|
debugMode?: boolean;
|
|
18
23
|
};
|
|
19
|
-
export declare const CustomerVerificationCapture: ({ onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExit, captureGuidanceTimeoutDurationMs, colors, verbiage, debugMode, }: CustomerVerificationCaptureProps) => ReactElement;
|
|
24
|
+
export declare const CustomerVerificationCapture: ({ onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExit, captureGuidanceTimeoutDurationMs, classNames, colors, verbiage, debugMode, }: CustomerVerificationCaptureProps) => ReactElement;
|
|
@@ -4,6 +4,16 @@ import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
|
4
4
|
export type CustomerVerificationFailureAssets = {
|
|
5
5
|
imageUrl?: string;
|
|
6
6
|
};
|
|
7
|
+
export type CustomerVerificationFailureClassNames = {
|
|
8
|
+
container?: string;
|
|
9
|
+
inner?: string;
|
|
10
|
+
heading?: string;
|
|
11
|
+
imageContainer?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
buttonsRow?: string;
|
|
14
|
+
retryBtn?: string;
|
|
15
|
+
exitBtn?: string;
|
|
16
|
+
};
|
|
7
17
|
export type CustomerVerificationFailureColors = {
|
|
8
18
|
retryBtn?: LoaderButtonColors;
|
|
9
19
|
exitBtn?: LoaderButtonColors;
|
|
@@ -18,7 +28,8 @@ export type CustomerVerificationFailureProps = {
|
|
|
18
28
|
onRetryClick?: () => void;
|
|
19
29
|
onExitClick?: () => void;
|
|
20
30
|
assets?: CustomerVerificationFailureAssets;
|
|
31
|
+
classNames?: CustomerVerificationFailureClassNames;
|
|
21
32
|
colors?: CustomerVerificationFailureColors;
|
|
22
33
|
verbiage?: CustomerVerificationFailureVerbiage;
|
|
23
34
|
};
|
|
24
|
-
export declare const CustomerVerificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage: rawVerbiage, }: CustomerVerificationFailureProps) => ReactElement;
|
|
35
|
+
export declare const CustomerVerificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, classNames, colors, verbiage: rawVerbiage, }: CustomerVerificationFailureProps) => ReactElement;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
3
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
|
+
export type CustomerVerificationSuccessClassNames = {
|
|
5
|
+
container?: string;
|
|
6
|
+
inner?: string;
|
|
7
|
+
heading?: string;
|
|
8
|
+
imageContainer?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
buttonsRow?: string;
|
|
11
|
+
doneBtn?: string;
|
|
12
|
+
retryBtn?: string;
|
|
13
|
+
};
|
|
4
14
|
export type CustomerVerificationSuccessColors = {
|
|
5
15
|
doneBtn?: LoaderButtonColors;
|
|
6
16
|
retryBtn?: LoaderButtonColors;
|
|
@@ -14,7 +24,8 @@ export type CustomerVerificationSuccessProps = {
|
|
|
14
24
|
imageUrl: string;
|
|
15
25
|
onDoneClick?: () => void;
|
|
16
26
|
onRetryClick?: () => void;
|
|
27
|
+
classNames?: CustomerVerificationSuccessClassNames;
|
|
17
28
|
colors?: CustomerVerificationSuccessColors;
|
|
18
29
|
verbiage?: CustomerVerificationSuccessVerbiage;
|
|
19
30
|
};
|
|
20
|
-
export declare const CustomerVerificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: CustomerVerificationSuccessProps) => ReactElement;
|
|
31
|
+
export declare const CustomerVerificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, classNames, colors, verbiage: rawVerbiage, }: CustomerVerificationSuccessProps) => ReactElement;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
3
|
+
import { SelfieCaptureLoadingOverlayAssets, SelfieCaptureLoadingOverlayClassNames, SelfieCaptureLoadingOverlayColors, SelfieCaptureLoadingOverlayVerbiage } from '../selfie_capture/SelfieCaptureLoadingOverlay';
|
|
4
4
|
import { SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
5
|
-
import { CustomerVerificationCaptureColors } from './CustomerVerificationCapture';
|
|
6
|
-
import { CustomerVerificationSuccessColors, CustomerVerificationSuccessVerbiage } from './CustomerVerificationSuccess';
|
|
7
|
-
import { CustomerVerificationFailureAssets, CustomerVerificationFailureColors, CustomerVerificationFailureVerbiage } from './CustomerVerificationFailure';
|
|
5
|
+
import { CustomerVerificationCaptureClassNames, CustomerVerificationCaptureColors } from './CustomerVerificationCapture';
|
|
6
|
+
import { CustomerVerificationSuccessClassNames, CustomerVerificationSuccessColors, CustomerVerificationSuccessVerbiage } from './CustomerVerificationSuccess';
|
|
7
|
+
import { CustomerVerificationFailureAssets, CustomerVerificationFailureClassNames, CustomerVerificationFailureColors, CustomerVerificationFailureVerbiage } from './CustomerVerificationFailure';
|
|
8
8
|
export type CustomerVerificationAssets = {
|
|
9
9
|
loadingOverlay?: SelfieCaptureLoadingOverlayAssets;
|
|
10
10
|
failure?: CustomerVerificationFailureAssets;
|
|
11
11
|
failureImageUrl?: string;
|
|
12
12
|
};
|
|
13
|
+
export type CustomerVerificationClassNames = CustomerVerificationCaptureClassNames & {
|
|
14
|
+
loadingOverlay?: SelfieCaptureLoadingOverlayClassNames;
|
|
15
|
+
success?: CustomerVerificationSuccessClassNames;
|
|
16
|
+
failure?: CustomerVerificationFailureClassNames;
|
|
17
|
+
};
|
|
13
18
|
export type CustomerVerificationColors = CustomerVerificationCaptureColors & {
|
|
14
19
|
loadingOverlay?: SelfieCaptureLoadingOverlayColors;
|
|
15
20
|
success?: CustomerVerificationSuccessColors;
|
|
@@ -30,8 +35,9 @@ export type CustomerVerificationWizardProps = {
|
|
|
30
35
|
captureGuidanceTimeoutDurationMs?: number;
|
|
31
36
|
skipSuccessScreen?: boolean | (() => Promise<boolean>);
|
|
32
37
|
assets?: CustomerVerificationAssets;
|
|
38
|
+
classNames?: CustomerVerificationClassNames;
|
|
33
39
|
colors?: CustomerVerificationColors;
|
|
34
40
|
verbiage?: CustomerVerificationVerbiage;
|
|
35
41
|
debugMode?: boolean;
|
|
36
42
|
};
|
|
37
|
-
export declare const CustomerVerificationWizard: ({ onComplete, onCustomerMatched, onCustomerNotMatched, onExitCapture, onExitAfterFailure, onCaptureGuidanceTimeout, captureGuidanceTimeoutDurationMs, skipSuccessScreen, assets, colors, verbiage, debugMode, }: CustomerVerificationWizardProps) => ReactElement;
|
|
43
|
+
export declare const CustomerVerificationWizard: ({ onComplete, onCustomerMatched, onCustomerNotMatched, onExitCapture, onExitAfterFailure, onCaptureGuidanceTimeout, captureGuidanceTimeoutDurationMs, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: CustomerVerificationWizardProps) => ReactElement;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
export type FaceCaptureGuideOverlayVariant = 'satisfied' | 'unsatisfied';
|
|
3
|
+
export type FaceCaptureGuideOverlayClassNames = {
|
|
4
|
+
container?: string;
|
|
5
|
+
oval?: string;
|
|
6
|
+
};
|
|
3
7
|
export type FaceCaptureGuideOverlayProps = {
|
|
8
|
+
classNames?: FaceCaptureGuideOverlayClassNames;
|
|
4
9
|
variant?: FaceCaptureGuideOverlayVariant;
|
|
5
10
|
borderWidth?: number;
|
|
6
11
|
borderColor?: string;
|
|
7
12
|
};
|
|
8
|
-
export declare const FaceCaptureGuideOverlay: ({ variant, borderWidth, borderColor, }: FaceCaptureGuideOverlayProps) => ReactElement;
|
|
13
|
+
export declare const FaceCaptureGuideOverlay: ({ classNames, variant, borderWidth, borderColor, }: FaceCaptureGuideOverlayProps) => ReactElement;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
2
|
+
import { SelfieCaptureClassNames, SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
|
+
import { SelfieProgressPreviewClassNames } from '../common/SelfieProgressPreview';
|
|
3
4
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
5
|
+
export type FaceLivenessCaptureClassNames = SelfieCaptureClassNames & {
|
|
6
|
+
imagePreview?: SelfieProgressPreviewClassNames;
|
|
7
|
+
};
|
|
4
8
|
export type FaceLivenessCaptureColors = SelfieCaptureColors;
|
|
5
9
|
export type FaceLivenessCaptureVerbiage = SelfieCaptureVerbiage & {
|
|
6
10
|
guidanceRemoveEyeCoveringsText?: CustomerSuppliedVerbiage;
|
|
@@ -14,8 +18,9 @@ export type FaceLivenessCaptureProps = {
|
|
|
14
18
|
onTimeout?: () => void;
|
|
15
19
|
onExit?: () => void;
|
|
16
20
|
timeoutDurationMs?: number;
|
|
21
|
+
classNames?: FaceLivenessCaptureClassNames;
|
|
17
22
|
colors?: FaceLivenessCaptureColors;
|
|
18
23
|
verbiage?: FaceLivenessCaptureVerbiage;
|
|
19
24
|
debugMode?: boolean;
|
|
20
25
|
};
|
|
21
|
-
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, colors, verbiage: rawVerbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
26
|
+
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, classNames, colors, verbiage: rawVerbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
@@ -4,6 +4,16 @@ import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
|
4
4
|
export type FaceLivenessFailureAssets = {
|
|
5
5
|
imageUrl?: string;
|
|
6
6
|
};
|
|
7
|
+
export type FaceLivenessFailureClassNames = {
|
|
8
|
+
container?: string;
|
|
9
|
+
inner?: string;
|
|
10
|
+
heading?: string;
|
|
11
|
+
imageContainer?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
buttonsRow?: string;
|
|
14
|
+
retryBtn?: string;
|
|
15
|
+
exitBtn?: string;
|
|
16
|
+
};
|
|
7
17
|
export type FaceLivenessFailureColors = {
|
|
8
18
|
retryBtn?: LoaderButtonColors;
|
|
9
19
|
exitBtn?: LoaderButtonColors;
|
|
@@ -18,7 +28,8 @@ export type FaceLivenessFailureProps = {
|
|
|
18
28
|
onRetryClick?: () => void;
|
|
19
29
|
onExitClick?: () => void;
|
|
20
30
|
assets?: FaceLivenessFailureAssets;
|
|
31
|
+
classNames?: FaceLivenessFailureClassNames;
|
|
21
32
|
colors?: FaceLivenessFailureColors;
|
|
22
33
|
verbiage?: FaceLivenessFailureVerbiage;
|
|
23
34
|
};
|
|
24
|
-
export declare const FaceLivenessFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage: rawVerbiage, }: FaceLivenessFailureProps) => ReactElement;
|
|
35
|
+
export declare const FaceLivenessFailure: ({ canRetry, onRetryClick, onExitClick, assets, classNames, colors, verbiage: rawVerbiage, }: FaceLivenessFailureProps) => ReactElement;
|