idmission-web-sdk 2.1.48 → 2.1.50

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 (44) hide show
  1. package/dist/components/CompositeWizard.d.ts +2 -11
  2. package/dist/{contexts/GuideOrientationContext.d.ts → components/GuideOrientationContextProvider.d.ts} +6 -2
  3. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +3 -0
  4. package/dist/components/customer_flows/IdAndFaceValidation.d.ts +3 -0
  5. package/dist/components/customer_flows/IdValidation.d.ts +7 -0
  6. package/dist/components/customer_flows/SignatureKYC.d.ts +5 -1
  7. package/dist/components/customer_flows/VideoIdValidation.d.ts +8 -1
  8. package/dist/components/face_liveness/FaceLivenessWizard.d.ts +4 -2
  9. package/dist/components/guide_images/backToFront.d.ts +2 -0
  10. package/dist/components/guide_images/byUrl.d.ts +4 -0
  11. package/dist/components/guide_images/defaults.d.ts +36 -0
  12. package/dist/components/guide_images/index.d.ts +6 -0
  13. package/dist/components/guide_images/merge.d.ts +2 -0
  14. package/dist/components/guide_images/orientation.d.ts +1 -0
  15. package/dist/components/guide_images/types.d.ts +14 -0
  16. package/dist/components/guide_images/useGuideImages.d.ts +2 -0
  17. package/dist/components/id_capture/FlipIdPrompt.d.ts +3 -8
  18. package/dist/components/id_capture/IdCapture.d.ts +1 -6
  19. package/dist/components/id_capture/IdCaptureFitGuide.d.ts +4 -4
  20. package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +4 -14
  21. package/dist/components/id_capture/IdCaptureGuides.d.ts +4 -6
  22. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +2 -0
  23. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts +1 -1
  24. package/dist/components/id_capture/IdCaptureWizard.d.ts +7 -7
  25. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +3 -1
  26. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
  27. package/dist/components/video_id/IdVideoCapture.d.ts +4 -6
  28. package/dist/components/video_id/IdVideoCaptureFlipIdPrompt.d.ts +3 -6
  29. package/dist/components/video_id/IdVideoCaptureGuides.d.ts +3 -6
  30. package/dist/components/video_id/IdVideoCaptureWizard.d.ts +7 -4
  31. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +4 -2
  32. package/dist/sdk2.cjs.development.js +633 -545
  33. package/dist/sdk2.cjs.development.js.map +1 -1
  34. package/dist/sdk2.cjs.production.js +1 -1
  35. package/dist/sdk2.cjs.production.js.map +1 -1
  36. package/dist/sdk2.esm.js +633 -545
  37. package/dist/sdk2.esm.js.map +1 -1
  38. package/dist/sdk2.umd.development.js +633 -545
  39. package/dist/sdk2.umd.development.js.map +1 -1
  40. package/dist/sdk2.umd.production.js +1 -1
  41. package/dist/sdk2.umd.production.js.map +1 -1
  42. package/dist/version.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/dist/components/GuideOrientationProvider.d.ts +0 -4
@@ -1,17 +1,17 @@
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
- import { IdVideoCaptureAssets, IdVideoCaptureClassNames, IdVideoCaptureColors, IdVideoCaptureVerbiage, VideoIdCaptureThresholds } from './IdVideoCapture';
4
+ import { IdVideoCaptureClassNames, IdVideoCaptureColors, IdVideoCaptureVerbiage, VideoIdCaptureThresholds } from './IdVideoCapture';
5
5
  import { IdVideoCaptureSuccessClassNames, IdVideoCaptureSuccessColors, IdVideoCaptureSuccessVerbiage } from './IdVideoCaptureSuccess';
6
6
  import { CustomerSuppliedVerbiage } from '../../lib/locales';
7
7
  import { LivenessCheckRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
8
8
  import { IdCaptureGuideType } from '../id_capture/IdCaptureGuides';
9
9
  import { IdCaptureLoadingOverlayMode } from '../id_capture/IdCaptureLoadingOverlay';
10
10
  import { SelfieCaptureLoadingOverlayMode } from '../selfie_capture/SelfieCaptureLoadingOverlay';
11
+ import { IdCaptureGuideImages } from '../guide_images';
11
12
  export type VideoIdWizardAssets = {
12
13
  idCapture?: IdCaptureWizardAssets;
13
14
  faceLiveness?: FaceLivenessAssets;
14
- idVideoCapture?: IdVideoCaptureAssets;
15
15
  };
16
16
  export type VideoIdWizardClassNames = {
17
17
  container?: string;
@@ -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,7 +53,9 @@ export type VideoIdWizardProps = {
52
53
  skipIdCapture?: boolean;
53
54
  skipShowIdCardBack?: boolean | (() => Promise<boolean>);
54
55
  idCaptureLoadingOverlayMode?: IdCaptureLoadingOverlayMode;
56
+ customOverlayContent?: () => ReactNode;
55
57
  idCaptureGuideType?: IdCaptureGuideType;
58
+ idCaptureGuideImages?: IdCaptureGuideImages;
56
59
  idCapturePortraitGuidesOnMobile?: boolean;
57
60
  idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
58
61
  idCaptureModelLoadTimeoutMs?: number;
@@ -67,4 +70,4 @@ export type VideoIdWizardProps = {
67
70
  verbiage?: VideoIdWizardVerbiage;
68
71
  debugMode?: boolean;
69
72
  };
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;
73
+ 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, idCaptureGuideImages, 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;