idmission-web-sdk 2.3.113 → 2.3.114
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 +2 -0
- 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/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +17 -9
- 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 +17 -9
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +17 -9
- 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
package/dist/sdk2.esm.js
CHANGED
|
@@ -205,7 +205,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
205
205
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
var webSdkVersion = '2.3.
|
|
208
|
+
var webSdkVersion = '2.3.114';
|
|
209
209
|
|
|
210
210
|
function getPlatform() {
|
|
211
211
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -14458,7 +14458,7 @@ var useVideoSignatureStore = create()(devtools(function (set, get) {
|
|
|
14458
14458
|
_a.sent();
|
|
14459
14459
|
signatureRecorder.onstop = function () {
|
|
14460
14460
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14461
|
-
var recordingStoppedAt, mimeType, blob, _a, onSignatureVideoCaptured, recordingStartRequestedAt, recordingStartedAt, firstChunkReceivedAt, signatureStartedAt, signatureEndedAt, recordingStopRequestedAt, lastChunkReceivedAt, supportsRequestVideoFrameCallback, supportsRoundRect;
|
|
14461
|
+
var recordingStoppedAt, mimeType, blob, _a, onSignatureVideoCaptured, recordingStartRequestedAt, recordingStartedAt, firstChunkReceivedAt, signatureStartedAt, signatureEndedAt, acceptClickedAt, recordingStopRequestedAt, lastChunkReceivedAt, supportsRequestVideoFrameCallback, supportsRoundRect;
|
|
14462
14462
|
return __generator(this, function (_b) {
|
|
14463
14463
|
recordingStoppedAt = performance.now();
|
|
14464
14464
|
set({
|
|
@@ -14470,7 +14470,7 @@ var useVideoSignatureStore = create()(devtools(function (set, get) {
|
|
|
14470
14470
|
});
|
|
14471
14471
|
signatureChunks = [];
|
|
14472
14472
|
signatureRecorder = null;
|
|
14473
|
-
_a = get(), onSignatureVideoCaptured = _a.onSignatureVideoCaptured, recordingStartRequestedAt = _a.recordingStartRequestedAt, recordingStartedAt = _a.recordingStartedAt, firstChunkReceivedAt = _a.firstChunkReceivedAt, signatureStartedAt = _a.signatureStartedAt, signatureEndedAt = _a.signatureEndedAt, recordingStopRequestedAt = _a.recordingStopRequestedAt, lastChunkReceivedAt = _a.lastChunkReceivedAt, supportsRequestVideoFrameCallback = _a.supportsRequestVideoFrameCallback, supportsRoundRect = _a.supportsRoundRect;
|
|
14473
|
+
_a = get(), onSignatureVideoCaptured = _a.onSignatureVideoCaptured, recordingStartRequestedAt = _a.recordingStartRequestedAt, recordingStartedAt = _a.recordingStartedAt, firstChunkReceivedAt = _a.firstChunkReceivedAt, signatureStartedAt = _a.signatureStartedAt, signatureEndedAt = _a.signatureEndedAt, acceptClickedAt = _a.acceptClickedAt, recordingStopRequestedAt = _a.recordingStopRequestedAt, lastChunkReceivedAt = _a.lastChunkReceivedAt, supportsRequestVideoFrameCallback = _a.supportsRequestVideoFrameCallback, supportsRoundRect = _a.supportsRoundRect;
|
|
14474
14474
|
onSignatureVideoCaptured(blob, signatureData !== null && signatureData !== void 0 ? signatureData : null, imageUrl !== null && imageUrl !== void 0 ? imageUrl : null, {
|
|
14475
14475
|
mimeType: mimeType,
|
|
14476
14476
|
browserFeatures: {
|
|
@@ -14483,6 +14483,7 @@ var useVideoSignatureStore = create()(devtools(function (set, get) {
|
|
|
14483
14483
|
firstChunkReceivedAt: firstChunkReceivedAt ? Math.ceil(firstChunkReceivedAt) : 0,
|
|
14484
14484
|
signatureStartedAt: signatureStartedAt ? Math.ceil(signatureStartedAt) : 0,
|
|
14485
14485
|
signatureEndedAt: signatureEndedAt ? Math.ceil(signatureEndedAt) : 0,
|
|
14486
|
+
acceptClickedAt: acceptClickedAt ? Math.ceil(acceptClickedAt) : 0,
|
|
14486
14487
|
recordingStopRequestedAt: recordingStopRequestedAt ? Math.ceil(recordingStopRequestedAt) : 0,
|
|
14487
14488
|
recordingStoppedAt: Math.ceil(recordingStoppedAt),
|
|
14488
14489
|
lastChunkReceivedAt: lastChunkReceivedAt ? Math.ceil(lastChunkReceivedAt) : 0
|
|
@@ -14513,6 +14514,7 @@ var useVideoSignatureStore = create()(devtools(function (set, get) {
|
|
|
14513
14514
|
signatureValid: false,
|
|
14514
14515
|
signatureStartedAt: undefined,
|
|
14515
14516
|
signatureEndedAt: undefined,
|
|
14517
|
+
acceptClickedAt: undefined,
|
|
14516
14518
|
supportsRequestVideoFrameCallback: undefined,
|
|
14517
14519
|
supportsRoundRect: undefined
|
|
14518
14520
|
});
|
|
@@ -14820,12 +14822,15 @@ function VideoSignatureGuides(_a) {
|
|
|
14820
14822
|
useEffect(function () {
|
|
14821
14823
|
if (guideToDisplay) setMode(guideToDisplay);
|
|
14822
14824
|
}, [guideToDisplay]);
|
|
14823
|
-
var
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14825
|
+
var _h = useVideoSignatureStore(useShallow(function (state) {
|
|
14826
|
+
return {
|
|
14827
|
+
firstChunkReceivedAt: state.firstChunkReceivedAt,
|
|
14828
|
+
acceptClickedAt: state.acceptClickedAt
|
|
14829
|
+
};
|
|
14830
|
+
})),
|
|
14831
|
+
firstChunkReceivedAt = _h.firstChunkReceivedAt,
|
|
14832
|
+
acceptClickedAt = _h.acceptClickedAt;
|
|
14833
|
+
var signaturePadDisabled = requestedAction !== 'CAPTURE_SIGNATURE' || !firstChunkReceivedAt || !!acceptClickedAt;
|
|
14829
14834
|
return /*#__PURE__*/React__default.createElement(Container$3, {
|
|
14830
14835
|
className: classNames.container
|
|
14831
14836
|
}, /*#__PURE__*/React__default.createElement(Inner$1, {
|
|
@@ -15575,6 +15580,9 @@ function VideoSignatureWizardGuides(_a) {
|
|
|
15575
15580
|
props = __rest(_a, ["status", "restartVideoOnSignaturePadCleared", "captureAudio", "component", "showFaceGuideThenSignaturePad"]);
|
|
15576
15581
|
var Component = component !== null && component !== void 0 ? component : VideoSignatureGuides;
|
|
15577
15582
|
var onAcceptBtnClicked = useCallback(function () {
|
|
15583
|
+
useVideoSignatureStore.setState({
|
|
15584
|
+
acceptClickedAt: performance.now()
|
|
15585
|
+
});
|
|
15578
15586
|
var signaturePad = useVideoSignatureStore.getState().signaturePad;
|
|
15579
15587
|
if (!signaturePad.current) throw new Error('Signature pad not found');
|
|
15580
15588
|
var signatureData = buildSignatureData(signaturePad.current);
|