idmission-web-sdk 2.1.65 → 2.1.66
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/id_capture/IdCaptureFitGuide.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureGuides.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureFlipIdPrompt.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +1 -1
- package/dist/sdk2.cjs.development.js +22 -13
- 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 +22 -13
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +22 -13
- 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/components/{video_id/IdVideoCaptureGuidesCommon.d.ts → id_capture/IdCaptureGuidesCommon.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IdCaptureGuideAction, IdCaptureGuideOverlayClassNames } from './IdCaptureGuideOverlay';
|
|
3
|
-
import { IdCardGuideStatus } from '
|
|
3
|
+
import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
|
|
4
4
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
5
5
|
export type IdCaptureFitGuideClassNames = IdCaptureGuideOverlayClassNames & {
|
|
6
6
|
canvasWrapper?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import { IdCardGuideStatus } from '
|
|
2
|
+
import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
|
|
3
3
|
import { FlipIdPromptClassNames } from './FlipIdPrompt';
|
|
4
4
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
5
5
|
export type IdCaptureGuideOverlayClassNames = {
|
|
@@ -2,7 +2,7 @@ import { IdCaptureFitGuideClassNames } from './IdCaptureFitGuide';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IdCaptureGuideAction } from './IdCaptureGuideOverlay';
|
|
4
4
|
import { IdCaptureColors, IdCaptureVerbiage } from './IdCapture';
|
|
5
|
-
import { IdCardGuideStatus } from '
|
|
5
|
+
import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
|
|
6
6
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
7
7
|
export type IdCaptureGuidesClassNames = IdCaptureFitGuideClassNames;
|
|
8
8
|
export type IdCaptureGuideType = 'fit' | 'overlay';
|
|
@@ -16,7 +16,7 @@ export type IdVideoCaptureFlipIdPromptProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const IdVideoCaptureFlipIdPrompt: ({ idCaptureGuideImages, classNames, borderWidth, borderColor, borderRadius, imageStyle, }: IdVideoCaptureFlipIdPromptProps) => ReactElement;
|
|
18
18
|
export declare const FlipImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<React.HTMLAttributes<HTMLDivElement> & {
|
|
19
|
-
status?: import("
|
|
19
|
+
status?: import("../id_capture/IdCaptureGuidesCommon").IdCardGuideStatus;
|
|
20
20
|
borderWidth?: number | string;
|
|
21
21
|
borderRadius?: number;
|
|
22
22
|
borderColor?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { IdVideoCaptureFlipIdPromptClassNames } from './IdVideoCaptureFlipIdPrompt';
|
|
3
3
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
|
-
import { IdCardGuideStatus } from '
|
|
4
|
+
import { IdCardGuideStatus } from '../id_capture/IdCaptureGuidesCommon';
|
|
5
5
|
import { FaceGuideStatus } from '../face_liveness/FaceCaptureGuideOverlay';
|
|
6
6
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
7
7
|
export type Action = 'SHOW_ID_FRONT' | 'FLIP_ID' | 'SHOW_ID_BACK' | 'VERIFY_LIVENESS';
|
|
@@ -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.66';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -8236,7 +8236,7 @@ var ImagesContainer = styled__default.default(OverlayImageContainer)(templateObj
|
|
|
8236
8236
|
var ImageRow = styled__default.default(OverlayImageRow)(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n //grid-template-columns: 1fr 1fr;\n"], ["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n //grid-template-columns: 1fr 1fr;\n"])));
|
|
8237
8237
|
var ImageCol$1 = styled__default.default.div(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n width: 100%;\n max-height: none !important;\n"], ["\n width: 100%;\n max-height: none !important;\n"])));
|
|
8238
8238
|
var StyledImage = styled__default.default(CapturedDocumentImg)(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
8239
|
-
var DebugPre = styled__default.default.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n text-align: left;\n max-width: min(
|
|
8239
|
+
var DebugPre = styled__default.default.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"], ["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"])));
|
|
8240
8240
|
var templateObject_1$v, templateObject_2$q, templateObject_3$k, templateObject_4$e, templateObject_5$9, templateObject_6$7;
|
|
8241
8241
|
|
|
8242
8242
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
@@ -8397,19 +8397,28 @@ function IdCardBorderSvg(_a) {
|
|
|
8397
8397
|
var _f = React.useState(0),
|
|
8398
8398
|
totalLength = _f[0],
|
|
8399
8399
|
setTotalLength = _f[1];
|
|
8400
|
-
var
|
|
8401
|
-
resolvedProgress = _g[0],
|
|
8402
|
-
setResolvedProgress = _g[1];
|
|
8400
|
+
var resolvedProgress = progress * totalLength;
|
|
8403
8401
|
React.useLayoutEffect(function () {
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8402
|
+
if (totalLength > 0) return;
|
|
8403
|
+
var interval;
|
|
8404
|
+
var measuredLength = 0;
|
|
8405
|
+
function measureTotalLength() {
|
|
8406
|
+
var _a, _b;
|
|
8407
|
+
try {
|
|
8408
|
+
measuredLength = (_b = (_a = rectRef.current) === null || _a === void 0 ? void 0 : _a.getTotalLength()) !== null && _b !== void 0 ? _b : 0;
|
|
8409
|
+
if (measuredLength === 0) return;
|
|
8410
|
+
setTotalLength(measuredLength);
|
|
8411
|
+
if (interval) clearInterval(interval);
|
|
8412
|
+
} catch (e) {
|
|
8413
|
+
warn('failed to measure SVG length', e);
|
|
8414
|
+
}
|
|
8411
8415
|
}
|
|
8412
|
-
|
|
8416
|
+
measureTotalLength();
|
|
8417
|
+
if (measuredLength === 0) interval = setInterval(measureTotalLength, 250);
|
|
8418
|
+
return function () {
|
|
8419
|
+
if (interval) clearInterval(interval);
|
|
8420
|
+
};
|
|
8421
|
+
}, [totalLength]);
|
|
8413
8422
|
return /*#__PURE__*/React__namespace.default.createElement(SvgOverlay, _assign({
|
|
8414
8423
|
height: "100%",
|
|
8415
8424
|
fill: "none",
|