@idmission/websdk-ui 0.5.0 → 0.6.1
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 +41 -3
- package/dist/flows/CompositeWizard.d.ts +21 -2
- package/dist/flows/CompositeWizard.d.ts.map +1 -1
- package/dist/flows/CompositeWizard.js +27 -15
- package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts +3 -3
- package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts.map +1 -1
- package/dist/flows/CustomerBiometricsEnrollmentFlow.js +21 -2
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts +3 -3
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts.map +1 -1
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.js +41 -8
- package/dist/flows/DocumentCaptureFlow.d.ts +4 -3
- package/dist/flows/DocumentCaptureFlow.d.ts.map +1 -1
- package/dist/flows/DocumentCaptureFlow.js +14 -8
- package/dist/flows/FaceValidationFlow.d.ts +2 -2
- package/dist/flows/FaceValidationFlow.d.ts.map +1 -1
- package/dist/flows/FaceValidationFlow.js +7 -2
- package/dist/flows/FlowChassis.d.ts +17 -1
- package/dist/flows/FlowChassis.d.ts.map +1 -1
- package/dist/flows/FlowChassis.js +22 -5
- package/dist/flows/IdAndFaceValidationFlow.d.ts +3 -3
- package/dist/flows/IdAndFaceValidationFlow.d.ts.map +1 -1
- package/dist/flows/IdAndFaceValidationFlow.js +29 -2
- package/dist/flows/IdValidationFlow.d.ts +10 -5
- package/dist/flows/IdValidationFlow.d.ts.map +1 -1
- package/dist/flows/IdValidationFlow.js +15 -2
- package/dist/flows/SignatureKYCFlow.d.ts +27 -6
- package/dist/flows/SignatureKYCFlow.d.ts.map +1 -1
- package/dist/flows/SignatureKYCFlow.js +60 -7
- package/dist/flows/SubmissionProvider.d.ts +12 -3
- package/dist/flows/SubmissionProvider.d.ts.map +1 -1
- package/dist/flows/SubmissionProvider.js +134 -15
- package/dist/flows/VideoIdValidationFlow.d.ts +3 -5
- package/dist/flows/VideoIdValidationFlow.d.ts.map +1 -1
- package/dist/flows/VideoIdValidationFlow.js +33 -2
- package/dist/flows/customerMatch/CustomerMatchCapture.d.ts +3 -2
- package/dist/flows/customerMatch/CustomerMatchCapture.d.ts.map +1 -1
- package/dist/flows/customerMatch/CustomerMatchCapture.js +5 -6
- package/dist/flows/customerMatch/CustomerMatchFlow.d.ts +13 -4
- package/dist/flows/customerMatch/CustomerMatchFlow.d.ts.map +1 -1
- package/dist/flows/customerMatch/CustomerMatchFlow.js +14 -8
- package/dist/flows/flowSettings.d.ts +11 -0
- package/dist/flows/flowSettings.d.ts.map +1 -0
- package/dist/flows/flowSettings.js +20 -0
- package/dist/flows/overlays.d.ts +2 -0
- package/dist/flows/overlays.d.ts.map +1 -1
- package/dist/flows/overlays.js +28 -10
- package/dist/flows/signatureStep.d.ts +6 -1
- package/dist/flows/signatureStep.d.ts.map +1 -1
- package/dist/flows/types.d.ts +103 -7
- package/dist/flows/types.d.ts.map +1 -1
- package/dist/flows/videoIdSteps.d.ts +2 -2
- package/dist/flows/videoIdSteps.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +5 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +12 -1
- package/dist/i18n/locales/threeOh.d.ts +1 -0
- package/dist/i18n/locales/threeOh.d.ts.map +1 -1
- package/dist/i18n/locales/threeOh.js +195 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/testing/fakeClient.d.ts +41 -2
- package/dist/testing/fakeClient.d.ts.map +1 -1
- package/dist/testing/fakeClient.js +71 -16
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/useIdmissionClient.d.ts +24 -3
- package/dist/useIdmissionClient.d.ts.map +1 -1
- package/dist/useIdmissionClient.js +46 -0
- package/dist/utils/mountOnly.d.ts +25 -0
- package/dist/utils/mountOnly.d.ts.map +1 -0
- package/dist/utils/mountOnly.js +111 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/flows/autoCaptureMountGuard.d.ts +0 -22
- package/dist/flows/autoCaptureMountGuard.d.ts.map +0 -1
- package/dist/flows/autoCaptureMountGuard.js +0 -61
|
@@ -6,14 +6,21 @@ import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
|
|
6
6
|
import { SubmissionStatus, } from '@idmission/websdk-core/client';
|
|
7
7
|
import { useAuthState } from './AuthStateContext';
|
|
8
8
|
import { isApprovedResponse } from './approval';
|
|
9
|
+
import { warn } from '../utils/logger';
|
|
9
10
|
const SubmissionContext = createContext(null);
|
|
10
11
|
const EMPTY_SUBMISSION_OPTIONS = {};
|
|
11
|
-
export function SubmissionProvider({ client, action, options = EMPTY_SUBMISSION_OPTIONS, geolocation = null, children, onSubmissionStarted, onComplete, onApproved, onDenied, onRequestFailure, }) {
|
|
12
|
+
export function SubmissionProvider({ client, action, options = EMPTY_SUBMISSION_OPTIONS, geolocation = null, children, onSubmissionStarted, onComplete, onApproved, onDenied, onSubmissionFailure, onRequestFailure, mode, }) {
|
|
12
13
|
const progress = useCaptureObserver();
|
|
13
14
|
const clientState = useSyncExternalStore(client.subscribe, client.getState, client.getState);
|
|
14
15
|
const { state: authState } = useAuthState();
|
|
15
16
|
const [submissionResponse, setSubmissionResponse] = useState(null);
|
|
16
17
|
const [localError, setLocalError] = useState(null);
|
|
18
|
+
const [attempt, setAttempt] = useState(IDLE_ATTEMPT);
|
|
19
|
+
// Which path the latest submission took. State is read from that path even
|
|
20
|
+
// if `mode` changes while it is in flight; before any submission, `mode`
|
|
21
|
+
// decides.
|
|
22
|
+
const [startedExplicit, setStartedExplicit] = useState(null);
|
|
23
|
+
const reportFailure = onSubmissionFailure ?? onRequestFailure;
|
|
17
24
|
const [resubmitting, setResubmitting] = useState(false);
|
|
18
25
|
const lastArtifactsRef = useRef(null);
|
|
19
26
|
const submitInFlightRef = useRef(null);
|
|
@@ -30,6 +37,50 @@ export function SubmissionProvider({ client, action, options = EMPTY_SUBMISSION_
|
|
|
30
37
|
: incoming;
|
|
31
38
|
// Store the merged artifacts so a resubmit carries location too.
|
|
32
39
|
lastArtifactsRef.current = artifacts;
|
|
40
|
+
setStartedExplicit(mode !== undefined);
|
|
41
|
+
if (mode !== undefined) {
|
|
42
|
+
// Registered before anything customer-supplied runs, so a throw from
|
|
43
|
+
// a notification can never leave the flow without a status.
|
|
44
|
+
setAttempt({ ...IDLE_ATTEMPT, status: SubmissionStatus.SUBMITTING });
|
|
45
|
+
const unbindProgress = bindSubmissionObserver(artifacts, progress);
|
|
46
|
+
// The client call waits one microtask so the in-flight promise is
|
|
47
|
+
// registered first: an `onSubmissionStarted` that calls `submit()`
|
|
48
|
+
// gets this attempt back instead of starting a second one.
|
|
49
|
+
const promise = Promise.resolve()
|
|
50
|
+
.then(() => runAttempt(client, mode, artifacts, { ...options, action }))
|
|
51
|
+
.then((outcome) => {
|
|
52
|
+
setAttempt({ ...outcome, status: SubmissionStatus.SUBMITTED, error: null });
|
|
53
|
+
const { response, request } = outcome;
|
|
54
|
+
if (response === null) {
|
|
55
|
+
// Terminal once called; the handler is never awaited.
|
|
56
|
+
if (typeof mode === 'object') {
|
|
57
|
+
notifySafely('submitMode.handoff', () => mode.handoff(request));
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
notifySafely('onComplete', () => onComplete?.(response));
|
|
62
|
+
if (isApprovedResponse(action, response)) {
|
|
63
|
+
notifySafely('onApproved', () => onApproved?.(response));
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
notifySafely('onDenied', () => onDenied?.(response));
|
|
67
|
+
}
|
|
68
|
+
return response;
|
|
69
|
+
}, (cause) => {
|
|
70
|
+
const error = cause instanceof Error ? cause : new Error(String(cause));
|
|
71
|
+
setAttempt({ ...IDLE_ATTEMPT, status: SubmissionStatus.FAILED, error });
|
|
72
|
+
notifySafely('onSubmissionFailure', () => reportFailure?.(error));
|
|
73
|
+
throw error;
|
|
74
|
+
})
|
|
75
|
+
.finally(() => {
|
|
76
|
+
unbindProgress();
|
|
77
|
+
submitInFlightRef.current = null;
|
|
78
|
+
setResubmitting(false);
|
|
79
|
+
});
|
|
80
|
+
submitInFlightRef.current = promise;
|
|
81
|
+
notifySafely('onSubmissionStarted', () => onSubmissionStarted?.(artifacts));
|
|
82
|
+
return promise;
|
|
83
|
+
}
|
|
33
84
|
setSubmissionResponse(null);
|
|
34
85
|
setLocalError(null);
|
|
35
86
|
onSubmissionStarted?.(artifacts);
|
|
@@ -55,7 +106,7 @@ export function SubmissionProvider({ client, action, options = EMPTY_SUBMISSION_
|
|
|
55
106
|
.catch((cause) => {
|
|
56
107
|
const error = cause instanceof Error ? cause : new Error(String(cause));
|
|
57
108
|
setLocalError(error);
|
|
58
|
-
|
|
109
|
+
reportFailure?.(error);
|
|
59
110
|
throw error;
|
|
60
111
|
})
|
|
61
112
|
.finally(() => {
|
|
@@ -72,10 +123,11 @@ export function SubmissionProvider({ client, action, options = EMPTY_SUBMISSION_
|
|
|
72
123
|
onApproved,
|
|
73
124
|
onComplete,
|
|
74
125
|
onDenied,
|
|
75
|
-
|
|
126
|
+
reportFailure,
|
|
76
127
|
onSubmissionStarted,
|
|
77
128
|
options,
|
|
78
129
|
progress,
|
|
130
|
+
mode,
|
|
79
131
|
]);
|
|
80
132
|
const resubmit = useMemo(() => {
|
|
81
133
|
if (!authState.session.canRefreshSession)
|
|
@@ -107,31 +159,98 @@ export function SubmissionProvider({ client, action, options = EMPTY_SUBMISSION_
|
|
|
107
159
|
return promise;
|
|
108
160
|
};
|
|
109
161
|
}, [authState.session.canRefreshSession, client, submit]);
|
|
110
|
-
const value = useMemo(() =>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
162
|
+
const value = useMemo(() => {
|
|
163
|
+
if (startedExplicit ?? mode !== undefined) {
|
|
164
|
+
return {
|
|
165
|
+
action,
|
|
166
|
+
submit,
|
|
167
|
+
submissionStatus: resubmitting ? SubmissionStatus.SUBMITTING : attempt.status,
|
|
168
|
+
submissionResponse: attempt.response,
|
|
169
|
+
submissionError: attempt.error,
|
|
170
|
+
lastSubmissionTimings: attempt.timings,
|
|
171
|
+
lastSubmissionRequest: attempt.request,
|
|
172
|
+
resubmit,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
return {
|
|
176
|
+
action,
|
|
177
|
+
submit,
|
|
178
|
+
// A rejection before the client records anything (an unsupported
|
|
179
|
+
// action, an unvalidated session) leaves the client at READY, which the
|
|
180
|
+
// wizard renders as its submitting screen; the local error is the
|
|
181
|
+
// failure it would otherwise never show.
|
|
182
|
+
submissionStatus: resubmitting
|
|
183
|
+
? SubmissionStatus.SUBMITTING
|
|
184
|
+
: localError && clientState.submissionStatus === SubmissionStatus.READY
|
|
185
|
+
? SubmissionStatus.FAILED
|
|
186
|
+
: clientState.submissionStatus,
|
|
187
|
+
submissionResponse,
|
|
188
|
+
submissionError: localError ?? clientState.submissionError ?? null,
|
|
189
|
+
lastSubmissionTimings: clientState.lastSubmissionTimings ?? null,
|
|
190
|
+
lastSubmissionRequest: clientState.lastSubmissionRequest ?? null,
|
|
191
|
+
resubmit,
|
|
192
|
+
};
|
|
193
|
+
}, [
|
|
122
194
|
action,
|
|
195
|
+
attempt,
|
|
123
196
|
clientState.lastSubmissionRequest,
|
|
124
197
|
clientState.lastSubmissionTimings,
|
|
125
198
|
clientState.submissionError,
|
|
126
199
|
clientState.submissionStatus,
|
|
127
200
|
localError,
|
|
201
|
+
mode,
|
|
128
202
|
resubmit,
|
|
129
203
|
resubmitting,
|
|
204
|
+
startedExplicit,
|
|
130
205
|
submissionResponse,
|
|
131
206
|
submit,
|
|
132
207
|
]);
|
|
133
208
|
return (_jsx(SubmissionContext.Provider, { value: value, children: children }));
|
|
134
209
|
}
|
|
210
|
+
const IDLE_ATTEMPT = {
|
|
211
|
+
status: SubmissionStatus.READY,
|
|
212
|
+
response: null,
|
|
213
|
+
request: null,
|
|
214
|
+
timings: null,
|
|
215
|
+
error: null,
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* One explicit-mode attempt through the client's `post()` or `handoff()`.
|
|
219
|
+
* Never falls back to `submit()`: that would let the deprecated
|
|
220
|
+
* `config.onSubmit` decide what an explicit mode already decided.
|
|
221
|
+
*/
|
|
222
|
+
async function runAttempt(client, mode, artifacts, options) {
|
|
223
|
+
if (mode === 'capture') {
|
|
224
|
+
throw new Error("submitMode 'capture' does not submit; the flow reports onCaptured instead");
|
|
225
|
+
}
|
|
226
|
+
if (mode === 'post') {
|
|
227
|
+
if (!client.post)
|
|
228
|
+
throw missingMethod('post', "submitMode 'post'");
|
|
229
|
+
return client.post(artifacts, options);
|
|
230
|
+
}
|
|
231
|
+
if (!client.handoff)
|
|
232
|
+
throw missingMethod('handoff', 'submitMode { handoff }');
|
|
233
|
+
const { request, timings } = await client.handoff(artifacts, options);
|
|
234
|
+
return { request, timings, response: null };
|
|
235
|
+
}
|
|
236
|
+
function missingMethod(method, needs) {
|
|
237
|
+
return new Error(`${needs} needs client.${method}(), which this client does not have. ` +
|
|
238
|
+
'Create the client with createIdmissionClient or useIdmissionClient.');
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Runs a customer callback whose failure must not change an outcome that is
|
|
242
|
+
* already settled: a throw or a rejected promise is logged, never rethrown.
|
|
243
|
+
*/
|
|
244
|
+
function notifySafely(name, notify) {
|
|
245
|
+
try {
|
|
246
|
+
// `Promise.resolve`, not `instanceof Promise`: a promise from another
|
|
247
|
+
// realm (an iframe) fails that check, and its rejection would go unhandled.
|
|
248
|
+
Promise.resolve(notify()).catch((e) => warn(`${name} rejected`, e));
|
|
249
|
+
}
|
|
250
|
+
catch (e) {
|
|
251
|
+
warn(`${name} threw`, e);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
135
254
|
export function useSubmission() {
|
|
136
255
|
const context = useContext(SubmissionContext);
|
|
137
256
|
if (!context) {
|
|
@@ -4,8 +4,8 @@ import { type VideoIdCaptureController, type VideoIdCaptureControllerConfig } fr
|
|
|
4
4
|
import { type SignatureCaptureController, type SignatureCaptureControllerConfig } from '@idmission/websdk-core/signatureCapture';
|
|
5
5
|
import { type SignatureFlowViewProps, type SignatureStageDecision } from './signatureStep';
|
|
6
6
|
import { type VideoIdFlowViewProps } from './videoIdSteps';
|
|
7
|
-
import type { CommonFlowProps, FaceLivenessFlowConfig, FaceLivenessFlowViewProps, IdCaptureFlowConfig, IdCaptureFlowViewProps } from './types';
|
|
8
|
-
export type VideoIdValidationFlowProps = CommonFlowProps & {
|
|
7
|
+
import type { CaptureOnlyProps, CommonFlowProps, SubmitMode, SubmitModeProps, FaceLivenessFlowConfig, FaceLivenessFlowViewProps, IdCaptureFlowConfig, IdCaptureFlowViewProps } from './types';
|
|
8
|
+
export type VideoIdValidationFlowProps = CommonFlowProps & SubmitModeProps<SubmitMode> & CaptureOnlyProps & {
|
|
9
9
|
idController?: IdCaptureController;
|
|
10
10
|
selfieController?: SelfieCaptureController;
|
|
11
11
|
/** Controller override for the final face-and-ID recording stage. */
|
|
@@ -36,8 +36,6 @@ export type VideoIdValidationFlowProps = CommonFlowProps & {
|
|
|
36
36
|
faceView?: FaceLivenessFlowViewProps;
|
|
37
37
|
/** View options for the final face-and-ID recording stage. */
|
|
38
38
|
view?: VideoIdFlowViewProps;
|
|
39
|
-
captureOnly?: boolean;
|
|
40
|
-
onCaptured?: CommonFlowProps['onSubmissionStarted'];
|
|
41
39
|
onCaptureError?: (error: Error) => void;
|
|
42
40
|
signatureController?: SignatureCaptureController;
|
|
43
41
|
/**
|
|
@@ -81,5 +79,5 @@ export type VideoIdValidationFlowProps = CommonFlowProps & {
|
|
|
81
79
|
/** Fires when microphone access is refused. sdk2's callback of the same name. */
|
|
82
80
|
onMicrophoneAccessDenied?: () => void;
|
|
83
81
|
};
|
|
84
|
-
export declare function VideoIdValidationFlow({ client, idController, selfieController, controller, idCapture, faceCapture, capture, idView, faceView, view, submission, initialArtifacts, captureOnly, signatureController, signatureCapture, signatureView, captureSignature, captureSignatureVideo, allowVirtualCameras, skipIdCapture, matchOnly, readTextPrompt, onMicrophoneAccessDenied, theme, className, showSuccessScreen, showDiagnostics, captureAdditionalDocuments, additionalDocumentClassNames, additionalDocumentVerbiage, ringScreenClassNames, ringScreenVerbiage, onCaptured, onSubmitted, onCaptureError, children, ...callbacks }: VideoIdValidationFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export declare function VideoIdValidationFlow({ client, idController, selfieController, controller, idCapture, faceCapture, capture, idView: idViewProp, faceView: faceViewProp, view: viewProp, submission, initialArtifacts, submitMode, captureOnly, signatureController, signatureCapture, signatureView: signatureViewProp, captureSignature, captureSignatureVideo, allowVirtualCameras, skipIdCapture, matchOnly, readTextPrompt, onMicrophoneAccessDenied, theme, className, lang, debugMode, skipSuccessScreen, showResultScreen, showSuccessScreen, showDiagnostics, captureAdditionalDocuments, additionalDocumentClassNames, additionalDocumentVerbiage, ringScreenClassNames, ringScreenVerbiage, onCaptured, onSubmitted, onCaptureError, children, ...callbacks }: VideoIdValidationFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
85
83
|
//# sourceMappingURL=VideoIdValidationFlow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoIdValidationFlow.d.ts","sourceRoot":"","sources":["../../src/flows/VideoIdValidationFlow.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,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1B,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,0BAA0B,2CA4P5B"}
|
|
@@ -7,11 +7,13 @@ import { createVideoIdCaptureController, } from '@idmission/websdk-core/videoIdC
|
|
|
7
7
|
import { acquireCamera } from '@idmission/websdk-core/camera';
|
|
8
8
|
import { createSignatureCaptureController, } from '@idmission/websdk-core/signatureCapture';
|
|
9
9
|
import { CompositeWizard } from './CompositeWizard';
|
|
10
|
+
import { inheritFlowSettings } from './flowSettings';
|
|
10
11
|
import { buildAdditionalDocumentsStep } from './additionalDocuments';
|
|
11
12
|
import { createSharedCameraAcquirer, withVirtualCameras, } from './sharedCamera';
|
|
12
13
|
import { buildSignatureStep, signatureStageMode, signatureStageReplacesFaceLiveness, } from './signatureStep';
|
|
13
14
|
import { FlowChassis } from './FlowChassis';
|
|
14
15
|
import { useLatestCallbacks } from './latestCallbacks';
|
|
16
|
+
import { FLOW_MOUNT_ONLY_REMEDY, useMountOnlyWarnings } from '../utils/mountOnly';
|
|
15
17
|
import { buildRingScreenProps } from './ringScreens';
|
|
16
18
|
import { isRingModeActive } from './ringIntroImplications';
|
|
17
19
|
import { buildVideoIdSteps } from './videoIdSteps';
|
|
@@ -24,8 +26,36 @@ const EMPTY_FACE_VIEW = {};
|
|
|
24
26
|
const EMPTY_VIDEO_VIEW = {};
|
|
25
27
|
const EMPTY_SUBMISSION = {};
|
|
26
28
|
const EMPTY_ARTIFACTS = {};
|
|
27
|
-
export function VideoIdValidationFlow({ client, idController, selfieController, controller, idCapture = EMPTY_ID_CAPTURE, faceCapture = EMPTY_FACE_CAPTURE, capture = EMPTY_VIDEO_CAPTURE, idView = EMPTY_ID_VIEW, faceView = EMPTY_FACE_VIEW, view = EMPTY_VIDEO_VIEW, submission = EMPTY_SUBMISSION, initialArtifacts = EMPTY_ARTIFACTS, captureOnly
|
|
29
|
+
export function VideoIdValidationFlow({ client, idController, selfieController, controller, idCapture = EMPTY_ID_CAPTURE, faceCapture = EMPTY_FACE_CAPTURE, capture = EMPTY_VIDEO_CAPTURE, idView: idViewProp = EMPTY_ID_VIEW, faceView: faceViewProp = EMPTY_FACE_VIEW, view: viewProp = EMPTY_VIDEO_VIEW, submission = EMPTY_SUBMISSION, initialArtifacts = EMPTY_ARTIFACTS, submitMode, captureOnly, signatureController, signatureCapture = EMPTY_SIGNATURE_CAPTURE, signatureView: signatureViewProp, captureSignature, captureSignatureVideo, allowVirtualCameras, skipIdCapture = false, matchOnly = false, readTextPrompt, onMicrophoneAccessDenied, theme, className, lang, debugMode, skipSuccessScreen, showResultScreen, showSuccessScreen, showDiagnostics = false, captureAdditionalDocuments, additionalDocumentClassNames, additionalDocumentVerbiage, ringScreenClassNames, ringScreenVerbiage, onCaptured, onSubmitted, onCaptureError, children, ...callbacks }) {
|
|
30
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
31
|
+
const { idView, faceView, view, signatureView } = useMemo(() => {
|
|
32
|
+
const settings = { lang, debugMode, skipSuccessScreen };
|
|
33
|
+
return {
|
|
34
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
35
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
36
|
+
view: inheritFlowSettings(viewProp, { lang, debugMode }),
|
|
37
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
38
|
+
lang,
|
|
39
|
+
showCaptureDiagnostics: debugMode,
|
|
40
|
+
skipSuccessScreen,
|
|
41
|
+
}),
|
|
42
|
+
};
|
|
43
|
+
}, [
|
|
44
|
+
debugMode,
|
|
45
|
+
faceViewProp,
|
|
46
|
+
idViewProp,
|
|
47
|
+
lang,
|
|
48
|
+
signatureViewProp,
|
|
49
|
+
skipSuccessScreen,
|
|
50
|
+
viewProp,
|
|
51
|
+
]);
|
|
28
52
|
const { checkLivenessOptions, ...selfieCaptureConfig } = faceCapture;
|
|
53
|
+
useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
54
|
+
faceCapture: selfieCaptureConfig,
|
|
55
|
+
idCapture,
|
|
56
|
+
capture,
|
|
57
|
+
signatureCapture,
|
|
58
|
+
});
|
|
29
59
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
30
60
|
const latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
31
61
|
const latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -177,5 +207,6 @@ export function VideoIdValidationFlow({ client, idController, selfieController,
|
|
|
177
207
|
finishingVerbiage: { finishingStage1Text: 'Uploading your captures', finishingStage2Text: 'Checking your ID details', finishingStage3Text: 'Reviewing your video' },
|
|
178
208
|
successVerbiage: { successSubtitleText: '', successIssuerValueText: 'Identity data', successIssuerCaptionText: 'confirmed' },
|
|
179
209
|
});
|
|
180
|
-
|
|
210
|
+
const mode = submitMode ?? (captureOnly ? 'capture' : undefined);
|
|
211
|
+
return (_jsxs(FlowChassis, { client: client, action: action, submission: submission, submitMode: mode, theme: theme, className: className, lang: lang, ...callbacks, children: [_jsx(CompositeWizard, { ...ringScreens, steps: steps, initialArtifacts: initialArtifacts, captureOnly: mode === 'capture', showResultScreen: showResultScreen ?? showSuccessScreen, showDiagnostics: showDiagnostics, onArtifactsCollected: onCaptured, onSubmitted: onSubmitted }), children] }));
|
|
181
212
|
}
|
|
@@ -24,8 +24,9 @@ export type CustomerMatchCaptureProps<S, A> = {
|
|
|
24
24
|
onLivenessCheckFailed?: (error: LiveFaceNotDetectedError) => void;
|
|
25
25
|
onRequestError?: (error: Error) => void;
|
|
26
26
|
/**
|
|
27
|
-
* Fires when the
|
|
28
|
-
* rather than posted, so there is no
|
|
27
|
+
* Fires when the request was handed off (`submitMode: { handoff }`, or
|
|
28
|
+
* the client's deprecated `onSubmit`) rather than posted, so there is no
|
|
29
|
+
* verdict to classify. The flow ends
|
|
29
30
|
* quietly — see the call site for why that is not a failure.
|
|
30
31
|
*/
|
|
31
32
|
onSubmissionIntercepted?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerMatchCapture.d.ts","sourceRoot":"","sources":["../../../src/flows/customerMatch/CustomerMatchCapture.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"CustomerMatchCapture.d.ts","sourceRoot":"","sources":["../../../src/flows/customerMatch/CustomerMatchCapture.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAKnF,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EACjC,MAAM,2CAA2C,CAAA;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,KAAK,EAAc,mBAAmB,EAAE,MAAM,YAAY,CAAA;AASjE,MAAM,MAAM,yBAAyB,CAAC,CAAC,EAAE,CAAC,IAAI;IAC5C,OAAO,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAClC,MAAM,EAAE,eAAe,CAAA;IACvB,UAAU,EAAE,uBAAuB,CAAA;IACnC,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAC1B,gBAAgB,CAAC,EAAE,mBAAmB,CAAA;IACtC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,oBAAoB,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAA;IACxD,gCAAgC,CAAC,EAAE,MAAM,CAAA;IACzC,uEAAuE;IACvE,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,KAAK,IAAI,CAAA;IACzE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5E,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAA;IACjE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACvC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAA;IACpC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAA;IACrC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE;QAChB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;QACzB,QAAQ,CAAC,EAAE,2BAA2B,CAAA;QACtC,UAAU,CAAC,EAAE,6BAA6B,CAAA;KAC3C,CAAA;CACF,CAAA;AAUD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,EACzC,OAAO,EACP,MAAM,EACN,UAAU,EACV,IAAiB,EACjB,gBAAkC,EAClC,wBAAgC,EAChC,oBAAoB,EACpB,gCAAgC,EAChC,SAAS,EACT,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,EACb,eAAe,GAChB,EAAE,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,2CA0NjC"}
|
|
@@ -19,8 +19,7 @@ import { useCallback, useEffect, useReducer, useRef, useState } from 'react';
|
|
|
19
19
|
import { LiveFaceNotDetectedError, } from '@idmission/websdk-core/client';
|
|
20
20
|
import { SelfieCaptureView } from '../../SelfieCaptureView';
|
|
21
21
|
import { buildSelfieArtifacts, mergeSubmissionArtifacts } from '../artifacts';
|
|
22
|
-
import {
|
|
23
|
-
import { OrbStatusScreen } from '../OrbStatusScreen';
|
|
22
|
+
import { SubmittingScreen } from '../CompositeWizard';
|
|
24
23
|
import { useSubmission } from '../SubmissionProvider';
|
|
25
24
|
import { RingFinishingScreen, } from '../../components/ring/RingFinishingScreen';
|
|
26
25
|
import { useTimeout } from '../useTimeout';
|
|
@@ -152,8 +151,9 @@ export function CustomerMatchCapture({ adapter, client, controller, view = EMPTY
|
|
|
152
151
|
try {
|
|
153
152
|
dispatch(adapter.submitting(submittable.dataUrl));
|
|
154
153
|
const response = await submit(submittable.artifacts);
|
|
155
|
-
// `null` = the
|
|
156
|
-
//
|
|
154
|
+
// `null` = the request was handed off instead of posted
|
|
155
|
+
// (`submitMode: { handoff }` or the client's deprecated `onSubmit`),
|
|
156
|
+
// and the flow now ends quietly as `handedOff`. Nothing went wrong and
|
|
157
157
|
// there is no verdict to classify: the integrator now owns the
|
|
158
158
|
// outcome, so the flow steps aside and shows nothing.
|
|
159
159
|
//
|
|
@@ -204,8 +204,7 @@ export function CustomerMatchCapture({ adapter, client, controller, view = EMPTY
|
|
|
204
204
|
if (finishingScreen?.mode === 'ring') {
|
|
205
205
|
return (_jsx(RingFinishingScreen, { selfieImage: submittable?.artifacts.face?.selfieImage ?? undefined, verbiage: finishingScreen.verbiage, classNames: finishingScreen.classNames }));
|
|
206
206
|
}
|
|
207
|
-
|
|
208
|
-
return (_jsx(OrbStatusScreen, { state: "working", text: text, loadingStage: "submission" }));
|
|
207
|
+
return (_jsx(SubmittingScreen, { action: action, artifacts: submittable?.artifacts ?? initialArtifacts }));
|
|
209
208
|
}
|
|
210
209
|
return (_jsx(SelfieCaptureView, { ...view, controller: controller, onCaptured: handleCaptured, onExit: onExitCapture }));
|
|
211
210
|
}
|
|
@@ -7,7 +7,7 @@ import { type RingSuccessScreenClassNames, type RingSuccessScreenVerbiage } from
|
|
|
7
7
|
import { type RingFinishingScreenClassNames, type RingFinishingScreenVerbiage } from '../../components/ring/RingFinishingScreen';
|
|
8
8
|
import { type SkipSuccessScreen } from '../useShowSuccessScreen';
|
|
9
9
|
import type { ThemeInput } from '../../theme';
|
|
10
|
-
import type { FlowChassisPassthroughProps, FlowSubmissionConfig, SelfieCaptureFlowConfig, SelfieFlowViewProps } from '../types';
|
|
10
|
+
import type { FlowChassisPassthroughProps, FlowSettingsProps, SubmitMode, SubmitModeProps, FlowSubmissionConfig, SelfieCaptureFlowConfig, SelfieFlowViewProps } from '../types';
|
|
11
11
|
import type { MatchReducerAdapter } from './adapters';
|
|
12
12
|
/**
|
|
13
13
|
* sdk2's wizard-local `ALLOWED_RETRIES` (CustomerIdentificationWizard.tsx:70,
|
|
@@ -45,13 +45,13 @@ export type CustomerMatchAssets = {
|
|
|
45
45
|
* The prop surface both customer-match flows share. Deliberately NOT built on
|
|
46
46
|
* `CommonFlowProps`: these flows own their success/failure screens and their
|
|
47
47
|
* own match-outcome callbacks, so the chassis' generic
|
|
48
|
-
* `onApproved`/`onDenied`/`
|
|
48
|
+
* `onApproved`/`onDenied`/`showResultScreen` diagnostics surface would be
|
|
49
49
|
* misleading here (approval is not the same question as "did this customer
|
|
50
50
|
* match"). `captureAdditionalDocuments` is absent for the same reason it is on
|
|
51
51
|
* `FaceValidationFlow`: sdk2 offers no additional-documents stage on either
|
|
52
52
|
* flow.
|
|
53
53
|
*/
|
|
54
|
-
export type CustomerMatchFlowProps = FlowChassisPassthroughProps & {
|
|
54
|
+
export type CustomerMatchFlowProps = FlowChassisPassthroughProps & FlowSettingsProps & SubmitModeProps<Exclude<SubmitMode, 'capture'>> & {
|
|
55
55
|
client: IdmissionClient;
|
|
56
56
|
submission?: FlowSubmissionConfig;
|
|
57
57
|
initialArtifacts?: SubmissionArtifacts;
|
|
@@ -86,6 +86,15 @@ export type CustomerMatchFlowProps = FlowChassisPassthroughProps & {
|
|
|
86
86
|
onComplete?: (response: SubmissionResponse) => void;
|
|
87
87
|
onCustomerMatched?: (response: SubmissionResponse) => void;
|
|
88
88
|
onCustomerNotMatched?: (response: SubmissionResponse) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Fires when the liveness gate gives up (`LiveFaceNotDetectedError`)
|
|
91
|
+
* before anything is submitted, or when the matching submission fails.
|
|
92
|
+
*/
|
|
93
|
+
onSubmissionFailure?: (error: Error) => void;
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated Renamed `onSubmissionFailure`. Fires for the same events, and
|
|
96
|
+
* only when `onSubmissionFailure` is not set.
|
|
97
|
+
*/
|
|
89
98
|
onRequestFailure?: (error: Error) => void;
|
|
90
99
|
onCaptureGuidanceTimeout?: () => void;
|
|
91
100
|
onExitCapture?: () => void;
|
|
@@ -96,6 +105,6 @@ type CustomerMatchFlowInternalProps<S, A> = CustomerMatchFlowProps & {
|
|
|
96
105
|
adapter: MatchReducerAdapter<S, A>;
|
|
97
106
|
variant: CustomerMatchVariant;
|
|
98
107
|
};
|
|
99
|
-
export declare function CustomerMatchFlow<S, A>({ action, adapter, variant, client, submission, initialArtifacts, controller, capture, view, theme, className, geolocationEnabled, geolocationRequired, remoteDiagnostics, captureProgress, loadingSpinner, useFrontendLivenessToken, timeoutDurationMs, skipSuccessScreen, assets, classNames, colors, verbiage, onComplete, onCustomerMatched, onCustomerNotMatched, onRequestFailure, onCaptureGuidanceTimeout, onExitCapture, onExitAfterFailure, }: CustomerMatchFlowInternalProps<S, A>): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
export declare function CustomerMatchFlow<S, A>({ action, adapter, variant, client, submission, initialArtifacts, controller, capture, view, theme, className, lang, debugMode, geolocationEnabled, geolocationRequired, remoteDiagnostics, captureProgress, loadingSpinner, useFrontendLivenessToken, timeoutDurationMs, skipSuccessScreen, assets, classNames, colors, verbiage, onComplete, onCustomerMatched, onCustomerNotMatched, onSubmissionFailure, onRequestFailure, submitMode, onCaptureGuidanceTimeout, onExitCapture, onExitAfterFailure, }: CustomerMatchFlowInternalProps<S, A>): import("react/jsx-runtime").JSX.Element;
|
|
100
109
|
export {};
|
|
101
110
|
//# sourceMappingURL=CustomerMatchFlow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerMatchFlow.d.ts","sourceRoot":"","sources":["../../../src/flows/customerMatch/CustomerMatchFlow.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EAClC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAC1B,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EACjC,MAAM,2CAA2C,CAAA;
|
|
1
|
+
{"version":3,"file":"CustomerMatchFlow.d.ts","sourceRoot":"","sources":["../../../src/flows/customerMatch/CustomerMatchFlow.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,0BAA0B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I,CAAA;IAC1D,oBAAoB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAC5C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACzC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAA;IACrC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC,CAAA;AAED,KAAK,8BAA8B,CAAC,CAAC,EAAE,CAAC,IAAI,sBAAsB,GAAG;IACnE,MAAM,EAAE,gBAAgB,CAAA;IACxB,OAAO,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAClC,OAAO,EAAE,oBAAoB,CAAA;CAC9B,CAAA;AAuBD,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,EACtC,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAA6B,EAC7B,gBAAkC,EAClC,UAAU,EACV,OAAuB,EACvB,IAAiB,EACjB,KAAK,EACL,SAAS,EACT,IAAI,EACJ,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,wBAAgC,EAChC,iBAAuD,EACvD,iBAAyB,EACzB,MAAW,EACX,UAAe,EACf,MAAW,EACX,QAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,EAAE,8BAA8B,CAAC,CAAC,EAAE,CAAC,CAAC,2CAyRtC"}
|
|
@@ -19,6 +19,8 @@ import { RingSuccessScreen, } from '../../components/ring/RingSuccessScreen';
|
|
|
19
19
|
import { readFlowElapsedMs, resetFlowClock, markFlowStart } from '../../utils/flowClock';
|
|
20
20
|
import { FlowChassis } from '../FlowChassis';
|
|
21
21
|
import { useLatestCallbacks } from '../latestCallbacks';
|
|
22
|
+
import { FLOW_MOUNT_ONLY_REMEDY, useMountOnlyWarnings } from '../../utils/mountOnly';
|
|
23
|
+
import { inheritFlowSettings } from '../flowSettings';
|
|
22
24
|
import { impliedAutoContinueAfterLoading, isRingIntroActive, } from '../ringIntroImplications';
|
|
23
25
|
import { SubmissionErrorOverlay } from '../overlays';
|
|
24
26
|
import { useShowSuccessScreen } from '../useShowSuccessScreen';
|
|
@@ -70,8 +72,9 @@ const EMPTY_CAPTURE = {};
|
|
|
70
72
|
const EMPTY_VIEW = {};
|
|
71
73
|
const EMPTY_SUBMISSION = {};
|
|
72
74
|
const EMPTY_ARTIFACTS = {};
|
|
73
|
-
export function CustomerMatchFlow({ action, adapter, variant, client, submission = EMPTY_SUBMISSION, initialArtifacts = EMPTY_ARTIFACTS, controller, capture = EMPTY_CAPTURE, view = EMPTY_VIEW, theme, className, geolocationEnabled, geolocationRequired, remoteDiagnostics, captureProgress, loadingSpinner, useFrontendLivenessToken = false, timeoutDurationMs = DEFAULT_CAPTURE_GUIDANCE_TIMEOUT_MS, skipSuccessScreen = false, assets = {}, classNames = {}, colors = {}, verbiage = {}, onComplete, onCustomerMatched, onCustomerNotMatched, onRequestFailure, onCaptureGuidanceTimeout, onExitCapture, onExitAfterFailure, }) {
|
|
75
|
+
export function CustomerMatchFlow({ action, adapter, variant, client, submission = EMPTY_SUBMISSION, initialArtifacts = EMPTY_ARTIFACTS, controller, capture = EMPTY_CAPTURE, view = EMPTY_VIEW, theme, className, lang, debugMode, geolocationEnabled, geolocationRequired, remoteDiagnostics, captureProgress, loadingSpinner, useFrontendLivenessToken = false, timeoutDurationMs = DEFAULT_CAPTURE_GUIDANCE_TIMEOUT_MS, skipSuccessScreen = false, assets = {}, classNames = {}, colors = {}, verbiage = {}, onComplete, onCustomerMatched, onCustomerNotMatched, onSubmissionFailure, onRequestFailure, submitMode, onCaptureGuidanceTimeout, onExitCapture, onExitAfterFailure, }) {
|
|
74
76
|
const { checkLivenessOptions, ...controllerCapture } = capture;
|
|
77
|
+
useMountOnlyWarnings(variant === 'identification' ? 'CustomerIdentificationFlow' : 'CustomerVerificationFlow', FLOW_MOUNT_ONLY_REMEDY, { capture: controllerCapture });
|
|
75
78
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
76
79
|
const latestCapture = useLatestCallbacks(controllerCapture);
|
|
77
80
|
// These flows drive the live-check themselves, per capture, and read its
|
|
@@ -102,7 +105,8 @@ export function CustomerMatchFlow({ action, adapter, variant, client, submission
|
|
|
102
105
|
// no capture review screen to skip (that is FaceLivenessView's), and this
|
|
103
106
|
// flow's own terminal screens are governed by `skipSuccessScreen` below.
|
|
104
107
|
const resolvedView = {
|
|
105
|
-
|
|
108
|
+
// Flow-wide settings reach the capture step unless its own bag sets them.
|
|
109
|
+
...inheritFlowSettings(view, { lang, debugMode }),
|
|
106
110
|
autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive),
|
|
107
111
|
};
|
|
108
112
|
// Reset during render, not in an effect: an auto-requesting capture stage
|
|
@@ -134,15 +138,17 @@ export function CustomerMatchFlow({ action, adapter, variant, client, submission
|
|
|
134
138
|
setOutcome('notMatched');
|
|
135
139
|
onCustomerNotMatched?.(response);
|
|
136
140
|
}, [onCustomerNotMatched]);
|
|
141
|
+
const reportFailure = onSubmissionFailure ?? onRequestFailure;
|
|
137
142
|
const handleLivenessCheckFailed = useCallback((error) => {
|
|
138
143
|
setOutcome('failed');
|
|
139
|
-
|
|
140
|
-
}, [
|
|
144
|
+
reportFailure?.(error);
|
|
145
|
+
}, [reportFailure]);
|
|
141
146
|
const handleRequestError = useCallback((error) => {
|
|
142
147
|
errorRef.current = error;
|
|
143
148
|
setOutcome('error');
|
|
144
|
-
|
|
145
|
-
}, [
|
|
149
|
+
reportFailure?.(error);
|
|
150
|
+
}, [reportFailure]);
|
|
151
|
+
const handleHandedOff = useCallback(() => setOutcome('handedOff'), []);
|
|
146
152
|
const handleCaptureGuidanceTimeout = useCallback(() => {
|
|
147
153
|
setOutcome('failed');
|
|
148
154
|
onCaptureGuidanceTimeout?.();
|
|
@@ -182,10 +188,10 @@ export function CustomerMatchFlow({ action, adapter, variant, client, submission
|
|
|
182
188
|
}, [handleDone, outcome, ringMode]);
|
|
183
189
|
const showSuccessScreen = useShowSuccessScreen(skipSuccessScreen, !ringMode && outcome === 'matched', handleDone);
|
|
184
190
|
const canRetry = attempt < ALLOWED_RETRIES;
|
|
185
|
-
return (_jsxs(FlowChassis, { client: client, action: action, submission: submission, theme: theme, className: className, geolocationEnabled: geolocationEnabled, geolocationRequired: geolocationRequired, remoteDiagnostics: remoteDiagnostics, captureProgress: captureProgress, loadingSpinner: loadingSpinner, children: [outcome === 'capturing' ? (
|
|
191
|
+
return (_jsxs(FlowChassis, { client: client, action: action, submission: submission, submitMode: submitMode, theme: theme, className: className, lang: lang, geolocationEnabled: geolocationEnabled, geolocationRequired: geolocationRequired, remoteDiagnostics: remoteDiagnostics, captureProgress: captureProgress, loadingSpinner: loadingSpinner, children: [outcome === 'capturing' ? (
|
|
186
192
|
// Keyed by attempt: the ported reducers have no reset action, so sdk2
|
|
187
193
|
// resets a fresh attempt by remounting (`key={`capture${attempt}`}`).
|
|
188
|
-
_jsx(CustomerMatchCapture, { adapter: adapter, client: client, controller: resolvedController, view: resolvedView, initialArtifacts: initialArtifacts, useFrontendLivenessToken: useFrontendLivenessToken, checkLivenessOptions: checkLivenessOptions, captureGuidanceTimeoutDurationMs: timeoutDurationMs, onMatched: handleMatched, onNotMatched: handleNotMatched, onLivenessCheckFailed: handleLivenessCheckFailed, onRequestError: handleRequestError, onCaptureGuidanceTimeout: handleCaptureGuidanceTimeout, onExitCapture: onExitCapture, finishingScreen: {
|
|
194
|
+
_jsx(CustomerMatchCapture, { adapter: adapter, client: client, controller: resolvedController, view: resolvedView, initialArtifacts: initialArtifacts, useFrontendLivenessToken: useFrontendLivenessToken, checkLivenessOptions: checkLivenessOptions, captureGuidanceTimeoutDurationMs: timeoutDurationMs, onMatched: handleMatched, onNotMatched: handleNotMatched, onLivenessCheckFailed: handleLivenessCheckFailed, onRequestError: handleRequestError, onSubmissionIntercepted: handleHandedOff, onCaptureGuidanceTimeout: handleCaptureGuidanceTimeout, onExitCapture: onExitCapture, finishingScreen: {
|
|
189
195
|
mode: ringMode ? 'ring' : 'default',
|
|
190
196
|
verbiage: verbiage.finishingScreen,
|
|
191
197
|
classNames: classNames.finishingScreen,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A step bag with the flow's settings filled in wherever the step leaves them
|
|
3
|
+
* unset: `step ?? flow`, key by key. The step's own value always wins, an
|
|
4
|
+
* explicit `false` included, so a flow-wide setting never overrides a step.
|
|
5
|
+
*
|
|
6
|
+
* `flow` is typed against the step bag, so a setting the step has no prop for
|
|
7
|
+
* (`debugMode` on the signature step, say) fails to compile instead of being
|
|
8
|
+
* forwarded to a component that ignores it.
|
|
9
|
+
*/
|
|
10
|
+
export declare function inheritFlowSettings<V extends object>(step: V | undefined, flow: Partial<V>): Partial<V>;
|
|
11
|
+
//# sourceMappingURL=flowSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowSettings.d.ts","sourceRoot":"","sources":["../../src/flows/flowSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,IAAI,EAAE,CAAC,GAAG,SAAS,EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GACf,OAAO,CAAC,CAAC,CAAC,CASZ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A step bag with the flow's settings filled in wherever the step leaves them
|
|
3
|
+
* unset: `step ?? flow`, key by key. The step's own value always wins, an
|
|
4
|
+
* explicit `false` included, so a flow-wide setting never overrides a step.
|
|
5
|
+
*
|
|
6
|
+
* `flow` is typed against the step bag, so a setting the step has no prop for
|
|
7
|
+
* (`debugMode` on the signature step, say) fails to compile instead of being
|
|
8
|
+
* forwarded to a component that ignores it.
|
|
9
|
+
*/
|
|
10
|
+
export function inheritFlowSettings(step, flow) {
|
|
11
|
+
const inherited = {};
|
|
12
|
+
for (const key in flow) {
|
|
13
|
+
if (!Object.prototype.hasOwnProperty.call(flow, key))
|
|
14
|
+
continue;
|
|
15
|
+
if (step?.[key] === undefined && flow[key] !== undefined) {
|
|
16
|
+
inherited[key] = flow[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return { ...step, ...inherited };
|
|
20
|
+
}
|
package/dist/flows/overlays.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare function AuthUrlNotAllowedOverlay({ classNames, }: {
|
|
|
29
29
|
classNames?: FlowOverlayClassNames;
|
|
30
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
export declare function SessionValidationFailedOverlay({ message, classNames, }: {
|
|
32
|
+
/** Untranslated detail (e.g. the server's reason), shown beneath the copy. */
|
|
32
33
|
message?: string;
|
|
33
34
|
classNames?: FlowOverlayClassNames;
|
|
34
35
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -79,6 +80,7 @@ export type SubmissionErrorOverlayVerbiage = {
|
|
|
79
80
|
authenticationDescriptionText?: CustomerSuppliedVerbiage;
|
|
80
81
|
networkHeadingText?: CustomerSuppliedVerbiage;
|
|
81
82
|
networkDescriptionText?: CustomerSuppliedVerbiage;
|
|
83
|
+
unexpectedDescriptionText?: CustomerSuppliedVerbiage;
|
|
82
84
|
retryBtnText?: CustomerSuppliedVerbiage;
|
|
83
85
|
};
|
|
84
86
|
export declare function SubmissionErrorOverlay({ error, onRetry, classNames, verbiage, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlays.d.ts","sourceRoot":"","sources":["../../src/flows/overlays.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,4BAA4B,EAE7B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAMzF,OAAO,EACL,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"overlays.d.ts","sourceRoot":"","sources":["../../src/flows/overlays.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,4BAA4B,EAE7B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAMzF,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,SAAS,CAAA;AAGhB,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC,eAAe,CAAC,EAAE,wBAAwB,CAAA;IAC1C,YAAY,CAAC,EAAE,wBAAwB,CAAA;CACxC,CAAA;AA+DD,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,GACX,EAAE;IACD,UAAU,CAAC,EAAE,qBAAqB,CAAA;CACnC,2CAOA;AAED,wBAAgB,wBAAwB,CAAC,EAC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