idmission-web-sdk 2.2.93 → 2.2.95
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/CompositeWizard.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +2 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureGuidesCommon.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +2 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +127 -101
- 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 +127 -101
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +127 -101
- 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/dist/themes/index.d.ts +2 -0
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.95';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -7298,29 +7298,29 @@ var IdCardGuideImage = styled.img(templateObject_2$q || (templateObject_2$q = __
|
|
|
7298
7298
|
return props.$isInvisible ? 'opacity: 0;' : '';
|
|
7299
7299
|
});
|
|
7300
7300
|
function IdCardBorder(_a) {
|
|
7301
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
7301
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
7302
7302
|
var children = _a.children,
|
|
7303
|
-
|
|
7304
|
-
status =
|
|
7305
|
-
|
|
7306
|
-
borderWidth =
|
|
7307
|
-
|
|
7308
|
-
borderRadius =
|
|
7309
|
-
|
|
7310
|
-
borderColor =
|
|
7303
|
+
_s = _a.status,
|
|
7304
|
+
status = _s === void 0 ? 'ready' : _s,
|
|
7305
|
+
_t = _a.borderWidth,
|
|
7306
|
+
borderWidth = _t === void 0 ? 20 : _t,
|
|
7307
|
+
_u = _a.borderRadius,
|
|
7308
|
+
borderRadius = _u === void 0 ? 25 : _u,
|
|
7309
|
+
_v = _a.borderColor,
|
|
7310
|
+
borderColor = _v === void 0 ? 'white' : _v,
|
|
7311
7311
|
aspectRatio = _a.aspectRatio,
|
|
7312
|
-
|
|
7313
|
-
progress =
|
|
7312
|
+
_w = _a.progress,
|
|
7313
|
+
progress = _w === void 0 ? 0 : _w,
|
|
7314
7314
|
props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
|
|
7315
|
-
var
|
|
7316
|
-
ref =
|
|
7317
|
-
|
|
7318
|
-
width =
|
|
7319
|
-
|
|
7320
|
-
height =
|
|
7321
|
-
var
|
|
7322
|
-
progressResets =
|
|
7323
|
-
setProgressResets =
|
|
7315
|
+
var _x = useResizeObserver(),
|
|
7316
|
+
ref = _x.ref,
|
|
7317
|
+
_y = _x.width,
|
|
7318
|
+
width = _y === void 0 ? 0 : _y,
|
|
7319
|
+
_z = _x.height,
|
|
7320
|
+
height = _z === void 0 ? 0 : _z;
|
|
7321
|
+
var _0 = useState(0),
|
|
7322
|
+
progressResets = _0[0],
|
|
7323
|
+
setProgressResets = _0[1];
|
|
7324
7324
|
useEffect(function () {
|
|
7325
7325
|
if (progress === 0 && status === 'capturing') {
|
|
7326
7326
|
setProgressResets(function (n) {
|
|
@@ -7331,8 +7331,9 @@ function IdCardBorder(_a) {
|
|
|
7331
7331
|
var theme = useTheme();
|
|
7332
7332
|
var wavesDisabled = (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.wavesDisabled) !== null && _d !== void 0 ? _d : false;
|
|
7333
7333
|
var wavesColor = (_g = (_f = (_e = theme.idCapture) === null || _e === void 0 ? void 0 : _e.guideBox) === null || _f === void 0 ? void 0 : _f.wavesColor) !== null && _g !== void 0 ? _g : '#287ec6';
|
|
7334
|
-
var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k :
|
|
7335
|
-
var
|
|
7334
|
+
var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k : borderColor;
|
|
7335
|
+
var progressBarIndicatorColor = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.progressBarIndicatorColor) !== null && _o !== void 0 ? _o : '#287ec6';
|
|
7336
|
+
var progressBarWidth = (_r = (_q = (_p = theme.idCapture) === null || _p === void 0 ? void 0 : _p.guideBox) === null || _q === void 0 ? void 0 : _q.progressBarWidth) !== null && _r !== void 0 ? _r : borderWidth;
|
|
7336
7337
|
return /*#__PURE__*/React__default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
7337
7338
|
ref: ref,
|
|
7338
7339
|
style: {
|
|
@@ -7366,7 +7367,7 @@ function IdCardBorder(_a) {
|
|
|
7366
7367
|
width: width,
|
|
7367
7368
|
height: height,
|
|
7368
7369
|
borderRadius: borderRadius,
|
|
7369
|
-
borderColor:
|
|
7370
|
+
borderColor: progressBarColor,
|
|
7370
7371
|
borderWidth: progressBarWidth,
|
|
7371
7372
|
className: "idmSdkWavesOrigin"
|
|
7372
7373
|
}), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
|
|
@@ -7374,8 +7375,8 @@ function IdCardBorder(_a) {
|
|
|
7374
7375
|
width: width,
|
|
7375
7376
|
height: height,
|
|
7376
7377
|
borderRadius: borderRadius,
|
|
7377
|
-
borderColor:
|
|
7378
|
-
borderWidth:
|
|
7378
|
+
borderColor: progressBarIndicatorColor,
|
|
7379
|
+
borderWidth: progressBarWidth,
|
|
7379
7380
|
isProgressBar: true,
|
|
7380
7381
|
progress: progress,
|
|
7381
7382
|
progressPaused: progress > 0 && status !== 'capturing'
|
|
@@ -12695,35 +12696,39 @@ var videoSignatureInitialState = {
|
|
|
12695
12696
|
var VideoSignatureContext = /*#__PURE__*/createContext(videoSignatureInitialState);
|
|
12696
12697
|
function VideoSignatureContextProvider(_a) {
|
|
12697
12698
|
var _this = this;
|
|
12698
|
-
var children = _a.children
|
|
12699
|
+
var children = _a.children,
|
|
12700
|
+
_b = _a.captureAudio,
|
|
12701
|
+
captureAudio = _b === void 0 ? false : _b;
|
|
12699
12702
|
var signaturePad = useRef(null);
|
|
12700
|
-
var _b = useState(null),
|
|
12701
|
-
signatureData = _b[0],
|
|
12702
|
-
setSignatureData = _b[1];
|
|
12703
12703
|
var _c = useState(null),
|
|
12704
|
-
|
|
12705
|
-
|
|
12704
|
+
signatureData = _c[0],
|
|
12705
|
+
setSignatureData = _c[1];
|
|
12706
12706
|
var _d = useState(null),
|
|
12707
|
-
|
|
12708
|
-
|
|
12707
|
+
signatureDataUrl = _d[0],
|
|
12708
|
+
setSignatureDataUrl = _d[1];
|
|
12709
12709
|
var _e = useState(null),
|
|
12710
|
-
|
|
12711
|
-
|
|
12710
|
+
signatureVideoData = _e[0],
|
|
12711
|
+
setSignatureVideoData = _e[1];
|
|
12712
|
+
var _f = useState(null),
|
|
12713
|
+
signatureVideoUrl = _f[0],
|
|
12714
|
+
setSignatureVideoUrl = _f[1];
|
|
12712
12715
|
var signatureRecorder = useRef(null);
|
|
12713
12716
|
var recordedChunks = useRef([]);
|
|
12714
|
-
var
|
|
12715
|
-
camera =
|
|
12716
|
-
videoRef =
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12717
|
+
var _g = useCameraStore(),
|
|
12718
|
+
camera = _g.camera,
|
|
12719
|
+
videoRef = _g.videoRef,
|
|
12720
|
+
audioStream = _g.audioStream;
|
|
12721
|
+
var _h = useVideoRecorder(camera, audioStream, captureAudio),
|
|
12722
|
+
isRecordingVideo = _h.isRecordingVideo,
|
|
12723
|
+
startRecordingVideo = _h.startRecordingVideo,
|
|
12724
|
+
stopRecordingVideo = _h.stopRecordingVideo,
|
|
12725
|
+
startRecordingAudio = _h.startRecordingAudio,
|
|
12726
|
+
stopRecordingAudio = _h.stopRecordingAudio;
|
|
12722
12727
|
var outputCanvas = useRef(null);
|
|
12723
12728
|
var recordingLock = useRef(false);
|
|
12724
|
-
var
|
|
12725
|
-
isRecording =
|
|
12726
|
-
setIsRecording =
|
|
12729
|
+
var _j = useState(false),
|
|
12730
|
+
isRecording = _j[0],
|
|
12731
|
+
setIsRecording = _j[1];
|
|
12727
12732
|
var startRecording = useCallback(function () {
|
|
12728
12733
|
setIsRecording(true);
|
|
12729
12734
|
}, []);
|
|
@@ -12736,7 +12741,7 @@ function VideoSignatureContextProvider(_a) {
|
|
|
12736
12741
|
recordingLock.current = true;
|
|
12737
12742
|
(function () {
|
|
12738
12743
|
return __awaiter(_this, void 0, void 0, function () {
|
|
12739
|
-
var stream;
|
|
12744
|
+
var stream, tracks, audioTrack;
|
|
12740
12745
|
return __generator(this, function (_a) {
|
|
12741
12746
|
switch (_a.label) {
|
|
12742
12747
|
case 0:
|
|
@@ -12754,8 +12759,12 @@ function VideoSignatureContextProvider(_a) {
|
|
|
12754
12759
|
_a.label = 2;
|
|
12755
12760
|
case 2:
|
|
12756
12761
|
startRecordingVideo();
|
|
12762
|
+
if (captureAudio) startRecordingAudio();
|
|
12757
12763
|
stream = outputCanvas.current.captureStream(24 /* fps */);
|
|
12758
|
-
|
|
12764
|
+
tracks = [stream.getVideoTracks()[0]];
|
|
12765
|
+
audioTrack = audioStream.getAudioTracks()[0];
|
|
12766
|
+
if (audioTrack) tracks.push(audioTrack);
|
|
12767
|
+
signatureRecorder.current = new MediaRecorder(new MediaStream(tracks), {
|
|
12759
12768
|
videoBitsPerSecond: 270000
|
|
12760
12769
|
});
|
|
12761
12770
|
signatureRecorder.current.start();
|
|
@@ -12778,7 +12787,7 @@ function VideoSignatureContextProvider(_a) {
|
|
|
12778
12787
|
});
|
|
12779
12788
|
});
|
|
12780
12789
|
})();
|
|
12781
|
-
}, [isRecording,
|
|
12790
|
+
}, [audioStream, captureAudio, isRecording, startRecordingAudio, startRecordingVideo]);
|
|
12782
12791
|
var animationFrame = useRef(0);
|
|
12783
12792
|
useEffect(function () {
|
|
12784
12793
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current || !camera || !isRecording || !isRecordingVideo) return;
|
|
@@ -12826,12 +12835,13 @@ function VideoSignatureContextProvider(_a) {
|
|
|
12826
12835
|
setSignatureDataUrl(imageUrl);
|
|
12827
12836
|
setSignatureData(signatureDataToIdmissionFormat(signaturePad.current, imageUrl));
|
|
12828
12837
|
stopRecordingVideo();
|
|
12838
|
+
stopRecordingAudio();
|
|
12829
12839
|
(_a = signatureRecorder.current) === null || _a === void 0 ? void 0 : _a.stop();
|
|
12830
12840
|
return [2 /*return*/];
|
|
12831
12841
|
}
|
|
12832
12842
|
});
|
|
12833
12843
|
});
|
|
12834
|
-
}, [stopRecordingVideo]);
|
|
12844
|
+
}, [stopRecordingAudio, stopRecordingVideo]);
|
|
12835
12845
|
var value = useMemo(function () {
|
|
12836
12846
|
return {
|
|
12837
12847
|
startRecording: startRecording,
|
|
@@ -13083,44 +13093,50 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13083
13093
|
customOverlayContent = _a.customOverlayContent,
|
|
13084
13094
|
_d = _a.skipSuccessScreen,
|
|
13085
13095
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
13086
|
-
_e = _a.
|
|
13087
|
-
|
|
13096
|
+
_e = _a.captureAudio,
|
|
13097
|
+
captureAudio = _e === void 0 ? false : _e,
|
|
13098
|
+
_f = _a.allowSignatureAfterLivenessCheckFailure,
|
|
13099
|
+
allowSignatureAfterLivenessCheckFailure = _f === void 0 ? false : _f,
|
|
13088
13100
|
faceLivenessProps = _a.faceLivenessProps,
|
|
13089
|
-
|
|
13090
|
-
assets =
|
|
13091
|
-
|
|
13092
|
-
classNames =
|
|
13093
|
-
|
|
13094
|
-
colors =
|
|
13095
|
-
|
|
13096
|
-
verbiage =
|
|
13097
|
-
|
|
13098
|
-
debugMode =
|
|
13099
|
-
var
|
|
13100
|
-
selfieImage =
|
|
13101
|
-
setSelfieImage =
|
|
13102
|
-
setSignatureData =
|
|
13103
|
-
setSignatureVideoUrl =
|
|
13104
|
-
logSelfieCaptureAttempt =
|
|
13105
|
-
var
|
|
13101
|
+
_g = _a.assets,
|
|
13102
|
+
assets = _g === void 0 ? {} : _g,
|
|
13103
|
+
_h = _a.classNames,
|
|
13104
|
+
classNames = _h === void 0 ? {} : _h,
|
|
13105
|
+
_j = _a.colors,
|
|
13106
|
+
colors = _j === void 0 ? {} : _j,
|
|
13107
|
+
_k = _a.verbiage,
|
|
13108
|
+
verbiage = _k === void 0 ? {} : _k,
|
|
13109
|
+
_l = _a.debugMode,
|
|
13110
|
+
debugMode = _l === void 0 ? false : _l;
|
|
13111
|
+
var _m = useContext(SubmissionContext),
|
|
13112
|
+
selfieImage = _m.selfieImage,
|
|
13113
|
+
setSelfieImage = _m.setSelfieImage,
|
|
13114
|
+
setSignatureData = _m.setSignatureData,
|
|
13115
|
+
setSignatureVideoUrl = _m.setSignatureVideoUrl,
|
|
13116
|
+
logSelfieCaptureAttempt = _m.logSelfieCaptureAttempt;
|
|
13117
|
+
var _o = useCameraStore(useShallow(function (state) {
|
|
13106
13118
|
return {
|
|
13107
13119
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
13108
13120
|
requestCameraAccess: state.requestCameraAccess,
|
|
13109
|
-
releaseCameraAccess: state.releaseCameraAccess
|
|
13121
|
+
releaseCameraAccess: state.releaseCameraAccess,
|
|
13122
|
+
requestMicrophoneAccess: state.requestMicrophoneAccess,
|
|
13123
|
+
releaseMicrophoneAccess: state.releaseMicrophoneAccess
|
|
13110
13124
|
};
|
|
13111
13125
|
})),
|
|
13112
|
-
cameraAccessDenied =
|
|
13113
|
-
requestCameraAccess =
|
|
13114
|
-
releaseCameraAccess =
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
|
|
13126
|
+
cameraAccessDenied = _o.cameraAccessDenied,
|
|
13127
|
+
requestCameraAccess = _o.requestCameraAccess,
|
|
13128
|
+
releaseCameraAccess = _o.releaseCameraAccess,
|
|
13129
|
+
requestMicrophoneAccess = _o.requestMicrophoneAccess,
|
|
13130
|
+
releaseMicrophoneAccess = _o.releaseMicrophoneAccess;
|
|
13131
|
+
var _p = useState('CHECKING_LIVENESS'),
|
|
13132
|
+
captureState = _p[0],
|
|
13133
|
+
setCaptureState = _p[1];
|
|
13118
13134
|
var operationStartedAt = useRef();
|
|
13119
13135
|
var captureStartedAt = useRef();
|
|
13120
13136
|
var captureEndedAt = useRef();
|
|
13121
|
-
var
|
|
13122
|
-
start =
|
|
13123
|
-
stop =
|
|
13137
|
+
var _q = useContext(SelfieGuidanceModelsContext),
|
|
13138
|
+
start = _q.start,
|
|
13139
|
+
stop = _q.stop;
|
|
13124
13140
|
useEffect(function () {
|
|
13125
13141
|
operationStartedAt.current = new Date();
|
|
13126
13142
|
}, []);
|
|
@@ -13156,9 +13172,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13156
13172
|
setSelfieImage(selfieFromRequest);
|
|
13157
13173
|
}
|
|
13158
13174
|
}, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
|
|
13159
|
-
var
|
|
13160
|
-
signatureImageUrl =
|
|
13161
|
-
setSignatureImageUrl =
|
|
13175
|
+
var _r = useState(null),
|
|
13176
|
+
signatureImageUrl = _r[0],
|
|
13177
|
+
setSignatureImageUrl = _r[1];
|
|
13162
13178
|
var onSignatureCaptureCompleted = useCallback(function (videoData, signatureData, signatureImageData) {
|
|
13163
13179
|
setSignatureData(signatureData);
|
|
13164
13180
|
setSignatureVideoUrl(URL.createObjectURL(videoData));
|
|
@@ -13169,18 +13185,20 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13169
13185
|
var onSignatureCaptureFacesNotDetected = useCallback(function () {
|
|
13170
13186
|
setCaptureState('CHECKING_LIVENESS');
|
|
13171
13187
|
}, []);
|
|
13172
|
-
var
|
|
13173
|
-
attempt =
|
|
13174
|
-
setAttempt =
|
|
13188
|
+
var _s = useState(0),
|
|
13189
|
+
attempt = _s[0],
|
|
13190
|
+
setAttempt = _s[1];
|
|
13175
13191
|
var onExit = useCallback(function () {
|
|
13176
13192
|
releaseCameraAccess();
|
|
13193
|
+
releaseMicrophoneAccess();
|
|
13177
13194
|
setAttempt(function (n) {
|
|
13178
13195
|
return n + 1;
|
|
13179
13196
|
});
|
|
13180
13197
|
setCaptureState('CHECKING_LIVENESS');
|
|
13181
13198
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
13182
|
-
requestCameraAccess();
|
|
13183
|
-
|
|
13199
|
+
void requestCameraAccess();
|
|
13200
|
+
if (captureAudio) void requestMicrophoneAccess();
|
|
13201
|
+
}, [captureAudio, onExitCapture, releaseCameraAccess, releaseMicrophoneAccess, requestCameraAccess, requestMicrophoneAccess]);
|
|
13184
13202
|
var onRetry = useCallback(function () {
|
|
13185
13203
|
onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
|
|
13186
13204
|
onExit();
|
|
@@ -13214,7 +13232,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13214
13232
|
onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
|
|
13215
13233
|
faceLivenessOnLoadingOverlayDismissed === null || faceLivenessOnLoadingOverlayDismissed === void 0 ? void 0 : faceLivenessOnLoadingOverlayDismissed();
|
|
13216
13234
|
}, [faceLivenessOnLoadingOverlayDismissed, onLoadingOverlayDismissed]);
|
|
13217
|
-
return /*#__PURE__*/React__default.createElement(VideoSignatureContextProvider,
|
|
13235
|
+
return /*#__PURE__*/React__default.createElement(VideoSignatureContextProvider, {
|
|
13236
|
+
captureAudio: captureAudio
|
|
13237
|
+
}, /*#__PURE__*/React__default.createElement(PageContainer, {
|
|
13218
13238
|
className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
|
|
13219
13239
|
}, /*#__PURE__*/React__default.createElement(CameraVideoTag, {
|
|
13220
13240
|
className: classNames.cameraFeed
|
|
@@ -14497,15 +14517,16 @@ function CompositeWizard(_a) {
|
|
|
14497
14517
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
14498
14518
|
}
|
|
14499
14519
|
}
|
|
14520
|
+
var shouldLoadIdCaptureModels = !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.forceFallbackMode) && !(idCaptureProps === null || idCaptureProps === void 0 ? void 0 : idCaptureProps.allowUploadingDocumentsFromStorage);
|
|
14500
14521
|
switch (checks[checkIndex]) {
|
|
14501
14522
|
case 'IdCapture':
|
|
14502
14523
|
return /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
14503
14524
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
14504
14525
|
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
14505
|
-
requestAccessAutomatically:
|
|
14526
|
+
requestAccessAutomatically: shouldLoadIdCaptureModels
|
|
14506
14527
|
}, /*#__PURE__*/React__default.createElement(IdCaptureModelsProvider, {
|
|
14507
14528
|
autoStart: false,
|
|
14508
|
-
shouldLoadModels:
|
|
14529
|
+
shouldLoadModels: shouldLoadIdCaptureModels,
|
|
14509
14530
|
documentDetectionModelUrl: (_d = (_c = idCaptureProps.assets) === null || _c === void 0 ? void 0 : _c.documentDetectionModelUrl) !== null && _d !== void 0 ? _d : '',
|
|
14510
14531
|
focusModelUrl: (_f = (_e = idCaptureProps.assets) === null || _e === void 0 ? void 0 : _e.focusModelUrl) !== null && _f !== void 0 ? _f : '',
|
|
14511
14532
|
onModelError: idCaptureProps.onModelError,
|
|
@@ -14541,6 +14562,7 @@ function CompositeWizard(_a) {
|
|
|
14541
14562
|
return /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
14542
14563
|
preferIphoneContinuityCamera: false,
|
|
14543
14564
|
preferFrontFacingCamera: true,
|
|
14565
|
+
requireMicrophoneAccess: videoSignatureCaptureProps.captureAudio,
|
|
14544
14566
|
maxVideoWidth: 1280,
|
|
14545
14567
|
maxFps: 30,
|
|
14546
14568
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
@@ -14710,7 +14732,8 @@ var defaultTheme = {
|
|
|
14710
14732
|
imagePadding: 50,
|
|
14711
14733
|
wavesDisabled: false,
|
|
14712
14734
|
wavesColor: '#287ec6',
|
|
14713
|
-
progressBarColor: '
|
|
14735
|
+
progressBarColor: 'white',
|
|
14736
|
+
progressBarIndicatorColor: '#287ec6',
|
|
14714
14737
|
progressBarWidth: '2.5%'
|
|
14715
14738
|
}
|
|
14716
14739
|
},
|
|
@@ -16796,21 +16819,23 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16796
16819
|
customOverlayContent = _a.customOverlayContent,
|
|
16797
16820
|
_d = _a.skipSuccessScreen,
|
|
16798
16821
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
16822
|
+
_e = _a.captureAudio,
|
|
16823
|
+
captureAudio = _e === void 0 ? false : _e,
|
|
16799
16824
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
16800
|
-
|
|
16801
|
-
modelLoadTimeoutMs =
|
|
16802
|
-
|
|
16803
|
-
allowSignatureAfterLivenessCheckFailure =
|
|
16825
|
+
_f = _a.modelLoadTimeoutMs,
|
|
16826
|
+
modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
|
|
16827
|
+
_g = _a.allowSignatureAfterLivenessCheckFailure,
|
|
16828
|
+
allowSignatureAfterLivenessCheckFailure = _g === void 0 ? false : _g,
|
|
16804
16829
|
faceLivenessProps = _a.faceLivenessProps,
|
|
16805
|
-
|
|
16806
|
-
theme =
|
|
16830
|
+
_h = _a.theme,
|
|
16831
|
+
theme = _h === void 0 ? 'default' : _h,
|
|
16807
16832
|
classNames = _a.classNames,
|
|
16808
16833
|
colors = _a.colors,
|
|
16809
16834
|
verbiage = _a.verbiage,
|
|
16810
16835
|
geolocationEnabled = _a.geolocationEnabled,
|
|
16811
16836
|
geolocationRequired = _a.geolocationRequired,
|
|
16812
|
-
|
|
16813
|
-
debugMode =
|
|
16837
|
+
_j = _a.debugMode,
|
|
16838
|
+
debugMode = _j === void 0 ? false : _j;
|
|
16814
16839
|
useLanguage(lang);
|
|
16815
16840
|
useDebugLogging(debugMode);
|
|
16816
16841
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -16847,6 +16872,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16847
16872
|
onLoadingOverlayDismissed: onLoadingOverlayDismissed,
|
|
16848
16873
|
loadingOverlayMode: loadingOverlayMode,
|
|
16849
16874
|
skipSuccessScreen: skipSuccessScreen,
|
|
16875
|
+
captureAudio: captureAudio,
|
|
16850
16876
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
16851
16877
|
faceLivenessProps: faceLivenessProps,
|
|
16852
16878
|
allowSignatureAfterLivenessCheckFailure: allowSignatureAfterLivenessCheckFailure,
|
|
@@ -16857,7 +16883,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16857
16883
|
onModelError: onModelError,
|
|
16858
16884
|
onUserCancel: onUserCancel
|
|
16859
16885
|
};
|
|
16860
|
-
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
16886
|
+
}, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
|
|
16861
16887
|
}))));
|
|
16862
16888
|
};
|
|
16863
16889
|
|