idmission-web-sdk 2.1.17 → 2.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/customer_flows/IdValidation.d.ts +2 -0
- package/dist/components/id_capture/IdCaptureGuides.d.ts +2 -1
- package/dist/components/id_capture/IdCaptureStateProvider.d.ts +2 -0
- package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -1
- package/dist/lib/locales/es/translation.d.ts +1 -0
- package/dist/lib/locales/index.d.ts +1 -0
- package/dist/sdk2.cjs.development.js +16429 -0
- package/dist/sdk2.cjs.development.js.map +1 -0
- package/dist/sdk2.cjs.production.js +2 -0
- package/dist/sdk2.cjs.production.js.map +1 -0
- package/dist/sdk2.esm.js +118 -90
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +118 -90
- 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/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -98,6 +98,8 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
98
98
|
modelLoadTimeoutMs?: number;
|
|
99
99
|
/** Boolean to indicate whether to force the fallback mode even if the ID capture models are available. Defaults to `false`. */
|
|
100
100
|
forceFallbackMode?: boolean;
|
|
101
|
+
/** Boolean to indicate whether to allow the user to capture the back of the ID card before capturing the front. Defaults to `false`. */
|
|
102
|
+
allowIdCardBackToFrontCapture?: boolean;
|
|
101
103
|
/** Object to allow documents that have been previously captured to be submitted. Valid keys: `idCardFront`, `idCardBack`, `passport`.*/
|
|
102
104
|
precapturedDocuments?: CapturedDocuments;
|
|
103
105
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
@@ -3,10 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import { IdCaptureAssets, IdCaptureColors, IdCaptureVerbiage } from './IdCapture';
|
|
4
4
|
import { FlipIdPromptAssets } from './FlipIdPrompt';
|
|
5
5
|
export type IdCaptureGuideType = 'fit' | 'overlay';
|
|
6
|
-
export declare function IdCaptureGuides({ guideType, portraitGuidesOnMobile, requestingFlip, flipIdPromptAssets, classNames, assets, colors, verbiage: rawVerbiage, }: {
|
|
6
|
+
export declare function IdCaptureGuides({ guideType, portraitGuidesOnMobile, requestingFlip, isBackToFront, flipIdPromptAssets, classNames, assets, colors, verbiage: rawVerbiage, }: {
|
|
7
7
|
guideType?: IdCaptureGuideType;
|
|
8
8
|
portraitGuidesOnMobile?: boolean;
|
|
9
9
|
requestingFlip?: boolean;
|
|
10
|
+
isBackToFront?: boolean;
|
|
10
11
|
flipIdPromptAssets?: FlipIdPromptAssets;
|
|
11
12
|
classNames?: IdCaptureFitGuideClassNames;
|
|
12
13
|
assets?: IdCaptureAssets;
|
|
@@ -48,6 +48,7 @@ export type IdCaptureState = {
|
|
|
48
48
|
capturedDocuments: CapturedDocuments;
|
|
49
49
|
captureRequirement: IdCaptureRequirementOption;
|
|
50
50
|
requestedDocumentType: CapturedDocumentType;
|
|
51
|
+
allowIdCardBackToFrontCapture: boolean;
|
|
51
52
|
operationStartedAt: Date | null;
|
|
52
53
|
captureStartedAt: Date | null;
|
|
53
54
|
};
|
|
@@ -56,6 +57,7 @@ export type IdCaptureAction = {
|
|
|
56
57
|
payload: {
|
|
57
58
|
captureRequirement: IdCaptureRequirementOption;
|
|
58
59
|
precapturedDocuments?: CapturedDocuments;
|
|
60
|
+
allowIdCardBackToFrontCapture?: boolean;
|
|
59
61
|
};
|
|
60
62
|
} | {
|
|
61
63
|
type: 'setRequiredDocumentType';
|
|
@@ -64,10 +64,11 @@ export type IdCaptureWizardProps = {
|
|
|
64
64
|
rotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
65
65
|
silentFallback?: boolean;
|
|
66
66
|
forceFallbackMode?: boolean;
|
|
67
|
+
allowIdCardBackToFrontCapture?: boolean;
|
|
67
68
|
assets?: IdCaptureWizardAssets;
|
|
68
69
|
classNames?: IdCaptureWizardClassNames;
|
|
69
70
|
colors?: IdCaptureWizardColors;
|
|
70
71
|
verbiage?: IdCaptureWizardVerbiage;
|
|
71
72
|
debugMode?: boolean;
|
|
72
73
|
};
|
|
73
|
-
export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, loadingOverlayMode, precapturedDocuments, captureRequirement, separateIdCardCaptureSequence, thresholds, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, silentFallback, forceFallbackMode, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
74
|
+
export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, loadingOverlayMode, precapturedDocuments, captureRequirement, separateIdCardCaptureSequence, thresholds, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, silentFallback, forceFallbackMode, allowIdCardBackToFrontCapture, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
@@ -34,6 +34,7 @@ declare const _default: {
|
|
|
34
34
|
'Capture failed!': string;
|
|
35
35
|
'Please flip your ID card...': string;
|
|
36
36
|
'ID card front captured.': string;
|
|
37
|
+
'ID card back captured.': string;
|
|
37
38
|
'ID Capture Successful': string;
|
|
38
39
|
'Verify the entire ID was captured clearly with no glare.': string;
|
|
39
40
|
Submit: string;
|
|
@@ -42,6 +42,7 @@ export declare const resources: {
|
|
|
42
42
|
'Capture failed!': string;
|
|
43
43
|
'Please flip your ID card...': string;
|
|
44
44
|
'ID card front captured.': string;
|
|
45
|
+
'ID card back captured.': string;
|
|
45
46
|
'ID Capture Successful': string;
|
|
46
47
|
'Verify the entire ID was captured clearly with no glare.': string;
|
|
47
48
|
Submit: string;
|