idmission-web-sdk 1.0.20 → 1.0.21
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/sdk2.cjs.development.js +6 -4
- 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 +6 -4
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +6 -4
- 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
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
}();
|
|
3088
3088
|
Browser.type = 'languageDetector';
|
|
3089
3089
|
|
|
3090
|
-
var webSdkVersion = '1.0.
|
|
3090
|
+
var webSdkVersion = '1.0.21';
|
|
3091
3091
|
|
|
3092
3092
|
function getPlatform() {
|
|
3093
3093
|
return window.platform;
|
|
@@ -18511,6 +18511,7 @@
|
|
|
18511
18511
|
guideImageUrl = _d === void 0 ? "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-2.svg") : _d,
|
|
18512
18512
|
_e = _a.flipping,
|
|
18513
18513
|
flipping = _e === void 0 ? false : _e;
|
|
18514
|
+
var idGuideWidth = window.innerWidth > window.innerHeight ? '30%' : '75%';
|
|
18514
18515
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18515
18516
|
style: {
|
|
18516
18517
|
position: 'absolute',
|
|
@@ -18532,12 +18533,12 @@
|
|
|
18532
18533
|
}
|
|
18533
18534
|
}), flipping ? /*#__PURE__*/React__default['default'].createElement(IdVideoCaptureFlipIdPrompt, {
|
|
18534
18535
|
style: {
|
|
18535
|
-
width:
|
|
18536
|
+
width: idGuideWidth,
|
|
18536
18537
|
margin: '2% auto 2%'
|
|
18537
18538
|
}
|
|
18538
18539
|
}) : /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18539
18540
|
style: {
|
|
18540
|
-
width:
|
|
18541
|
+
width: idGuideWidth,
|
|
18541
18542
|
margin: '2% auto 2%',
|
|
18542
18543
|
display: 'flex',
|
|
18543
18544
|
flexFlow: 'column nowrap'
|
|
@@ -18561,7 +18562,7 @@
|
|
|
18561
18562
|
}
|
|
18562
18563
|
}, instructionText)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18563
18564
|
style: {
|
|
18564
|
-
border:
|
|
18565
|
+
border: "4px solid ".concat(borderColor)
|
|
18565
18566
|
}
|
|
18566
18567
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
18567
18568
|
src: guideImageUrl,
|
|
@@ -18734,6 +18735,7 @@
|
|
|
18734
18735
|
}, /*#__PURE__*/React__default['default'].createElement(CameraVideoTag, null), /*#__PURE__*/React__default['default'].createElement(IdVideoCaptureGuides, {
|
|
18735
18736
|
instructionText: requestedDocumentType === DocumentType.ID_CARD_FRONT ? verbiage.idFrontInstructionText : verbiage.idBackInstructionText,
|
|
18736
18737
|
guideImageUrl: "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-").concat(requestedDocumentType === DocumentType.ID_CARD_FRONT ? 'Front' : 'Back', "-SVG-Landscape-2.svg"),
|
|
18738
|
+
borderColor: goodFramesCount > 0 ? 'green' : 'white',
|
|
18737
18739
|
flipping: flippingIdCard
|
|
18738
18740
|
}), debugMode && detectedObjects.length > 0 && /*#__PURE__*/React__default['default'].createElement(ObjectDetectionDebugOverlay, {
|
|
18739
18741
|
"$flipX": !((_f = cameraRef.current) === null || _f === void 0 ? void 0 : _f.isRearFacing)
|