idmission-web-sdk 0.0.54 → 0.0.55
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/dist/components/signature_capture/VideoSignatureCapture.d.ts +2 -2
- package/dist/components/signature_kyc/SignatureKYCWizard.d.ts +3 -1
- package/dist/sdk2.cjs.development.js +11 -13
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +11 -13
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +11 -13
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,11 +9,11 @@ export type VideoSignatureCaptureVerbiage = SignatureCaptureVerbiage & {
|
|
|
9
9
|
guidanceMessageText?: string;
|
|
10
10
|
};
|
|
11
11
|
export type VideoSignatureCaptureProps = {
|
|
12
|
-
|
|
12
|
+
onVideoCaptured?: (videoData: Blob, signatureData: SignatureData, signatureImageData: string) => void;
|
|
13
13
|
onFaceNotDetected?: () => void;
|
|
14
14
|
onExit?: () => void;
|
|
15
15
|
colors?: VideoSignatureCaptureColors;
|
|
16
16
|
verbiage?: VideoSignatureCaptureVerbiage;
|
|
17
17
|
debugMode?: boolean;
|
|
18
18
|
};
|
|
19
|
-
export declare const VideoSignatureCapture: ({
|
|
19
|
+
export declare const VideoSignatureCapture: ({ onVideoCaptured, onFaceNotDetected, onExit, colors, verbiage, debugMode, }: VideoSignatureCaptureProps) => React.ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { VideoSignatureCaptureColors, VideoSignatureCaptureVerbiage } from '../signature_capture/VideoSignatureCapture';
|
|
3
|
+
import { SignatureData } from '../signature_capture/data';
|
|
3
4
|
import { FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
4
5
|
export type SignatureKYCColors = {
|
|
5
6
|
faceLiveness?: FaceLivenessColors;
|
|
@@ -16,9 +17,10 @@ export type SignatureKYCVerbiage = {
|
|
|
16
17
|
};
|
|
17
18
|
export type SignatureKYCWizardProps = {
|
|
18
19
|
onComplete?: () => void;
|
|
20
|
+
onVideoCaptured?: (videoData: Blob, signatureData: SignatureData, signatureImageData: string) => void;
|
|
19
21
|
onRetryClicked?: () => void;
|
|
20
22
|
colors?: SignatureKYCColors;
|
|
21
23
|
verbiage?: SignatureKYCVerbiage;
|
|
22
24
|
debugMode?: boolean;
|
|
23
25
|
};
|
|
24
|
-
export declare const SignatureKYCWizard: ({ onComplete, onRetryClicked, colors, verbiage, debugMode, }: SignatureKYCWizardProps) => ReactElement;
|
|
26
|
+
export declare const SignatureKYCWizard: ({ onComplete, onVideoCaptured, onRetryClicked, colors, verbiage, debugMode, }: SignatureKYCWizardProps) => ReactElement;
|
|
@@ -11510,7 +11510,7 @@ var useVideoRecorder = function useVideoRecorder(camera) {
|
|
|
11510
11510
|
|
|
11511
11511
|
var VideoSignatureCapture = function VideoSignatureCapture(_a) {
|
|
11512
11512
|
var _b, _c;
|
|
11513
|
-
var
|
|
11513
|
+
var onVideoCaptured = _a.onVideoCaptured,
|
|
11514
11514
|
onFaceNotDetected = _a.onFaceNotDetected,
|
|
11515
11515
|
onExit = _a.onExit,
|
|
11516
11516
|
_d = _a.colors,
|
|
@@ -11581,9 +11581,9 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
|
|
|
11581
11581
|
}, [isRecording, startRecording, videoUrl]);
|
|
11582
11582
|
React.useEffect(function () {
|
|
11583
11583
|
if (signatureVideoData && signatureData && signatureDataUrl) {
|
|
11584
|
-
|
|
11584
|
+
onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(signatureVideoData, signatureData, signatureDataUrl);
|
|
11585
11585
|
}
|
|
11586
|
-
}, [
|
|
11586
|
+
}, [onVideoCaptured, signatureData, signatureDataUrl, signatureVideoData]);
|
|
11587
11587
|
var animationFrame = React.useRef(0);
|
|
11588
11588
|
React.useEffect(function () {
|
|
11589
11589
|
var _a;
|
|
@@ -11762,6 +11762,7 @@ var templateObject_1;
|
|
|
11762
11762
|
|
|
11763
11763
|
var SignatureKYCWizard = function SignatureKYCWizard(_a) {
|
|
11764
11764
|
var onComplete = _a.onComplete,
|
|
11765
|
+
onVideoCaptured = _a.onVideoCaptured,
|
|
11765
11766
|
onRetryClicked = _a.onRetryClicked,
|
|
11766
11767
|
_b = _a.colors,
|
|
11767
11768
|
colors = _b === void 0 ? {} : _b,
|
|
@@ -11770,7 +11771,6 @@ var SignatureKYCWizard = function SignatureKYCWizard(_a) {
|
|
|
11770
11771
|
_d = _a.debugMode,
|
|
11771
11772
|
debugMode = _d === void 0 ? false : _d;
|
|
11772
11773
|
var _e = React.useContext(SubmissionContext),
|
|
11773
|
-
submit = _e.submit,
|
|
11774
11774
|
selfieImage = _e.selfieImage,
|
|
11775
11775
|
signatureVideo = _e.signatureVideo,
|
|
11776
11776
|
setSelfieImage = _e.setSelfieImage,
|
|
@@ -11823,12 +11823,12 @@ var SignatureKYCWizard = function SignatureKYCWizard(_a) {
|
|
|
11823
11823
|
});
|
|
11824
11824
|
});
|
|
11825
11825
|
}, [logCaptureMetadata, selfieImage, setSelfieImage]);
|
|
11826
|
-
var onSignatureCaptureCompleted = React.useCallback(function (
|
|
11826
|
+
var onSignatureCaptureCompleted = React.useCallback(function (videoData, signatureData, signatureImageData) {
|
|
11827
11827
|
setSignatureData(signatureData);
|
|
11828
11828
|
setSignatureVideo(URL.createObjectURL(videoData));
|
|
11829
11829
|
setCaptureState('SUCCESS');
|
|
11830
|
-
|
|
11831
|
-
}, [
|
|
11830
|
+
onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData);
|
|
11831
|
+
}, [onVideoCaptured, setSignatureData, setSignatureVideo]);
|
|
11832
11832
|
var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
|
|
11833
11833
|
setCaptureState('CHECKING_LIVENESS');
|
|
11834
11834
|
}, []);
|
|
@@ -11856,7 +11856,7 @@ var SignatureKYCWizard = function SignatureKYCWizard(_a) {
|
|
|
11856
11856
|
});
|
|
11857
11857
|
case 'CAPTURING_SIGNATURE':
|
|
11858
11858
|
return /*#__PURE__*/React__default['default'].createElement(VideoSignatureCapture, {
|
|
11859
|
-
|
|
11859
|
+
onVideoCaptured: onSignatureCaptureCompleted,
|
|
11860
11860
|
onFaceNotDetected: onSignatureCaptureFacesNotDetected,
|
|
11861
11861
|
onExit: onExit,
|
|
11862
11862
|
colors: colors.videoSignatureCapture,
|
|
@@ -11866,7 +11866,7 @@ var SignatureKYCWizard = function SignatureKYCWizard(_a) {
|
|
|
11866
11866
|
case 'SUCCESS':
|
|
11867
11867
|
return /*#__PURE__*/React__default['default'].createElement(SignatureKYCSuccess, {
|
|
11868
11868
|
videoUrl: signatureVideo !== null && signatureVideo !== void 0 ? signatureVideo : '',
|
|
11869
|
-
onDoneClick:
|
|
11869
|
+
onDoneClick: onComplete,
|
|
11870
11870
|
onRetryClick: onRetryClicked,
|
|
11871
11871
|
headingText: (_a = verbiage.success) === null || _a === void 0 ? void 0 : _a.headingText,
|
|
11872
11872
|
retryBtnText: (_b = verbiage.success) === null || _b === void 0 ? void 0 : _b.retryBtnText,
|
|
@@ -12026,8 +12026,7 @@ var CompositeWizardComponent = function CompositeWizardComponent(_a) {
|
|
|
12026
12026
|
return /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
|
|
12027
12027
|
key: "SignatureKycCamera",
|
|
12028
12028
|
preferContinuityCamera: false,
|
|
12029
|
-
preferFrontFacingCamera: true
|
|
12030
|
-
requestMicrophoneAccess: true
|
|
12029
|
+
preferFrontFacingCamera: true
|
|
12031
12030
|
}, /*#__PURE__*/React__default['default'].createElement(SignatureKYCWizard, tslib.__assign({}, signatureKYCProps, {
|
|
12032
12031
|
onComplete: onSignatureKycComplete
|
|
12033
12032
|
})));
|
|
@@ -13603,8 +13602,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
13603
13602
|
}, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
|
|
13604
13603
|
key: attempt,
|
|
13605
13604
|
preferContinuityCamera: false,
|
|
13606
|
-
preferFrontFacingCamera: true
|
|
13607
|
-
requestMicrophoneAccess: true
|
|
13605
|
+
preferFrontFacingCamera: true
|
|
13608
13606
|
}, /*#__PURE__*/React__default['default'].createElement(SignatureKYCWizard, {
|
|
13609
13607
|
colors: colors,
|
|
13610
13608
|
debugMode: debugMode,
|