@idmission/websdk-ui 0.2.0 → 0.6.0
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 +75 -4
- package/dist/DocumentCaptureView.d.ts +7 -5
- package/dist/DocumentCaptureView.d.ts.map +1 -1
- package/dist/DocumentCaptureView.js +30 -26
- package/dist/FaceLivenessView.d.ts +2 -2
- package/dist/FaceLivenessView.d.ts.map +1 -1
- package/dist/FaceLivenessView.js +47 -13
- package/dist/IdCaptureView.d.ts +27 -15
- package/dist/IdCaptureView.d.ts.map +1 -1
- package/dist/IdCaptureView.js +149 -26
- package/dist/SelfieCaptureView.d.ts +18 -1
- package/dist/SelfieCaptureView.d.ts.map +1 -1
- package/dist/SelfieCaptureView.js +13 -4
- package/dist/SignatureCaptureView.d.ts +18 -5
- package/dist/SignatureCaptureView.d.ts.map +1 -1
- package/dist/SignatureCaptureView.js +90 -15
- package/dist/VideoIdCaptureView.d.ts +14 -2
- package/dist/VideoIdCaptureView.d.ts.map +1 -1
- package/dist/VideoIdCaptureView.js +13 -6
- package/dist/bindings/useDocumentCapture.d.ts.map +1 -1
- package/dist/bindings/useDocumentCapture.js +2 -1
- package/dist/bindings/useIdCapture.d.ts.map +1 -1
- package/dist/bindings/useIdCapture.js +2 -1
- package/dist/bindings/useSelfieCapture.d.ts.map +1 -1
- package/dist/bindings/useSelfieCapture.js +2 -1
- package/dist/bindings/useSignatureCapture.d.ts.map +1 -1
- package/dist/bindings/useSignatureCapture.js +2 -1
- package/dist/bindings/useVideoIdCapture.d.ts.map +1 -1
- package/dist/bindings/useVideoIdCapture.js +2 -1
- package/dist/components/common/BrowserEdgeTint.d.ts +63 -0
- package/dist/components/common/BrowserEdgeTint.d.ts.map +1 -0
- package/dist/components/common/BrowserEdgeTint.js +111 -0
- package/dist/components/common/LoaderButton.d.ts +9 -0
- package/dist/components/common/LoaderButton.d.ts.map +1 -1
- package/dist/components/common/LoaderButton.js +44 -321
- package/dist/components/common/ScreenReaderStatus.d.ts +8 -0
- package/dist/components/common/ScreenReaderStatus.d.ts.map +1 -0
- package/dist/components/common/ScreenReaderStatus.js +18 -0
- package/dist/components/common/overlay.d.ts +6 -0
- package/dist/components/common/overlay.d.ts.map +1 -1
- package/dist/components/common/overlay.js +7 -1
- package/dist/components/debug/debug.d.ts +6 -0
- package/dist/components/debug/debug.d.ts.map +1 -1
- package/dist/components/debug/debug.js +5 -1
- package/dist/components/document/DocumentCaptureAutoCaptureDebugLayer.d.ts.map +1 -1
- package/dist/components/document/DocumentCaptureAutoCaptureDebugLayer.js +4 -5
- package/dist/components/document/DocumentCaptureAutoCaptureGuidance.d.ts.map +1 -1
- package/dist/components/document/DocumentCaptureAutoCaptureGuidance.js +40 -13
- package/dist/components/error/CameraAccessDeniedOverlay.d.ts +8 -1
- package/dist/components/error/CameraAccessDeniedOverlay.d.ts.map +1 -1
- package/dist/components/error/useCameraAccessDeniedReport.d.ts +12 -0
- package/dist/components/error/useCameraAccessDeniedReport.d.ts.map +1 -0
- package/dist/components/error/useCameraAccessDeniedReport.js +31 -0
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts +4 -1
- package/dist/components/face_liveness/FaceLivenessFailure.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessFailure.js +4 -2
- package/dist/components/face_liveness/FaceLivenessSuccess.d.ts +4 -1
- package/dist/components/face_liveness/FaceLivenessSuccess.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessSuccess.js +6 -2
- package/dist/components/guides/IdCaptureFitGuide.d.ts +2 -0
- package/dist/components/guides/IdCaptureFitGuide.d.ts.map +1 -1
- package/dist/components/guides/IdCaptureFitGuide.js +4 -1
- package/dist/components/guides/IdCaptureGuideOverlay.d.ts +2 -0
- package/dist/components/guides/IdCaptureGuideOverlay.d.ts.map +1 -1
- package/dist/components/guides/IdCaptureGuideOverlay.js +3 -1
- package/dist/components/guides/IdCaptureGuides.d.ts +14 -0
- package/dist/components/guides/IdCaptureGuides.d.ts.map +1 -1
- package/dist/components/guides/IdCaptureGuides.js +22 -7
- package/dist/components/guides/IdCaptureGuidesCommon.d.ts.map +1 -1
- package/dist/components/guides/IdCaptureGuidesCommon.js +12 -7
- package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts +9 -0
- package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/loading/IdCaptureLoadingOverlayDefault.js +26 -4
- package/dist/components/loading/RingIntroScreen.d.ts.map +1 -1
- package/dist/components/loading/RingIntroScreen.js +4 -34
- package/dist/components/review/ReviewScreen.d.ts +10 -1
- package/dist/components/review/ReviewScreen.d.ts.map +1 -1
- package/dist/components/review/ReviewScreen.js +8 -8
- package/dist/components/review/SignatureCaptureDiagnostics.d.ts +5 -1
- package/dist/components/review/SignatureCaptureDiagnostics.d.ts.map +1 -1
- package/dist/components/review/SignatureCaptureDiagnostics.js +4 -2
- package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts +9 -2
- package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts.map +1 -1
- package/dist/components/selfie/FaceCaptureGuideOverlay.js +10 -4
- package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts +8 -1
- package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts.map +1 -1
- package/dist/components/selfie/SelfieCaptureAnimatedMask.js +55 -21
- package/dist/components/selfie/SelfieCaptureSurface.d.ts +9 -2
- package/dist/components/selfie/SelfieCaptureSurface.d.ts.map +1 -1
- package/dist/components/selfie/SelfieCaptureSurface.js +77 -16
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts +9 -0
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.js +26 -4
- package/dist/flows/AuthStateContext.d.ts.map +1 -1
- package/dist/flows/AuthStateContext.js +2 -1
- package/dist/flows/CaptureProgress.d.ts +14 -0
- package/dist/flows/CaptureProgress.d.ts.map +1 -0
- package/dist/flows/CaptureProgress.js +51 -0
- package/dist/flows/CompositeWizard.d.ts +7 -1
- package/dist/flows/CompositeWizard.d.ts.map +1 -1
- package/dist/flows/CompositeWizard.js +6 -2
- package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts +3 -3
- package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts.map +1 -1
- package/dist/flows/CustomerBiometricsEnrollmentFlow.js +26 -4
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts +3 -3
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts.map +1 -1
- package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.js +45 -9
- 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 +19 -1
- package/dist/flows/FlowChassis.d.ts.map +1 -1
- package/dist/flows/FlowChassis.js +40 -4
- package/dist/flows/IdAndFaceValidationFlow.d.ts +3 -3
- package/dist/flows/IdAndFaceValidationFlow.d.ts.map +1 -1
- package/dist/flows/IdAndFaceValidationFlow.js +33 -3
- package/dist/flows/IdValidationFlow.d.ts +10 -5
- package/dist/flows/IdValidationFlow.d.ts.map +1 -1
- package/dist/flows/IdValidationFlow.js +32 -5
- package/dist/flows/SignatureKYCFlow.d.ts +43 -7
- package/dist/flows/SignatureKYCFlow.d.ts.map +1 -1
- package/dist/flows/SignatureKYCFlow.js +154 -16
- package/dist/flows/SubmissionProvider.d.ts +12 -3
- package/dist/flows/SubmissionProvider.d.ts.map +1 -1
- package/dist/flows/SubmissionProvider.js +142 -16
- package/dist/flows/VideoIdValidationFlow.d.ts +3 -5
- package/dist/flows/VideoIdValidationFlow.d.ts.map +1 -1
- package/dist/flows/VideoIdValidationFlow.js +38 -4
- package/dist/flows/additionalDocuments.d.ts.map +1 -1
- package/dist/flows/additionalDocuments.js +3 -6
- package/dist/flows/approval.d.ts +1 -14
- package/dist/flows/approval.d.ts.map +1 -1
- package/dist/flows/approval.js +1 -19
- package/dist/flows/artifacts.d.ts +1 -1
- package/dist/flows/artifacts.d.ts.map +1 -1
- package/dist/flows/artifacts.js +29 -9
- 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 +3 -2
- 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 +17 -12
- 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/ringScreens.d.ts +1 -0
- package/dist/flows/ringScreens.d.ts.map +1 -1
- package/dist/flows/ringScreens.js +17 -2
- package/dist/flows/signatureStep.d.ts +6 -1
- package/dist/flows/signatureStep.d.ts.map +1 -1
- package/dist/flows/types.d.ts +120 -10
- 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/guidance/selfieStrings.d.ts.map +1 -1
- package/dist/guidance/selfieStrings.js +8 -4
- package/dist/guidance/strings.d.ts +34 -1
- package/dist/guidance/strings.d.ts.map +1 -1
- package/dist/guidance/strings.js +39 -0
- package/dist/i18n/index.d.ts +5 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +13 -2
- package/dist/i18n/locales/threeOh.d.ts.map +1 -1
- package/dist/i18n/locales/threeOh.js +56 -2
- package/dist/index.d.ts +9 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/testing/autoCaptureFrames.d.ts.map +1 -1
- package/dist/testing/autoCaptureFrames.js +10 -4
- package/dist/testing/buildSelfieState.d.ts.map +1 -1
- package/dist/testing/buildSelfieState.js +5 -0
- package/dist/testing/classNamesLeaves.js +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/fakeSelfieController.d.ts.map +1 -1
- package/dist/testing/fakeSelfieController.js +7 -0
- 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/theme/index.d.ts +10 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/useDocumentUpload.d.ts +63 -0
- package/dist/useDocumentUpload.d.ts.map +1 -0
- package/dist/useDocumentUpload.js +45 -0
- 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 +10 -9
- package/dist/flows/autoCaptureMountGuard.d.ts +0 -22
- package/dist/flows/autoCaptureMountGuard.d.ts.map +0 -1
- package/dist/flows/autoCaptureMountGuard.js +0 -61
package/dist/flows/types.d.ts
CHANGED
|
@@ -1,23 +1,67 @@
|
|
|
1
|
+
import type { CaptureProgressTask } from '@idmission/websdk-core/captureProgress';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { IdmissionClient, LivenessOptions, SubmissionArtifacts, SubmissionCallbacks, SubmissionConfig, SubmissionResponse } from '@idmission/websdk-core/client';
|
|
3
|
+
import type { IdmissionClient, LivenessOptions, SubmissionArtifacts, SubmissionCallbacks, SubmissionConfig, SubmissionRequest, SubmissionResponse } from '@idmission/websdk-core/client';
|
|
3
4
|
import type { IdCaptureController, IdCaptureControllerConfig } from '@idmission/websdk-core/idCapture';
|
|
4
5
|
import type { SelfieCaptureController, SelfieCaptureControllerConfig, SelfieLivenessConfig } from '@idmission/websdk-core/selfieCapture';
|
|
5
6
|
import type { RemoteDiagnostics } from '@idmission/websdk-core/diagnostics';
|
|
6
|
-
import type { RingFinishingScreenClassNames } from '../components/ring/RingFinishingScreen';
|
|
7
|
-
import type { RingSuccessScreenClassNames } from '../components/ring/RingSuccessScreen';
|
|
7
|
+
import type { RingFinishingScreenClassNames, RingFinishingScreenVerbiage } from '../components/ring/RingFinishingScreen';
|
|
8
|
+
import type { RingSuccessScreenClassNames, RingSuccessScreenVerbiage } from '../components/ring/RingSuccessScreen';
|
|
8
9
|
import type { ThemeInput } from '../theme';
|
|
10
|
+
import type { LangOption } from '../i18n';
|
|
9
11
|
import type { IdCaptureViewProps } from '../IdCaptureView';
|
|
10
12
|
import type { FaceLivenessViewProps } from '../FaceLivenessView';
|
|
11
13
|
import type { SelfieCaptureViewProps } from '../SelfieCaptureView';
|
|
12
14
|
import type { DocumentCaptureViewProps } from '../DocumentCaptureView';
|
|
13
15
|
import type { AdditionalDocument } from '../components/additional_documents/types';
|
|
14
|
-
import type { AdditionalDocumentCaptureWizardClassNames } from '../components/additional_documents/AdditionalDocumentCaptureWizard';
|
|
16
|
+
import type { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../components/additional_documents/AdditionalDocumentCaptureWizard';
|
|
15
17
|
import type { LoadingSpinnerComponent } from './OrbStatusScreen';
|
|
16
18
|
/** @deprecated Use core-owned `SubmissionConfig`. */
|
|
17
19
|
export type FlowSubmissionConfig = SubmissionConfig;
|
|
18
20
|
export type FlowResultCallbacks = SubmissionCallbacks & {
|
|
19
21
|
onSubmitted?: (response: SubmissionResponse) => void;
|
|
20
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Receives the request a flow built instead of posting it. The flow ends as
|
|
25
|
+
* soon as this is called; it does not wait for a returned promise. A throw or
|
|
26
|
+
* rejection is logged and does not fail the flow, so retrying or reporting
|
|
27
|
+
* your own send is up to you.
|
|
28
|
+
*/
|
|
29
|
+
export type SubmissionHandoff = (request: SubmissionRequest) => void | Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* What a flow does once capture is complete:
|
|
32
|
+
*
|
|
33
|
+
* - `'post'`: the SDK posts the submission and reports the response
|
|
34
|
+
* (`onComplete`, `onApproved` / `onDenied`, `onSubmitted`).
|
|
35
|
+
* - `'capture'`: nothing is submitted; `onCaptured` receives the artifacts.
|
|
36
|
+
* - `{ handoff }`: the SDK builds the request, uploads included, and passes
|
|
37
|
+
* it to `handoff` instead of posting it.
|
|
38
|
+
*
|
|
39
|
+
* Each flow accepts the modes it can do. An explicit mode ignores the
|
|
40
|
+
* client's deprecated `onSubmit` and the flow's deprecated `captureOnly`.
|
|
41
|
+
*/
|
|
42
|
+
export type SubmitMode = 'post' | 'capture' | {
|
|
43
|
+
handoff: SubmissionHandoff;
|
|
44
|
+
};
|
|
45
|
+
/** The `submitMode` prop, narrowed to the modes a flow supports. */
|
|
46
|
+
export type SubmitModeProps<Mode extends SubmitMode> = {
|
|
47
|
+
/**
|
|
48
|
+
* What the flow does once capture is complete; see `SubmitMode`.
|
|
49
|
+
*
|
|
50
|
+
* Unset, the flow keeps its behavior from before this prop existed: it
|
|
51
|
+
* posts, unless the client was created with the deprecated `onSubmit`
|
|
52
|
+
* (then it hands off to that) or the flow has `captureOnly`.
|
|
53
|
+
*/
|
|
54
|
+
submitMode?: Mode;
|
|
55
|
+
};
|
|
56
|
+
export type CaptureOnlyProps = {
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use `submitMode="capture"`. Still honoured when `submitMode`
|
|
59
|
+
* is unset; an explicit `submitMode` wins.
|
|
60
|
+
*/
|
|
61
|
+
captureOnly?: boolean;
|
|
62
|
+
/** Receives the captured artifacts. Fires only in `'capture'` mode. */
|
|
63
|
+
onCaptured?: (artifacts: SubmissionArtifacts) => void;
|
|
64
|
+
};
|
|
21
65
|
/**
|
|
22
66
|
* The three `FlowChassis` gates every flow re-exposes verbatim.
|
|
23
67
|
*
|
|
@@ -41,18 +85,72 @@ export type FlowChassisPassthroughProps = {
|
|
|
41
85
|
* `enabled` is set.
|
|
42
86
|
*/
|
|
43
87
|
remoteDiagnostics?: RemoteDiagnostics;
|
|
88
|
+
captureProgress?: CaptureProgressTask;
|
|
44
89
|
/** Replaces the animated orb during session validation and submission.
|
|
45
90
|
* Status text and screen-reader announcements remain owned by the SDK. */
|
|
46
91
|
loadingSpinner?: LoadingSpinnerComponent;
|
|
47
92
|
};
|
|
48
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Settings that apply to the whole flow, on every flow.
|
|
95
|
+
*
|
|
96
|
+
* The rule for every flow prop: the top level configures the whole flow, and a
|
|
97
|
+
* step bag (`view`, `idView`, `faceView`, ... / `capture`, `idCapture`, ...)
|
|
98
|
+
* configures that one step. A top-level setting reaches every step that has
|
|
99
|
+
* it; a step bag's own value, when set, wins for that step.
|
|
100
|
+
*/
|
|
101
|
+
export type FlowSettingsProps = {
|
|
102
|
+
/**
|
|
103
|
+
* Language for every screen the flow shows: each capture step and the
|
|
104
|
+
* flow's own loading, error, submitting and result screens. Default
|
|
105
|
+
* `'auto'` (browser detection).
|
|
106
|
+
*/
|
|
107
|
+
lang?: LangOption;
|
|
108
|
+
/**
|
|
109
|
+
* Debug overlays on every capture step that has them, and the signature
|
|
110
|
+
* step's capture diagnostics (`showCaptureDiagnostics`). Default `false`.
|
|
111
|
+
* Does not show the result screen: that is `showResultScreen` /
|
|
112
|
+
* `showDiagnostics`.
|
|
113
|
+
*/
|
|
114
|
+
debugMode?: boolean;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* A step bag's copy of a flow-wide setting. Still honoured, and it wins over
|
|
118
|
+
* the flow's value for that step, but the flow's top level is the one place
|
|
119
|
+
* for it now.
|
|
120
|
+
*/
|
|
121
|
+
export type DeprecatedStepSettings = {
|
|
122
|
+
/** @deprecated Set `lang` on the flow. When set here it still overrides the flow's value for this step. */
|
|
123
|
+
lang?: LangOption;
|
|
124
|
+
/** @deprecated Set `debugMode` on the flow. When set here it still overrides the flow's value for this step. */
|
|
125
|
+
debugMode?: boolean;
|
|
126
|
+
};
|
|
127
|
+
export type CommonFlowProps = FlowResultCallbacks & FlowChassisPassthroughProps & FlowSettingsProps & {
|
|
49
128
|
client: IdmissionClient;
|
|
50
129
|
submission?: FlowSubmissionConfig;
|
|
51
130
|
initialArtifacts?: SubmissionArtifacts;
|
|
52
131
|
theme?: ThemeInput;
|
|
53
132
|
className?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Skip every capture step's review screen ("ID captured", "Face liveness
|
|
135
|
+
* verified", the signature review). A step bag's `skipSuccessScreen`
|
|
136
|
+
* overrides it for that step. Unset, each step keeps its own default:
|
|
137
|
+
* shown, except after a ring intro screen and in the video-ID sequence,
|
|
138
|
+
* which skip it.
|
|
139
|
+
*/
|
|
140
|
+
skipSuccessScreen?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Show the result screen after a successful submission: the response
|
|
143
|
+
* summary and its timings. Default `false`. Ring mode ends on its own
|
|
144
|
+
* success screen instead and ignores this.
|
|
145
|
+
*/
|
|
146
|
+
showResultScreen?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated Renamed `showResultScreen`, which wins when both are set.
|
|
149
|
+
* Unrelated to `skipSuccessScreen`, which governs the capture steps'
|
|
150
|
+
* review screens.
|
|
151
|
+
*/
|
|
54
152
|
showSuccessScreen?: boolean;
|
|
55
|
-
/** Show the full submission response on the
|
|
153
|
+
/** Show the full submission response on the result screen. May contain PII. */
|
|
56
154
|
showDiagnostics?: boolean;
|
|
57
155
|
/**
|
|
58
156
|
* Documents the user is asked to supply from device storage after every
|
|
@@ -66,6 +164,8 @@ export type CommonFlowProps = FlowResultCallbacks & FlowChassisPassthroughProps
|
|
|
66
164
|
* the document list is: the step belongs to the flow, not to a capture stage.
|
|
67
165
|
*/
|
|
68
166
|
additionalDocumentClassNames?: AdditionalDocumentCaptureWizardClassNames;
|
|
167
|
+
/** Customer copy for the same screen (sdk2 `verbiage.additionalDocumentCapture`). */
|
|
168
|
+
additionalDocumentVerbiage?: AdditionalDocumentCaptureWizardVerbiage;
|
|
69
169
|
/**
|
|
70
170
|
* Customer classes for the two ring-mode terminal screens (sdk2
|
|
71
171
|
* `classNames.finishingScreen` / `classNames.successScreen`). Every flow
|
|
@@ -73,14 +173,24 @@ export type CommonFlowProps = FlowResultCallbacks & FlowChassisPassthroughProps
|
|
|
73
173
|
* per-stage because the screens belong to the submission, not to a capture.
|
|
74
174
|
*/
|
|
75
175
|
ringScreenClassNames?: RingScreenClassNames;
|
|
176
|
+
/**
|
|
177
|
+
* Customer copy for the same two screens (sdk2 `verbiage.finishingScreen` /
|
|
178
|
+
* `verbiage.successScreen`). Each key replaces the flow's own default for
|
|
179
|
+
* that line; an empty string hides the line, as in sdk2.
|
|
180
|
+
*/
|
|
181
|
+
ringScreenVerbiage?: RingScreenVerbiage;
|
|
76
182
|
children?: ReactNode;
|
|
77
183
|
};
|
|
78
184
|
export type RingScreenClassNames = {
|
|
79
185
|
finishingScreen?: RingFinishingScreenClassNames;
|
|
80
186
|
successScreen?: RingSuccessScreenClassNames;
|
|
81
187
|
};
|
|
188
|
+
export type RingScreenVerbiage = {
|
|
189
|
+
finishingScreen?: RingFinishingScreenVerbiage;
|
|
190
|
+
successScreen?: RingSuccessScreenVerbiage;
|
|
191
|
+
};
|
|
82
192
|
export type IdCaptureFlowConfig = Omit<IdCaptureControllerConfig, 'client' | 'submission'>;
|
|
83
|
-
export type IdCaptureFlowViewProps = Omit<IdCaptureViewProps, 'controller' | 'sessionReady' | 'onCollected' | 'onSubmitted'
|
|
193
|
+
export type IdCaptureFlowViewProps = Omit<IdCaptureViewProps, 'controller' | 'sessionReady' | 'onCollected' | 'onSubmitted' | keyof DeprecatedStepSettings> & DeprecatedStepSettings;
|
|
84
194
|
export type FaceLivenessFlowConfig = Omit<SelfieCaptureControllerConfig, 'liveness'> & {
|
|
85
195
|
liveness?: Omit<SelfieLivenessConfig, 'checkLiveness'>;
|
|
86
196
|
checkLivenessOptions?: Omit<LivenessOptions, 'softFail'>;
|
|
@@ -96,9 +206,9 @@ export type FaceLivenessFlowConfig = Omit<SelfieCaptureControllerConfig, 'livene
|
|
|
96
206
|
export type SelfieCaptureFlowConfig = Omit<SelfieCaptureControllerConfig, 'liveness'> & {
|
|
97
207
|
checkLivenessOptions?: Omit<LivenessOptions, 'softFail'>;
|
|
98
208
|
};
|
|
99
|
-
export type FaceLivenessFlowViewProps = Omit<FaceLivenessViewProps, 'controller' | 'sessionReady' | 'onDone'
|
|
100
|
-
export type SelfieFlowViewProps = Omit<SelfieCaptureViewProps, 'controller' | 'sessionReady' | 'onCaptured'
|
|
101
|
-
export type DocumentCaptureFlowViewProps = Omit<DocumentCaptureViewProps, 'controller' | 'sessionReady' | 'onCompleted'
|
|
209
|
+
export type FaceLivenessFlowViewProps = Omit<FaceLivenessViewProps, 'controller' | 'sessionReady' | 'onDone' | keyof DeprecatedStepSettings> & DeprecatedStepSettings;
|
|
210
|
+
export type SelfieFlowViewProps = Omit<SelfieCaptureViewProps, 'controller' | 'sessionReady' | 'onCaptured' | keyof DeprecatedStepSettings> & DeprecatedStepSettings;
|
|
211
|
+
export type DocumentCaptureFlowViewProps = Omit<DocumentCaptureViewProps, 'controller' | 'sessionReady' | 'onCompleted' | keyof DeprecatedStepSettings> & DeprecatedStepSettings;
|
|
102
212
|
export type ControllerOverrides = {
|
|
103
213
|
idController?: IdCaptureController;
|
|
104
214
|
selfieController?: SelfieCaptureController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/flows/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,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B,CAAA;AAExB,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,wBAAwB,EACxB,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,MAAM,sBAAsB,CAC7E,GACC,sBAAsB,CAAA;AAExB,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;CAC3C,CAAA"}
|
|
@@ -3,8 +3,8 @@ import type { SelfieCaptureController } from '@idmission/websdk-core/selfieCaptu
|
|
|
3
3
|
import type { VideoIdCaptureController } from '@idmission/websdk-core/videoIdCapture';
|
|
4
4
|
import { type VideoIdCaptureViewProps } from '../VideoIdCaptureView';
|
|
5
5
|
import type { CompositeWizardStep } from './CompositeWizard';
|
|
6
|
-
import type { FaceLivenessFlowViewProps, IdCaptureFlowViewProps } from './types';
|
|
7
|
-
export type VideoIdFlowViewProps = Omit<VideoIdCaptureViewProps, 'controller' | 'sessionReady' | 'onCompleted'
|
|
6
|
+
import type { DeprecatedStepSettings, FaceLivenessFlowViewProps, IdCaptureFlowViewProps } from './types';
|
|
7
|
+
export type VideoIdFlowViewProps = Omit<VideoIdCaptureViewProps, 'controller' | 'sessionReady' | 'onCompleted' | keyof DeprecatedStepSettings> & DeprecatedStepSettings;
|
|
8
8
|
export type BuildVideoIdStepsOptions = {
|
|
9
9
|
idController: IdCaptureController;
|
|
10
10
|
selfieController: SelfieCaptureController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoIdSteps.d.ts","sourceRoot":"","sources":["../../src/flows/videoIdSteps.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAA;AAGrF,OAAO,EAEL,KAAK,uBAAuB,EA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A;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,yEAAyE;IACzE,cAAc,CAAC,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAC1D,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAA;CACtC,CAAA;AAMD,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,MAAsB,EACtB,QAA0B,EAC1B,IAAuB,EACvB,cAAc,EACd,mBAA0B,EAC1B,gBAAuB,EACvB,cAAc,EACd,wBAAwB,GACzB,EAAE,wBAAwB,GAAG,mBAAmB,EAAE,CAoFlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selfieStrings.d.ts","sourceRoot":"","sources":["../../src/guidance/selfieStrings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EACnB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"selfieStrings.d.ts","sourceRoot":"","sources":["../../src/guidance/selfieStrings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EACnB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,sCAAsC,CAAA;AAyB7C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAGzE;AA6BD,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;CAClB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAItC;AAkBD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,uBAAuB,GAChC;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAevD;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,uBAAuB,GAChC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAM7C;AAWD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,oBAAoB,GAC1B,eAAe,GAAG,IAAI,CAgBxB;AAED,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI,CAG5E"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { FaceMessageCode, SelfieGuidanceCode, } from '@idmission/websdk-core/selfieCapture';
|
|
2
2
|
// Byte-identical to sdk2's verbiage defaults
|
|
3
|
-
// (SelfieCapture.tsx:273-284, FaceLivenessCapture.tsx:845-912)
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// keys
|
|
3
|
+
// (SelfieCapture.tsx:273-284, FaceLivenessCapture.tsx:845-912), except
|
|
4
|
+
// EYES_CLOSED and HAND_OVER_FACE: sdk2 had neither gate, so those strings are
|
|
5
|
+
// 3.0's own and are translated in i18n/locales/threeOh.ts. These strings are
|
|
6
|
+
// i18n translation keys — any drift silently un-translates 8 locales (see
|
|
7
|
+
// selfieStrings.test.ts's locale-parity block for the two keys sdk2 itself
|
|
8
|
+
// never manages to translate).
|
|
7
9
|
const selfieGuidanceKeys = {
|
|
8
10
|
HOLD_STILL: 'Hold still for a few seconds...',
|
|
11
|
+
HAND_OVER_FACE: 'Remove your hand from your face...',
|
|
9
12
|
LOOK_STRAIGHT: 'Look straight into the camera...',
|
|
13
|
+
EYES_CLOSED: 'Keep your eyes open...',
|
|
10
14
|
MOVE_BACK: 'Move back...',
|
|
11
15
|
MOVE_FORWARD: 'Move forward...',
|
|
12
16
|
MOVE_TO_CENTER: 'Move to the center...',
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
import { type InstructionCode, type GuidanceEvent } from '@idmission/websdk-core/idCapture';
|
|
1
|
+
import { GuidanceCode, type InstructionCode, type GuidanceEvent } from '@idmission/websdk-core/idCapture';
|
|
2
|
+
import type { CustomerSuppliedVerbiage } from '../i18n';
|
|
2
3
|
export declare function guidanceMessageKey(event: GuidanceEvent): string;
|
|
3
4
|
export declare function instructionKey(code: InstructionCode): string;
|
|
5
|
+
/**
|
|
6
|
+
* sdk2's per-document capture copy (IdCapture.tsx:62-80): the `idCardFront`,
|
|
7
|
+
* `idCardBack` and `passport` bags of a 2.x `verbiage`. The view picks one bag
|
|
8
|
+
* by requested document type, exactly as sdk2's wizard did
|
|
9
|
+
* (IdCaptureWizard.tsx:1165-1190), and reads the guide instruction and the
|
|
10
|
+
* guidance pill out of it. A key left unset falls back to the translated
|
|
11
|
+
* default above, so a customer can override one message and keep the rest.
|
|
12
|
+
*/
|
|
13
|
+
export type IdCaptureDocumentVerbiage = {
|
|
14
|
+
instructionText?: CustomerSuppliedVerbiage;
|
|
15
|
+
capturingText?: CustomerSuppliedVerbiage;
|
|
16
|
+
captureFailedText?: CustomerSuppliedVerbiage;
|
|
17
|
+
guidanceSatisfiedText?: CustomerSuppliedVerbiage;
|
|
18
|
+
guidanceNotDetectedText?: CustomerSuppliedVerbiage;
|
|
19
|
+
guidanceBackDetectedFirstText?: CustomerSuppliedVerbiage;
|
|
20
|
+
guidancePleaseFlipText?: CustomerSuppliedVerbiage;
|
|
21
|
+
guidanceIdCardNotAllowedText?: CustomerSuppliedVerbiage;
|
|
22
|
+
guidancePassportNotAllowedText?: CustomerSuppliedVerbiage;
|
|
23
|
+
guidanceBookletCornersCutOffText?: CustomerSuppliedVerbiage;
|
|
24
|
+
guidanceBookletTooFarText?: CustomerSuppliedVerbiage;
|
|
25
|
+
guidanceNotCenteredText?: CustomerSuppliedVerbiage;
|
|
26
|
+
guidanceTooCloseText?: CustomerSuppliedVerbiage;
|
|
27
|
+
guidanceFingersOccludingText?: CustomerSuppliedVerbiage;
|
|
28
|
+
guidanceGlareOnDocumentText?: CustomerSuppliedVerbiage;
|
|
29
|
+
guidanceHologramOnDocumentText?: CustomerSuppliedVerbiage;
|
|
30
|
+
guidanceNotStableText?: CustomerSuppliedVerbiage;
|
|
31
|
+
guidanceTooBlurryText?: CustomerSuppliedVerbiage;
|
|
32
|
+
};
|
|
33
|
+
/** The customer's copy for a guidance code, or undefined to use the default. */
|
|
34
|
+
export declare function guidanceVerbiage(bag: IdCaptureDocumentVerbiage | undefined, code: GuidanceCode): CustomerSuppliedVerbiage;
|
|
35
|
+
/** The customer's copy for an instruction code, or undefined to use the default. */
|
|
36
|
+
export declare function instructionVerbiage(bag: Pick<IdCaptureDocumentVerbiage, 'instructionText' | 'capturingText' | 'captureFailedText'> | undefined, code: InstructionCode): CustomerSuppliedVerbiage;
|
|
4
37
|
//# sourceMappingURL=strings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/guidance/strings.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/guidance/strings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AA0BvD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAK/D;AAaD,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAE5D;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,CAAC,EAAE,wBAAwB,CAAA;IAC1C,aAAa,CAAC,EAAE,wBAAwB,CAAA;IACxC,iBAAiB,CAAC,EAAE,wBAAwB,CAAA;IAC5C,qBAAqB,CAAC,EAAE,wBAAwB,CAAA;IAChD,uBAAuB,CAAC,EAAE,wBAAwB,CAAA;IAClD,6BAA6B,CAAC,EAAE,wBAAwB,CAAA;IACxD,sBAAsB,CAAC,EAAE,wBAAwB,CAAA;IACjD,4BAA4B,CAAC,EAAE,wBAAwB,CAAA;IACvD,8BAA8B,CAAC,EAAE,wBAAwB,CAAA;IACzD,gCAAgC,CAAC,EAAE,wBAAwB,CAAA;IAC3D,yBAAyB,CAAC,EAAE,wBAAwB,CAAA;IACpD,uBAAuB,CAAC,EAAE,wBAAwB,CAAA;IAClD,oBAAoB,CAAC,EAAE,wBAAwB,CAAA;IAC/C,4BAA4B,CAAC,EAAE,wBAAwB,CAAA;IACvD,2BAA2B,CAAC,EAAE,wBAAwB,CAAA;IACtD,8BAA8B,CAAC,EAAE,wBAAwB,CAAA;IACzD,qBAAqB,CAAC,EAAE,wBAAwB,CAAA;IAChD,qBAAqB,CAAC,EAAE,wBAAwB,CAAA;CACjD,CAAA;AA0BD,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,yBAAyB,GAAG,SAAS,EAC1C,IAAI,EAAE,YAAY,GACjB,wBAAwB,CAG1B;AAeD,oFAAoF;AACpF,wBAAgB,mBAAmB,CACjC,GAAG,EACC,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,GAAG,eAAe,GAAG,mBAAmB,CAAC,GAC1F,SAAS,EACb,IAAI,EAAE,eAAe,GACpB,wBAAwB,CAE1B"}
|
package/dist/guidance/strings.js
CHANGED
|
@@ -41,3 +41,42 @@ const instructionKeys = {
|
|
|
41
41
|
export function instructionKey(code) {
|
|
42
42
|
return instructionKeys[code];
|
|
43
43
|
}
|
|
44
|
+
// sdk2 guidanceCode.ts `guidanceVerbiageKeys`, onto core's code names. The
|
|
45
|
+
// BARCODE_* codes have no per-document key: sdk2 read their copy off the
|
|
46
|
+
// wizard's own bag (`guidanceBarcodeRecapture*Text`), see `IdCaptureGuides`.
|
|
47
|
+
const guidanceVerbiageKeys = {
|
|
48
|
+
HOLD_STILL: 'guidanceSatisfiedText',
|
|
49
|
+
NO_DOCUMENT: 'guidanceNotDetectedText',
|
|
50
|
+
BACK_DETECTED_FLIP: 'guidanceBackDetectedFirstText',
|
|
51
|
+
FRONT_DETECTED_FLIP: 'guidancePleaseFlipText',
|
|
52
|
+
ID_CARD_NOT_ALLOWED: 'guidanceIdCardNotAllowedText',
|
|
53
|
+
PASSPORT_NOT_ALLOWED: 'guidancePassportNotAllowedText',
|
|
54
|
+
BOOKLET_CORNERS_CUT_OFF: 'guidanceBookletCornersCutOffText',
|
|
55
|
+
BOOKLET_TOO_FAR: 'guidanceBookletTooFarText',
|
|
56
|
+
NOT_CENTERED: 'guidanceNotCenteredText',
|
|
57
|
+
TOO_CLOSE: 'guidanceTooCloseText',
|
|
58
|
+
FINGER_OCCLUSION: 'guidanceFingersOccludingText',
|
|
59
|
+
GLARE: 'guidanceGlareOnDocumentText',
|
|
60
|
+
HOLOGRAM_REFLECTION: 'guidanceHologramOnDocumentText',
|
|
61
|
+
NOT_STABLE: 'guidanceNotStableText',
|
|
62
|
+
OUT_OF_FOCUS: 'guidanceTooBlurryText',
|
|
63
|
+
};
|
|
64
|
+
/** The customer's copy for a guidance code, or undefined to use the default. */
|
|
65
|
+
export function guidanceVerbiage(bag, code) {
|
|
66
|
+
if (!bag || !(code in guidanceVerbiageKeys))
|
|
67
|
+
return undefined;
|
|
68
|
+
return bag[guidanceVerbiageKeys[code]];
|
|
69
|
+
}
|
|
70
|
+
// sdk2 IdCaptureGuides.tsx:100-136: the per-document `instructionText` covers
|
|
71
|
+
// all three scan instructions, since the bag is already per document.
|
|
72
|
+
const instructionVerbiageKeys = {
|
|
73
|
+
SCAN_FRONT: 'instructionText',
|
|
74
|
+
SCAN_BACK: 'instructionText',
|
|
75
|
+
SCAN_PASSPORT: 'instructionText',
|
|
76
|
+
CAPTURING: 'capturingText',
|
|
77
|
+
CAPTURE_FAILED: 'captureFailedText',
|
|
78
|
+
};
|
|
79
|
+
/** The customer's copy for an instruction code, or undefined to use the default. */
|
|
80
|
+
export function instructionVerbiage(bag, code) {
|
|
81
|
+
return bag?.[instructionVerbiageKeys[code]];
|
|
82
|
+
}
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -38,10 +38,14 @@ export declare const resources: {
|
|
|
38
38
|
* Binds one rendered SDK tree to its requested language. A fixed translator
|
|
39
39
|
* avoids waiting for a post-render changeLanguage() effect and keeps SSR and
|
|
40
40
|
* concurrently mounted SDK views independent of the shared detector instance.
|
|
41
|
+
*
|
|
42
|
+
* An unset `lang` keeps whatever scope encloses it (or none), so a caller can
|
|
43
|
+
* render the provider unconditionally: toggling `lang` between unset and set
|
|
44
|
+
* then never changes the element tree, and never remounts the subtree.
|
|
41
45
|
*/
|
|
42
46
|
export declare function SdkLanguageProvider({ children, lang, }: {
|
|
43
47
|
children: ReactNode;
|
|
44
|
-
lang: LangOption;
|
|
48
|
+
lang: LangOption | undefined;
|
|
45
49
|
}): ReactElement;
|
|
46
50
|
/**
|
|
47
51
|
* @deprecated UI translations initialize automatically. Existing calls are
|
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAGd,OAAO,EAAkB,KAAK,IAAI,IAAI,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAA;AAWnF,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAIzC,OAAO,EAAE,cAAc,EAAE,CAAA;AAEzB,eAAO,MAAM,aAAa,yEAWhB,CAAA;AACV,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAA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,CAAA;AACD,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,4BAA4B,GAC5B,aAAa,GACb,SAAS,CAAA;AACb,MAAM,MAAM,uBAAuB,GAC/B,wBAAwB,GACxB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;CAAE,CAAA;AAyB9C,wBAAgB,WAAW,CACzB,QAAQ,EAAE,wBAAwB,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,GAAG,YAAY,CAOvB;AAED,wBAAgB,eAAe,CAC7B,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;CAAE,EAEpD,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,SAAS,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM;CAAE,GACpC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,YAAY;CAAE,CAqB3C"}
|
package/dist/i18n/index.js
CHANGED
|
@@ -54,7 +54,7 @@ function initializeSdkI18n() {
|
|
|
54
54
|
detection: { caches: [] },
|
|
55
55
|
fallbackLng: 'en',
|
|
56
56
|
debug: false,
|
|
57
|
-
|
|
57
|
+
initAsync: false,
|
|
58
58
|
interpolation: { escapeValue: false },
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -65,9 +65,20 @@ const SdkLanguageContext = createContext(undefined);
|
|
|
65
65
|
* Binds one rendered SDK tree to its requested language. A fixed translator
|
|
66
66
|
* avoids waiting for a post-render changeLanguage() effect and keeps SSR and
|
|
67
67
|
* concurrently mounted SDK views independent of the shared detector instance.
|
|
68
|
+
*
|
|
69
|
+
* An unset `lang` keeps whatever scope encloses it (or none), so a caller can
|
|
70
|
+
* render the provider unconditionally: toggling `lang` between unset and set
|
|
71
|
+
* then never changes the element tree, and never remounts the subtree.
|
|
68
72
|
*/
|
|
69
73
|
export function SdkLanguageProvider({ children, lang, }) {
|
|
70
|
-
|
|
74
|
+
const inherited = useContext(SdkLanguageContext);
|
|
75
|
+
return createElement(SdkLanguageContext.Provider, {
|
|
76
|
+
value: lang === undefined
|
|
77
|
+
? inherited
|
|
78
|
+
: lang === 'auto'
|
|
79
|
+
? detectedLanguage
|
|
80
|
+
: lang,
|
|
81
|
+
}, children);
|
|
71
82
|
}
|
|
72
83
|
/**
|
|
73
84
|
* @deprecated UI translations initialize automatically. Existing calls are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threeOh.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/threeOh.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"threeOh.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/threeOh.ts"],"names":[],"mappings":"AAqEA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAuGtE,CAAA;AAED,iFAAiF;AACjF,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExB"}
|
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
// uses.
|
|
30
30
|
//
|
|
31
31
|
// The English source strings ARE the keys, so the left-hand side of every entry
|
|
32
|
-
// must stay byte-identical to the literal in
|
|
33
|
-
//
|
|
32
|
+
// must stay byte-identical to the literal it translates — in
|
|
33
|
+
// `DOCUMENT_CAPTURE_FALLBACK_VERBIAGE`, or `guidance/selfieStrings.ts` for the
|
|
34
|
+
// selfie eyes-open prompt. One comma of drift silently drops all eight locales
|
|
35
|
+
// back to English.
|
|
34
36
|
//
|
|
35
37
|
// Register, phrasing and script follow each locale's existing booklet-guidance
|
|
36
38
|
// rendering so these read as siblings of what already ships beside them: `es`
|
|
@@ -49,54 +51,106 @@ const MOVE_CLOSER = 'Move closer, fill the frame with the whole page.';
|
|
|
49
51
|
// actions — because the sheet covered the guidance pill that answered it.
|
|
50
52
|
const MANUAL_CAPTURE_HINT = 'Automatic capture is having trouble. Tap the button to take the photo yourself.';
|
|
51
53
|
const REVIEW_HEADING = 'Document captured';
|
|
54
|
+
// The selfie eyes-open gate's prompt (SelfieGuidanceCode.EYES_CLOSED). Unlike
|
|
55
|
+
// the booklet strings above, it follows the register of the selfie-guidance
|
|
56
|
+
// siblings in each base file ('Look straight into the camera...' and co.):
|
|
57
|
+
// infinitive in `de`/`it`, `Hay que` in `es`, `…` in `ja`/`ru`.
|
|
58
|
+
const EYES_CLOSED = 'Keep your eyes open...';
|
|
59
|
+
// The selfie hand-over-face check's prompt (SelfieGuidanceCode.HAND_OVER_FACE),
|
|
60
|
+
// in the same register as EYES_CLOSED.
|
|
61
|
+
const HAND_OVER_FACE = 'Remove your hand from your face...';
|
|
62
|
+
const SELFIE_RECOVERY_HINT = 'We’re having trouble checking the lighting. Keep your face centered and hold still—we’ll still check your positioning.';
|
|
63
|
+
const CONTINUE_WITH_CURRENT_LIGHTING = 'Continue with current lighting';
|
|
64
|
+
// The face liveness Retry button while the camera restarts behind it.
|
|
65
|
+
const STARTING_CAMERA = 'Starting camera...';
|
|
52
66
|
export const threeOhTranslations = {
|
|
53
67
|
de: {
|
|
68
|
+
[SELFIE_RECOVERY_HINT]: 'Wir haben Schwierigkeiten, die Beleuchtung zu prüfen. Halten Sie Ihr Gesicht mittig und bleiben Sie ruhig. Wir prüfen weiterhin Ihre Position.',
|
|
69
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: 'Mit aktueller Beleuchtung fortfahren',
|
|
54
70
|
[MANUAL_CAPTURE_HINT]: 'Die automatische Aufnahme hat Schwierigkeiten. Tippen Sie auf die Taste, um das Foto selbst aufzunehmen.',
|
|
55
71
|
[REVIEW_HEADING]: 'Dokument aufgenommen',
|
|
56
72
|
[MOVE_BACK]: 'Gehen Sie zurück und stellen Sie sicher, dass alle 4 Kanten des Blatts sichtbar sind.',
|
|
57
73
|
[MOVE_CLOSER]: 'Kommen Sie näher und füllen Sie den Rahmen mit dem gesamten Blatt aus.',
|
|
74
|
+
[EYES_CLOSED]: 'Augen offen halten...',
|
|
75
|
+
[HAND_OVER_FACE]: 'Hand vom Gesicht nehmen...',
|
|
76
|
+
[STARTING_CAMERA]: 'Kamera wird gestartet...',
|
|
58
77
|
},
|
|
59
78
|
es: {
|
|
79
|
+
[SELFIE_RECOVERY_HINT]: 'Tenemos dificultades para comprobar la iluminación. Mantenga el rostro centrado y no se mueva. Seguiremos comprobando su posición.',
|
|
80
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: 'Continuar con la iluminación actual',
|
|
60
81
|
[MANUAL_CAPTURE_HINT]: 'La captura automática tiene dificultades. Toque el botón para tomar la foto usted mismo.',
|
|
61
82
|
[REVIEW_HEADING]: 'Documento capturado',
|
|
62
83
|
[MOVE_BACK]: 'Aléjese y asegúrese de que los 4 bordes de la hoja sean visibles.',
|
|
63
84
|
[MOVE_CLOSER]: 'Acérquese y llene el encuadre con la hoja completa.',
|
|
85
|
+
[EYES_CLOSED]: 'Hay que mantener los ojos abiertos...',
|
|
86
|
+
[HAND_OVER_FACE]: 'Hay que retirar la mano de la cara...',
|
|
87
|
+
[STARTING_CAMERA]: 'Iniciando la cámara...',
|
|
64
88
|
},
|
|
65
89
|
fr: {
|
|
90
|
+
[SELFIE_RECOVERY_HINT]: 'Nous avons du mal à vérifier l’éclairage. Gardez votre visage centré et restez immobile. Nous vérifierons toujours votre position.',
|
|
91
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: 'Continuer avec cet éclairage',
|
|
66
92
|
[MANUAL_CAPTURE_HINT]: 'La capture automatique rencontre des difficultés. Appuyez sur le bouton pour prendre la photo vous-même.',
|
|
67
93
|
[REVIEW_HEADING]: 'Document capturé',
|
|
68
94
|
[MOVE_BACK]: 'Reculez et assurez-vous que les 4 bords de la page sont visibles.',
|
|
69
95
|
[MOVE_CLOSER]: 'Rapprochez-vous et remplissez le cadre avec la page entière.',
|
|
96
|
+
[EYES_CLOSED]: 'Gardez les yeux ouverts...',
|
|
97
|
+
[HAND_OVER_FACE]: 'Retirez votre main de votre visage...',
|
|
98
|
+
[STARTING_CAMERA]: 'Démarrage de la caméra...',
|
|
70
99
|
},
|
|
71
100
|
it: {
|
|
101
|
+
[SELFIE_RECOVERY_HINT]: 'Abbiamo difficoltà a verificare l’illuminazione. Mantieni il viso centrato e resta fermo. Continueremo a verificare la tua posizione.',
|
|
102
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: 'Continua con la luce attuale',
|
|
72
103
|
[MANUAL_CAPTURE_HINT]: 'La cattura automatica sta avendo difficoltà. Tocca il pulsante per scattare la foto manualmente.',
|
|
73
104
|
[REVIEW_HEADING]: 'Documento acquisito',
|
|
74
105
|
[MOVE_BACK]: 'Allontanati e assicurati che tutti e 4 i bordi del foglio siano visibili.',
|
|
75
106
|
[MOVE_CLOSER]: "Avvicinati e riempi l'inquadratura con l'intero foglio.",
|
|
107
|
+
[EYES_CLOSED]: 'Tenere gli occhi aperti...',
|
|
108
|
+
[HAND_OVER_FACE]: 'Togliere la mano dal viso...',
|
|
109
|
+
[STARTING_CAMERA]: 'Avvio della fotocamera...',
|
|
76
110
|
},
|
|
77
111
|
ja: {
|
|
112
|
+
[SELFIE_RECOVERY_HINT]: '照明の確認がうまくできません。顔を中央に保ち、動かないでください。顔の位置は引き続き確認します。',
|
|
113
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: '現在の照明で続行',
|
|
78
114
|
[MANUAL_CAPTURE_HINT]: '自動撮影がうまくいきません。ボタンを押してご自身で撮影してください。',
|
|
79
115
|
[REVIEW_HEADING]: '書類を撮影しました',
|
|
80
116
|
[MOVE_BACK]: '離れて、書類の4つの端がすべて見えるようにしてください。',
|
|
81
117
|
[MOVE_CLOSER]: '近づいて、書類全体で画面いっぱいに表示してください。',
|
|
118
|
+
[EYES_CLOSED]: '目を開けたままにしてください…',
|
|
119
|
+
[HAND_OVER_FACE]: '顔から手を離してください…',
|
|
120
|
+
[STARTING_CAMERA]: 'カメラを起動しています…',
|
|
82
121
|
},
|
|
83
122
|
pt: {
|
|
123
|
+
[SELFIE_RECOVERY_HINT]: 'Estamos com dificuldade para verificar a iluminação. Mantenha o rosto centralizado e fique imóvel. Continuaremos verificando sua posição.',
|
|
124
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: 'Continuar com a iluminação atual',
|
|
84
125
|
[MANUAL_CAPTURE_HINT]: 'A captura automática está com dificuldades. Toque no botão para tirar a foto você mesmo.',
|
|
85
126
|
[REVIEW_HEADING]: 'Documento capturado',
|
|
86
127
|
[MOVE_BACK]: 'Afaste-se e certifique-se de que as 4 bordas da folha estejam visíveis.',
|
|
87
128
|
[MOVE_CLOSER]: 'Aproxime-se e preencha o quadro com a folha inteira.',
|
|
129
|
+
[EYES_CLOSED]: 'Mantenha os olhos abertos...',
|
|
130
|
+
[HAND_OVER_FACE]: 'Tire a mão do rosto...',
|
|
131
|
+
[STARTING_CAMERA]: 'Iniciando a câmera...',
|
|
88
132
|
},
|
|
89
133
|
ru: {
|
|
134
|
+
[SELFIE_RECOVERY_HINT]: 'Нам не удаётся проверить освещение. Держите лицо по центру и не двигайтесь. Мы продолжим проверять положение лица.',
|
|
135
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: 'Продолжить с текущим освещением',
|
|
90
136
|
[MANUAL_CAPTURE_HINT]: 'Автоматическая съёмка не справляется. Нажмите кнопку, чтобы сделать снимок самостоятельно.',
|
|
91
137
|
[REVIEW_HEADING]: 'Документ снят',
|
|
92
138
|
[MOVE_BACK]: 'Отойдите назад и убедитесь, что видны все 4 края листа.',
|
|
93
139
|
[MOVE_CLOSER]: 'Подойдите ближе и заполните кадр всем листом.',
|
|
140
|
+
[EYES_CLOSED]: 'Не закрывайте глаза…',
|
|
141
|
+
[HAND_OVER_FACE]: 'Уберите руку от лица…',
|
|
142
|
+
[STARTING_CAMERA]: 'Запуск камеры…',
|
|
94
143
|
},
|
|
95
144
|
zh: {
|
|
145
|
+
[SELFIE_RECOVERY_HINT]: '我們無法順利檢查光線。請將臉部保持在中央並保持不動。我們仍會檢查您的位置。',
|
|
146
|
+
[CONTINUE_WITH_CURRENT_LIGHTING]: '使用目前的光線繼續',
|
|
96
147
|
[MANUAL_CAPTURE_HINT]: '自動拍攝遇到困難。請點選按鈕自行拍攝。',
|
|
97
148
|
[REVIEW_HEADING]: '已拍攝文件',
|
|
98
149
|
[MOVE_BACK]: '後退一些,確保紙張的四個邊緣都清晰可見。',
|
|
99
150
|
[MOVE_CLOSER]: '靠近一些,讓整張紙填滿畫面。',
|
|
151
|
+
[EYES_CLOSED]: '請保持雙眼睜開...',
|
|
152
|
+
[HAND_OVER_FACE]: '請將手從臉上移開...',
|
|
153
|
+
[STARTING_CAMERA]: '正在啟動相機...',
|
|
100
154
|
},
|
|
101
155
|
};
|
|
102
156
|
/** Base entries win nothing — the supplement may only ADD. See `noShadowing`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { webSdkUiVersion } from './version';
|
|
2
2
|
export { useIdmissionClient } from './useIdmissionClient';
|
|
3
3
|
export type { IdmissionClientSession, UseIdmissionClientOptions, } from './useIdmissionClient';
|
|
4
|
+
export { useDocumentUpload } from './useDocumentUpload';
|
|
5
|
+
export type { DocumentUploader, DocumentUploadHandlers, UploadDocument, UseDocumentUploadOptions, } from './useDocumentUpload';
|
|
4
6
|
export { IdCaptureView } from './IdCaptureView';
|
|
5
7
|
export type { IdCaptureViewProps, IdCaptureViewVerbiage, IdCaptureViewClassNames, IdCaptureViewAssets, } from './IdCaptureView';
|
|
6
8
|
export { SelfieCaptureView } from './SelfieCaptureView';
|
|
@@ -8,9 +10,9 @@ export type { SelfieCaptureViewProps, SelfieCaptureViewVerbiage, SelfieCaptureVi
|
|
|
8
10
|
export { FaceLivenessView } from './FaceLivenessView';
|
|
9
11
|
export type { FaceLivenessViewProps, FaceLivenessViewVerbiage, FaceLivenessViewClassNames, FaceLivenessViewAssets, FaceLivenessGuidanceVerbiage, } from './FaceLivenessView';
|
|
10
12
|
export { SignatureCaptureView } from './SignatureCaptureView';
|
|
11
|
-
export type { RecordingInterruptedScreenProps, SignatureCaptureViewProps, SignatureCaptureViewAssets, SignatureCaptureViewClassNames, SignatureCaptureViewVerbiage, } from './SignatureCaptureView';
|
|
13
|
+
export type { RecordingInterruptedScreenProps, SignatureCaptureViewProps, SignatureCaptureViewAssets, SignatureCaptureViewClassNames, SignatureCaptureViewColors, SignatureCaptureViewVerbiage, } from './SignatureCaptureView';
|
|
12
14
|
export { VideoIdCaptureView } from './VideoIdCaptureView';
|
|
13
|
-
export type { VideoIdCaptureViewProps, VideoIdCaptureViewClassNames, VideoIdCaptureViewVerbiage, } from './VideoIdCaptureView';
|
|
15
|
+
export type { VideoIdCaptureViewProps, VideoIdCaptureViewClassNames, VideoIdCaptureViewColors, VideoIdCaptureViewVerbiage, } from './VideoIdCaptureView';
|
|
14
16
|
export { DocumentCaptureView } from './DocumentCaptureView';
|
|
15
17
|
export type { DocumentCaptureViewProps, DocumentCaptureViewClassNames, DocumentCaptureViewVerbiage, } from './DocumentCaptureView';
|
|
16
18
|
export { DocumentCaptureGuideOverlay } from './components/document/DocumentCaptureGuideOverlay';
|
|
@@ -28,6 +30,7 @@ export type { Color } from './theme/color';
|
|
|
28
30
|
export { initializeI18n, useLanguage, useVerbiage, useTranslations, ALL_LANGUAGES } from './i18n';
|
|
29
31
|
export type { LangOption, CustomerSuppliedVerbiage, CustomerSuppliedTranslations, } from './i18n';
|
|
30
32
|
export { guidanceMessageKey, instructionKey } from './guidance/strings';
|
|
33
|
+
export type { IdCaptureDocumentVerbiage } from './guidance/strings';
|
|
31
34
|
export { GuideLayoutProvider, useGuideLayout } from './layout/GuideLayoutContext';
|
|
32
35
|
export type { GuideRect, GuideLayoutState } from './layout/GuideLayoutContext';
|
|
33
36
|
export { default as GuideOrientationContextProvider } from './layout/GuideOrientationContext';
|
|
@@ -67,16 +70,16 @@ export type { IdCaptureLoadingOverlayProps, IdCaptureLoadingOverlayMode, IdCaptu
|
|
|
67
70
|
export { IdCaptureLoadingGraphic } from './components/loading/IdCaptureLoadingGraphic';
|
|
68
71
|
export type { IdCaptureLoadingGraphicProps } from './components/loading/IdCaptureLoadingGraphic';
|
|
69
72
|
export { ReviewScreen } from './components/review/ReviewScreen';
|
|
70
|
-
export type { ReviewScreenProps, ReviewScreenClassNames, ReviewScreenVerbiage, } from './components/review/ReviewScreen';
|
|
73
|
+
export type { ReviewScreenProps, ReviewScreenClassNames, ReviewScreenColors, ReviewScreenVerbiage, } from './components/review/ReviewScreen';
|
|
71
74
|
export type { ReviewDiagnosticsModel } from './components/review/ReviewDiagnosticsPanel';
|
|
72
75
|
export { ErrorScreen } from './components/error/ErrorScreen';
|
|
73
76
|
export type { ErrorScreenProps, ErrorScreenClassNames, ErrorScreenVerbiage, } from './components/error/ErrorScreen';
|
|
74
77
|
export { CameraAccessDeniedOverlay } from './components/error/CameraAccessDeniedOverlay';
|
|
75
|
-
export type { CameraAccessDeniedOverlayProps, CameraAccessDeniedOverlayAssets, CameraAccessDeniedOverlayClassNames, CameraAccessDeniedOverlayColors, CameraAccessDeniedOverlayVerbiage, } from './components/error/CameraAccessDeniedOverlay';
|
|
78
|
+
export type { CameraAccessDeniedReason, CameraAccessDeniedOverlayProps, CameraAccessDeniedOverlayAssets, CameraAccessDeniedOverlayClassNames, CameraAccessDeniedOverlayColors, CameraAccessDeniedOverlayVerbiage, } from './components/error/CameraAccessDeniedOverlay';
|
|
76
79
|
export { FaceCaptureGuideOverlay } from './components/selfie/FaceCaptureGuideOverlay';
|
|
77
80
|
export type { FaceCaptureGuideOverlayProps, FaceCaptureGuideOverlayClassNames, FaceCaptureGuideOverlayVariant, FaceGuideStatus, } from './components/selfie/FaceCaptureGuideOverlay';
|
|
78
81
|
export { SelfieCaptureAnimatedMask, SelfieCaptureAnimatedMaskWithStatus, } from './components/selfie/SelfieCaptureAnimatedMask';
|
|
79
|
-
export type { SelfieCaptureAnimatedMaskProps } from './components/selfie/SelfieCaptureAnimatedMask';
|
|
82
|
+
export type { FaceGuideStyle, SelfieCaptureAnimatedMaskProps, } from './components/selfie/SelfieCaptureAnimatedMask';
|
|
80
83
|
export { SelfieCaptureLoadingGraphic } from './components/selfie/SelfieCaptureLoadingGraphic';
|
|
81
84
|
export { SelfieCameraFeed } from './components/selfie/SelfieCameraFeed';
|
|
82
85
|
export type { SelfieCameraFeedProps } from './components/selfie/SelfieCameraFeed';
|
|
@@ -155,7 +158,7 @@ export { SubmissionSuccess } from './flows/SubmissionSuccess';
|
|
|
155
158
|
export type { SubmissionSuccessClassNames, SubmissionSuccessProps, SubmissionSuccessVerbiage, } from './flows/SubmissionSuccess';
|
|
156
159
|
export { AuthUrlNotAllowedOverlay, GeolocationAccessDeniedOverlay, MicrophoneAccessDeniedOverlay, SessionIdMissingOverlay, SessionValidationErrorOverlay, SessionValidationFailedOverlay, SubmissionErrorOverlay, TokenExpiredErrorOverlay, TokenInvalidFormatErrorOverlay, TokenInvalidSignatureErrorOverlay, } from './flows/overlays';
|
|
157
160
|
export type { FlowOverlayAssets, FlowOverlayClassNames, FlowOverlayColors, FlowOverlayVerbiage, SubmissionErrorOverlayVerbiage, } from './flows/overlays';
|
|
158
|
-
export type { CommonFlowProps, ControllerOverrides, FaceLivenessFlowConfig, FaceLivenessFlowViewProps, FlowChassisPassthroughProps, FlowResultCallbacks, FlowSubmissionConfig, IdCaptureFlowConfig, IdCaptureFlowViewProps, RingScreenClassNames, SelfieCaptureFlowConfig, SelfieFlowViewProps, } from './flows/types';
|
|
161
|
+
export type { CommonFlowProps, ControllerOverrides, FaceLivenessFlowConfig, FaceLivenessFlowViewProps, DeprecatedStepSettings, FlowChassisPassthroughProps, FlowResultCallbacks, FlowSettingsProps, FlowSubmissionConfig, IdCaptureFlowConfig, IdCaptureFlowViewProps, RingScreenClassNames, RingScreenVerbiage, SelfieCaptureFlowConfig, SelfieFlowViewProps, SubmissionHandoff, SubmitMode, SubmitModeProps, CaptureOnlyProps, } from './flows/types';
|
|
159
162
|
export { getOrientation, useGuideImages, useGuideImagesByUrl, useImagesWithBackToFront, } from './components/guide_images';
|
|
160
163
|
export { isObject } from './utils/merge';
|
|
161
164
|
//# sourceMappingURL=index.d.ts.map
|