@idmission/websdk-ui 0.2.0 → 0.5.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.
Files changed (170) hide show
  1. package/README.md +34 -1
  2. package/dist/DocumentCaptureView.d.ts +7 -5
  3. package/dist/DocumentCaptureView.d.ts.map +1 -1
  4. package/dist/DocumentCaptureView.js +30 -26
  5. package/dist/FaceLivenessView.d.ts +2 -2
  6. package/dist/FaceLivenessView.d.ts.map +1 -1
  7. package/dist/FaceLivenessView.js +47 -13
  8. package/dist/IdCaptureView.d.ts +27 -15
  9. package/dist/IdCaptureView.d.ts.map +1 -1
  10. package/dist/IdCaptureView.js +149 -26
  11. package/dist/SelfieCaptureView.d.ts +18 -1
  12. package/dist/SelfieCaptureView.d.ts.map +1 -1
  13. package/dist/SelfieCaptureView.js +13 -4
  14. package/dist/SignatureCaptureView.d.ts +18 -5
  15. package/dist/SignatureCaptureView.d.ts.map +1 -1
  16. package/dist/SignatureCaptureView.js +90 -15
  17. package/dist/VideoIdCaptureView.d.ts +14 -2
  18. package/dist/VideoIdCaptureView.d.ts.map +1 -1
  19. package/dist/VideoIdCaptureView.js +13 -6
  20. package/dist/bindings/useDocumentCapture.d.ts.map +1 -1
  21. package/dist/bindings/useDocumentCapture.js +2 -1
  22. package/dist/bindings/useIdCapture.d.ts.map +1 -1
  23. package/dist/bindings/useIdCapture.js +2 -1
  24. package/dist/bindings/useSelfieCapture.d.ts.map +1 -1
  25. package/dist/bindings/useSelfieCapture.js +2 -1
  26. package/dist/bindings/useSignatureCapture.d.ts.map +1 -1
  27. package/dist/bindings/useSignatureCapture.js +2 -1
  28. package/dist/bindings/useVideoIdCapture.d.ts.map +1 -1
  29. package/dist/bindings/useVideoIdCapture.js +2 -1
  30. package/dist/components/common/BrowserEdgeTint.d.ts +63 -0
  31. package/dist/components/common/BrowserEdgeTint.d.ts.map +1 -0
  32. package/dist/components/common/BrowserEdgeTint.js +111 -0
  33. package/dist/components/common/LoaderButton.d.ts +9 -0
  34. package/dist/components/common/LoaderButton.d.ts.map +1 -1
  35. package/dist/components/common/LoaderButton.js +44 -321
  36. package/dist/components/common/ScreenReaderStatus.d.ts +8 -0
  37. package/dist/components/common/ScreenReaderStatus.d.ts.map +1 -0
  38. package/dist/components/common/ScreenReaderStatus.js +18 -0
  39. package/dist/components/common/overlay.d.ts +6 -0
  40. package/dist/components/common/overlay.d.ts.map +1 -1
  41. package/dist/components/common/overlay.js +7 -1
  42. package/dist/components/debug/debug.d.ts +6 -0
  43. package/dist/components/debug/debug.d.ts.map +1 -1
  44. package/dist/components/debug/debug.js +5 -1
  45. package/dist/components/document/DocumentCaptureAutoCaptureDebugLayer.d.ts.map +1 -1
  46. package/dist/components/document/DocumentCaptureAutoCaptureDebugLayer.js +4 -5
  47. package/dist/components/document/DocumentCaptureAutoCaptureGuidance.d.ts.map +1 -1
  48. package/dist/components/document/DocumentCaptureAutoCaptureGuidance.js +40 -13
  49. package/dist/components/error/CameraAccessDeniedOverlay.d.ts +8 -1
  50. package/dist/components/error/CameraAccessDeniedOverlay.d.ts.map +1 -1
  51. package/dist/components/error/useCameraAccessDeniedReport.d.ts +12 -0
  52. package/dist/components/error/useCameraAccessDeniedReport.d.ts.map +1 -0
  53. package/dist/components/error/useCameraAccessDeniedReport.js +31 -0
  54. package/dist/components/face_liveness/FaceLivenessFailure.d.ts +4 -1
  55. package/dist/components/face_liveness/FaceLivenessFailure.d.ts.map +1 -1
  56. package/dist/components/face_liveness/FaceLivenessFailure.js +4 -2
  57. package/dist/components/face_liveness/FaceLivenessSuccess.d.ts +4 -1
  58. package/dist/components/face_liveness/FaceLivenessSuccess.d.ts.map +1 -1
  59. package/dist/components/face_liveness/FaceLivenessSuccess.js +6 -2
  60. package/dist/components/guides/IdCaptureFitGuide.d.ts +2 -0
  61. package/dist/components/guides/IdCaptureFitGuide.d.ts.map +1 -1
  62. package/dist/components/guides/IdCaptureFitGuide.js +4 -1
  63. package/dist/components/guides/IdCaptureGuideOverlay.d.ts +2 -0
  64. package/dist/components/guides/IdCaptureGuideOverlay.d.ts.map +1 -1
  65. package/dist/components/guides/IdCaptureGuideOverlay.js +3 -1
  66. package/dist/components/guides/IdCaptureGuides.d.ts +14 -0
  67. package/dist/components/guides/IdCaptureGuides.d.ts.map +1 -1
  68. package/dist/components/guides/IdCaptureGuides.js +22 -7
  69. package/dist/components/guides/IdCaptureGuidesCommon.d.ts.map +1 -1
  70. package/dist/components/guides/IdCaptureGuidesCommon.js +12 -7
  71. package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts +9 -0
  72. package/dist/components/loading/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
  73. package/dist/components/loading/IdCaptureLoadingOverlayDefault.js +26 -4
  74. package/dist/components/loading/RingIntroScreen.d.ts.map +1 -1
  75. package/dist/components/loading/RingIntroScreen.js +4 -34
  76. package/dist/components/review/ReviewScreen.d.ts +10 -1
  77. package/dist/components/review/ReviewScreen.d.ts.map +1 -1
  78. package/dist/components/review/ReviewScreen.js +8 -8
  79. package/dist/components/review/SignatureCaptureDiagnostics.d.ts +5 -1
  80. package/dist/components/review/SignatureCaptureDiagnostics.d.ts.map +1 -1
  81. package/dist/components/review/SignatureCaptureDiagnostics.js +4 -2
  82. package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts +9 -2
  83. package/dist/components/selfie/FaceCaptureGuideOverlay.d.ts.map +1 -1
  84. package/dist/components/selfie/FaceCaptureGuideOverlay.js +10 -4
  85. package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts +8 -1
  86. package/dist/components/selfie/SelfieCaptureAnimatedMask.d.ts.map +1 -1
  87. package/dist/components/selfie/SelfieCaptureAnimatedMask.js +55 -21
  88. package/dist/components/selfie/SelfieCaptureSurface.d.ts +9 -2
  89. package/dist/components/selfie/SelfieCaptureSurface.d.ts.map +1 -1
  90. package/dist/components/selfie/SelfieCaptureSurface.js +77 -16
  91. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts +9 -0
  92. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
  93. package/dist/components/selfie_loading/SelfieCaptureLoadingOverlayDefault.js +26 -4
  94. package/dist/flows/AuthStateContext.d.ts.map +1 -1
  95. package/dist/flows/AuthStateContext.js +2 -1
  96. package/dist/flows/CaptureProgress.d.ts +14 -0
  97. package/dist/flows/CaptureProgress.d.ts.map +1 -0
  98. package/dist/flows/CaptureProgress.js +51 -0
  99. package/dist/flows/CompositeWizard.d.ts.map +1 -1
  100. package/dist/flows/CompositeWizard.js +4 -0
  101. package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts +1 -1
  102. package/dist/flows/CustomerBiometricsEnrollmentFlow.d.ts.map +1 -1
  103. package/dist/flows/CustomerBiometricsEnrollmentFlow.js +6 -3
  104. package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts +1 -1
  105. package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.d.ts.map +1 -1
  106. package/dist/flows/CustomerIdAndBiometricsEnrollmentFlow.js +5 -2
  107. package/dist/flows/DocumentCaptureFlow.d.ts +1 -1
  108. package/dist/flows/DocumentCaptureFlow.d.ts.map +1 -1
  109. package/dist/flows/FaceValidationFlow.d.ts +2 -2
  110. package/dist/flows/FaceValidationFlow.d.ts.map +1 -1
  111. package/dist/flows/FaceValidationFlow.js +2 -2
  112. package/dist/flows/FlowChassis.d.ts +3 -1
  113. package/dist/flows/FlowChassis.d.ts.map +1 -1
  114. package/dist/flows/FlowChassis.js +23 -4
  115. package/dist/flows/IdAndFaceValidationFlow.d.ts +1 -1
  116. package/dist/flows/IdAndFaceValidationFlow.d.ts.map +1 -1
  117. package/dist/flows/IdAndFaceValidationFlow.js +5 -2
  118. package/dist/flows/IdValidationFlow.d.ts +1 -1
  119. package/dist/flows/IdValidationFlow.d.ts.map +1 -1
  120. package/dist/flows/IdValidationFlow.js +18 -4
  121. package/dist/flows/SignatureKYCFlow.d.ts +18 -3
  122. package/dist/flows/SignatureKYCFlow.d.ts.map +1 -1
  123. package/dist/flows/SignatureKYCFlow.js +94 -11
  124. package/dist/flows/SubmissionProvider.d.ts.map +1 -1
  125. package/dist/flows/SubmissionProvider.js +8 -1
  126. package/dist/flows/VideoIdValidationFlow.d.ts +1 -1
  127. package/dist/flows/VideoIdValidationFlow.d.ts.map +1 -1
  128. package/dist/flows/VideoIdValidationFlow.js +6 -3
  129. package/dist/flows/additionalDocuments.d.ts.map +1 -1
  130. package/dist/flows/additionalDocuments.js +3 -6
  131. package/dist/flows/approval.d.ts +1 -14
  132. package/dist/flows/approval.d.ts.map +1 -1
  133. package/dist/flows/approval.js +1 -19
  134. package/dist/flows/artifacts.d.ts +1 -1
  135. package/dist/flows/artifacts.d.ts.map +1 -1
  136. package/dist/flows/artifacts.js +29 -9
  137. package/dist/flows/customerMatch/CustomerMatchFlow.d.ts +1 -1
  138. package/dist/flows/customerMatch/CustomerMatchFlow.d.ts.map +1 -1
  139. package/dist/flows/customerMatch/CustomerMatchFlow.js +5 -6
  140. package/dist/flows/ringScreens.d.ts +1 -0
  141. package/dist/flows/ringScreens.d.ts.map +1 -1
  142. package/dist/flows/ringScreens.js +17 -2
  143. package/dist/flows/types.d.ts +17 -3
  144. package/dist/flows/types.d.ts.map +1 -1
  145. package/dist/guidance/selfieStrings.d.ts.map +1 -1
  146. package/dist/guidance/selfieStrings.js +8 -4
  147. package/dist/guidance/strings.d.ts +34 -1
  148. package/dist/guidance/strings.d.ts.map +1 -1
  149. package/dist/guidance/strings.js +39 -0
  150. package/dist/i18n/index.js +1 -1
  151. package/dist/i18n/locales/threeOh.d.ts.map +1 -1
  152. package/dist/i18n/locales/threeOh.js +56 -2
  153. package/dist/index.d.ts +9 -6
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +3 -0
  156. package/dist/testing/autoCaptureFrames.d.ts.map +1 -1
  157. package/dist/testing/autoCaptureFrames.js +10 -4
  158. package/dist/testing/buildSelfieState.d.ts.map +1 -1
  159. package/dist/testing/buildSelfieState.js +5 -0
  160. package/dist/testing/classNamesLeaves.js +1 -1
  161. package/dist/testing/fakeSelfieController.d.ts.map +1 -1
  162. package/dist/testing/fakeSelfieController.js +7 -0
  163. package/dist/theme/index.d.ts +10 -0
  164. package/dist/theme/index.d.ts.map +1 -1
  165. package/dist/useDocumentUpload.d.ts +63 -0
  166. package/dist/useDocumentUpload.d.ts.map +1 -0
  167. package/dist/useDocumentUpload.js +45 -0
  168. package/dist/version.d.ts +1 -1
  169. package/dist/version.js +1 -1
  170. package/package.json +8 -7
package/README.md CHANGED
@@ -4,6 +4,8 @@ React presentation layer for the modular IDmission Web SDK 2 implementation.
4
4
  It sits on top of `@idmission/websdk-core`, the framework-agnostic engine, and
5
5
  owns rendered UI, theming, i18n, React bindings, and complete validation flows.
6
6
 
7
+ Flows accept an optional `captureProgress` task handle from core. See [capture progress](../../docs/capture-progress.md) for lifecycle ownership, signed context, and local verification. The views report final committed prompt codes after display overrides.
8
+
7
9
  ## Install
8
10
 
9
11
  ```
@@ -11,7 +13,7 @@ pnpm add @idmission/websdk-core @idmission/websdk-ui
11
13
  ```
12
14
 
13
15
  Migrating an existing `idmission-web-sdk` integration? Follow the
14
- [compatibility-facade migration guide](https://github.com/Idmission-LLC/idmission-web-sdk-2.0/blob/develop/packages/websdk-ui/MIGRATION_FROM_COMPAT.md).
16
+ [compatibility-facade migration guide](https://github.com/idmission/websdk/blob/develop/packages/websdk-ui/MIGRATION_FROM_COMPAT.md).
15
17
 
16
18
  ### Peer dependencies
17
19
 
@@ -207,6 +209,13 @@ explanatory page with an "Enable camera & start" button) before the camera
207
209
  permission prompt fires, instead of requesting the camera immediately on
208
210
  `attach()` — the same pairing `IdCaptureView`'s ring overlay uses.
209
211
 
212
+ `SignatureKYCFlow` defaults its shared front camera to a 1280×720 maximum
213
+ (720×1280 on portrait streams). Set `allowHigherCameraResolutions={true}` to
214
+ use normal camera resolution selection instead. Explicit limits in
215
+ `faceCapture.camera` or `signatureCapture.camera` still apply to the acquisition
216
+ that opens the shared stream. This prop is read once at mount; remount to change
217
+ it. Higher resolutions can reduce signing responsiveness on slower devices.
218
+
210
219
  ## Exports
211
220
 
212
221
  | Import | Contents |
@@ -263,6 +272,30 @@ store/context reads beyond the layout contexts above) — pass
263
272
  `controller.getState()` fields (or a `useIdCapture(controller)` /
264
273
  `useIdCaptureSelector(controller, selector)` selection) straight through.
265
274
 
275
+ ## Barcode controls
276
+
277
+ ID capture defaults to capturing barcode crops and showing them on its success
278
+ screen. To disable barcode crop analysis, model loading, decoding, recapture,
279
+ and the crop's upload, set `capture.enableBarcodeCapture: false` on
280
+ `IdValidationFlow` (or `idCapture.enableBarcodeCapture` on combined ID flows).
281
+ The ID front and back images are still captured. Precaptured barcode images
282
+ are ignored when barcode capture is disabled.
283
+
284
+ To keep barcode capture and submission but hide the crop on the ID capture
285
+ success screen, set `view.showBarcodeImage: false` (or `idView.showBarcodeImage`
286
+ on combined ID flows). The display option also hides barcode comparison images
287
+ in debug mode. It does not hide barcode data from the terminal submission
288
+ success diagnostics.
289
+
290
+ The `idmission-web-sdk` façade exposes both options as top-level props:
291
+
292
+ ```tsx
293
+ <IdValidation sessionId={sessionId} enableBarcodeCapture={false} />
294
+
295
+ // Display only: the crop is still captured and submitted.
296
+ <IdValidation sessionId={sessionId} showBarcodeImage={false} />
297
+ ```
298
+
266
299
  ## Test harness
267
300
 
268
301
  Tests run under `node:test`, not a browser test runner. Because the
@@ -3,6 +3,7 @@ import type { DocumentCaptureController } from '@idmission/websdk-core/documentC
3
3
  import { type CameraFeedMode } from './components/CameraFeed';
4
4
  import { type DocumentCaptureGuideOverlayClassNames } from './components/document/DocumentCaptureGuideOverlay';
5
5
  import type { DocumentCapturePrompt } from './components/document/types';
6
+ import type { CameraAccessDeniedReason } from './components/error/CameraAccessDeniedOverlay';
6
7
  import { type CustomerSuppliedVerbiage, type LangOption } from './i18n';
7
8
  export type DocumentCaptureViewClassNames = {
8
9
  cameraFeedWrapper?: string;
@@ -64,12 +65,13 @@ export type DocumentCaptureViewProps = {
64
65
  /** Fired once, when every document has uploaded successfully. */
65
66
  onCompleted?: () => void;
66
67
  /**
67
- * Fires once when the controller reports `CAMERA_PERMISSION_DENIED` —
68
- * sdk2's `onCameraAccessDenied`. A pure notification: the view renders its
69
- * denial UI either way. Fires again only if access is later granted and
70
- * then denied again.
68
+ * Fires once when the camera cannot be used — sdk2's
69
+ * `onCameraAccessDenied`. `reason` tells a refused permission from a camera
70
+ * that could not be started. A pure notification: the view renders its
71
+ * camera error UI either way. Fires again only if the camera later works
72
+ * and then fails again, or fails for the other reason.
71
73
  */
72
- onCameraAccessDenied?: () => void;
74
+ onCameraAccessDenied?: (reason: CameraAccessDeniedReason) => void;
73
75
  /** sdk2's `onCameraTamperingDetected`, which its DocumentCapture wired
74
76
  * through `CameraStoreProvider` (DocumentCapture.tsx:193). Fires once per
75
77
  * detection. */
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentCaptureView.d.ts","sourceRoot":"","sources":["../src/DocumentCaptureView.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AAEvF,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAA;AAShC,OAAO,EAEL,KAAK,qCAAqC,EAC3C,MAAM,mDAAmD,CAAA;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAExE,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EAGhB,MAAM,QAAQ,CAAA;AAGf,MAAM,MAAM,6BAA6B,GAAG;IAC1C,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU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xB;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAA;IACjE;;oBAEgB;IAChB,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAA;IACtC;gEAC4D;IAC5D,2BAA2B,CAAC,EAAE,MAAM,IAAI,CAAA;IACxC;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAA;IAC5C,yEAAyE;IACzE,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gEAAgE;IAChE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,6BAA6B,CAAA;IAC1C,QAAQ,CAAC,EAAE,2BAA2B,CAAA;CACvC,CAAA;AAED;oEACoE;AACpE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;CAqDc,CAAA;AAE7D;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAQlE"}
@@ -18,7 +18,10 @@ import { LoaderButton } from './components/common/LoaderButton';
18
18
  import { DocumentCaptureAutoCaptureDebugLayer } from './components/document/DocumentCaptureAutoCaptureDebugLayer';
19
19
  import { DocumentCaptureAutoCaptureGuidance, DocumentCaptureManualCaptureHint, } from './components/document/DocumentCaptureAutoCaptureGuidance';
20
20
  import { DocumentCaptureReviewScreen } from './components/document/DocumentCaptureReviewScreen';
21
+ import { BrowserEdgeTint, opaqueColor, } from './components/common/BrowserEdgeTint';
22
+ import { GRAY_OVERLAY_BACKGROUND } from './components/common/overlay';
21
23
  import { DocumentCaptureGuideOverlay, } from './components/document/DocumentCaptureGuideOverlay';
24
+ import { useCameraAccessDeniedReport } from './components/error/useCameraAccessDeniedReport';
22
25
  import { GuideLayoutProvider, useGuideLayout } from './layout/GuideLayoutContext';
23
26
  import { SdkLanguageProvider, useLanguage, useTranslations, } from './i18n';
24
27
  import { useSessionReady } from './flows/AuthStateContext';
@@ -301,6 +304,24 @@ function DocumentCaptureSurface({ controller, lang = 'auto', sessionReady: sessi
301
304
  const showReview = !!contentUrl &&
302
305
  !!entry?.item.autoCapture &&
303
306
  (capturedMode === 'Auto' || capturedMode === 'Manual');
307
+ /**
308
+ * The colour touching both viewport edges, for the browser to tint its own
309
+ * bars with — see `BrowserEdgeTint`. Null outside the guided treatment, so a
310
+ * 2.x integrator's page chrome stays theirs.
311
+ *
312
+ * The capture screen and the review are the SAME route to a host, which is
313
+ * why this has to come from here: only the view knows it just swapped a
314
+ * near-black camera surface for a light card. Left to the host, iOS 26 Safari
315
+ * showed a white toolbar under the camera and kept the camera's dark top bar
316
+ * over the review.
317
+ */
318
+ const browserEdgeColor = showReview
319
+ ? GRAY_OVERLAY_BACKGROUND
320
+ : autoCaptureGuiding
321
+ ? // The mask can be translucent — `fullscreen`'s scrim, or a theme's —
322
+ // and the strips must not be. Same hue, alpha dropped.
323
+ (opaqueColor(guidedMaskColor) ?? GUIDED_SURROUND_COLOR)
324
+ : null;
304
325
  // Completion is derived rather than event-driven so it survives a remount:
305
326
  // the ref only stops it firing twice within one mount.
306
327
  const everyUploaded = state.documents.length > 0 &&
@@ -312,21 +333,14 @@ function DocumentCaptureSurface({ controller, lang = 'auto', sessionReady: sessi
312
333
  completedRef.current = true;
313
334
  onCompleted?.();
314
335
  }, [everyUploaded, onCompleted]);
315
- const cameraAccessDenied = state.error?.code === 'CAMERA_PERMISSION_DENIED';
336
+ // Either camera failure leaves the capture button stuck on "Loading", so
337
+ // both get the retry button.
338
+ const cameraFailed = state.error?.code === 'CAMERA_PERMISSION_DENIED' ||
339
+ state.error?.code === 'CAMERA_UNAVAILABLE';
316
340
  const cameraTampered = state.error?.code === 'CAMERA_TAMPERING_SUSPECTED';
317
- // Latched like the completion effect above: a notification per denial or
318
- // detection, not per render.
319
- const deniedReportedRef = useRef(false);
320
- useEffect(() => {
321
- if (!cameraAccessDenied) {
322
- deniedReportedRef.current = false;
323
- return;
324
- }
325
- if (deniedReportedRef.current)
326
- return;
327
- deniedReportedRef.current = true;
328
- onCameraAccessDenied?.();
329
- }, [cameraAccessDenied, onCameraAccessDenied]);
341
+ // Latched like the completion effect above: a notification per camera
342
+ // failure or detection, not per render.
343
+ useCameraAccessDeniedReport(controller, state.error?.code, onCameraAccessDenied);
330
344
  const tamperReportedRef = useRef(false);
331
345
  useEffect(() => {
332
346
  if (!cameraTampered) {
@@ -360,7 +374,7 @@ function DocumentCaptureSurface({ controller, lang = 'auto', sessionReady: sessi
360
374
  void controller.actions.capture();
361
375
  }, disabled: !state.camera.ready ||
362
376
  state.capturing ||
363
- manualBurstMs !== null }), manualBurstMs !== null && (_jsx(GuidedShutterSweep, { "$durationMs": manualBurstMs, viewBox: `0 0 ${SHUTTER_RING_BOX_PX} ${SHUTTER_RING_BOX_PX}`, "aria-hidden": "true", "data-testid": "document-capture-shutter-sweep", children: _jsx("circle", { cx: SHUTTER_RING_BOX_PX / 2, cy: SHUTTER_RING_BOX_PX / 2, r: SHUTTER_RING_RADIUS_PX }) }))] }) })), showReview && contentUrl && (_jsx(DocumentCaptureReviewScreen, { contentUrl: contentUrl, headingText: verbiage.reviewHeadingText, retryText: verbiage.retryCaptureBtnText, uploadText: verbiage.uploadBtnText, uploadingText: verbiage.uploadingBtnText, retryUploadText: verbiage.retryUploadBtnText, successText: verbiage.successBtnText, uploadState: uploadState, onRetry: () => controller.actions.retry(), onUpload: () => void controller.actions.upload(), classNames: classNames, alt: reviewImageAlt })), _jsxs(FooterRow, { "$maskColor": autoCaptureGuiding ? guidedMaskColor : maskColor, className: classNames.footerRow, "data-testid": "document-capture-footer", children: [resolvedInstructions && !autoCaptureGuiding && (_jsx(Instructions, { className: classNames.instructions, children: resolvedInstructions })), cameraTampered && (_jsx(Instructions, { className: classNames.tamperMessage, children: verbiage.tamperingText })), _jsx(StyledButtonsRow, { className: classNames.buttonsRow, children: cameraTampered ? (onExitAfterTamperSealPopped ? (_jsx(LoaderButton, { className: classNames.retryCameraAccessBtn, variant: "negative", finished: true, onClick: onExitAfterTamperSealPopped, children: verbiage.exitBtnText })) : null) : cameraAccessDenied ? (_jsx(LoaderButton, { className: classNames.retryCameraAccessBtn, variant: "negative", finished: true, onClick: () => void controller.actions.requestCamera(), children: verbiage.retryCameraAccessBtnText })) : showReview ? (
377
+ manualBurstMs !== null }), manualBurstMs !== null && (_jsx(GuidedShutterSweep, { "$durationMs": manualBurstMs, viewBox: `0 0 ${SHUTTER_RING_BOX_PX} ${SHUTTER_RING_BOX_PX}`, "aria-hidden": "true", "data-testid": "document-capture-shutter-sweep", children: _jsx("circle", { cx: SHUTTER_RING_BOX_PX / 2, cy: SHUTTER_RING_BOX_PX / 2, r: SHUTTER_RING_RADIUS_PX }) }))] }) })), browserEdgeColor && _jsx(BrowserEdgeTint, { color: browserEdgeColor }), showReview && contentUrl && (_jsx(DocumentCaptureReviewScreen, { contentUrl: contentUrl, headingText: verbiage.reviewHeadingText, retryText: verbiage.retryCaptureBtnText, uploadText: verbiage.uploadBtnText, uploadingText: verbiage.uploadingBtnText, retryUploadText: verbiage.retryUploadBtnText, successText: verbiage.successBtnText, uploadState: uploadState, onRetry: () => controller.actions.retry(), onUpload: () => void controller.actions.upload(), classNames: classNames, alt: reviewImageAlt })), _jsxs(FooterRow, { "$maskColor": autoCaptureGuiding ? guidedMaskColor : maskColor, className: classNames.footerRow, "data-testid": "document-capture-footer", children: [resolvedInstructions && !autoCaptureGuiding && (_jsx(Instructions, { className: classNames.instructions, children: resolvedInstructions })), cameraTampered && (_jsx(Instructions, { className: classNames.tamperMessage, children: verbiage.tamperingText })), _jsx(StyledButtonsRow, { className: classNames.buttonsRow, children: cameraTampered ? (onExitAfterTamperSealPopped ? (_jsx(LoaderButton, { className: classNames.retryCameraAccessBtn, variant: "negative", finished: true, onClick: onExitAfterTamperSealPopped, children: verbiage.exitBtnText })) : null) : cameraFailed ? (_jsx(LoaderButton, { className: classNames.retryCameraAccessBtn, variant: "negative", finished: true, onClick: () => void controller.actions.requestCamera(), children: verbiage.retryCameraAccessBtnText })) : showReview ? (
364
378
  // The review card owns these controls now. Rendering them here
365
379
  // too would put two "Retry capture" buttons on screen at once.
366
380
  null) : contentUrl ? (uploadState === 'not_started' ? (_jsxs(_Fragment, { children: [_jsx(LoaderButton, { className: classNames.retryCaptureBtn, finished: true, variant: "warning", onClick: () => controller.actions.retry(), children: verbiage.retryCaptureBtnText }), _jsx(LoaderButton, { className: classNames.uploadBtn, finished: true, variant: "positive", onClick: () => void controller.actions.upload(), children: verbiage.uploadBtnText })] })) : (_jsx(LoaderButton, { className: classNames.uploadProgressBtn, finished: uploadState !== 'in_progress', variant: uploadState === 'failed' ? 'negative' : 'positive', onClick: () => void controller.actions.upload(), disabled: uploadState === 'in_progress' ||
@@ -368,17 +382,7 @@ function DocumentCaptureSurface({ controller, lang = 'auto', sessionReady: sessi
368
382
  ? verbiage.successBtnText
369
383
  : uploadState === 'failed'
370
384
  ? verbiage.retryUploadBtnText
371
- : verbiage.uploadingBtnText }))) : autoCaptureGuiding ? null : (_jsx(LoaderButton, { className: classNames.captureBtn, finished: state.camera.ready, variant: "primary",
372
- // Guarded rather than relying on `disabled` alone: with
373
- // `finished` false, LoaderButton hands the element to ladda,
374
- // which manipulates its disabled state imperatively
375
- // (LoaderButton.tsx:63-79). The button can therefore be
376
- // clickable mid-animation, which CI caught.
377
- onClick: () => {
378
- if (!state.camera.ready || state.capturing)
379
- return;
380
- void controller.actions.capture();
381
- }, disabled: !state.camera.ready || state.capturing, children: !state.camera.ready
385
+ : verbiage.uploadingBtnText }))) : autoCaptureGuiding ? null : (_jsx(LoaderButton, { className: classNames.captureBtn, finished: state.camera.ready, variant: "primary", onClick: () => void controller.actions.capture(), disabled: !state.camera.ready || state.capturing, children: !state.camera.ready
382
386
  ? verbiage.loadingBtnText
383
387
  : state.capturing
384
388
  ? verbiage.capturingBtnText
@@ -22,7 +22,7 @@ export type FaceLivenessViewVerbiage = SelfieCaptureViewVerbiage & {
22
22
  success?: FaceLivenessSuccessVerbiage;
23
23
  failure?: FaceLivenessFailureVerbiage;
24
24
  };
25
- export type FaceLivenessViewClassNames = SelfieCaptureViewClassNames & {
25
+ export type FaceLivenessViewClassNames = Omit<SelfieCaptureViewClassNames, 'fallback'> & {
26
26
  success?: FaceLivenessSuccessClassNames;
27
27
  failure?: FaceLivenessFailureClassNames;
28
28
  };
@@ -34,7 +34,7 @@ export type FaceLivenessViewColors = SelfieCaptureViewColors & {
34
34
  success?: FaceLivenessSuccessColors;
35
35
  failure?: FaceLivenessFailureColors;
36
36
  };
37
- export type FaceLivenessViewProps = Omit<SelfieCaptureViewProps, 'onCaptured'> & {
37
+ export type FaceLivenessViewProps = Omit<SelfieCaptureViewProps, 'onCaptured' | 'classNames'> & {
38
38
  /** Fires with the final (liveness-checked) image URL when the user clicks
39
39
  * Done on the success screen -- or immediately on entering 'completed',
40
40
  * exactly once, when `skipSuccessScreen` is true. */
@@ -1 +1 @@
1
- {"version":3,"file":"FaceLivenessView.d.ts","sourceRoot":"","sources":["../src/FaceLivenessView.tsx"],"names":[],"mappings":"AAqDA,OAAO,EACL,YAAY,EAEZ,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAQd,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,QAAQ,CAAA;AAUf,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EACjC,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B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,MAAM,qBAAqB,GAAG,IAAI,CACtC,sBAAsB,EACtB,YAAY,GAAG,YAAY,CAC5B,GAAG;IACF;;yDAEqD;IACrD,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC;sEACkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iFAAiF;IACjF,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC/B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,MAAM,CAAC,EAAE,sBAAsB,CAAA;IAC/B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAE7C,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,UAAU,CAAC,EAAE,0BAA0B,CAAA;IACvC,MAAM,CAAC,EAAE,sBAAsB,CAAA;CAChC,CAAA;AAuBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CAM3E"}
@@ -111,7 +111,8 @@ const LIVENESS_CAPTURE_PATH_STATES = new Set([
111
111
  // EXCLUDED here: this view swaps the whole surface for FaceLivenessSuccess
112
112
  // once it lands, so the mask/pill underneath would be visual noise (the same
113
113
  // "full-bleed screen owns the phase" rationale SelfieCaptureView applies to
114
- // 'error').
114
+ // controller 'error'). Recoverable liveness ERROR has no controller error
115
+ // screen, so showCaptureSurface includes it separately during the retry delay.
115
116
  //
116
117
  // 'failed' IS included: a non-terminal liveness failure keeps the user on the
117
118
  // camera (see the header note), where the mask's 'failure' status and the
@@ -140,7 +141,7 @@ const Container = styled.div `
140
141
  export function FaceLivenessView(props) {
141
142
  return (_jsx(SdkLanguageProvider, { lang: props.lang ?? 'auto', children: _jsx(FaceLivenessViewContent, { ...props }) }));
142
143
  }
143
- function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', sessionReady: sessionReadyProp, lang = 'auto', autoContinueAfterLoading = false, showIntroScreen = false, transitionFromIdCapture = false, debugMode = false, showFaceLandmarks = false, debugShowSamplePoints, onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onLoadingOverlayDismissed, onCameraAccessDenied, onModelError, onCameraTamperingDetected, onExitAfterTamperSealPopped, onUserCancel, customOverlayContent, allowManualSelfieCaptureOnLoadingError = false, onExit, onExitAfterFailure, onRetry, onDone, skipSuccessScreen = false, maxRetries = 2, allowLivenessFailure = false, videoRef, renderCameraFeed = true, renderFaceGuide = true, verbiage = {}, classNames = {}, colors = {}, assets = {}, }) {
144
+ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', sessionReady: sessionReadyProp, lang = 'auto', autoContinueAfterLoading = false, showIntroScreen = false, transitionFromIdCapture = false, debugMode = false, showFaceLandmarks = false, debugShowSamplePoints, onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onLoadingOverlayDismissed, onCameraAccessDenied, onModelError, onCameraTamperingDetected, onExitAfterTamperSealPopped, onUserCancel, customOverlayContent, allowManualSelfieCaptureOnLoadingError = false, onExit, onExitAfterFailure, onRetry, onDone, skipSuccessScreen = false, maxRetries = 2, allowLivenessFailure = false, videoRef, renderCameraFeed = true, renderFaceGuide = true, faceGuideStyle, verbiage = {}, classNames = {}, colors = {}, assets = {}, }) {
144
145
  // Omitted means "follow the session": mounted inside a flow this view now
145
146
  // renders during session validation, so its own loading overlay is the one
146
147
  // loading surface (2.x behaviour — see useSessionReady). An explicit prop
@@ -161,7 +162,9 @@ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', s
161
162
  // reads it -- the guidance pill does too, and it renders through a portal,
162
163
  // so a stale `true` here escapes the lockout screen's own subtree and floats
163
164
  // the last capture message ("Could not verify your face") over it.
164
- const showCaptureSurface = CAPTURE_SURFACE_PHASES.has(state.phase) && !showLockout;
165
+ const showCaptureSurface = (CAPTURE_SURFACE_PHASES.has(state.phase) ||
166
+ (state.liveness?.requestState === 'ERROR' && state.error === null)) &&
167
+ !showLockout;
165
168
  // maskStatus (task-8 brief / sdk2 guidesByRequestState): liveness
166
169
  // requestState wins when it says 'processing'/'failure' outright;
167
170
  // otherwise fall back to task-7's live-faceReady derivation.
@@ -171,15 +174,24 @@ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', s
171
174
  // what the oval showed there before the prediction started advancing
172
175
  // through the challenge (it froze on the faceReady frame that opened it).
173
176
  const predictionDrivesGuides = !requestState || LIVENESS_CAPTURE_PATH_STATES.has(requestState);
174
- const maskStatus = requestState && LIVENESS_MASK_PROCESSING_STATES.has(requestState)
175
- ? 'processing'
176
- : requestState && LIVENESS_MASK_FAILURE_STATES.has(requestState)
177
- ? 'failure'
178
- : requestState === 'CHALLENGE'
179
- ? 'processing'
180
- : state.prediction?.faceReady
177
+ // The hand-over-face check holds the shutter at fire time, on one frame,
178
+ // without touching `faceReady`, so the pill and the guides have to read its
179
+ // hold too. Ahead of the machine states on purpose: a dropped frame parks
180
+ // the machine in GUIDANCE_SATISFIED and re-arms through CAPTURE_STARTED on
181
+ // every hold, and both of those read 'processing' below -- which is what
182
+ // kept the oval animating while the shutter was actually held.
183
+ const handOverFace = state.guidance.code === SelfieGuidanceCode.HAND_OVER_FACE;
184
+ const maskStatus = handOverFace
185
+ ? 'ready'
186
+ : requestState && LIVENESS_MASK_PROCESSING_STATES.has(requestState)
187
+ ? 'processing'
188
+ : requestState && LIVENESS_MASK_FAILURE_STATES.has(requestState)
189
+ ? 'failure'
190
+ : requestState === 'CHALLENGE'
181
191
  ? 'processing'
182
- : 'ready';
192
+ : state.prediction?.faceReady
193
+ ? 'processing'
194
+ : 'ready';
183
195
  // Message ladder (sdk2 FaceLivenessCapture.tsx:889-912): challenge prompt
184
196
  // beats livenessStatusKey (covering/FAILED/ERROR/validating) beats the
185
197
  // plain held-guidance-code pill. `challengeSnapshot` is only consulted
@@ -221,6 +233,8 @@ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', s
221
233
  const baseLadderText = useVerbiage(guidanceOverride, entry?.key ?? '');
222
234
  const manualCaptureText = useVerbiage(verbiage.guidance?.guidanceManualCaptureText, 'Position your face in the circle and click to capture.');
223
235
  const manualCaptureButtonText = useVerbiage(verbiage.guidance?.manualCaptureBtnText, 'Capture');
236
+ const recoveryCaptureText = useVerbiage(verbiage.guidance?.guidanceRecoveryCaptureText, 'We’re having trouble checking the lighting. Keep your face centered and hold still—we’ll still check your positioning.');
237
+ const recoveryCaptureButtonText = useVerbiage(verbiage.guidance?.recoveryCaptureBtnText, 'Continue with current lighting');
224
238
  // Count/step suffixes are RAW, untranslated appends onto the already-
225
239
  // translated base text -- sdk2 parity (guidance/selfieStrings.ts's own
226
240
  // documented rationale), and only ever apply to the challenge branch.
@@ -245,7 +259,7 @@ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', s
245
259
  // challenge (which is entered on a satisfied face), neutral while the
246
260
  // check is in flight. FAILED/ERROR go negative via `negative` regardless.
247
261
  satisfied: predictionDrivesGuides
248
- ? Boolean(state.prediction?.faceReady)
262
+ ? Boolean(state.prediction?.faceReady) && !handOverFace
249
263
  : requestState === 'CHALLENGE',
250
264
  negative,
251
265
  });
@@ -292,6 +306,20 @@ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', s
292
306
  controller.actions.retry();
293
307
  };
294
308
  const canRetryFailure = maxRetries > -1 && retryCount < maxRetries;
309
+ const showSuccessScreen = state.phase === 'completed' && !skipSuccessScreen;
310
+ const showFailureScreen = showLockout && !allowLivenessFailure;
311
+ // Nobody is looking at the camera behind either terminal screen, so hand it
312
+ // back and let the camera light go out. `restartRun` gets it again through
313
+ // the controller's retry(). A skipped success screen needs nothing here: the
314
+ // host moves on and unmounting detaches.
315
+ // Core holds the terminal screen up while a retry waits for that camera
316
+ // (`retryPending`), so its Retry button shows the wait instead of the user
317
+ // landing on a black feed.
318
+ const coveredByTerminalScreen = showSuccessScreen || showFailureScreen;
319
+ useEffect(() => {
320
+ if (coveredByTerminalScreen)
321
+ controller.actions.releaseCamera();
322
+ }, [controller, coveredByTerminalScreen]);
295
323
  return (_jsxs(Container, { className: classNames.container, children: [_jsx(SelfieCaptureSurface
296
324
  // Never on the liveness stage: a supplied image cannot pass a liveness
297
325
  // check, so offering it would complete the stage with a photo nothing
@@ -302,5 +330,11 @@ function FaceLivenessViewContent({ controller, loadingOverlayMode = 'default', s
302
330
  // check, so offering it would complete the stage with a photo nothing
303
331
  // verified. sdk2 scoped its fallback to the plain selfie component for
304
332
  // the same reason. Core refuses the commit too (captureManually).
305
- fallbackCapture: false, controller: controller, state: state, loadingOverlayMode: loadingOverlayMode, sessionReady: sessionReady, autoContinueAfterLoading: autoContinueAfterLoading, showIntroScreen: showIntroScreen, transitionFromIdCapture: transitionFromIdCapture, onExit: onExit, onLoadingStarted: onLoadingStarted, onLoadingProgress: onLoadingProgress, onLoadingCompleted: onLoadingCompleted, onLoadingFailed: onLoadingFailed, onLoadingOverlayDismissed: onLoadingOverlayDismissed, onCameraAccessDenied: onCameraAccessDenied, onModelError: onModelError, onCameraTamperingDetected: onCameraTamperingDetected, onExitAfterTamperSealPopped: onExitAfterTamperSealPopped, onUserCancel: onUserCancel, customOverlayContent: customOverlayContent, allowManualSelfieCaptureOnLoadingError: allowManualSelfieCaptureOnLoadingError, manualCaptureText: manualCaptureText, manualCaptureButtonText: manualCaptureButtonText, videoRef: videoRef, renderCameraFeed: renderCameraFeed, renderFaceGuide: renderFaceGuide, showCaptureSurface: showCaptureSurface, maskStatus: maskStatus, showGuidancePill: showGuidancePill, guidanceText: guidanceText, guidanceVariant: guidanceVariant, guidanceCode: entry?.code, debugMode: debugMode, showFaceLandmarks: showFaceLandmarks, debugShowSamplePoints: debugShowSamplePoints, verbiage: verbiage, classNames: classNames, colors: colors, assets: assets }), state.phase === 'completed' && !skipSuccessScreen && (_jsx(FaceLivenessSuccess, { imageUrl: completedImageUrl, onDoneClick: () => onDone?.(completedImageUrl), onRetryClick: restartRun, verbiage: verbiage.success, classNames: classNames.success, colors: colors.success })), showLockout && !allowLivenessFailure && (_jsx(FaceLivenessFailure, { canRetry: canRetryFailure, onRetryClick: restartRun, onExitClick: onExitAfterFailure ?? onExit, assets: assets.failure, verbiage: verbiage.failure, classNames: classNames.failure, colors: colors.failure }))] }));
333
+ fallbackCapture: false, controller: controller, state: state, loadingOverlayMode: loadingOverlayMode, sessionReady: sessionReady, autoContinueAfterLoading: autoContinueAfterLoading, showIntroScreen: showIntroScreen, transitionFromIdCapture: transitionFromIdCapture, onExit: onExit, onLoadingStarted: onLoadingStarted, onLoadingProgress: onLoadingProgress, onLoadingCompleted: onLoadingCompleted, onLoadingFailed: onLoadingFailed, onLoadingOverlayDismissed: onLoadingOverlayDismissed, onCameraAccessDenied: onCameraAccessDenied, onModelError: onModelError, onCameraTamperingDetected: onCameraTamperingDetected, onExitAfterTamperSealPopped: onExitAfterTamperSealPopped, onUserCancel: onUserCancel, customOverlayContent: customOverlayContent, allowManualSelfieCaptureOnLoadingError: allowManualSelfieCaptureOnLoadingError, manualCaptureText: manualCaptureText, manualCaptureButtonText: manualCaptureButtonText, recoveryCaptureText: recoveryCaptureText, recoveryCaptureButtonText: recoveryCaptureButtonText, videoRef: videoRef, renderCameraFeed: renderCameraFeed, renderFaceGuide: renderFaceGuide, faceGuideStyle: faceGuideStyle, showCaptureSurface: showCaptureSurface, maskStatus: maskStatus, showGuidancePill: showGuidancePill, guidanceText: guidanceText, guidanceVariant: guidanceVariant, guidanceCode: entry?.code, debugMode: debugMode, showFaceLandmarks: showFaceLandmarks, debugShowSamplePoints: debugShowSamplePoints, verbiage: verbiage, classNames: classNames, colors: colors, assets: assets }), showSuccessScreen && (_jsx(FaceLivenessSuccess, { imageUrl: completedImageUrl, onDoneClick: () => onDone?.(completedImageUrl), onRetryClick: restartRun, retrying: state.retryPending, verbiage: verbiage.success, classNames: classNames.success, colors: colors.success })), showFailureScreen && (_jsx(FaceLivenessFailure
334
+ // The click already spent the budget; keep the last retry's button
335
+ // up while it waits on the camera.
336
+ , {
337
+ // The click already spent the budget; keep the last retry's button
338
+ // up while it waits on the camera.
339
+ canRetry: canRetryFailure || state.retryPending, onRetryClick: restartRun, retrying: state.retryPending, onExitClick: onExitAfterFailure ?? onExit, assets: assets.failure, verbiage: verbiage.failure, classNames: classNames.failure, colors: colors.failure }))] }));
306
340
  }
@@ -4,15 +4,25 @@ import type { SubmissionArtifacts, SubmissionResponse } from '@idmission/websdk-
4
4
  import { type LangOption } from './i18n';
5
5
  import { type CameraFeedMode } from './components/CameraFeed';
6
6
  import { type IdCaptureGuideType, type IdCaptureGuidesClassNames, type IdCaptureGuidesVerbiage } from './components/guides/IdCaptureGuides';
7
+ import { type IdCaptureDocumentVerbiage } from './guidance/strings';
7
8
  import { type OverrideWrongDocumentTypeDialogClassNames, type OverrideWrongDocumentTypeDialogVerbiage } from './components/OverrideWrongDocumentTypeDialog';
8
9
  import { type IdCaptureLoadingOverlayAssets, type IdCaptureLoadingOverlayClassNames, type IdCaptureLoadingOverlayColors, type IdCaptureLoadingOverlayMode, type IdCaptureLoadingOverlayVerbiage } from './components/loading/IdCaptureLoadingOverlay';
9
- import { type ReviewScreenClassNames, type ReviewScreenVerbiage } from './components/review/ReviewScreen';
10
+ import { type ReviewScreenClassNames, type ReviewScreenColors, type ReviewScreenVerbiage } from './components/review/ReviewScreen';
10
11
  import { type ErrorScreenClassNames, type ErrorScreenVerbiage } from './components/error/ErrorScreen';
12
+ import type { CameraAccessDeniedReason } from './components/error/CameraAccessDeniedOverlay';
11
13
  import type { IdCaptureGuideImages } from './components/guide_images';
12
14
  import { type IdCaptureFallbackClassNames, type IdCaptureFallbackColors, type IdCaptureFallbackVerbiage } from './components/fallback/IdCaptureFallback';
13
15
  import { type IdCaptureOrUploadScreenClassNames, type IdCaptureOrUploadScreenColors, type IdCaptureOrUploadScreenVerbiage } from './components/fallback/IdCaptureOrUploadScreen';
14
16
  import { type SkipSuccessScreen } from './flows/useShowSuccessScreen';
15
17
  export type IdCaptureViewVerbiage = {
18
+ /** Capture copy for each document: the scan instruction above the guide
19
+ * and the guidance message below it. The bag for the document currently
20
+ * requested is the one read, as in sdk2; its `instructionText`,
21
+ * `capturingText` and `captureFailedText` win over the same keys on
22
+ * `guides`. */
23
+ idCardFront?: IdCaptureDocumentVerbiage;
24
+ idCardBack?: IdCaptureDocumentVerbiage;
25
+ passport?: IdCaptureDocumentVerbiage;
16
26
  guides?: IdCaptureGuidesVerbiage;
17
27
  loadingOverlay?: IdCaptureLoadingOverlayVerbiage;
18
28
  review?: ReviewScreenVerbiage;
@@ -41,16 +51,15 @@ export type IdCaptureViewClassNames = {
41
51
  cameraFeed?: string;
42
52
  };
43
53
  /**
44
- * The one screen in this view whose 2.x colors have a per-screen destination.
45
- *
46
- * sdk2's `IdCaptureWizardColors` also carried `guideBox*`/`guidanceMessages*`
47
- * (now theme fields — `theme.idCapture.guideBox`, `theme.guidanceMessages`)
48
- * and `success` button colors (now the ReviewScreen's `variant`-driven
49
- * `theme.buttons`), so those reach this view through the theme instead. The
50
- * loading overlay kept its own `colors` bag, so it is exposed here.
54
+ * Per-screen button colours. sdk2's `IdCaptureWizardColors` also carried
55
+ * `guideBox*`/`guidanceMessages*`, which are theme fields now
56
+ * (`theme.idCapture.guideBox`, `theme.guidanceMessages`), so those reach this
57
+ * view through the theme instead.
51
58
  */
52
59
  export type IdCaptureViewColors = {
53
60
  loadingOverlay?: IdCaptureLoadingOverlayColors;
61
+ /** sdk2's `success` bag: the review screen's buttons. */
62
+ review?: ReviewScreenColors;
54
63
  fallback?: IdCaptureFallbackColors;
55
64
  uploadOrCaptureScreen?: IdCaptureOrUploadScreenColors;
56
65
  };
@@ -146,6 +155,9 @@ export type IdCaptureViewProps = {
146
155
  * calls `actions.confirmFlip()` instead of showing the flip-prompt guide
147
156
  * art. */
148
157
  flipReview?: boolean;
158
+ /** Show the barcode crop on the ID capture success screen. Defaults to true.
159
+ * False only hides the image; capture, decoding, and submission are unchanged. */
160
+ showBarcodeImage?: boolean;
149
161
  /** Default true. Gates ReviewScreen's submit button and the loading
150
162
  * overlay's session-checking line — same seam those components already
151
163
  * expose (see their own prop docs). */
@@ -214,16 +226,16 @@ export type IdCaptureViewProps = {
214
226
  */
215
227
  onCameraTamperingDetected?: () => void;
216
228
  /**
217
- * Fires once when the controller reports `CAMERA_PERMISSION_DENIED` —
218
- * sdk2's `onCameraAccessDenied`, which the selfie stage
219
- * (`SelfieCaptureSurface`) has always honoured and the ID stage did not.
220
- * A pure notification: the view renders its denial/error screen either way.
229
+ * Fires once when the camera cannot be used — sdk2's
230
+ * `onCameraAccessDenied`, which sdk2 fired for a refused permission and for
231
+ * a camera it could not start alike. `reason` tells the two apart. A pure
232
+ * notification: the view renders its camera error screen either way.
221
233
  *
222
234
  * Latched like `onCameraTamperingDetected`: it fires again only if the
223
- * error clears and a later attempt is denied again, so a host counting
224
- * these counts denials, not renders.
235
+ * error clears and a later attempt fails again, so a host counting these
236
+ * counts failures, not renders.
225
237
  */
226
- onCameraAccessDenied?: () => void;
238
+ onCameraAccessDenied?: (reason: CameraAccessDeniedReason) => void;
227
239
  /**
228
240
  * Fires once with the underlying Error when a model fails to load (or times
229
241
  * out) — sdk2's `onModelError` / `onIdCaptureModelError`. Distinct from
@@ -1 +1 @@
1
- {"version":3,"file":"IdCaptureView.d.ts","sourceRoot":"","sources":["../src/IdCaptureView.tsx"],"names":[],"mappings":"AAmCA,OAAO,EACL,YAAY,EACZ,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EACV,oBAAoB,EAEpB,mBAAmB,EAEpB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,M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