idmission-web-sdk 1.1.0 → 1.1.2

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
@@ -716,6 +716,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
716
716
  <tr><td><code>skipSuccessScreen</code> (optional)</td><td>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.</td></tr>
717
717
  <tr><td><code>skipIdCapture</code> (optional)</td><td>boolean to indicate whether to skip the initial ID capture flow. Note that when this flag is set, submission to IDmission's servers will not be attempted; it should be used in tandem with onSubmit. Defaults to false.</td></tr>
718
718
  <tr><td><code>skipShowIdCardBack</code> (optional)</td><td>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.</td></tr>
719
+ <tr><td><code>mergeAVStreams</code> (optional)</td><td>boolean flag to indicate whether recorded audio should be merged onto the recorded video stream before submission. Defaults to false.</td></tr>
719
720
  <tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
720
721
  <tr><td><code>colors</code> (optional)</td><td>object containing any asset overrides, for available options consult the Colors table below.</td></tr>
721
722
  <tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Verbiage table below.</td></tr>
@@ -131,6 +131,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
131
131
  disableFaceDetectionWhileAudioCaptureMsDelay?: number;
132
132
  /** Flag for suppressing fallback messaging - used when models fail to load */
133
133
  silentFallback?: boolean;
134
+ /** Boolean flag to indicate whether recorded audio should be merged onto the recorded video stream before submission. Defaults to false. */
135
+ mergeAVStreams?: boolean;
134
136
  /** Name of an included theme or object containing theme properties. **/
135
137
  theme?: ThemeInput;
136
138
  /** Object containing any asset overrides. */
@@ -18,6 +18,7 @@ export type IdVideoCaptureClassNames = {
18
18
  countdown?: string;
19
19
  captureBtnContainer?: string;
20
20
  captureBtn?: string;
21
+ exitCaptureBtn?: string;
21
22
  };
22
23
  export type IdVideoCaptureColors = {
23
24
  guidesSatisfiedColor?: string;
@@ -37,6 +38,7 @@ export type IdVideoCaptureProps = {
37
38
  onIdBackImageCaptured?: (imageUrl: string) => void;
38
39
  onFaceNotDetected?: () => void;
39
40
  onRecordingFailed?: () => void;
41
+ onExitCapture?: () => void;
40
42
  idCaptureModelsEnabled?: boolean;
41
43
  idCardFrontDelay?: number;
42
44
  idCardFrontDetectionThreshold?: number;
@@ -52,10 +54,11 @@ export type IdVideoCaptureProps = {
52
54
  readTextMinReadingMs?: number;
53
55
  disableFaceDetectionWhileAudioCapture: boolean;
54
56
  disableFaceDetectionWhileAudioCaptureMsDelay: number;
57
+ mergeAVStreams?: boolean;
55
58
  assets?: IdVideoCaptureAssets;
56
59
  classNames?: IdVideoCaptureClassNames;
57
60
  colors?: IdVideoCaptureColors;
58
61
  verbiage?: IdVideoCaptureVerbiage;
59
62
  debugMode?: boolean;
60
63
  };
61
- export declare const IdVideoCapture: ({ onComplete, onIdFrontImageCaptured, onIdBackImageCaptured, onFaceNotDetected, onRecordingFailed, idCaptureModelsEnabled, idCardFrontDelay, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, idCardBackDetectionThreshold, idCardBackFocusThreshold, goodIdCardBackFramesThreshold, skipShowIdCardBack, captureCountdownSeconds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => ReactElement;
64
+ export declare const IdVideoCapture: ({ onComplete, onIdFrontImageCaptured, onIdBackImageCaptured, onFaceNotDetected, onRecordingFailed, onExitCapture, idCaptureModelsEnabled, idCardFrontDelay, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, idCardBackDetectionThreshold, idCardBackFocusThreshold, goodIdCardBackFramesThreshold, skipShowIdCardBack, captureCountdownSeconds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, mergeAVStreams, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => ReactElement;
@@ -65,10 +65,11 @@ export type VideoIdWizardProps = {
65
65
  disableFaceDetectionWhileAudioCapture?: boolean;
66
66
  disableFaceDetectionWhileAudioCaptureMsDelay?: number;
67
67
  silentFallback?: boolean;
68
+ mergeAVStreams?: boolean;
68
69
  assets?: VideoIdWizardAssets;
69
70
  classNames?: VideoIdWizardClassNames;
70
71
  colors?: VideoIdWizardColors;
71
72
  verbiage?: VideoIdWizardVerbiage;
72
73
  debugMode?: boolean;
73
74
  };
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;
75
+ 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, mergeAVStreams, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
@@ -1,5 +1,5 @@
1
1
  import { Camera } from './Camera';
2
- export declare const useVideoRecorder: (camera: Camera | null, audioStream?: MediaStream | null) => {
2
+ export declare const useVideoRecorder: (camera: Camera | null, audioStream?: MediaStream | null, mergeAVStreams?: boolean) => {
3
3
  isRecordingVideo: boolean;
4
4
  isRecordingAudio: boolean;
5
5
  startRecordingVideo: () => void;