idmission-web-sdk 1.0.389 → 1.0.391

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 CHANGED
@@ -80,6 +80,7 @@ Render a fullscreen ID capture component that instructs the user to photograph b
80
80
  <tr><td><code>onDenied</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow with an invalid ID. Arguments: same as onComplete.</td></tr>
81
81
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
82
82
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
83
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
83
84
  <tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
84
85
  <tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
85
86
  <tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
@@ -239,6 +240,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
239
240
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
240
241
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the FaceValidation flow and failing the realness check.</td></tr>
241
242
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
243
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
242
244
  <tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
243
245
  <tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
244
246
  <tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
@@ -359,6 +361,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
359
361
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
360
362
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
361
363
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
364
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
362
365
  <tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
363
366
  <tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
364
367
  <tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
@@ -446,6 +449,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
446
449
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
447
450
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
448
451
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
452
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
449
453
  <tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
450
454
  <tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
451
455
  <tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
@@ -531,6 +535,7 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
531
535
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
532
536
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after completing the IDValidation flow and failing the realness check.</td></tr>
533
537
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
538
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
534
539
  <tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
535
540
  <tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
536
541
  <tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
@@ -593,6 +598,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
593
598
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
594
599
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after failing the realness check.</td></tr>
595
600
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
601
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
596
602
  <tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
597
603
  <tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
598
604
  <tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
@@ -645,6 +651,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
645
651
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
646
652
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after failing the realness check.</td></tr>
647
653
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
654
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
648
655
  <tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
649
656
  <tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
650
657
  <tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
@@ -752,6 +759,8 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
752
759
  <tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
753
760
  <tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after failing the realness check.</td></tr>
754
761
  <tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
762
+ <tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
763
+ <tr><td><code>onMicrophoneAccessDenied</code> (optional)</td><td>callback function that fires when microphone access is denied or lost.</td></tr>
755
764
  <tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
756
765
  <tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
757
766
  <tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
@@ -17,6 +17,8 @@ export type CompositeWizardComponentProps = {
17
17
  videoIdCaptureProps?: VideoIdWizardProps;
18
18
  captureSignature?: boolean | (() => Promise<boolean>);
19
19
  captureSignatureVideo?: boolean | (() => Promise<boolean>);
20
+ onCameraAccessDenied?: () => void;
21
+ onMicrophoneAccessDenied?: () => void;
20
22
  debugMode?: boolean;
21
23
  };
22
24
  export type CompositeWizardProps = CompositeWizardComponentProps & {
@@ -27,4 +29,4 @@ export type CompositeWizardProps = CompositeWizardComponentProps & {
27
29
  onComplete?: (submissionResponse: SubmissionResponse) => void;
28
30
  };
29
31
  export declare const CompositeWizard: (props: CompositeWizardProps) => ReactElement;
30
- export declare const CompositeWizardComponent: ({ checks: userChecks, idCaptureProps, faceLivenessProps, additionalDocumentCaptureProps, signatureCaptureProps, videoSignatureCaptureProps, videoIdCaptureProps, captureSignature, captureSignatureVideo, debugMode, }: CompositeWizardComponentProps) => ReactElement;
32
+ export declare const CompositeWizardComponent: ({ checks: userChecks, idCaptureProps, faceLivenessProps, additionalDocumentCaptureProps, signatureCaptureProps, videoSignatureCaptureProps, videoIdCaptureProps, captureSignature, captureSignatureVideo, onCameraAccessDenied, onMicrophoneAccessDenied, debugMode, }: CompositeWizardComponentProps) => ReactElement;
@@ -9,6 +9,8 @@ export type CameraProviderProps = {
9
9
  requireMicrophoneAccess?: boolean;
10
10
  maxVideoWidth?: number;
11
11
  maxFps?: number;
12
+ onCameraAccessDenied?: () => void;
13
+ onMicrophoneAccessDenied?: () => void;
12
14
  debugMode?: boolean;
13
15
  };
14
- export declare const CameraProvider: ({ children, requestAccessAutomatically, preferFrontFacingCamera, preferContinuityCamera, requireMicrophoneAccess, maxVideoWidth, maxFps, debugMode, }: CameraProviderProps) => ReactElement;
16
+ export declare const CameraProvider: ({ children, requestAccessAutomatically, preferFrontFacingCamera, preferContinuityCamera, requireMicrophoneAccess, maxVideoWidth, maxFps, onCameraAccessDenied, onMicrophoneAccessDenied, debugMode, }: CameraProviderProps) => ReactElement;
@@ -95,6 +95,8 @@ export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
95
95
  onUserCancel?: () => void;
96
96
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
97
97
  onModelError?: (error: Error) => void;
98
+ /** Callback function that fires when the camera access is denied. */
99
+ onCameraAccessDenied?: () => void;
98
100
  /** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
99
101
  captureSignature?: boolean | (() => Promise<boolean>);
100
102
  /** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
@@ -149,6 +149,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
149
149
  onIdCaptureModelError?: (error: Error) => void;
150
150
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
151
151
  onSelfieCaptureModelError?: (error: Error) => void;
152
+ /** Callback function that fires when the camera access is denied. */
153
+ onCameraAccessDenied?: () => void;
152
154
  /** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
153
155
  captureSignature?: boolean | (() => Promise<boolean>);
154
156
  /** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
@@ -69,6 +69,8 @@ export interface CustomerIdentificationProps extends PropsWithChildren {
69
69
  onUserCancel?: () => void;
70
70
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
71
71
  onModelError?: (error: Error) => void;
72
+ /** Callback function that fires when the camera access is denied. */
73
+ onCameraAccessDenied?: () => void;
72
74
  /** Name of an included theme or object containing theme properties. **/
73
75
  theme?: ThemeInput;
74
76
  /** Object containing any asset overrides. */
@@ -78,6 +78,8 @@ export interface CustomerVerificationProps extends PropsWithChildren {
78
78
  onUserCancel?: () => void;
79
79
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
80
80
  onModelError?: (error: Error) => void;
81
+ /** Callback function that fires when the camera access is denied. */
82
+ onCameraAccessDenied?: () => void;
81
83
  /** Boolean flag to indicate whether users should be prompted to share their location. Default is `true`. */
82
84
  geolocationEnabled?: boolean;
83
85
  /** Boolean flag to indicate whether users should be blocked from proceeding if they block location access. Default is `false`. */
@@ -34,6 +34,8 @@ export interface DocumentCaptureProps extends PropsWithChildren {
34
34
  onExitCapture?: () => void;
35
35
  /** Callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay. */
36
36
  onUserCancel?: () => void;
37
+ /** Callback function that fires when the camera access is denied. */
38
+ onCameraAccessDenied?: () => void;
37
39
  documents?: CapturedDocument[];
38
40
  aspectRatio?: number;
39
41
  cameraFeedMode?: CameraFeedMode;
@@ -70,6 +70,8 @@ export interface FaceValidationProps extends PropsWithChildren {
70
70
  onUserCancel?: () => void;
71
71
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
72
72
  onModelError?: (error: Error) => void;
73
+ /** Callback function that fires when the camera access is denied. */
74
+ onCameraAccessDenied?: () => void;
73
75
  /** Name of an included theme or object containing theme properties. **/
74
76
  theme?: ThemeInput;
75
77
  /** Object containing any asset overrides. */
@@ -148,6 +148,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
148
148
  onIdCaptureModelError?: (error: Error) => void;
149
149
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
150
150
  onSelfieCaptureModelError?: (error: Error) => void;
151
+ /** Callback function that fires when the camera access is denied. */
152
+ onCameraAccessDenied?: () => void;
151
153
  /** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
152
154
  captureSignature?: boolean | (() => Promise<boolean>);
153
155
  /** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
@@ -123,6 +123,8 @@ export interface IdValidationProps extends PropsWithChildren {
123
123
  onUserCancel?: () => void;
124
124
  /** Callback function that fires when the ID capture models fail to load or fail during runtime. */
125
125
  onModelError?: (error: Error) => void;
126
+ /** Callback function that fires when the camera access is denied. */
127
+ onCameraAccessDenied?: () => void;
126
128
  /** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
127
129
  captureSignature?: boolean | (() => Promise<boolean>);
128
130
  /** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
@@ -38,6 +38,8 @@ export interface SignatureKYCProps extends PropsWithChildren {
38
38
  onUserCancel?: () => void;
39
39
  /** Callback function that fires when the selfie capture models fail to load or fail during runtime. */
40
40
  onModelError?: (error: Error) => void;
41
+ /** Callback function that fires when the camera access is denied. */
42
+ onCameraAccessDenied?: () => void;
41
43
  /** String indicating which loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
42
44
  loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
43
45
  /** Boolean or async function to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to `false`. */
@@ -92,6 +92,10 @@ export interface VideoIdValidationProps extends PropsWithChildren {
92
92
  onExitAfterFailure?: (resp: SubmissionResponse | null, req: LivenessCheckRequest | null) => void;
93
93
  /** Callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay. */
94
94
  onUserCancel?: () => void;
95
+ /** Callback function that fires when the camera access is denied. */
96
+ onCameraAccessDenied?: () => void;
97
+ /** Callback function that fires when the microphone access is denied. */
98
+ onMicrophoneAccessDenied?: () => void;
95
99
  /** Object containing any overrides for IDValidation. */
96
100
  idCaptureProps?: IdCaptureWizardProps;
97
101
  /** Object containing any overrides for FaceLiveness. */
@@ -39,6 +39,8 @@ export type VideoIdWizardProps = {
39
39
  onExitAfterFailure?: (resp: SubmissionResponse | null, req: LivenessCheckRequest | null) => void;
40
40
  onUserCancel?: () => void;
41
41
  onIdCaptureModelError?: (error: Error) => void;
42
+ onCameraAccessDenied?: () => void;
43
+ onMicrophoneAccessDenied?: () => void;
42
44
  idCaptureProps?: IdCaptureWizardProps;
43
45
  faceLivenessProps?: FaceLivenessWizardProps;
44
46
  idCaptureModelsEnabled?: boolean;
@@ -69,4 +71,4 @@ export type VideoIdWizardProps = {
69
71
  verbiage?: VideoIdWizardVerbiage;
70
72
  debugMode?: boolean;
71
73
  };
72
- export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, idCardFrontDetectionThreshold, idCardBackDetectionThreshold, idCardFrontFocusThreshold, idCardBackFocusThreshold, goodIdCardFrontFramesThreshold, goodIdCardBackFramesThreshold, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
74
+ export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, idCardFrontDetectionThreshold, idCardBackDetectionThreshold, idCardFrontFocusThreshold, idCardBackFocusThreshold, goodIdCardFrontFramesThreshold, goodIdCardBackFramesThreshold, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
51
51
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
52
52
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
53
53
 
54
- var webSdkVersion = '1.0.389';
54
+ var webSdkVersion = '1.0.391';
55
55
 
56
56
  function getPlatform() {
57
57
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2321,6 +2321,8 @@ var CameraProvider = function CameraProvider(_a) {
2321
2321
  _f = _a.maxVideoWidth,
2322
2322
  maxVideoWidth = _f === void 0 ? 1920 : _f,
2323
2323
  maxFps = _a.maxFps,
2324
+ onCameraAccessDenied = _a.onCameraAccessDenied,
2325
+ onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
2324
2326
  _g = _a.debugMode,
2325
2327
  debugMode = _g === void 0 ? false : _g;
2326
2328
  var captureDevice = usePreferredCaptureDevice({
@@ -2332,6 +2334,12 @@ var CameraProvider = function CameraProvider(_a) {
2332
2334
  maxFps: maxFps,
2333
2335
  debugMode: debugMode
2334
2336
  });
2337
+ React.useEffect(function () {
2338
+ if (captureDevice.cameraAccessDenied) onCameraAccessDenied === null || onCameraAccessDenied === void 0 ? void 0 : onCameraAccessDenied();
2339
+ }, [captureDevice.cameraAccessDenied, onCameraAccessDenied]);
2340
+ React.useEffect(function () {
2341
+ if (captureDevice.microphoneAccessDenied) onMicrophoneAccessDenied === null || onMicrophoneAccessDenied === void 0 ? void 0 : onMicrophoneAccessDenied();
2342
+ }, [captureDevice.microphoneAccessDenied, onMicrophoneAccessDenied]);
2335
2343
  var releaseCameraAccess = captureDevice.releaseCameraAccess;
2336
2344
  React.useEffect(function () {
2337
2345
  return function () {
@@ -17277,6 +17285,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
17277
17285
  onExitAfterFailure = _a.onExitAfterFailure,
17278
17286
  onUserCancel = _a.onUserCancel,
17279
17287
  onIdCaptureModelError = _a.onIdCaptureModelError,
17288
+ onCameraAccessDenied = _a.onCameraAccessDenied,
17289
+ onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
17280
17290
  _g = _a.idCaptureProps,
17281
17291
  idCaptureProps = _g === void 0 ? {} : _g,
17282
17292
  _h = _a.faceLivenessProps,
@@ -17414,6 +17424,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
17414
17424
  requireMicrophoneAccess: !isCapturingId && !!readTextPrompt,
17415
17425
  maxVideoWidth: isCapturingId ? 1920 : 1280,
17416
17426
  maxFps: isCapturingId ? 60 : 30,
17427
+ onCameraAccessDenied: onCameraAccessDenied,
17428
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied,
17417
17429
  debugMode: debugMode
17418
17430
  }, /*#__PURE__*/React__default['default'].createElement(HighPerformanceSelfieGuidanceModelsProvider, {
17419
17431
  onModelError: faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onModelError,
@@ -17526,6 +17538,8 @@ var CompositeWizardComponent = function CompositeWizardComponent(_a) {
17526
17538
  captureSignature = _m === void 0 ? false : _m,
17527
17539
  _o = _a.captureSignatureVideo,
17528
17540
  captureSignatureVideo = _o === void 0 ? false : _o,
17541
+ onCameraAccessDenied = _a.onCameraAccessDenied,
17542
+ onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
17529
17543
  _p = _a.debugMode,
17530
17544
  debugMode = _p === void 0 ? false : _p;
17531
17545
  var _q = React.useContext(SubmissionContext),
@@ -17659,19 +17673,25 @@ var CompositeWizardComponent = function CompositeWizardComponent(_a) {
17659
17673
  modelLoadTimeoutMs: idCaptureProps.modelLoadTimeoutMs
17660
17674
  }, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
17661
17675
  key: "IdCaptureCamera",
17662
- debugMode: debugMode
17676
+ debugMode: debugMode,
17677
+ onCameraAccessDenied: onCameraAccessDenied,
17678
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied
17663
17679
  }, /*#__PURE__*/React__default['default'].createElement(IdCaptureStateProvider, null, /*#__PURE__*/React__default['default'].createElement(GuideOrientationProvider, null, /*#__PURE__*/React__default['default'].createElement(IdCaptureWizard, tslib.__assign({}, idCaptureProps, {
17664
17680
  onSuccess: onIdCaptureSuccess
17665
17681
  }))))));
17666
17682
  case 'VideoIdCapture':
17667
17683
  return /*#__PURE__*/React__default['default'].createElement(VideoIdWizard, tslib.__assign({}, videoIdCaptureProps, {
17668
- onComplete: onVideoIdCaptureComplete
17684
+ onComplete: onVideoIdCaptureComplete,
17685
+ onCameraAccessDenied: onCameraAccessDenied,
17686
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied
17669
17687
  }));
17670
17688
  case 'FaceLiveness':
17671
17689
  return /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
17672
17690
  key: "FaceLivenessCamera",
17673
17691
  preferFrontFacingCamera: true,
17674
17692
  preferContinuityCamera: false,
17693
+ onCameraAccessDenied: onCameraAccessDenied,
17694
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied,
17675
17695
  debugMode: debugMode
17676
17696
  }, /*#__PURE__*/React__default['default'].createElement(HighPerformanceSelfieGuidanceModelsProvider, {
17677
17697
  onModelError: faceLivenessProps.onModelError,
@@ -17690,6 +17710,8 @@ var CompositeWizardComponent = function CompositeWizardComponent(_a) {
17690
17710
  preferFrontFacingCamera: true,
17691
17711
  maxVideoWidth: 1280,
17692
17712
  maxFps: 30,
17713
+ onCameraAccessDenied: onCameraAccessDenied,
17714
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied,
17693
17715
  debugMode: debugMode
17694
17716
  }, /*#__PURE__*/React__default['default'].createElement(VideoSignatureWizard, tslib.__assign({}, videoSignatureCaptureProps, {
17695
17717
  onComplete: onVideoSignatureComplete,
@@ -17982,6 +18004,7 @@ var IdValidation = function IdValidation(_a) {
17982
18004
  onExitCapture = _a.onExitCapture,
17983
18005
  onUserCancel = _a.onUserCancel,
17984
18006
  onModelError = _a.onModelError,
18007
+ onCameraAccessDenied = _a.onCameraAccessDenied,
17985
18008
  _q = _a.theme,
17986
18009
  theme = _q === void 0 ? 'default' : _q,
17987
18010
  _r = _a.assets,
@@ -18111,6 +18134,7 @@ var IdValidation = function IdValidation(_a) {
18111
18134
  videoSignatureCaptureProps: videoSignatureCaptureProps,
18112
18135
  captureSignature: captureSignature,
18113
18136
  captureSignatureVideo: captureSignatureVideo,
18137
+ onCameraAccessDenied: onCameraAccessDenied,
18114
18138
  debugMode: debugMode
18115
18139
  }))));
18116
18140
  };
@@ -18152,6 +18176,7 @@ var FaceValidation = function FaceValidation(_a) {
18152
18176
  onExitAfterFailure = _a.onExitAfterFailure,
18153
18177
  onUserCancel = _a.onUserCancel,
18154
18178
  onModelError = _a.onModelError,
18179
+ onCameraAccessDenied = _a.onCameraAccessDenied,
18155
18180
  _g = _a.theme,
18156
18181
  theme = _g === void 0 ? 'default' : _g,
18157
18182
  assets = _a.assets,
@@ -18216,6 +18241,7 @@ var FaceValidation = function FaceValidation(_a) {
18216
18241
  return ['FaceLiveness'];
18217
18242
  }, []),
18218
18243
  faceLivenessProps: faceLivenessProps,
18244
+ onCameraAccessDenied: onCameraAccessDenied,
18219
18245
  debugMode: debugMode
18220
18246
  }))));
18221
18247
  };
@@ -18295,6 +18321,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
18295
18321
  onUserCancel = _a.onUserCancel,
18296
18322
  onIdCaptureModelError = _a.onIdCaptureModelError,
18297
18323
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
18324
+ onCameraAccessDenied = _a.onCameraAccessDenied,
18298
18325
  _u = _a.captureSignature,
18299
18326
  captureSignature = _u === void 0 ? false : _u,
18300
18327
  _v = _a.captureSignatureVideo,
@@ -18444,6 +18471,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
18444
18471
  additionalDocumentCaptureProps: additionalDocumentCaptureProps,
18445
18472
  captureSignature: captureSignature,
18446
18473
  captureSignatureVideo: captureSignatureVideo,
18474
+ onCameraAccessDenied: onCameraAccessDenied,
18447
18475
  debugMode: debugMode
18448
18476
  }))));
18449
18477
  };
@@ -18525,6 +18553,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
18525
18553
  onUserCancel = _a.onUserCancel,
18526
18554
  onIdCaptureModelError = _a.onIdCaptureModelError,
18527
18555
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
18556
+ onCameraAccessDenied = _a.onCameraAccessDenied,
18528
18557
  _u = _a.captureSignature,
18529
18558
  captureSignature = _u === void 0 ? false : _u,
18530
18559
  _v = _a.captureSignatureVideo,
@@ -18673,6 +18702,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
18673
18702
  videoSignatureCaptureProps: videoSignatureCaptureProps,
18674
18703
  captureSignature: captureSignature,
18675
18704
  captureSignatureVideo: captureSignatureVideo,
18705
+ onCameraAccessDenied: onCameraAccessDenied,
18676
18706
  debugMode: debugMode
18677
18707
  }))));
18678
18708
  };
@@ -19163,6 +19193,7 @@ var CustomerVerification = function CustomerVerification(_a) {
19163
19193
  onExitAfterFailure = _a.onExitAfterFailure,
19164
19194
  onUserCancel = _a.onUserCancel,
19165
19195
  onModelError = _a.onModelError,
19196
+ onCameraAccessDenied = _a.onCameraAccessDenied,
19166
19197
  _h = _a.geolocationEnabled,
19167
19198
  geolocationEnabled = _h === void 0 ? true : _h,
19168
19199
  _j = _a.geolocationRequired,
@@ -19199,6 +19230,7 @@ var CustomerVerification = function CustomerVerification(_a) {
19199
19230
  geolocationRequired: geolocationRequired
19200
19231
  }, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
19201
19232
  preferFrontFacingCamera: true,
19233
+ onCameraAccessDenied: onCameraAccessDenied,
19202
19234
  debugMode: debugMode
19203
19235
  }, /*#__PURE__*/React__default['default'].createElement(HighPerformanceSelfieGuidanceModelsProvider, {
19204
19236
  onModelError: onModelError,
@@ -19699,6 +19731,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
19699
19731
  onExitAfterFailure = _a.onExitAfterFailure,
19700
19732
  onUserCancel = _a.onUserCancel,
19701
19733
  onModelError = _a.onModelError,
19734
+ onCameraAccessDenied = _a.onCameraAccessDenied,
19702
19735
  _g = _a.theme,
19703
19736
  theme = _g === void 0 ? 'default' : _g,
19704
19737
  assets = _a.assets,
@@ -19739,6 +19772,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
19739
19772
  geolocationRequired: geolocationRequired
19740
19773
  }, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
19741
19774
  preferFrontFacingCamera: true,
19775
+ onCameraAccessDenied: onCameraAccessDenied,
19742
19776
  debugMode: debugMode
19743
19777
  }, /*#__PURE__*/React__default['default'].createElement(HighPerformanceSelfieGuidanceModelsProvider, {
19744
19778
  modelLoadTimeoutMs: modelLoadTimeoutMs,
@@ -19781,6 +19815,7 @@ var SignatureKYC = function SignatureKYC(_a) {
19781
19815
  onComplete = _a.onComplete,
19782
19816
  onUserCancel = _a.onUserCancel,
19783
19817
  onModelError = _a.onModelError,
19818
+ onCameraAccessDenied = _a.onCameraAccessDenied,
19784
19819
  _c = _a.loadingOverlayMode,
19785
19820
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
19786
19821
  _d = _a.skipSuccessScreen,
@@ -19824,6 +19859,7 @@ var SignatureKYC = function SignatureKYC(_a) {
19824
19859
  checks: React.useMemo(function () {
19825
19860
  return ['VideoSignatureCapture'];
19826
19861
  }, []),
19862
+ onCameraAccessDenied: onCameraAccessDenied,
19827
19863
  videoSignatureCaptureProps: React.useMemo(function () {
19828
19864
  return {
19829
19865
  loadingOverlayMode: loadingOverlayMode,
@@ -19877,6 +19913,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
19877
19913
  onExitCapture = _a.onExitCapture,
19878
19914
  onExitAfterFailure = _a.onExitAfterFailure,
19879
19915
  onUserCancel = _a.onUserCancel,
19916
+ onCameraAccessDenied = _a.onCameraAccessDenied,
19917
+ onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
19880
19918
  idCaptureProps = _a.idCaptureProps,
19881
19919
  faceLivenessProps = _a.faceLivenessProps,
19882
19920
  _c = _a.idCaptureModelsEnabled,
@@ -20050,6 +20088,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
20050
20088
  videoSignatureCaptureProps: videoSignatureCaptureProps,
20051
20089
  captureSignature: captureSignature,
20052
20090
  captureSignatureVideo: captureSignatureVideo,
20091
+ onCameraAccessDenied: onCameraAccessDenied,
20092
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied,
20053
20093
  debugMode: debugMode
20054
20094
  }))));
20055
20095
  };
@@ -20094,6 +20134,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
20094
20134
  onExitAfterFailure = _a.onExitAfterFailure,
20095
20135
  onUserCancel = _a.onUserCancel,
20096
20136
  onModelError = _a.onModelError,
20137
+ onCameraAccessDenied = _a.onCameraAccessDenied,
20097
20138
  _g = _a.captureAdditionalDocuments,
20098
20139
  captureAdditionalDocuments = _g === void 0 ? [] : _g,
20099
20140
  _h = _a.captureSignature,
@@ -20206,6 +20247,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
20206
20247
  videoSignatureCaptureProps: videoSignatureCaptureProps,
20207
20248
  captureSignature: captureSignature,
20208
20249
  captureSignatureVideo: captureSignatureVideo,
20250
+ onCameraAccessDenied: onCameraAccessDenied,
20209
20251
  debugMode: debugMode
20210
20252
  }))));
20211
20253
  };
@@ -20228,6 +20270,7 @@ var DocumentCapture = function DocumentCapture(_a) {
20228
20270
  onComplete = _a.onComplete,
20229
20271
  onExitCapture = _a.onExitCapture,
20230
20272
  onUserCancel = _a.onUserCancel,
20273
+ onCameraAccessDenied = _a.onCameraAccessDenied,
20231
20274
  _c = _a.documents,
20232
20275
  documents = _c === void 0 ? [] : _c,
20233
20276
  aspectRatio = _a.aspectRatio,
@@ -20266,6 +20309,7 @@ var DocumentCapture = function DocumentCapture(_a) {
20266
20309
  }, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
20267
20310
  requestAccessAutomatically: false,
20268
20311
  preferContinuityCamera: true,
20312
+ onCameraAccessDenied: onCameraAccessDenied,
20269
20313
  debugMode: debugMode
20270
20314
  }, /*#__PURE__*/React__default['default'].createElement(DocumentCaptureWizard, {
20271
20315
  onSuccess: onComplete,