idmission-web-sdk 0.0.71 → 0.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/README.md +24 -0
- package/dist/components/additional_document_capture/AdditionalDocumentCapture.d.ts +7 -3
- package/dist/components/additional_document_capture/AdditionalDocumentCaptureWizard.d.ts +3 -6
- package/dist/components/camera/CameraAccessDeniedOverlay.d.ts +5 -4
- package/dist/components/common/SelfieProgressPreview.d.ts +4 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -2
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -2
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -2
- package/dist/components/customer_flows/IdValidation.d.ts +2 -2
- package/dist/components/customer_identification/CustomerIdentificationFailure.d.ts +5 -4
- package/dist/components/customer_identification/CustomerIdentificationSuccess.d.ts +5 -4
- package/dist/components/customer_verification/CustomerVerificationFailure.d.ts +5 -4
- package/dist/components/customer_verification/CustomerVerificationSuccess.d.ts +5 -4
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +5 -4
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts +5 -4
- package/dist/components/face_liveness/FaceLivenessSuccess.d.ts +5 -4
- package/dist/components/id_capture/FlipIdPrompt.d.ts +2 -1
- package/dist/components/id_capture/IdCapture.d.ts +6 -4
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +7 -6
- package/dist/components/id_capture/IdCaptureSuccess.d.ts +10 -9
- package/dist/components/id_capture/IdCaptureWizard.d.ts +6 -3
- package/dist/components/selfie_capture/SelfieCapture.d.ts +8 -6
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +8 -7
- package/dist/components/signature_capture/SignatureCapture.d.ts +5 -4
- package/dist/components/video_signature_capture/VideoSignatureCapture.d.ts +5 -4
- package/dist/components/video_signature_capture/VideoSignatureSuccess.d.ts +5 -4
- package/dist/lib/locales/es/translation.d.ts +1 -0
- package/dist/lib/locales/index.d.ts +16 -0
- package/dist/sdk2.cjs.development.js +391 -326
- 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 +391 -326
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +391 -326
- 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/IdValidation.stories.d.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -602,3 +602,27 @@ onBeforeSubmit: (req) => new Promise((resolve) => {
|
|
|
602
602
|
Note that you will receive the request as a parameter to `onBeforeSubmit`, and must `resolve` with the altered version in order for your changes to be committed.
|
|
603
603
|
|
|
604
604
|
If the promise is rejected or an error is thrown, that rejection value or error will be printed to the logs and the request will be not be sent. The `onRequestFailure` hook will be fired with the error that came from your code.
|
|
605
|
+
|
|
606
|
+
### Providing multi-language verbiage overrides
|
|
607
|
+
|
|
608
|
+
Each customer flow documented above includes an optional `verbiage` prop, bearing the type signature `{ [key: string]: CustomerSuppliedVerbiage }`. The `CustomerSuppliedVerbiage` can be a `string` (which overrides all locales), or a `{ [key: string]: string }` containing verbiage overrides in multiple i18n locales.
|
|
609
|
+
|
|
610
|
+
The level of specificity in locale codes can be controlled by supplying or omitting suffixes, for example, `en-UK` would target only systems configured for British English, which `en` would target all English-speaking locales. Specifying both would show your `en-UK` translation for British users and your `en` translation for everyone else.
|
|
611
|
+
|
|
612
|
+
For example, if we want to override the header text on the loading overlay of the FaceValidation flow:
|
|
613
|
+
|
|
614
|
+
```
|
|
615
|
+
verbiage: {
|
|
616
|
+
loadingOverlay: {
|
|
617
|
+
headerText: {
|
|
618
|
+
'en-US': 'Use your device camera to capture your American face',
|
|
619
|
+
'en-UK': 'Use your device camera to capture your British face',
|
|
620
|
+
'en': 'Use your device camera to capture your generally English-speaking face'
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
Leaving a locale out of your translation object will result in the default text being shown for that locale, with the rest of your provided translations being honored. This functionality can be leveraged to define translations for languages that the IDmission Web SDK does not yet support. If you end up creating full translations for new languages, feel free to send your translations our way at https://www.idmission.com/company/contact-us/, and we will try to get them added to the main SDK translation set!
|
|
627
|
+
|
|
628
|
+
The full list of i18n locales can be found here: https://github.com/ladjs/i18n-locales.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
2
3
|
export type AdditionalDocument = {
|
|
3
4
|
name: string;
|
|
4
5
|
description?: string;
|
|
@@ -8,10 +9,13 @@ export type UploadedDocument = {
|
|
|
8
9
|
documentName: string;
|
|
9
10
|
additionalDocument: string | Record<string, string>;
|
|
10
11
|
};
|
|
12
|
+
export type AdditionalDocumentCaptureVerbiage = {
|
|
13
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
14
|
+
nextBtnText?: CustomerSuppliedVerbiage;
|
|
15
|
+
};
|
|
11
16
|
export type AdditionalDocumentCaptureProps = {
|
|
12
17
|
document: AdditionalDocument;
|
|
13
18
|
onComplete?: (uploadedDocument: UploadedDocument) => void;
|
|
14
|
-
|
|
15
|
-
nextBtnText?: string;
|
|
19
|
+
verbiage?: AdditionalDocumentCaptureVerbiage;
|
|
16
20
|
};
|
|
17
|
-
export declare const AdditionalDocumentCapture: ({ document, onComplete,
|
|
21
|
+
export declare const AdditionalDocumentCapture: ({ document, onComplete, verbiage: rawVerbiage, }: AdditionalDocumentCaptureProps) => ReactElement;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { AdditionalDocument, UploadedDocument } from './AdditionalDocumentCapture';
|
|
3
|
-
export type
|
|
4
|
-
headingText?: string;
|
|
5
|
-
nextBtnText?: string;
|
|
6
|
-
};
|
|
2
|
+
import { AdditionalDocument, AdditionalDocumentCaptureVerbiage, UploadedDocument } from './AdditionalDocumentCapture';
|
|
3
|
+
export type AdditionalDocumentCaptureWizardVerbiage = AdditionalDocumentCaptureVerbiage;
|
|
7
4
|
export type AdditionalDocumentCaptureWizardProps = {
|
|
8
5
|
documents: AdditionalDocument[];
|
|
9
6
|
onComplete?: (uploadedDocuments: UploadedDocument[]) => void;
|
|
10
|
-
verbiage?:
|
|
7
|
+
verbiage?: AdditionalDocumentCaptureWizardVerbiage;
|
|
11
8
|
};
|
|
12
9
|
export declare const AdditionalDocumentCaptureWizard: ({ documents, onComplete, verbiage, }: AdditionalDocumentCaptureWizardProps) => ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type CameraAccessDeniedOverlayAssets = {
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
};
|
|
@@ -7,13 +8,13 @@ export type CameraAccessDeniedOverlayColors = {
|
|
|
7
8
|
retryBtn?: LoaderButtonColors;
|
|
8
9
|
};
|
|
9
10
|
export type CameraAccessDeniedOverlayVerbiage = {
|
|
10
|
-
headingText?:
|
|
11
|
-
descriptionText?:
|
|
12
|
-
retryBtnText?:
|
|
11
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
12
|
+
descriptionText?: CustomerSuppliedVerbiage;
|
|
13
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
13
14
|
};
|
|
14
15
|
export type CameraAccessDeniedOverlayProps = {
|
|
15
16
|
assets?: CameraAccessDeniedOverlayAssets;
|
|
16
17
|
colors?: CameraAccessDeniedOverlayColors;
|
|
17
18
|
verbiage?: CameraAccessDeniedOverlayVerbiage;
|
|
18
19
|
};
|
|
19
|
-
export declare const CameraAccessDeniedOverlay: ({ assets, colors, verbiage, }: CameraAccessDeniedOverlayProps) => ReactElement;
|
|
20
|
+
export declare const CameraAccessDeniedOverlay: ({ assets, colors, verbiage: rawVerbiage, }: CameraAccessDeniedOverlayProps) => ReactElement;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const IdCaptureImagePreview: ({ text, imageUrl, }: {
|
|
3
|
+
text?: string | undefined;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
}) => JSX.Element;
|
|
2
6
|
export declare const SelfieProgressPreview: ({ imageUrl }: {
|
|
3
7
|
imageUrl: string;
|
|
4
8
|
}) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
-
import {
|
|
4
|
+
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
5
5
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
6
6
|
import { LangOption } from '../../lib/locales';
|
|
7
7
|
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
@@ -15,7 +15,7 @@ export type CustomerBiometricsEnrollmentColors = {
|
|
|
15
15
|
};
|
|
16
16
|
export type CustomerBiometricsEnrollmentVerbiage = {
|
|
17
17
|
faceLiveness?: FaceLivenessVerbiage;
|
|
18
|
-
additionalDocumentCapture?:
|
|
18
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardVerbiage;
|
|
19
19
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
20
20
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
21
21
|
};
|
|
@@ -2,7 +2,7 @@ import { ReactElement } 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';
|
|
5
|
-
import {
|
|
5
|
+
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
7
7
|
import { LangOption } from '../../lib/locales';
|
|
8
8
|
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
@@ -19,7 +19,7 @@ export type CustomerEnrollmentColors = {
|
|
|
19
19
|
export type CustomerEnrollmentVerbiage = {
|
|
20
20
|
idCapture?: IdCaptureWizardVerbiage;
|
|
21
21
|
faceLiveness?: FaceLivenessVerbiage;
|
|
22
|
-
additionalDocumentCapture?:
|
|
22
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardVerbiage;
|
|
23
23
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
24
24
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
25
25
|
};
|
|
@@ -2,7 +2,7 @@ import { ReactElement } 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';
|
|
5
|
-
import {
|
|
5
|
+
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
7
7
|
import { LangOption } from '../../lib/locales';
|
|
8
8
|
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
@@ -19,7 +19,7 @@ export type IdAndFaceValidationColors = {
|
|
|
19
19
|
export type IdAndFaceValidationVerbiage = {
|
|
20
20
|
idCapture?: IdCaptureWizardVerbiage;
|
|
21
21
|
faceLiveness?: FaceLivenessVerbiage;
|
|
22
|
-
additionalDocumentCapture?:
|
|
22
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardVerbiage;
|
|
23
23
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
24
24
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
25
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
4
|
-
import {
|
|
4
|
+
import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
5
5
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
6
6
|
import { LangOption } from '../../lib/locales';
|
|
7
7
|
import { SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
@@ -11,7 +11,7 @@ export type IdValidationColors = IdCaptureWizardColors & {
|
|
|
11
11
|
videoSignatureCapture?: VideoSignatureColors;
|
|
12
12
|
};
|
|
13
13
|
export type IdValidationVerbiage = IdCaptureWizardVerbiage & {
|
|
14
|
-
additionalDocumentCapture?:
|
|
14
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardVerbiage;
|
|
15
15
|
signatureCapture?: SignatureCaptureVerbiage;
|
|
16
16
|
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
17
17
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type CustomerIdentificationFailureAssets = {
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
};
|
|
@@ -8,9 +9,9 @@ export type CustomerIdentificationFailureColors = {
|
|
|
8
9
|
exitBtn?: LoaderButtonColors;
|
|
9
10
|
};
|
|
10
11
|
export type CustomerIdentificationFailureVerbiage = {
|
|
11
|
-
headingText?:
|
|
12
|
-
retryBtnText?:
|
|
13
|
-
exitBtnText?:
|
|
12
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
13
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
14
|
+
exitBtnText?: CustomerSuppliedVerbiage;
|
|
14
15
|
};
|
|
15
16
|
export type CustomerIdentificationFailureProps = {
|
|
16
17
|
canRetry?: boolean;
|
|
@@ -20,4 +21,4 @@ export type CustomerIdentificationFailureProps = {
|
|
|
20
21
|
colors?: CustomerIdentificationFailureColors;
|
|
21
22
|
verbiage?: CustomerIdentificationFailureVerbiage;
|
|
22
23
|
};
|
|
23
|
-
export declare const CustomerIdentificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage, }: CustomerIdentificationFailureProps) => ReactElement;
|
|
24
|
+
export declare const CustomerIdentificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage: rawVerbiage, }: CustomerIdentificationFailureProps) => ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type CustomerIdentificationSuccessColors = {
|
|
4
5
|
doneBtn?: LoaderButtonColors;
|
|
5
6
|
retryBtn?: LoaderButtonColors;
|
|
6
7
|
};
|
|
7
8
|
export type CustomerIdentificationSuccessVerbiage = {
|
|
8
|
-
headingText?:
|
|
9
|
-
retryBtnText?:
|
|
10
|
-
doneBtnText?:
|
|
9
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
10
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
11
|
+
doneBtnText?: CustomerSuppliedVerbiage;
|
|
11
12
|
};
|
|
12
13
|
export type CustomerIdentificationSuccessProps = {
|
|
13
14
|
imageUrl: string;
|
|
@@ -16,4 +17,4 @@ export type CustomerIdentificationSuccessProps = {
|
|
|
16
17
|
colors?: CustomerIdentificationSuccessColors;
|
|
17
18
|
verbiage?: CustomerIdentificationSuccessVerbiage;
|
|
18
19
|
};
|
|
19
|
-
export declare const CustomerIdentificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage, }: CustomerIdentificationSuccessProps) => ReactElement;
|
|
20
|
+
export declare const CustomerIdentificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: CustomerIdentificationSuccessProps) => ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type CustomerVerificationFailureAssets = {
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
};
|
|
@@ -8,9 +9,9 @@ export type CustomerVerificationFailureColors = {
|
|
|
8
9
|
exitBtn?: LoaderButtonColors;
|
|
9
10
|
};
|
|
10
11
|
export type CustomerVerificationFailureVerbiage = {
|
|
11
|
-
headingText?:
|
|
12
|
-
retryBtnText?:
|
|
13
|
-
exitBtnText?:
|
|
12
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
13
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
14
|
+
exitBtnText?: CustomerSuppliedVerbiage;
|
|
14
15
|
};
|
|
15
16
|
export type CustomerVerificationFailureProps = {
|
|
16
17
|
canRetry?: boolean;
|
|
@@ -20,4 +21,4 @@ export type CustomerVerificationFailureProps = {
|
|
|
20
21
|
colors?: CustomerVerificationFailureColors;
|
|
21
22
|
verbiage?: CustomerVerificationFailureVerbiage;
|
|
22
23
|
};
|
|
23
|
-
export declare const CustomerVerificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage, }: CustomerVerificationFailureProps) => ReactElement;
|
|
24
|
+
export declare const CustomerVerificationFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage: rawVerbiage, }: CustomerVerificationFailureProps) => ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type CustomerVerificationSuccessColors = {
|
|
4
5
|
doneBtn?: LoaderButtonColors;
|
|
5
6
|
retryBtn?: LoaderButtonColors;
|
|
6
7
|
};
|
|
7
8
|
export type CustomerVerificationSuccessVerbiage = {
|
|
8
|
-
headingText?:
|
|
9
|
-
retryBtnText?:
|
|
10
|
-
doneBtnText?:
|
|
9
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
10
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
11
|
+
doneBtnText?: CustomerSuppliedVerbiage;
|
|
11
12
|
};
|
|
12
13
|
export type CustomerVerificationSuccessProps = {
|
|
13
14
|
imageUrl: string;
|
|
@@ -16,4 +17,4 @@ export type CustomerVerificationSuccessProps = {
|
|
|
16
17
|
colors?: CustomerVerificationSuccessColors;
|
|
17
18
|
verbiage?: CustomerVerificationSuccessVerbiage;
|
|
18
19
|
};
|
|
19
|
-
export declare const CustomerVerificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage, }: CustomerVerificationSuccessProps) => ReactElement;
|
|
20
|
+
export declare const CustomerVerificationSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: CustomerVerificationSuccessProps) => ReactElement;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type FaceLivenessCaptureColors = SelfieCaptureColors;
|
|
4
5
|
export type FaceLivenessCaptureVerbiage = SelfieCaptureVerbiage & {
|
|
5
|
-
guidanceRemoveEyeCoveringsText?:
|
|
6
|
-
guidanceRemoveHeadCoveringsText?:
|
|
7
|
-
guidanceRemoveMaskText?:
|
|
6
|
+
guidanceRemoveEyeCoveringsText?: CustomerSuppliedVerbiage;
|
|
7
|
+
guidanceRemoveHeadCoveringsText?: CustomerSuppliedVerbiage;
|
|
8
|
+
guidanceRemoveMaskText?: CustomerSuppliedVerbiage;
|
|
8
9
|
};
|
|
9
10
|
export type FaceLivenessCaptureProps = {
|
|
10
11
|
onCapture?: () => void;
|
|
@@ -16,4 +17,4 @@ export type FaceLivenessCaptureProps = {
|
|
|
16
17
|
verbiage?: FaceLivenessCaptureVerbiage;
|
|
17
18
|
debugMode?: boolean;
|
|
18
19
|
};
|
|
19
|
-
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, colors, verbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
20
|
+
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, colors, verbiage: rawVerbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type FaceLivenessFailureAssets = {
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
};
|
|
@@ -8,9 +9,9 @@ export type FaceLivenessFailureColors = {
|
|
|
8
9
|
exitBtn?: LoaderButtonColors;
|
|
9
10
|
};
|
|
10
11
|
export type FaceLivenessFailureVerbiage = {
|
|
11
|
-
headingText?:
|
|
12
|
-
retryBtnText?:
|
|
13
|
-
exitBtnText?:
|
|
12
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
13
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
14
|
+
exitBtnText?: CustomerSuppliedVerbiage;
|
|
14
15
|
};
|
|
15
16
|
export type FaceLivenessFailureProps = {
|
|
16
17
|
canRetry?: boolean;
|
|
@@ -20,4 +21,4 @@ export type FaceLivenessFailureProps = {
|
|
|
20
21
|
colors?: FaceLivenessFailureColors;
|
|
21
22
|
verbiage?: FaceLivenessFailureVerbiage;
|
|
22
23
|
};
|
|
23
|
-
export declare const FaceLivenessFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage, }: FaceLivenessFailureProps) => ReactElement;
|
|
24
|
+
export declare const FaceLivenessFailure: ({ canRetry, onRetryClick, onExitClick, assets, colors, verbiage: rawVerbiage, }: FaceLivenessFailureProps) => ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type FaceLivenessSuccessColors = {
|
|
4
5
|
doneBtn?: LoaderButtonColors;
|
|
5
6
|
retryBtn?: LoaderButtonColors;
|
|
6
7
|
};
|
|
7
8
|
export type FaceLivenessSuccessVerbiage = {
|
|
8
|
-
headingText?:
|
|
9
|
-
retryBtnText?:
|
|
10
|
-
doneBtnText?:
|
|
9
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
10
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
11
|
+
doneBtnText?: CustomerSuppliedVerbiage;
|
|
11
12
|
};
|
|
12
13
|
export type FaceLivenessSuccessProps = {
|
|
13
14
|
imageUrl: string;
|
|
@@ -16,4 +17,4 @@ export type FaceLivenessSuccessProps = {
|
|
|
16
17
|
colors?: FaceLivenessSuccessColors;
|
|
17
18
|
verbiage?: FaceLivenessSuccessVerbiage;
|
|
18
19
|
};
|
|
19
|
-
export declare const FaceLivenessSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage, }: FaceLivenessSuccessProps) => ReactElement;
|
|
20
|
+
export declare const FaceLivenessSuccess: ({ imageUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: FaceLivenessSuccessProps) => ReactElement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
2
3
|
export type FlipIdPromptAssets = {
|
|
3
4
|
frontPortraitGuidesImageUrl?: string;
|
|
4
5
|
frontLandscapeGuidesImageUrl?: string;
|
|
@@ -6,7 +7,7 @@ export type FlipIdPromptAssets = {
|
|
|
6
7
|
backLandscapeGuidesImageUrl?: string;
|
|
7
8
|
};
|
|
8
9
|
export type FlipIdPromptVerbiage = {
|
|
9
|
-
instructionText?:
|
|
10
|
+
instructionText?: CustomerSuppliedVerbiage;
|
|
10
11
|
};
|
|
11
12
|
export type FlipIdPromptProps = {
|
|
12
13
|
assets?: FlipIdPromptAssets;
|
|
@@ -4,6 +4,7 @@ import { DocumentType } from '../../lib/models/DocumentDetection';
|
|
|
4
4
|
import { PDF417DetectionResult } from '../../lib/barcode/Native';
|
|
5
5
|
import { CaptureAttemptMetadata } from '../../contexts/SubmissionContext';
|
|
6
6
|
import { IdCapturePrediction } from './IdCaptureModelsProvider';
|
|
7
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
7
8
|
export type IdCaptureAssets = {
|
|
8
9
|
portraitGuidesImageUrl?: string;
|
|
9
10
|
landscapeGuidesImageUrl?: string;
|
|
@@ -13,9 +14,10 @@ export type IdCaptureColors = {
|
|
|
13
14
|
guideBoxSatisfiedColor?: string;
|
|
14
15
|
};
|
|
15
16
|
export type IdCaptureVerbiage = {
|
|
16
|
-
instructionText?:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
instructionText?: CustomerSuppliedVerbiage;
|
|
18
|
+
processingIdCardText?: CustomerSuppliedVerbiage;
|
|
19
|
+
capturingText?: CustomerSuppliedVerbiage;
|
|
20
|
+
captureFailedText?: CustomerSuppliedVerbiage;
|
|
19
21
|
};
|
|
20
22
|
export type IdCaptureProps = {
|
|
21
23
|
requiredDocumentType?: DocumentType;
|
|
@@ -40,4 +42,4 @@ export type IdCaptureProps = {
|
|
|
40
42
|
verbiage?: IdCaptureVerbiage;
|
|
41
43
|
debugMode?: boolean;
|
|
42
44
|
};
|
|
43
|
-
export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, onPrediction, onBarcodeScanned, onCapture, onExit, processingScreen, processingDelay, assets, colors, verbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
|
|
45
|
+
export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, onPrediction, onBarcodeScanned, onCapture, onExit, processingScreen, processingDelay, assets, colors, verbiage: rawVerbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CameraAccessDeniedOverlayAssets, CameraAccessDeniedOverlayColors, CameraAccessDeniedOverlayVerbiage } from '../camera/CameraAccessDeniedOverlay';
|
|
3
3
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
4
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
5
|
export type IdCaptureLoadingOverlayAssets = {
|
|
5
6
|
instructionImageUrl?: string;
|
|
6
7
|
cameraAccessDenied?: CameraAccessDeniedOverlayAssets;
|
|
@@ -10,11 +11,11 @@ export type IdCaptureLoadingOverlayColors = {
|
|
|
10
11
|
cameraAccessDenied?: CameraAccessDeniedOverlayColors;
|
|
11
12
|
};
|
|
12
13
|
export type IdCaptureLoadingOverlayVerbiage = {
|
|
13
|
-
headingText?:
|
|
14
|
-
useContinuityCameraText?:
|
|
15
|
-
modelsWarmingUpText?:
|
|
16
|
-
cameraInitializingText?:
|
|
17
|
-
continueText?:
|
|
14
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
15
|
+
useContinuityCameraText?: CustomerSuppliedVerbiage;
|
|
16
|
+
modelsWarmingUpText?: CustomerSuppliedVerbiage;
|
|
17
|
+
cameraInitializingText?: CustomerSuppliedVerbiage;
|
|
18
|
+
continueText?: CustomerSuppliedVerbiage;
|
|
18
19
|
cameraAccessDenied?: CameraAccessDeniedOverlayVerbiage;
|
|
19
20
|
};
|
|
20
21
|
export type IdCaptureLoadingOverlayProps = {
|
|
@@ -23,4 +24,4 @@ export type IdCaptureLoadingOverlayProps = {
|
|
|
23
24
|
colors?: IdCaptureLoadingOverlayColors;
|
|
24
25
|
verbiage?: IdCaptureLoadingOverlayVerbiage;
|
|
25
26
|
};
|
|
26
|
-
export declare const IdCaptureLoadingOverlay: ({ onDismissed, assets, colors, verbiage, }: IdCaptureLoadingOverlayProps) => ReactElement;
|
|
27
|
+
export declare const IdCaptureLoadingOverlay: ({ onDismissed, assets, colors, verbiage: rawVerbiage, }: IdCaptureLoadingOverlayProps) => ReactElement;
|
|
@@ -2,15 +2,16 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { CapturedDocuments } from '../additional_document_capture/CapturedDocuments';
|
|
3
3
|
import { PDF417DetectionResult } from '../../lib/barcode/Native';
|
|
4
4
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
5
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
5
6
|
export type IdCaptureSuccessVerbiage = {
|
|
6
|
-
headingText?:
|
|
7
|
-
idCardFrontText?:
|
|
8
|
-
idCardBackText?:
|
|
9
|
-
passportText?:
|
|
10
|
-
instructionText?:
|
|
11
|
-
retryText?:
|
|
12
|
-
submittingText?:
|
|
13
|
-
submitText?:
|
|
7
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
8
|
+
idCardFrontText?: CustomerSuppliedVerbiage;
|
|
9
|
+
idCardBackText?: CustomerSuppliedVerbiage;
|
|
10
|
+
passportText?: CustomerSuppliedVerbiage;
|
|
11
|
+
instructionText?: CustomerSuppliedVerbiage;
|
|
12
|
+
retryText?: CustomerSuppliedVerbiage;
|
|
13
|
+
submittingText?: CustomerSuppliedVerbiage;
|
|
14
|
+
submitText?: CustomerSuppliedVerbiage;
|
|
14
15
|
};
|
|
15
16
|
export type IdCaptureSuccessColors = {
|
|
16
17
|
doneBtn?: LoaderButtonColors;
|
|
@@ -24,4 +25,4 @@ export type IdCaptureSuccessProps = {
|
|
|
24
25
|
colors?: IdCaptureSuccessColors;
|
|
25
26
|
verbiage?: IdCaptureSuccessVerbiage;
|
|
26
27
|
};
|
|
27
|
-
export declare const IdCaptureSuccess: ({ capturedDocuments, onSubmitClick, onRetryClick, colors, verbiage, }: IdCaptureSuccessProps) => ReactElement;
|
|
28
|
+
export declare const IdCaptureSuccess: ({ capturedDocuments, onSubmitClick, onRetryClick, colors, verbiage: rawVerbiage, }: IdCaptureSuccessProps) => ReactElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IdCaptureAssets, IdCaptureColors, IdCaptureVerbiage } from './IdCapture';
|
|
3
|
-
import { IdCaptureLoadingOverlayAssets, IdCaptureLoadingOverlayVerbiage } from './IdCaptureLoadingOverlay';
|
|
3
|
+
import { IdCaptureLoadingOverlayAssets, IdCaptureLoadingOverlayColors, IdCaptureLoadingOverlayVerbiage } from './IdCaptureLoadingOverlay';
|
|
4
4
|
import { FlipIdPromptAssets, FlipIdPromptVerbiage } from './FlipIdPrompt';
|
|
5
|
-
import { IdCaptureSuccessVerbiage } from './IdCaptureSuccess';
|
|
5
|
+
import { IdCaptureSuccessColors, IdCaptureSuccessVerbiage } from './IdCaptureSuccess';
|
|
6
6
|
export type IdCaptureWizardAssets = {
|
|
7
7
|
documentDetectionModelUrl?: string;
|
|
8
8
|
focusModelUrl?: string;
|
|
@@ -12,7 +12,10 @@ export type IdCaptureWizardAssets = {
|
|
|
12
12
|
passport?: IdCaptureAssets;
|
|
13
13
|
flipIdPrompt?: FlipIdPromptAssets;
|
|
14
14
|
};
|
|
15
|
-
export type IdCaptureWizardColors = IdCaptureColors
|
|
15
|
+
export type IdCaptureWizardColors = IdCaptureColors & {
|
|
16
|
+
loadingOverlay?: IdCaptureLoadingOverlayColors;
|
|
17
|
+
success?: IdCaptureSuccessColors;
|
|
18
|
+
};
|
|
16
19
|
export type IdCaptureWizardVerbiage = {
|
|
17
20
|
loadingOverlay?: IdCaptureLoadingOverlayVerbiage;
|
|
18
21
|
idCardFront?: IdCaptureVerbiage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Face } from './HighPerformanceSelfieGuidanceModelsProvider';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type SelfieCaptureColors = {
|
|
4
5
|
guidesUnsatisfiedColor?: string;
|
|
5
6
|
guidesSatisfiedColor?: string;
|
|
@@ -9,11 +10,11 @@ export type SelfieCaptureColors = {
|
|
|
9
10
|
guidanceMessagesUnsatisfiedTextColor?: string;
|
|
10
11
|
};
|
|
11
12
|
export type SelfieCaptureVerbiage = {
|
|
12
|
-
guidanceHoldStillText?:
|
|
13
|
-
guidanceLookStraightText?:
|
|
14
|
-
guidanceMoveBackText?:
|
|
15
|
-
guidanceMoveForwardText?:
|
|
16
|
-
guidanceMoveToCenterText?:
|
|
13
|
+
guidanceHoldStillText?: CustomerSuppliedVerbiage;
|
|
14
|
+
guidanceLookStraightText?: CustomerSuppliedVerbiage;
|
|
15
|
+
guidanceMoveBackText?: CustomerSuppliedVerbiage;
|
|
16
|
+
guidanceMoveForwardText?: CustomerSuppliedVerbiage;
|
|
17
|
+
guidanceMoveToCenterText?: CustomerSuppliedVerbiage;
|
|
17
18
|
};
|
|
18
19
|
export type SelfieCaptureProps = {
|
|
19
20
|
onGuidanceSatisfied?: () => void;
|
|
@@ -23,8 +24,9 @@ export type SelfieCaptureProps = {
|
|
|
23
24
|
onExit?: () => void;
|
|
24
25
|
timeoutDurationMs?: number;
|
|
25
26
|
guidanceMessage?: string;
|
|
27
|
+
guidanceSatisfied?: boolean;
|
|
26
28
|
colors?: SelfieCaptureColors;
|
|
27
29
|
verbiage?: SelfieCaptureVerbiage;
|
|
28
30
|
debugMode?: boolean;
|
|
29
31
|
};
|
|
30
|
-
export declare const SelfieCapture: ({ onGuidanceSatisfied, onGuidanceNotSatisfied, onSelfieCaptured, onTimeout, onExit, timeoutDurationMs, guidanceMessage, colors, verbiage, debugMode, }: SelfieCaptureProps) => ReactElement;
|
|
32
|
+
export declare const SelfieCapture: ({ onGuidanceSatisfied, onGuidanceNotSatisfied, onSelfieCaptured, onTimeout, onExit, timeoutDurationMs, guidanceMessage, guidanceSatisfied, colors, verbiage: rawVerbiage, debugMode, }: SelfieCaptureProps) => ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CameraAccessDeniedOverlayAssets, CameraAccessDeniedOverlayColors, CameraAccessDeniedOverlayVerbiage } from '../camera/CameraAccessDeniedOverlay';
|
|
3
3
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
4
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
5
|
export type SelfieCaptureLoadingOverlayAssets = {
|
|
5
6
|
instructionImageUrl?: string;
|
|
6
7
|
cameraAccessDenied?: CameraAccessDeniedOverlayAssets;
|
|
@@ -10,12 +11,12 @@ export type SelfieCaptureLoadingOverlayColors = {
|
|
|
10
11
|
cameraAccessDenied?: CameraAccessDeniedOverlayColors;
|
|
11
12
|
};
|
|
12
13
|
export type SelfieCaptureLoadingOverlayVerbiage = {
|
|
13
|
-
headingText?:
|
|
14
|
-
removeEyeCoveringsText?:
|
|
15
|
-
avoidExcessiveBacklightingText?:
|
|
16
|
-
continueText?:
|
|
17
|
-
cameraInitializingText?:
|
|
18
|
-
modelsWarmingUpText?:
|
|
14
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
15
|
+
removeEyeCoveringsText?: CustomerSuppliedVerbiage;
|
|
16
|
+
avoidExcessiveBacklightingText?: CustomerSuppliedVerbiage;
|
|
17
|
+
continueText?: CustomerSuppliedVerbiage;
|
|
18
|
+
cameraInitializingText?: CustomerSuppliedVerbiage;
|
|
19
|
+
modelsWarmingUpText?: CustomerSuppliedVerbiage;
|
|
19
20
|
cameraAccessDenied?: CameraAccessDeniedOverlayVerbiage;
|
|
20
21
|
};
|
|
21
22
|
export type SelfieCaptureLoadingOverlayProps = {
|
|
@@ -24,4 +25,4 @@ export type SelfieCaptureLoadingOverlayProps = {
|
|
|
24
25
|
colors?: SelfieCaptureLoadingOverlayColors;
|
|
25
26
|
verbiage?: SelfieCaptureLoadingOverlayVerbiage;
|
|
26
27
|
};
|
|
27
|
-
export declare const SelfieCaptureLoadingOverlay: ({ onDismissed, assets, colors, verbiage, }: SelfieCaptureLoadingOverlayProps) => ReactElement;
|
|
28
|
+
export declare const SelfieCaptureLoadingOverlay: ({ onDismissed, assets, colors, verbiage: rawVerbiage, }: SelfieCaptureLoadingOverlayProps) => ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SignatureData } from './data';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type SignatureCaptureVerbiage = {
|
|
4
|
-
headingText?:
|
|
5
|
-
acceptBtnText?:
|
|
6
|
-
clearBtnText?:
|
|
5
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
6
|
+
acceptBtnText?: CustomerSuppliedVerbiage;
|
|
7
|
+
clearBtnText?: CustomerSuppliedVerbiage;
|
|
7
8
|
};
|
|
8
9
|
export type SignatureCaptureProps = {
|
|
9
10
|
onAccept?: (signatureData: SignatureData, imageData: string) => void;
|
|
10
11
|
background?: string;
|
|
11
12
|
verbiage?: SignatureCaptureVerbiage;
|
|
12
13
|
};
|
|
13
|
-
export declare const SignatureCapture: ({ onAccept, verbiage, }: SignatureCaptureProps) => React.ReactElement;
|
|
14
|
+
export declare const SignatureCapture: ({ onAccept, verbiage: rawVerbiage, }: SignatureCaptureProps) => React.ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SignatureData } from '../signature_capture/data';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type VideoSignatureCaptureColors = {
|
|
4
5
|
guidanceMessageBackgroundColor?: string;
|
|
5
6
|
guidanceMessageTextColor?: string;
|
|
6
7
|
};
|
|
7
8
|
export type VideoSignatureCaptureVerbiage = {
|
|
8
|
-
guidanceMessageText?:
|
|
9
|
-
acceptBtnText?:
|
|
10
|
-
clearBtnText?:
|
|
9
|
+
guidanceMessageText?: CustomerSuppliedVerbiage;
|
|
10
|
+
acceptBtnText?: CustomerSuppliedVerbiage;
|
|
11
|
+
clearBtnText?: CustomerSuppliedVerbiage;
|
|
11
12
|
};
|
|
12
13
|
export type VideoSignatureCaptureProps = {
|
|
13
14
|
onVideoCaptured?: (videoData: Blob, signatureData: SignatureData, signatureImageData: string) => void;
|
|
@@ -17,4 +18,4 @@ export type VideoSignatureCaptureProps = {
|
|
|
17
18
|
verbiage?: VideoSignatureCaptureVerbiage;
|
|
18
19
|
debugMode?: boolean;
|
|
19
20
|
};
|
|
20
|
-
export declare const VideoSignatureCapture: ({ onVideoCaptured, onFaceNotDetected, onExit, colors, verbiage, debugMode, }: VideoSignatureCaptureProps) => React.ReactElement;
|
|
21
|
+
export declare const VideoSignatureCapture: ({ onVideoCaptured, onFaceNotDetected, onExit, colors, verbiage: rawVerbiage, debugMode, }: VideoSignatureCaptureProps) => React.ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
3
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
4
|
export type VideoSignatureSuccessColors = {
|
|
4
5
|
retryBtn?: LoaderButtonColors;
|
|
5
6
|
doneBtn?: LoaderButtonColors;
|
|
6
7
|
};
|
|
7
8
|
export type VideoSignatureSuccessVerbiage = {
|
|
8
|
-
headingText?:
|
|
9
|
-
retryBtnText?:
|
|
10
|
-
doneBtnText?:
|
|
9
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
10
|
+
retryBtnText?: CustomerSuppliedVerbiage;
|
|
11
|
+
doneBtnText?: CustomerSuppliedVerbiage;
|
|
11
12
|
};
|
|
12
13
|
export type VideoSignatureSuccessProps = {
|
|
13
14
|
videoUrl: string;
|
|
@@ -16,4 +17,4 @@ export type VideoSignatureSuccessProps = {
|
|
|
16
17
|
colors?: VideoSignatureSuccessColors;
|
|
17
18
|
verbiage?: VideoSignatureSuccessVerbiage;
|
|
18
19
|
};
|
|
19
|
-
export declare const VideoSignatureSuccess: ({ videoUrl, onDoneClick, onRetryClick, colors, verbiage, }: VideoSignatureSuccessProps) => ReactElement;
|
|
20
|
+
export declare const VideoSignatureSuccess: ({ videoUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: VideoSignatureSuccessProps) => ReactElement;
|
|
@@ -20,6 +20,7 @@ declare const _default: {
|
|
|
20
20
|
'Capturing...': string;
|
|
21
21
|
'Capture failed!': string;
|
|
22
22
|
'Please flip your ID card...': string;
|
|
23
|
+
'ID card front captured.': string;
|
|
23
24
|
'ID Capture Successful': string;
|
|
24
25
|
'Verify the entire ID was captured clearly with no glare.': string;
|
|
25
26
|
Submit: string;
|