idmission-web-sdk 2.1.48 → 2.1.49

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.
@@ -78,6 +78,8 @@ export interface IdValidationProps extends PropsWithChildren {
78
78
  customerDataMatchConfig?: CustomerDataMatchConfig;
79
79
  /** String indicating which ID capture loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
80
80
  loadingOverlayMode?: IdCaptureLoadingOverlayMode;
81
+ /** React component to render if the warmup overlay needs to be completely replaced. Note that 100px padding should be applied to the bottom as the loading progress will be displayed over this content. **/
82
+ customOverlayContent?: () => ReactNode;
81
83
  /** String to indicate which types of documents should be captured. Valid values: `idCard`, `passport`, `idCardOrPassport`, `idCardAndPassport`. Default is `idCardOrPassport`. */
82
84
  idCaptureRequirement?: IdCaptureRequirementOption;
83
85
  /** Boolean to indicate whether the success screen should be shown in after the ID card front is captured, rather than the flip animation. Defaults to `false`. */
@@ -132,6 +134,8 @@ export interface IdValidationProps extends PropsWithChildren {
132
134
  onModelError?: (error: Error) => void;
133
135
  /** Callback function that fires when the camera access is denied. */
134
136
  onCameraAccessDenied?: () => void;
137
+ /** Callback function that fires when the continue button is clicked on the loading overlay **/
138
+ onCustomOverlyDismissed?: () => void;
135
139
  /** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
136
140
  captureSignature?: boolean | (() => Promise<boolean>);
137
141
  /** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
@@ -1,4 +1,4 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { FC, PropsWithChildren, ReactNode } from 'react';
2
2
  import { LangOption } from '../../lib/locales';
3
3
  import { SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
4
4
  import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
@@ -40,8 +40,12 @@ export interface SignatureKYCProps extends PropsWithChildren {
40
40
  onModelError?: (error: Error) => void;
41
41
  /** Callback function that fires when the camera access is denied. */
42
42
  onCameraAccessDenied?: () => void;
43
+ /** Callback function that fires when the continue button is clicked on the loading overlay **/
44
+ onCustomOverlyDismissed?: () => void;
43
45
  /** String indicating which loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
44
46
  loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
47
+ /** React component to render if the warmup overlay needs to be completely replaced. Note that 100px padding should be applied to the bottom as the loading progress will be displayed over this content. **/
48
+ customOverlayContent?: () => ReactNode;
45
49
  /** 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`. */
46
50
  skipSuccessScreen?: boolean | (() => Promise<boolean>);
47
51
  /** String containing a base64 image or document service ID pointing to an ID card front image that should be used to match the user's face against. Leave blank to disable face matching. */
@@ -1,4 +1,4 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { FC, PropsWithChildren, ReactNode } from 'react';
2
2
  import { CardData, CustomerDataMatchConfig, IdData, LivenessCheckRequest, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
4
4
  import { CustomerSuppliedVerbiage, LangOption } from '../../lib/locales';
@@ -101,6 +101,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
101
101
  onCameraAccessDenied?: () => void;
102
102
  /** Callback function that fires when the microphone access is denied. */
103
103
  onMicrophoneAccessDenied?: () => void;
104
+ /** Callback function that fires when the continue button is clicked on the loading overlay **/
105
+ onCustomOverlyDismissed?: () => void;
104
106
  /** Object containing any overrides for IDValidation. */
105
107
  idCaptureProps?: IdCaptureWizardProps;
106
108
  /** Object containing any overrides for FaceLiveness. */
@@ -127,6 +129,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
127
129
  skipIdCapture?: boolean;
128
130
  /** Boolean or async function to indicate whether to instruct the user to show the back of their ID card during video capture. If an async function is supplied returning a boolean, it will be evaluated at the time of ID front video capture completion. Defaults to `false`. */
129
131
  skipShowIdCardBack?: boolean | (() => Promise<boolean>);
132
+ /** React component to render if the warmup overlay needs to be completely replaced. Note that 100px padding should be applied to the bottom as the loading progress will be displayed over this content. **/
133
+ customOverlayContent?: () => ReactNode;
130
134
  /** String indicating which ID capture loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
131
135
  idCaptureLoadingOverlayMode?: IdCaptureLoadingOverlayMode;
132
136
  /** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
@@ -1,4 +1,4 @@
1
- import { ComponentType, ReactElement } from 'react';
1
+ import { ComponentType, ReactElement, ReactNode } from 'react';
2
2
  import { FaceLivenessCaptureClassNames, FaceLivenessCaptureColors, FaceLivenessCaptureVerbiage } from './FaceLivenessCapture';
3
3
  import { FaceLivenessSuccessClassNames, FaceLivenessSuccessColors, FaceLivenessSuccessVerbiage } from './FaceLivenessSuccess';
4
4
  import { FaceLivenessFailureAssets, FaceLivenessFailureClassNames, FaceLivenessFailureColors, FaceLivenessFailureVerbiage } from './FaceLivenessFailure';
@@ -33,7 +33,9 @@ export type FaceLivenessWizardProps = {
33
33
  onExitAfterFailure?: (resp: SubmissionResponse | null, req: LivenessCheckRequest | null) => void;
34
34
  onUserCancel?: () => void;
35
35
  onModelError?: (error: Error) => void;
36
+ onCustomOverlyDismissed?: () => void;
36
37
  loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
38
+ customOverlayContent?: () => ReactNode;
37
39
  timeoutDurationMs?: number;
38
40
  modelLoadTimeoutMs?: number;
39
41
  maxRetries?: number;
@@ -50,4 +52,4 @@ export type FaceLivenessWizardProps = {
50
52
  verbiage?: FaceLivenessVerbiage;
51
53
  debugMode?: boolean;
52
54
  };
53
- export declare const FaceLivenessWizard: ({ onComplete, onSuccess, onTimeout, onExitCapture, onExitAfterFailure, onUserCancel, loadingOverlayMode, timeoutDurationMs, maxRetries, skipSuccessScreen, renderCameraFeed, releaseCameraAccessOnExit, silentFallback, guidesComponent, disableCapturePreview, requireVerticalFaceCentering, assets, classNames, colors, verbiage, debugMode, }: FaceLivenessWizardProps) => ReactElement;
55
+ export declare const FaceLivenessWizard: ({ onComplete, onSuccess, onTimeout, onExitCapture, onExitAfterFailure, onUserCancel, loadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, timeoutDurationMs, maxRetries, skipSuccessScreen, renderCameraFeed, releaseCameraAccessOnExit, silentFallback, guidesComponent, disableCapturePreview, requireVerticalFaceCentering, assets, classNames, colors, verbiage, debugMode, }: FaceLivenessWizardProps) => ReactElement;
@@ -47,12 +47,14 @@ export type IdCaptureLoadingOverlayVerbiage = {
47
47
  export type IdCaptureLoadingOverlayProps = {
48
48
  onDismissed?: () => void;
49
49
  onUserCancel?: () => void;
50
+ onCustomOverlyDismissed?: () => void;
50
51
  instructions?: ReactNode;
51
52
  rotateImage?: boolean;
52
53
  assets?: IdCaptureLoadingOverlayAssets;
53
54
  classNames?: IdCaptureLoadingOverlayClassNames;
54
55
  colors?: IdCaptureLoadingOverlayColors;
55
56
  verbiage?: IdCaptureLoadingOverlayVerbiage;
57
+ customOverlayContent?: () => ReactNode;
56
58
  };
57
59
  export type IdCaptureLoadingOverlayMode = 'default' | 'legacy';
58
60
  export declare const IdCaptureLoadingOverlay: ({ mode, ...props }: IdCaptureLoadingOverlayProps & {
@@ -1,3 +1,3 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { IdCaptureLoadingOverlayProps } from './IdCaptureLoadingOverlay';
3
- export declare const IdCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel, instructions, rotateImage, assets, classNames, colors, verbiage: rawVerbiage, }: IdCaptureLoadingOverlayProps) => ReactElement;
3
+ export declare const IdCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel, onCustomOverlyDismissed, instructions, rotateImage, assets, classNames, colors, verbiage: rawVerbiage, customOverlayContent, }: IdCaptureLoadingOverlayProps) => ReactElement;
@@ -50,7 +50,9 @@ export type IdCaptureWizardProps = {
50
50
  onExitCapture?: () => void;
51
51
  onUserCancel?: () => void;
52
52
  onModelError?: (error: Error) => void;
53
+ onCustomOverlyDismissed?: () => void;
53
54
  loadingOverlayMode?: IdCaptureLoadingOverlayMode;
55
+ customOverlayContent?: () => ReactNode;
54
56
  modelLoadTimeoutMs?: number;
55
57
  precapturedDocuments?: CapturedDocuments;
56
58
  captureRequirement?: IdCaptureRequirementOption;
@@ -73,4 +75,4 @@ export type IdCaptureWizardProps = {
73
75
  verbiage?: IdCaptureWizardVerbiage;
74
76
  debugMode?: boolean;
75
77
  };
76
- export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, loadingOverlayMode, precapturedDocuments, captureRequirement, separateIdCardCaptureSequence, thresholds, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, silentFallback, forceFallbackMode, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
78
+ export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, loadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, precapturedDocuments, captureRequirement, separateIdCardCaptureSequence, thresholds, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, silentFallback, forceFallbackMode, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { CameraAccessDeniedOverlayAssets, CameraAccessDeniedOverlayClassNames, CameraAccessDeniedOverlayColors, CameraAccessDeniedOverlayVerbiage } from '../camera/CameraAccessDeniedOverlay';
3
3
  import { LoaderButtonColors } from '../common/LoaderButton';
4
4
  import { CustomerSuppliedVerbiage } from '../../lib/locales';
@@ -50,10 +50,12 @@ export type SelfieCaptureLoadingOverlayVerbiage = {
50
50
  export type SelfieCaptureLoadingOverlayProps = {
51
51
  onDismissed?: () => void;
52
52
  onUserCancel?: () => void;
53
+ onCustomOverlyDismissed?: () => void;
53
54
  assets?: SelfieCaptureLoadingOverlayAssets;
54
55
  classNames?: SelfieCaptureLoadingOverlayClassNames;
55
56
  colors?: SelfieCaptureLoadingOverlayColors;
56
57
  verbiage?: SelfieCaptureLoadingOverlayVerbiage;
58
+ customOverlayContent?: () => ReactNode;
57
59
  };
58
60
  export type SelfieCaptureLoadingOverlayMode = 'default' | 'legacy';
59
61
  export declare const SelfieCaptureLoadingOverlay: ({ mode, ...props }: SelfieCaptureLoadingOverlayProps & {
@@ -1,3 +1,3 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { SelfieCaptureLoadingOverlayProps } from './SelfieCaptureLoadingOverlay';
3
- export declare const SelfieCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel, assets, classNames, colors, verbiage: rawVerbiage, }: SelfieCaptureLoadingOverlayProps) => ReactElement;
3
+ export declare const SelfieCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel, onCustomOverlyDismissed, assets, classNames, colors, verbiage: rawVerbiage, customOverlayContent, }: SelfieCaptureLoadingOverlayProps) => ReactElement;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardProps, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
3
3
  import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage, FaceLivenessWizardProps } from '../face_liveness/FaceLivenessWizard';
4
4
  import { IdVideoCaptureAssets, IdVideoCaptureClassNames, IdVideoCaptureColors, IdVideoCaptureVerbiage, VideoIdCaptureThresholds } from './IdVideoCapture';
@@ -41,6 +41,7 @@ export type VideoIdWizardProps = {
41
41
  onIdCaptureModelError?: (error: Error) => void;
42
42
  onCameraAccessDenied?: () => void;
43
43
  onMicrophoneAccessDenied?: () => void;
44
+ onCustomOverlyDismissed?: () => void;
44
45
  idCaptureProps?: IdCaptureWizardProps;
45
46
  faceLivenessProps?: FaceLivenessWizardProps;
46
47
  idCaptureModelsEnabled?: boolean;
@@ -52,6 +53,7 @@ export type VideoIdWizardProps = {
52
53
  skipIdCapture?: boolean;
53
54
  skipShowIdCardBack?: boolean | (() => Promise<boolean>);
54
55
  idCaptureLoadingOverlayMode?: IdCaptureLoadingOverlayMode;
56
+ customOverlayContent?: () => ReactNode;
55
57
  idCaptureGuideType?: IdCaptureGuideType;
56
58
  idCapturePortraitGuidesOnMobile?: boolean;
57
59
  idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
@@ -67,4 +69,4 @@ export type VideoIdWizardProps = {
67
69
  verbiage?: VideoIdWizardVerbiage;
68
70
  debugMode?: boolean;
69
71
  };
70
- export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
72
+ export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import { VideoSignatureCaptureClassNames, VideoSignatureCaptureColors, VideoSignatureCaptureVerbiage } from './VideoSignatureCapture';
3
3
  import { FaceLivenessCaptureClassNames } from '../face_liveness/FaceLivenessCapture';
4
4
  import { SignatureData } from '../signature_capture/data';
@@ -30,7 +30,9 @@ export type VideoSignatureWizardProps = {
30
30
  onExitCapture?: () => void;
31
31
  onUserCancel?: () => void;
32
32
  onModelError?: (error: Error) => void;
33
+ onCustomOverlyDismissed?: () => void;
33
34
  loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
35
+ customOverlayContent?: () => ReactNode;
34
36
  modelLoadTimeoutMs?: number;
35
37
  skipSuccessScreen?: boolean | (() => Promise<boolean>);
36
38
  assets?: VideoSignatureAssets;
@@ -39,4 +41,4 @@ export type VideoSignatureWizardProps = {
39
41
  verbiage?: VideoSignatureVerbiage;
40
42
  debugMode?: boolean;
41
43
  };
42
- export declare const VideoSignatureWizard: ({ onComplete, onVideoCaptured, onRetryClicked, onExitCapture, onUserCancel, loadingOverlayMode, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: VideoSignatureWizardProps) => ReactElement;
44
+ export declare const VideoSignatureWizard: ({ onComplete, onVideoCaptured, onRetryClicked, onExitCapture, onUserCancel, onCustomOverlyDismissed, loadingOverlayMode, customOverlayContent, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: VideoSignatureWizardProps) => ReactElement;
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.1.48';
237
+ var webSdkVersion = '2.1.49';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7709,6 +7709,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7709
7709
  var _b, _c, _d, _e;
7710
7710
  var onDismissed = _a.onDismissed,
7711
7711
  onUserCancel = _a.onUserCancel,
7712
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
7712
7713
  instructions = _a.instructions,
7713
7714
  _f = _a.rotateImage,
7714
7715
  rotateImage = _f === void 0 ? false : _f,
@@ -7719,7 +7720,8 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7719
7720
  _j = _a.colors,
7720
7721
  colors = _j === void 0 ? {} : _j,
7721
7722
  _k = _a.verbiage,
7722
- rawVerbiage = _k === void 0 ? {} : _k;
7723
+ rawVerbiage = _k === void 0 ? {} : _k,
7724
+ customOverlayContent = _a.customOverlayContent;
7723
7725
  var _l = React.useContext(IdCaptureModelsContext),
7724
7726
  modelsReady = _l.ready,
7725
7727
  modelDownloadProgress = _l.modelDownloadProgress;
@@ -7776,12 +7778,12 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7776
7778
  className: classNames.container
7777
7779
  }, /*#__PURE__*/React__namespace.default.createElement(OverlayInner$1, {
7778
7780
  className: classNames.inner
7779
- }, /*#__PURE__*/React__namespace.default.createElement(OverlayHeader$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledGuidanceMessage$2, {
7780
- className: classNames.heading
7781
- }, verbiage.headingText)), onUserCancel && ( /*#__PURE__*/React__namespace.default.createElement(ExitCaptureButton, {
7781
+ }, onUserCancel && ( /*#__PURE__*/React__namespace.default.createElement(ExitCaptureButton, {
7782
7782
  onClick: onUserCancel,
7783
7783
  className: classNames.cancelBtn
7784
- })), /*#__PURE__*/React__namespace.default.createElement(StyledOverlayImageContainer$2, {
7784
+ })), customOverlayContent ? customOverlayContent() : ( /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(OverlayHeader$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledGuidanceMessage$2, {
7785
+ className: classNames.heading
7786
+ }, verbiage.headingText)), /*#__PURE__*/React__namespace.default.createElement(StyledOverlayImageContainer$2, {
7785
7787
  className: classNames.imageContainer,
7786
7788
  style: {
7787
7789
  pointerEvents: 'none'
@@ -7794,7 +7796,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7794
7796
  style: imageStyle
7795
7797
  })) : ( /*#__PURE__*/React__namespace.default.createElement(IdCaptureLoadingGraphic, {
7796
7798
  className: classNames.image
7797
- }))), instructions, /*#__PURE__*/React__namespace.default.createElement(ContinuityCameraCheckboxContainer$1, {
7799
+ }))))), instructions, /*#__PURE__*/React__namespace.default.createElement(ContinuityCameraCheckboxContainer$1, {
7798
7800
  className: classNames.continuityCameraCheckboxContainer
7799
7801
  }, iphoneContinuityCameraAvailable && ( /*#__PURE__*/React__namespace.default.createElement(ContinuityCameraCheckboxInner, {
7800
7802
  className: classNames.continuityCameraCheckboxInner
@@ -7838,6 +7840,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7838
7840
  onClick: function onClick() {
7839
7841
  setDismissed(true);
7840
7842
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
7843
+ onCustomOverlyDismissed === null || onCustomOverlyDismissed === void 0 ? void 0 : onCustomOverlyDismissed();
7841
7844
  }
7842
7845
  }, verbiage.continueText))))));
7843
7846
  };
@@ -7861,7 +7864,7 @@ var ContinuityCameraCheckboxInner = styled__default.default(GuidanceMessage)(tem
7861
7864
  var ContinuityCameraCheckbox$1 = styled__default.default.input(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
7862
7865
  var StyledButtonsRow$a = styled__default.default(ButtonsRow$1)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: 15px 25px;\n height: 100px;\n color: ", ";\n ", "\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100dvw;\n box-sizing: border-box;\n"], ["\n display: flex;\n flex-direction: row;\n padding: 15px 25px;\n height: 100px;\n color: ", ";\n ", "\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100dvw;\n box-sizing: border-box;\n"])), function (props) {
7863
7866
  var _a, _b, _c, _d;
7864
- return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarTextColor) !== null && _d !== void 0 ? _d : 'white';
7867
+ return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarTextColor) !== null && _d !== void 0 ? _d : 'white';
7865
7868
  }, function (props) {
7866
7869
  var _a, _b, _c, _d, _e, _f;
7867
7870
  return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
@@ -9933,6 +9936,8 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9933
9936
  onUserCancel = _a.onUserCancel,
9934
9937
  _0 = _a.loadingOverlayMode,
9935
9938
  loadingOverlayMode = _0 === void 0 ? 'default' : _0,
9939
+ customOverlayContent = _a.customOverlayContent,
9940
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
9936
9941
  precapturedDocuments = _a.precapturedDocuments,
9937
9942
  _1 = _a.captureRequirement,
9938
9943
  captureRequirement = _1 === void 0 ? 'idCardOrPassport' : _1,
@@ -10262,6 +10267,8 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10262
10267
  }), !overlayDismissed && ( /*#__PURE__*/React__namespace.default.createElement(IdCaptureLoadingOverlay, {
10263
10268
  key: "loading".concat(attempt),
10264
10269
  mode: loadingOverlayMode,
10270
+ customOverlayContent: customOverlayContent,
10271
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
10265
10272
  instructions: instructions,
10266
10273
  assets: assets.loadingOverlay,
10267
10274
  classNames: classNames.loadingOverlay,
@@ -12009,6 +12016,7 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
12009
12016
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
12010
12017
  var onDismissed = _a.onDismissed,
12011
12018
  onUserCancel = _a.onUserCancel,
12019
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
12012
12020
  _b = _a.assets,
12013
12021
  assets = _b === void 0 ? {} : _b,
12014
12022
  _c = _a.classNames,
@@ -12016,7 +12024,8 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12016
12024
  _d = _a.colors,
12017
12025
  colors = _d === void 0 ? {} : _d,
12018
12026
  _e = _a.verbiage,
12019
- rawVerbiage = _e === void 0 ? {} : _e;
12027
+ rawVerbiage = _e === void 0 ? {} : _e,
12028
+ customOverlayContent = _a.customOverlayContent;
12020
12029
  var _f = React.useContext(CameraStateContext),
12021
12030
  cameraReady = _f.cameraReady,
12022
12031
  cameraAccessDenied = _f.cameraAccessDenied,
@@ -12073,7 +12082,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12073
12082
  }, onUserCancel && ( /*#__PURE__*/React__namespace.default.createElement(ExitCaptureButton, {
12074
12083
  onClick: onUserCancel,
12075
12084
  className: classNames.cancelBtn
12076
- })), /*#__PURE__*/React__namespace.default.createElement(OverlayHeader, {
12085
+ })), customOverlayContent ? customOverlayContent() : ( /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(OverlayHeader, {
12077
12086
  className: classNames.headingContainer
12078
12087
  }, /*#__PURE__*/React__namespace.default.createElement(StyledGuidanceMessage, {
12079
12088
  className: classNames.heading
@@ -12085,7 +12094,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12085
12094
  src: assets.instructionImageUrl
12086
12095
  })) : ( /*#__PURE__*/React__namespace.default.createElement(SelfieCaptureLoadingGraphic, {
12087
12096
  className: classNames.image
12088
- }))), /*#__PURE__*/React__namespace.default.createElement(StyledButtonsRow$5, {
12097
+ }))))), /*#__PURE__*/React__namespace.default.createElement(StyledButtonsRow$5, {
12089
12098
  className: classNames.buttonsRow
12090
12099
  }, /*#__PURE__*/React__namespace.default.createElement(ProgressContainer, {
12091
12100
  className: classNames.progressContainer
@@ -12114,6 +12123,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12114
12123
  onClick: function onClick() {
12115
12124
  setDismissed(true);
12116
12125
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
12126
+ onCustomOverlyDismissed === null || onCustomOverlyDismissed === void 0 ? void 0 : onCustomOverlyDismissed();
12117
12127
  }
12118
12128
  }, verbiage.continueText))))));
12119
12129
  };
@@ -12191,6 +12201,8 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12191
12201
  onUserCancel = _a.onUserCancel,
12192
12202
  _e = _a.loadingOverlayMode,
12193
12203
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
12204
+ customOverlayContent = _a.customOverlayContent,
12205
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
12194
12206
  _f = _a.timeoutDurationMs,
12195
12207
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
12196
12208
  _g = _a.maxRetries,
@@ -12388,6 +12400,8 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
12388
12400
  }()), /*#__PURE__*/React__namespace.default.createElement(SelfieCaptureLoadingOverlay, {
12389
12401
  key: attempt,
12390
12402
  mode: loadingOverlayMode,
12403
+ customOverlayContent: customOverlayContent,
12404
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
12391
12405
  assets: assets.loadingOverlay,
12392
12406
  classNames: classNames.loadingOverlay,
12393
12407
  colors: colors.loadingOverlay,
@@ -13335,8 +13349,10 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
13335
13349
  onRetryClicked = _a.onRetryClicked,
13336
13350
  onExitCapture = _a.onExitCapture,
13337
13351
  onUserCancel = _a.onUserCancel,
13352
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
13338
13353
  _c = _a.loadingOverlayMode,
13339
13354
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
13355
+ customOverlayContent = _a.customOverlayContent,
13340
13356
  _d = _a.skipSuccessScreen,
13341
13357
  skipSuccessScreen = _d === void 0 ? false : _d,
13342
13358
  _e = _a.assets,
@@ -13508,7 +13524,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
13508
13524
  colors: colors.loadingOverlay,
13509
13525
  verbiage: verbiage.loadingOverlay,
13510
13526
  onDismissed: onLoadingOverlayDismissed,
13511
- onUserCancel: onUserCancel
13527
+ onUserCancel: onUserCancel,
13528
+ customOverlayContent: customOverlayContent,
13529
+ onCustomOverlyDismissed: onCustomOverlyDismissed
13512
13530
  }));
13513
13531
  };
13514
13532
 
@@ -14310,6 +14328,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
14310
14328
  skipSuccessScreen = _t === void 0 ? false : _t,
14311
14329
  _u = _a.idCaptureLoadingOverlayMode,
14312
14330
  idCaptureLoadingOverlayMode = _u === void 0 ? 'default' : _u,
14331
+ customOverlayContent = _a.customOverlayContent,
14332
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
14313
14333
  _v = _a.idCaptureGuideType,
14314
14334
  idCaptureGuideType = _v === void 0 ? 'fit' : _v,
14315
14335
  _w = _a.idCapturePortraitGuidesOnMobile,
@@ -14462,6 +14482,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
14462
14482
  return /*#__PURE__*/React__namespace.default.createElement(IdCaptureStateProvider, null, /*#__PURE__*/React__namespace.default.createElement(GuideOrientationProvider, null, /*#__PURE__*/React__namespace.default.createElement(IdCaptureWizard, _assign({
14463
14483
  key: "id-capture-".concat(attempt),
14464
14484
  loadingOverlayMode: idCaptureLoadingOverlayMode,
14485
+ customOverlayContent: customOverlayContent,
14486
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
14465
14487
  silentFallback: silentFallback
14466
14488
  }, idCaptureProps, {
14467
14489
  assets: assets.idCapture,
@@ -14482,6 +14504,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
14482
14504
  return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizard, _assign({
14483
14505
  key: "face-liveness-".concat(attempt),
14484
14506
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
14507
+ customOverlayContent: customOverlayContent,
14508
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
14485
14509
  silentFallback: silentFallback
14486
14510
  }, faceLivenessProps, {
14487
14511
  onComplete: onFaceCaptureSuccess,
@@ -15007,6 +15031,8 @@ var IdValidation = function IdValidation(_a) {
15007
15031
  precapturedDocuments = _a.precapturedDocuments,
15008
15032
  _c = _a.loadingOverlayMode,
15009
15033
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
15034
+ customOverlayContent = _a.customOverlayContent,
15035
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
15010
15036
  _d = _a.idCaptureRequirement,
15011
15037
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
15012
15038
  _e = _a.separateIdCardCaptureSequence,
@@ -15080,6 +15106,8 @@ var IdValidation = function IdValidation(_a) {
15080
15106
  thresholds: idCaptureThresholds,
15081
15107
  skipSuccessScreen: skipSuccessScreen,
15082
15108
  loadingOverlayMode: loadingOverlayMode,
15109
+ customOverlayContent: customOverlayContent,
15110
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
15083
15111
  forceFallbackMode: forceFallbackMode,
15084
15112
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
15085
15113
  instructions: instructions,
@@ -15095,7 +15123,7 @@ var IdValidation = function IdValidation(_a) {
15095
15123
  verbiage: verbiage,
15096
15124
  debugMode: debugMode
15097
15125
  };
15098
- }, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
15126
+ }, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
15099
15127
  var additionalDocumentCaptureProps = React.useMemo(function () {
15100
15128
  return {
15101
15129
  documents: captureAdditionalDocuments,
@@ -16881,8 +16909,10 @@ var SignatureKYC = function SignatureKYC(_a) {
16881
16909
  onUserCancel = _a.onUserCancel,
16882
16910
  onModelError = _a.onModelError,
16883
16911
  onCameraAccessDenied = _a.onCameraAccessDenied,
16912
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
16884
16913
  _c = _a.loadingOverlayMode,
16885
16914
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
16915
+ customOverlayContent = _a.customOverlayContent,
16886
16916
  _d = _a.skipSuccessScreen,
16887
16917
  skipSuccessScreen = _d === void 0 ? false : _d,
16888
16918
  idCardForFaceMatch = _a.idCardForFaceMatch,
@@ -16927,6 +16957,8 @@ var SignatureKYC = function SignatureKYC(_a) {
16927
16957
  onCameraAccessDenied: onCameraAccessDenied,
16928
16958
  videoSignatureCaptureProps: React.useMemo(function () {
16929
16959
  return {
16960
+ customOverlayContent: customOverlayContent,
16961
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
16930
16962
  loadingOverlayMode: loadingOverlayMode,
16931
16963
  skipSuccessScreen: skipSuccessScreen,
16932
16964
  modelLoadTimeoutMs: modelLoadTimeoutMs,
@@ -16937,7 +16969,7 @@ var SignatureKYC = function SignatureKYC(_a) {
16937
16969
  onModelError: onModelError,
16938
16970
  onUserCancel: onUserCancel
16939
16971
  };
16940
- }, [classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
16972
+ }, [customOverlayContent, onCustomOverlyDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
16941
16973
  }))));
16942
16974
  };
16943
16975
 
@@ -17001,6 +17033,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
17001
17033
  skipShowIdCardBack = _j === void 0 ? false : _j,
17002
17034
  _k = _a.idCaptureLoadingOverlayMode,
17003
17035
  idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
17036
+ customOverlayContent = _a.customOverlayContent,
17037
+ onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
17004
17038
  _l = _a.idCaptureGuideType,
17005
17039
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
17006
17040
  _m = _a.idCapturePortraitGuidesOnMobile,
@@ -17058,6 +17092,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
17058
17092
  skipIdCapture: skipIdCapture,
17059
17093
  skipShowIdCardBack: skipShowIdCardBack,
17060
17094
  idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
17095
+ customOverlayContent: customOverlayContent,
17096
+ onCustomOverlyDismissed: onCustomOverlyDismissed,
17061
17097
  idCaptureGuideType: idCaptureGuideType,
17062
17098
  idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
17063
17099
  idCaptureRotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
@@ -17072,7 +17108,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
17072
17108
  verbiage: verbiage,
17073
17109
  debugMode: debugMode
17074
17110
  };
17075
- }, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
17111
+ }, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
17076
17112
  var additionalDocumentCaptureProps = React.useMemo(function () {
17077
17113
  return {
17078
17114
  documents: captureAdditionalDocuments,