idmission-web-sdk 2.1.47 → 2.1.48
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 +1 -11
- 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 +1 -11
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +1 -11
- 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
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.1.
|
|
237
|
+
var webSdkVersion = '2.1.48';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -13535,7 +13535,6 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13535
13535
|
_5 = _a.verbiage,
|
|
13536
13536
|
rawVerbiage = _5 === void 0 ? {} : _5;
|
|
13537
13537
|
var cameraRef = React.useContext(CameraStateContext).cameraRef;
|
|
13538
|
-
// const imageRef = useRef<HTMLImageElement | null>(null)
|
|
13539
13538
|
assets.frontImageUrl || (assets.frontImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-Borderless.svg"));
|
|
13540
13539
|
assets.backImageUrl || (assets.backImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Landscape-Borderless.svg"));
|
|
13541
13540
|
var verbiage = useTranslations(rawVerbiage, {
|
|
@@ -13559,15 +13558,6 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13559
13558
|
var _9 = React.useState(undefined),
|
|
13560
13559
|
aspectRatio = _9[0],
|
|
13561
13560
|
setAspectRatio = _9[1];
|
|
13562
|
-
// const imageRef = (img: HTMLImageElement) => {
|
|
13563
|
-
// if (!img) return
|
|
13564
|
-
// if (typeof aspectRatio === 'number' && aspectRatio > 0) return
|
|
13565
|
-
// setAspectRatio(
|
|
13566
|
-
// (img.naturalHeight ?? 0) > 0
|
|
13567
|
-
// ? img.naturalWidth / img.naturalHeight
|
|
13568
|
-
// : undefined,
|
|
13569
|
-
// )
|
|
13570
|
-
// }
|
|
13571
13561
|
function onImageLoaded(e) {
|
|
13572
13562
|
var _a;
|
|
13573
13563
|
var img = e.currentTarget;
|