idmission-web-sdk 0.0.38 → 0.0.39
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 +29 -0
- package/dist/components/common/GuidanceMessage.d.ts +5 -261
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +3 -2
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +5 -2
- package/dist/components/customer_flows/CustomerIdentification.d.ts +3 -2
- package/dist/components/customer_flows/CustomerVerification.d.ts +3 -2
- package/dist/components/customer_flows/FaceValidation.d.ts +3 -2
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +5 -2
- package/dist/components/customer_flows/IdValidation.d.ts +3 -1
- package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts +4 -2
- package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +4 -2
- package/dist/components/customer_verification/CustomerVerificationCapture.d.ts +4 -2
- package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +4 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +4 -2
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +4 -2
- package/dist/components/id_capture/IdCapture.d.ts +6 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +4 -2
- package/dist/components/selfie_capture/SelfieCapture.d.ts +6 -1
- package/dist/sdk2.cjs.development.js +276 -234
- 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 +276 -234
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +276 -234
- 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/package.json +7 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
-
import { SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
|
+
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
4
|
+
export type CustomerVerificationCaptureColors = SelfieCaptureColors;
|
|
4
5
|
export type CustomerVerificationCaptureVerbiage = SelfieCaptureVerbiage;
|
|
5
6
|
export type CustomerVerificationCaptureProps = {
|
|
6
7
|
onCustomerMatched?: (response: SubmissionResponse) => void;
|
|
@@ -8,7 +9,8 @@ export type CustomerVerificationCaptureProps = {
|
|
|
8
9
|
onCaptureGuidanceTimeout?: () => void;
|
|
9
10
|
onExit?: () => void;
|
|
10
11
|
captureGuidanceTimeoutDurationMs?: number;
|
|
12
|
+
colors?: CustomerVerificationCaptureColors;
|
|
11
13
|
verbiage?: CustomerVerificationCaptureVerbiage;
|
|
12
14
|
debugMode?: boolean;
|
|
13
15
|
};
|
|
14
|
-
export declare const CustomerVerificationCapture: ({ onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExit, captureGuidanceTimeoutDurationMs, verbiage, debugMode, }: CustomerVerificationCaptureProps) => ReactElement;
|
|
16
|
+
export declare const CustomerVerificationCapture: ({ onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExit, captureGuidanceTimeoutDurationMs, colors, verbiage, debugMode, }: CustomerVerificationCaptureProps) => ReactElement;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
4
|
+
import { CustomerVerificationCaptureColors } from './CustomerVerificationCapture';
|
|
4
5
|
export type CustomerVerificationAssets = {
|
|
5
6
|
instructionImageUrl?: string;
|
|
6
7
|
failureImageUrl?: string;
|
|
7
8
|
};
|
|
9
|
+
export type CustomerVerificationColors = CustomerVerificationCaptureColors;
|
|
8
10
|
export type CustomerVerificationVerbiage = SelfieCaptureVerbiage & {
|
|
9
11
|
loadingOverlayHeadingText?: string;
|
|
10
12
|
loadingOverlayRemoveEyeCoveringsText?: string;
|
|
@@ -27,7 +29,8 @@ export type CustomerVerificationWizardProps = {
|
|
|
27
29
|
onCaptureGuidanceTimeout?: () => void;
|
|
28
30
|
captureGuidanceTimeoutDurationMs?: number;
|
|
29
31
|
assets?: CustomerVerificationAssets;
|
|
32
|
+
colors?: CustomerVerificationColors;
|
|
30
33
|
verbiage?: CustomerVerificationVerbiage;
|
|
31
34
|
debugMode?: boolean;
|
|
32
35
|
};
|
|
33
|
-
export declare const CustomerVerificationWizard: ({ onComplete, onCustomerMatched, onCustomerNotMatched, onExitAfterFailure, onCaptureGuidanceTimeout, captureGuidanceTimeoutDurationMs, assets, verbiage, debugMode, }: CustomerVerificationWizardProps) => ReactElement;
|
|
36
|
+
export declare const CustomerVerificationWizard: ({ onComplete, onCustomerMatched, onCustomerNotMatched, onExitAfterFailure, onCaptureGuidanceTimeout, captureGuidanceTimeoutDurationMs, assets, colors, verbiage, debugMode, }: CustomerVerificationWizardProps) => ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
2
|
+
import { SelfieCaptureColors, SelfieCaptureVerbiage } from '../selfie_capture/SelfieCapture';
|
|
3
|
+
export type FaceLivenessCaptureColors = SelfieCaptureColors;
|
|
3
4
|
export type FaceLivenessCaptureVerbiage = SelfieCaptureVerbiage & {
|
|
4
5
|
guidanceRemoveEyeCoveringsText?: string;
|
|
5
6
|
guidanceRemoveHeadCoveringsText?: string;
|
|
@@ -11,7 +12,8 @@ export type FaceLivenessCaptureProps = {
|
|
|
11
12
|
onTimeout?: () => void;
|
|
12
13
|
onExit?: () => void;
|
|
13
14
|
timeoutDurationMs?: number;
|
|
15
|
+
colors?: FaceLivenessCaptureColors;
|
|
14
16
|
verbiage?: FaceLivenessCaptureVerbiage;
|
|
15
17
|
debugMode?: boolean;
|
|
16
18
|
};
|
|
17
|
-
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, verbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
19
|
+
export declare const FaceLivenessCapture: ({ onCapture, onSuccess, onTimeout, onExit, timeoutDurationMs, colors, verbiage, debugMode, }: FaceLivenessCaptureProps) => ReactElement;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { FaceLivenessCaptureVerbiage } from './FaceLivenessCapture';
|
|
2
|
+
import { FaceLivenessCaptureColors, FaceLivenessCaptureVerbiage } from './FaceLivenessCapture';
|
|
3
3
|
import { SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
4
|
export type FaceLivenessAssets = {
|
|
5
5
|
instructionImageUrl?: string;
|
|
6
6
|
failureImageUrl?: string;
|
|
7
7
|
};
|
|
8
|
+
export type FaceLivenessColors = FaceLivenessCaptureColors;
|
|
8
9
|
export type FaceLivenessVerbiage = FaceLivenessCaptureVerbiage & {
|
|
9
10
|
loadingOverlayHeadingText?: string;
|
|
10
11
|
loadingOverlayRemoveEyeCoveringsText?: string;
|
|
@@ -27,7 +28,8 @@ export type FaceLivenessWizardProps = {
|
|
|
27
28
|
timeoutDurationMs?: number;
|
|
28
29
|
maxRetries?: number;
|
|
29
30
|
assets?: FaceLivenessAssets;
|
|
31
|
+
colors?: FaceLivenessColors;
|
|
30
32
|
verbiage?: FaceLivenessVerbiage;
|
|
31
33
|
debugMode?: boolean;
|
|
32
34
|
};
|
|
33
|
-
export declare const FaceLivenessWizard: ({ onComplete, onSuccess, onTimeout, onExitAfterFailure, timeoutDurationMs, maxRetries,
|
|
35
|
+
export declare const FaceLivenessWizard: ({ onComplete, onSuccess, onTimeout, onExitAfterFailure, timeoutDurationMs, maxRetries, assets, colors, verbiage, debugMode, }: FaceLivenessWizardProps) => ReactElement;
|
|
@@ -8,6 +8,10 @@ export type IdCaptureAssets = {
|
|
|
8
8
|
portraitGuidesImageUrl?: string;
|
|
9
9
|
landscapeGuidesImageUrl?: string;
|
|
10
10
|
};
|
|
11
|
+
export type IdCaptureColors = {
|
|
12
|
+
guideBoxUnsatisfiedColor?: string;
|
|
13
|
+
guideBoxSatisfiedColor?: string;
|
|
14
|
+
};
|
|
11
15
|
export type IdCaptureVerbiage = {
|
|
12
16
|
instructionText?: string;
|
|
13
17
|
capturingText?: string;
|
|
@@ -32,7 +36,8 @@ export type IdCaptureProps = {
|
|
|
32
36
|
processingScreen?: React.ReactElement;
|
|
33
37
|
processingDelay?: number;
|
|
34
38
|
assets?: IdCaptureAssets;
|
|
39
|
+
colors?: IdCaptureColors;
|
|
35
40
|
verbiage?: IdCaptureVerbiage;
|
|
36
41
|
debugMode?: boolean;
|
|
37
42
|
};
|
|
38
|
-
export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, onPrediction, onBarcodeScanned, onCapture, onExit, processingScreen, processingDelay, assets, verbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
|
|
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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { IdCaptureColors } from './IdCapture';
|
|
2
3
|
export type IdCaptureAssets = {
|
|
3
4
|
documentDetectionModelUrl?: string;
|
|
4
5
|
focusModelUrl?: string;
|
|
@@ -48,8 +49,9 @@ export type IdCaptureWizardProps = {
|
|
|
48
49
|
mrzDetectionScoreThreshold?: number;
|
|
49
50
|
idCardFocusScoreThreshold?: number;
|
|
50
51
|
passportFocusScoreThreshold?: number;
|
|
51
|
-
verbiage?: IdCaptureVerbiage;
|
|
52
52
|
assets?: IdCaptureAssets;
|
|
53
|
+
colors?: IdCaptureColors;
|
|
54
|
+
verbiage?: IdCaptureVerbiage;
|
|
53
55
|
debugMode?: boolean;
|
|
54
56
|
};
|
|
55
|
-
export declare const IdCaptureWizard: ({ onSuccess, autoCaptureEnabled, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, barcodeScanningEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, assets, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
57
|
+
export declare const IdCaptureWizard: ({ onSuccess, autoCaptureEnabled, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, barcodeScanningEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, assets, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Face } from './HighPerformanceSelfieGuidanceModelsProvider';
|
|
3
|
+
export type SelfieCaptureColors = {
|
|
4
|
+
guidesUnsatisfiedColor?: string;
|
|
5
|
+
guidesSatisfiedColor?: string;
|
|
6
|
+
};
|
|
3
7
|
export type SelfieCaptureVerbiage = {
|
|
4
8
|
guidanceHoldStillText?: string;
|
|
5
9
|
guidanceLookStraightText?: string;
|
|
@@ -15,7 +19,8 @@ export type SelfieCaptureProps = {
|
|
|
15
19
|
onExit?: () => void;
|
|
16
20
|
timeoutDurationMs?: number;
|
|
17
21
|
guidanceMessage?: string;
|
|
22
|
+
colors?: SelfieCaptureColors;
|
|
18
23
|
verbiage?: SelfieCaptureVerbiage;
|
|
19
24
|
debugMode?: boolean;
|
|
20
25
|
};
|
|
21
|
-
export declare const SelfieCapture: ({ onGuidanceSatisfied, onGuidanceNotSatisfied, onSelfieCaptured, onTimeout, onExit, timeoutDurationMs, guidanceMessage, verbiage, debugMode, }: SelfieCaptureProps) => ReactElement;
|
|
26
|
+
export declare const SelfieCapture: ({ onGuidanceSatisfied, onGuidanceNotSatisfied, onSelfieCaptured, onTimeout, onExit, timeoutDurationMs, guidanceMessage, colors, verbiage, debugMode, }: SelfieCaptureProps) => ReactElement;
|