idmission-web-sdk 2.2.150 → 2.2.151
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/VideoSignatureGuides.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +30 -20
- 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 +30 -20
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +30 -20
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoSignatureGuides.d.ts","sourceRoot":"","sources":["../../../src/components/video_signature_capture/VideoSignatureGuides.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"VideoSignatureGuides.d.ts","sourceRoot":"","sources":["../../../src/components/video_signature_capture/VideoSignatureGuides.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAU1E,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;AAE5D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,eAAmC,EACnC,eAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,UAAe,EACf,QAAQ,EAAE,WAAgB,GAC3B,EAAE;IACD,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,UAAU,CAAC,EAAE,8BAA8B,CAAA;IAC3C,QAAQ,CAAC,EAAE,4BAA4B,CAAA;CACxC,qBAoFA"}
|
|
@@ -233,7 +233,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
233
233
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
234
234
|
};
|
|
235
235
|
|
|
236
|
-
var webSdkVersion = '2.2.
|
|
236
|
+
var webSdkVersion = '2.2.151';
|
|
237
237
|
|
|
238
238
|
function getPlatform() {
|
|
239
239
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -13290,24 +13290,26 @@ function useVideoSignatureContext() {
|
|
|
13290
13290
|
}
|
|
13291
13291
|
|
|
13292
13292
|
function VideoSignatureGuides(_a) {
|
|
13293
|
-
var _b
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
faceGuideStatus = _d === void 0 ? 'success' : _d,
|
|
13293
|
+
var _b = _a.requestedAction,
|
|
13294
|
+
requestedAction = _b === void 0 ? 'VERIFY_LIVENESS' : _b,
|
|
13295
|
+
_c = _a.faceGuideStatus,
|
|
13296
|
+
faceGuideStatus = _c === void 0 ? 'success' : _c,
|
|
13298
13297
|
faceGuideBorderWidth = _a.faceGuideBorderWidth,
|
|
13299
13298
|
faceGuideBorderColor = _a.faceGuideBorderColor,
|
|
13300
|
-
|
|
13301
|
-
classNames =
|
|
13302
|
-
|
|
13303
|
-
rawVerbiage =
|
|
13304
|
-
var
|
|
13305
|
-
ref =
|
|
13306
|
-
width =
|
|
13307
|
-
height =
|
|
13308
|
-
var
|
|
13309
|
-
signaturePad =
|
|
13310
|
-
onAcceptClicked =
|
|
13299
|
+
_d = _a.classNames,
|
|
13300
|
+
classNames = _d === void 0 ? {} : _d,
|
|
13301
|
+
_e = _a.verbiage,
|
|
13302
|
+
rawVerbiage = _e === void 0 ? {} : _e;
|
|
13303
|
+
var _f = useResizeObserver(),
|
|
13304
|
+
ref = _f.ref,
|
|
13305
|
+
width = _f.width,
|
|
13306
|
+
height = _f.height;
|
|
13307
|
+
var _g = useVideoSignatureContext(),
|
|
13308
|
+
signaturePad = _g.signaturePad,
|
|
13309
|
+
onAcceptClicked = _g.onAcceptClicked;
|
|
13310
|
+
var _h = React.useState(true),
|
|
13311
|
+
isSignaturePadEmpty = _h[0],
|
|
13312
|
+
setIsSignaturePadEmpty = _h[1];
|
|
13311
13313
|
var verbiage = useTranslations(rawVerbiage, {
|
|
13312
13314
|
clearSignatureBtnText: 'Clear',
|
|
13313
13315
|
acceptSignatureBtnText: 'Accept'
|
|
@@ -13341,19 +13343,27 @@ function VideoSignatureGuides(_a) {
|
|
|
13341
13343
|
className: classNames.signatureCanvasInner
|
|
13342
13344
|
}, /*#__PURE__*/React__namespace.default.createElement(SignatureCanvas__default.default, {
|
|
13343
13345
|
ref: signaturePad,
|
|
13344
|
-
canvasProps: canvasProps
|
|
13346
|
+
canvasProps: canvasProps,
|
|
13347
|
+
onEnd: function onEnd() {
|
|
13348
|
+
var _a;
|
|
13349
|
+
setIsSignaturePadEmpty(!!((_a = signaturePad === null || signaturePad === void 0 ? void 0 : signaturePad.current) === null || _a === void 0 ? void 0 : _a.isEmpty()));
|
|
13350
|
+
}
|
|
13345
13351
|
})), /*#__PURE__*/React__namespace.default.createElement(SignatureButtonsContainer, {
|
|
13346
13352
|
className: classNames.signatureButtonsRow
|
|
13347
13353
|
}, /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
|
|
13348
13354
|
variant: "secondary",
|
|
13349
13355
|
className: classNames.clearSignatureBtn,
|
|
13350
|
-
onClick: (
|
|
13356
|
+
onClick: function onClick() {
|
|
13357
|
+
var _a, _b;
|
|
13358
|
+
(_a = signaturePad === null || signaturePad === void 0 ? void 0 : signaturePad.current) === null || _a === void 0 ? void 0 : _a.clear();
|
|
13359
|
+
setIsSignaturePadEmpty(!!((_b = signaturePad === null || signaturePad === void 0 ? void 0 : signaturePad.current) === null || _b === void 0 ? void 0 : _b.isEmpty()));
|
|
13360
|
+
},
|
|
13351
13361
|
disabled: requestedAction === 'VERIFY_LIVENESS',
|
|
13352
13362
|
finished: true
|
|
13353
13363
|
}, verbiage.clearSignatureBtnText), /*#__PURE__*/React__namespace.default.createElement(AcceptBtn, {
|
|
13354
13364
|
variant: "positive",
|
|
13355
13365
|
className: classNames.acceptSignatureBtn,
|
|
13356
|
-
disabled: requestedAction === 'VERIFY_LIVENESS',
|
|
13366
|
+
disabled: requestedAction === 'VERIFY_LIVENESS' || isSignaturePadEmpty,
|
|
13357
13367
|
onClick: onAcceptClicked,
|
|
13358
13368
|
finished: true
|
|
13359
13369
|
}, verbiage.acceptSignatureBtnText))))));
|