idmission-web-sdk 2.3.23 → 2.3.25
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/video_signature_capture/VideoSignatureContext.d.ts +1 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureGuides.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +11 -10
- 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 -10
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +11 -10
- 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/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.3.
|
|
214
|
+
var webSdkVersion = '2.3.25';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -23461,7 +23461,7 @@
|
|
|
23461
23461
|
};
|
|
23462
23462
|
signatureRecorder.start(100);
|
|
23463
23463
|
},
|
|
23464
|
-
stopRecording: function stopRecording() {
|
|
23464
|
+
stopRecording: function stopRecording(signatureData, imageUrl) {
|
|
23465
23465
|
set({
|
|
23466
23466
|
isRecording: false
|
|
23467
23467
|
});
|
|
@@ -23473,13 +23473,8 @@
|
|
|
23473
23473
|
});
|
|
23474
23474
|
signatureChunks = [];
|
|
23475
23475
|
signatureRecorder = null;
|
|
23476
|
-
|
|
23477
|
-
|
|
23478
|
-
var signatureData = buildSignatureData(signaturePad);
|
|
23479
|
-
exportSignatureImage(signaturePad).then(function (imageUrl) {
|
|
23480
|
-
if (imageUrl) signatureData.fileContent = dataUrlToBase64Sync(imageUrl);
|
|
23481
|
-
get().onSignatureVideoCaptured(blob, signatureData, imageUrl);
|
|
23482
|
-
});
|
|
23476
|
+
if (!signatureData) return;
|
|
23477
|
+
get().onSignatureVideoCaptured(blob, signatureData, imageUrl !== null && imageUrl !== void 0 ? imageUrl : null);
|
|
23483
23478
|
};
|
|
23484
23479
|
useVideoRecorderStore.getState().stopRecording();
|
|
23485
23480
|
},
|
|
@@ -23606,7 +23601,13 @@
|
|
|
23606
23601
|
if (signaturePadEmpty) setEmptyContentDismissed(false);
|
|
23607
23602
|
}, [signaturePadEmpty]);
|
|
23608
23603
|
var onAcceptClicked = React.useCallback(function () {
|
|
23609
|
-
|
|
23604
|
+
if (!signaturePad.current) throw new Error('Signature pad not found');
|
|
23605
|
+
var signatureData = buildSignatureData(signaturePad.current);
|
|
23606
|
+
exportSignatureImage(signaturePad.current).then(function (imageUrl) {
|
|
23607
|
+
if (!imageUrl) throw new Error('Signature image not found');
|
|
23608
|
+
signatureData.fileContent = dataUrlToBase64Sync(imageUrl);
|
|
23609
|
+
useVideoSignatureStore.getState().stopRecording(signatureData, imageUrl);
|
|
23610
|
+
});
|
|
23610
23611
|
}, []);
|
|
23611
23612
|
return /*#__PURE__*/React.createElement(Container$3, {
|
|
23612
23613
|
className: classNames.container
|