idmission-web-sdk 1.0.78 → 1.0.79
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/read_text_prompt/ReadTextPrompt.d.ts +23 -0
- package/dist/components/video_id/IdVideoCapture.d.ts +9 -3
- package/dist/components/video_id/IdVideoCaptureSuccess.d.ts +12 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +4 -2
- package/dist/sdk2.cjs.development.js +286 -222
- 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 +286 -222
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +286 -222
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +1 -0
- package/dist/themes/index.d.ts +38 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
3
|
+
export type ReadTextPromptClassNames = {
|
|
4
|
+
container?: string;
|
|
5
|
+
heading?: string;
|
|
6
|
+
prompt?: string;
|
|
7
|
+
buttonsRow?: string;
|
|
8
|
+
timeRemaining?: string;
|
|
9
|
+
doneBtn?: string;
|
|
10
|
+
};
|
|
11
|
+
export type ReadTextPromptVerbiage = {
|
|
12
|
+
headingText?: CustomerSuppliedVerbiage;
|
|
13
|
+
doneBtnText?: CustomerSuppliedVerbiage;
|
|
14
|
+
};
|
|
15
|
+
export type ReadTextPromptProps = {
|
|
16
|
+
text: CustomerSuppliedVerbiage;
|
|
17
|
+
onComplete?: () => void;
|
|
18
|
+
startedAt?: Date;
|
|
19
|
+
durationMs?: number;
|
|
20
|
+
classNames?: ReadTextPromptClassNames;
|
|
21
|
+
verbiage?: ReadTextPromptVerbiage;
|
|
22
|
+
};
|
|
23
|
+
export declare const ReadTextPrompt: ({ text, onComplete, startedAt, durationMs, classNames, verbiage: rawVerbiage, }: ReadTextPromptProps) => React.JSX.Element;
|
|
@@ -2,10 +2,16 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { IdVideoCaptureGuidesAssets, IdVideoCaptureGuidesVerbiage } from './IdVideoCaptureGuides';
|
|
3
3
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
4
|
import { LoaderButtonColors } from '../common/LoaderButton';
|
|
5
|
+
import { ReadTextPromptClassNames, ReadTextPromptVerbiage } from '../read_text_prompt/ReadTextPrompt';
|
|
5
6
|
export type Action = 'SHOW_ID_FRONT' | 'FLIP_ID' | 'SHOW_ID_BACK' | 'READ_TEXT';
|
|
6
7
|
export type IdVideoCaptureAssets = {
|
|
7
8
|
guides?: IdVideoCaptureGuidesAssets;
|
|
8
9
|
};
|
|
10
|
+
export type IdVideoCaptureClassNames = {
|
|
11
|
+
container?: string;
|
|
12
|
+
cameraFeed?: string;
|
|
13
|
+
readTextPrompt?: ReadTextPromptClassNames;
|
|
14
|
+
};
|
|
9
15
|
export type IdVideoCaptureColors = {
|
|
10
16
|
guidesSatisfiedColor?: string;
|
|
11
17
|
guidesUnsatisfiedColor?: string;
|
|
@@ -13,8 +19,7 @@ export type IdVideoCaptureColors = {
|
|
|
13
19
|
};
|
|
14
20
|
export type IdVideoCaptureVerbiage = {
|
|
15
21
|
guides?: IdVideoCaptureGuidesVerbiage;
|
|
16
|
-
|
|
17
|
-
readTextDoneBtnText?: CustomerSuppliedVerbiage;
|
|
22
|
+
readTextPrompt?: ReadTextPromptVerbiage;
|
|
18
23
|
};
|
|
19
24
|
export type IdVideoCaptureProps = {
|
|
20
25
|
onComplete?: (videoUrl: string) => void;
|
|
@@ -29,8 +34,9 @@ export type IdVideoCaptureProps = {
|
|
|
29
34
|
readTextPrompt?: CustomerSuppliedVerbiage;
|
|
30
35
|
readTextTimeoutDurationMs?: number;
|
|
31
36
|
assets?: IdVideoCaptureAssets;
|
|
37
|
+
classNames?: IdVideoCaptureClassNames;
|
|
32
38
|
colors?: IdVideoCaptureColors;
|
|
33
39
|
verbiage?: IdVideoCaptureVerbiage;
|
|
34
40
|
debugMode?: boolean;
|
|
35
41
|
};
|
|
36
|
-
export declare const IdVideoCapture: ({ onComplete, onIdFrontImageCaptured, onIdBackImageCaptured, onFaceNotDetected, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, showIdCardBackDurationMs, skipShowIdCardBack, readTextPrompt, readTextTimeoutDurationMs, assets, colors, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => ReactElement;
|
|
42
|
+
export declare const IdVideoCapture: ({ onComplete, onIdFrontImageCaptured, onIdBackImageCaptured, onFaceNotDetected, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, showIdCardBackDurationMs, skipShowIdCardBack, readTextPrompt, readTextTimeoutDurationMs, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => 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 IdVideoCaptureSuccessClassNames = {
|
|
5
|
+
container?: string;
|
|
6
|
+
inner?: string;
|
|
7
|
+
heading?: string;
|
|
8
|
+
videoContainer?: string;
|
|
9
|
+
video?: string;
|
|
10
|
+
buttonsRow?: string;
|
|
11
|
+
retryBtn?: string;
|
|
12
|
+
doneBtn?: string;
|
|
13
|
+
};
|
|
4
14
|
export type IdVideoCaptureSuccessColors = {
|
|
5
15
|
retryBtn?: LoaderButtonColors;
|
|
6
16
|
doneBtn?: LoaderButtonColors;
|
|
@@ -14,7 +24,8 @@ export type IdVideoCaptureSuccessProps = {
|
|
|
14
24
|
videoUrl: string;
|
|
15
25
|
onDoneClick?: () => void;
|
|
16
26
|
onRetryClick?: () => void;
|
|
27
|
+
classNames?: IdVideoCaptureSuccessClassNames;
|
|
17
28
|
colors?: IdVideoCaptureSuccessColors;
|
|
18
29
|
verbiage?: IdVideoCaptureSuccessVerbiage;
|
|
19
30
|
};
|
|
20
|
-
export declare const IdVideoCaptureSuccess: ({ videoUrl, onDoneClick, onRetryClick, colors, verbiage: rawVerbiage, }: IdVideoCaptureSuccessProps) => ReactElement;
|
|
31
|
+
export declare const IdVideoCaptureSuccess: ({ videoUrl, onDoneClick, onRetryClick, classNames, colors, verbiage: rawVerbiage, }: IdVideoCaptureSuccessProps) => ReactElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardProps, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
3
3
|
import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage, FaceLivenessWizardProps } from '../face_liveness/FaceLivenessWizard';
|
|
4
|
-
import { IdVideoCaptureAssets, IdVideoCaptureColors, IdVideoCaptureVerbiage } from './IdVideoCapture';
|
|
5
|
-
import { IdVideoCaptureSuccessColors, IdVideoCaptureSuccessVerbiage } from './IdVideoCaptureSuccess';
|
|
4
|
+
import { IdVideoCaptureAssets, IdVideoCaptureClassNames, IdVideoCaptureColors, IdVideoCaptureVerbiage } from './IdVideoCapture';
|
|
5
|
+
import { IdVideoCaptureSuccessClassNames, IdVideoCaptureSuccessColors, IdVideoCaptureSuccessVerbiage } from './IdVideoCaptureSuccess';
|
|
6
6
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
7
7
|
import { LivenessCheckRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
8
8
|
export type VideoIdWizardAssets = {
|
|
@@ -13,6 +13,8 @@ export type VideoIdWizardAssets = {
|
|
|
13
13
|
export type VideoIdWizardClassNames = {
|
|
14
14
|
idCapture?: IdCaptureWizardClassNames;
|
|
15
15
|
faceLiveness?: FaceLivenessClassNames;
|
|
16
|
+
idVideoCapture?: IdVideoCaptureClassNames;
|
|
17
|
+
success?: IdVideoCaptureSuccessClassNames;
|
|
16
18
|
};
|
|
17
19
|
export type VideoIdWizardColors = {
|
|
18
20
|
idCapture?: IdCaptureWizardColors;
|