idmission-web-sdk 2.2.83 → 2.2.85
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/common/LoaderButton.d.ts +2 -2
- package/dist/components/common/LoaderButton.d.ts.map +1 -1
- package/dist/components/common/overlay.d.ts +20 -2
- package/dist/components/common/overlay.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureGuidesCommon.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +31 -31
- 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 +31 -31
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +31 -31
- 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/themes/index.d.ts +2 -0
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -8,7 +8,7 @@ export type LoaderButtonColors = {
|
|
|
8
8
|
loadingBorderColor?: string;
|
|
9
9
|
loadingTextColor?: string;
|
|
10
10
|
};
|
|
11
|
-
export type LoaderButtonProps = {
|
|
11
|
+
export type LoaderButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
className?: string;
|
|
14
14
|
disabled?: boolean;
|
|
@@ -18,5 +18,5 @@ export type LoaderButtonProps = {
|
|
|
18
18
|
style?: CSSProperties;
|
|
19
19
|
variant?: LoaderButtonVariant;
|
|
20
20
|
};
|
|
21
|
-
export declare const LoaderButton: ({ children, className, colors, disabled, finished,
|
|
21
|
+
export declare const LoaderButton: ({ children, className, colors, disabled, finished, variant, ...props }: LoaderButtonProps) => React.JSX.Element;
|
|
22
22
|
//# sourceMappingURL=LoaderButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderButton.d.ts","sourceRoot":"","sources":["../../../src/components/common/LoaderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,SAAS,EAIV,MAAM,OAAO,CAAA;AAId,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,CAAA;AAEb,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;
|
|
1
|
+
{"version":3,"file":"LoaderButton.d.ts","sourceRoot":"","sources":["../../../src/components/common/LoaderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,SAAS,EAIV,MAAM,OAAO,CAAA;AAId,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,CAAA;AAEb,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAC3B,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC9C,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC9B,CAAA;AAEH,eAAO,MAAM,YAAY,2EAQtB,iBAAiB,sBAkDnB,CAAA"}
|
|
@@ -29,6 +29,24 @@ export declare const GrayOverlayContainer: import("styled-components/dist/types"
|
|
|
29
29
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
30
30
|
}, never>, never>> & string;
|
|
31
31
|
export declare const ButtonsColumn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
32
|
-
export declare const WideButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("
|
|
33
|
-
|
|
32
|
+
export declare const WideButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
33
|
+
children?: import("react").ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
finished?: boolean;
|
|
37
|
+
colors?: import("./LoaderButton").LoaderButtonColors;
|
|
38
|
+
onClick?: () => void;
|
|
39
|
+
style?: import("react").CSSProperties;
|
|
40
|
+
variant?: import("./LoaderButton").LoaderButtonVariant;
|
|
41
|
+
}, never>> & string & Omit<({ children, className, colors, disabled, finished, variant, ...props }: import("./LoaderButton").LoaderButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
42
|
+
export declare const WideBorderButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
43
|
+
children?: import("react").ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
finished?: boolean;
|
|
47
|
+
colors?: import("./LoaderButton").LoaderButtonColors;
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
style?: import("react").CSSProperties;
|
|
50
|
+
variant?: import("./LoaderButton").LoaderButtonVariant;
|
|
51
|
+
}, never>, never>> & string;
|
|
34
52
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/common/overlay.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;0GAM5B,CAAA;AAED,eAAO,MAAM,YAAY,6NAaxB,CAAA;AAED,eAAO,MAAM,qBAAqB,6NAmBjC,CAAA;AAED,eAAO,MAAM,eAAe,6NAc3B,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;2BAEhC,CAAA;AAED,eAAO,MAAM,aAAa,6NAMzB,CAAA;AAED,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/common/overlay.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;0GAM5B,CAAA;AAED,eAAO,MAAM,YAAY,6NAaxB,CAAA;AAED,eAAO,MAAM,qBAAqB,6NAmBjC,CAAA;AAED,eAAO,MAAM,eAAe,6NAc3B,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;2BAEhC,CAAA;AAED,eAAO,MAAM,aAAa,6NAMzB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;8NAGtB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;2BAM5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdCaptureGuidesCommon.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureGuidesCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAM5D,eAAO,MAAM,yBAAyB;aA6B3B,iBAAiB;kBACZ,MAAM,GAAG,MAAM;mBACd,MAAM;kBACP,MAAM;kBACN,MAAM;eACT,MAAM;;iBAjCJ,OAAO;6EAKrB,CAAA;AAED,eAAO,MAAM,gBAAgB;kBACb,OAAO;mBACN,OAAO;YAKvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAA;AAElE,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,MAAgB,EAChB,WAAgB,EAChB,YAAiB,EACjB,WAAqB,EACrB,WAAW,EACX,QAAY,EACZ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,
|
|
1
|
+
{"version":3,"file":"IdCaptureGuidesCommon.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureGuidesCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAM5D,eAAO,MAAM,yBAAyB;aA6B3B,iBAAiB;kBACZ,MAAM,GAAG,MAAM;mBACd,MAAM;kBACP,MAAM;kBACN,MAAM;eACT,MAAM;;iBAjCJ,OAAO;6EAKrB,CAAA;AAED,eAAO,MAAM,gBAAgB;kBACb,OAAO;mBACN,OAAO;YAKvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAA;AAElE,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,MAAgB,EAChB,WAAgB,EAChB,YAAiB,EACjB,WAAqB,EACrB,WAAW,EACX,QAAY,EACZ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,qBAkFA"}
|
|
@@ -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.2.
|
|
237
|
+
var webSdkVersion = '2.2.85';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -444,10 +444,9 @@ var LoaderButton = function LoaderButton(_a) {
|
|
|
444
444
|
colors = _b === void 0 ? {} : _b,
|
|
445
445
|
disabled = _a.disabled,
|
|
446
446
|
finished = _a.finished,
|
|
447
|
-
onClick = _a.onClick,
|
|
448
|
-
style = _a.style,
|
|
449
447
|
_c = _a.variant,
|
|
450
|
-
variant = _c === void 0 ? 'primary' : _c
|
|
448
|
+
variant = _c === void 0 ? 'primary' : _c,
|
|
449
|
+
props = __rest(_a, ["children", "className", "colors", "disabled", "finished", "variant"]);
|
|
451
450
|
var buttonRef = React.useRef(null);
|
|
452
451
|
var laddaRef = React.useRef(null);
|
|
453
452
|
var _d = React.useState(false),
|
|
@@ -478,19 +477,18 @@ var LoaderButton = function LoaderButton(_a) {
|
|
|
478
477
|
var _a;
|
|
479
478
|
if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
|
|
480
479
|
}, [finished, laddaLoaded]);
|
|
481
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledButton, {
|
|
480
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledButton, _assign({
|
|
482
481
|
className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
|
|
483
482
|
"data-style": "expand-right",
|
|
483
|
+
type: "button",
|
|
484
484
|
disabled: disabled,
|
|
485
485
|
ref: buttonRef,
|
|
486
|
-
onClick: onClick,
|
|
487
486
|
"$backgroundColor": colors.backgroundColor,
|
|
488
487
|
"$textColor": colors.textColor,
|
|
489
488
|
"$disabledBackgroundColor": colors.loadingBackgroundColor,
|
|
490
489
|
"$disabledTextColor": colors.loadingTextColor,
|
|
491
|
-
"$variant": variant
|
|
492
|
-
|
|
493
|
-
}, /*#__PURE__*/React__namespace.default.createElement("span", {
|
|
490
|
+
"$variant": variant
|
|
491
|
+
}, props), /*#__PURE__*/React__namespace.default.createElement("span", {
|
|
494
492
|
className: "ladda-label"
|
|
495
493
|
}, children));
|
|
496
494
|
};
|
|
@@ -7311,29 +7309,29 @@ var IdCardGuideImage = styled__default.default.img(templateObject_2$p || (templa
|
|
|
7311
7309
|
return props.$isInvisible ? 'opacity: 0;' : '';
|
|
7312
7310
|
});
|
|
7313
7311
|
function IdCardBorder(_a) {
|
|
7314
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7312
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
7315
7313
|
var children = _a.children,
|
|
7316
|
-
|
|
7317
|
-
status =
|
|
7318
|
-
|
|
7319
|
-
borderWidth =
|
|
7320
|
-
|
|
7321
|
-
borderRadius =
|
|
7322
|
-
|
|
7323
|
-
borderColor =
|
|
7314
|
+
_p = _a.status,
|
|
7315
|
+
status = _p === void 0 ? 'ready' : _p,
|
|
7316
|
+
_q = _a.borderWidth,
|
|
7317
|
+
borderWidth = _q === void 0 ? 20 : _q,
|
|
7318
|
+
_r = _a.borderRadius,
|
|
7319
|
+
borderRadius = _r === void 0 ? 25 : _r,
|
|
7320
|
+
_s = _a.borderColor,
|
|
7321
|
+
borderColor = _s === void 0 ? 'white' : _s,
|
|
7324
7322
|
aspectRatio = _a.aspectRatio,
|
|
7325
|
-
|
|
7326
|
-
progress =
|
|
7323
|
+
_t = _a.progress,
|
|
7324
|
+
progress = _t === void 0 ? 0 : _t,
|
|
7327
7325
|
props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
|
|
7328
|
-
var
|
|
7329
|
-
ref =
|
|
7330
|
-
|
|
7331
|
-
width =
|
|
7332
|
-
|
|
7333
|
-
height =
|
|
7334
|
-
var
|
|
7335
|
-
progressResets =
|
|
7336
|
-
setProgressResets =
|
|
7326
|
+
var _u = useResizeObserver__default.default(),
|
|
7327
|
+
ref = _u.ref,
|
|
7328
|
+
_v = _u.width,
|
|
7329
|
+
width = _v === void 0 ? 0 : _v,
|
|
7330
|
+
_w = _u.height,
|
|
7331
|
+
height = _w === void 0 ? 0 : _w;
|
|
7332
|
+
var _x = React.useState(0),
|
|
7333
|
+
progressResets = _x[0],
|
|
7334
|
+
setProgressResets = _x[1];
|
|
7337
7335
|
React.useEffect(function () {
|
|
7338
7336
|
if (progress === 0 && status === 'capturing') {
|
|
7339
7337
|
setProgressResets(function (n) {
|
|
@@ -7345,6 +7343,7 @@ function IdCardBorder(_a) {
|
|
|
7345
7343
|
var wavesDisabled = (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.wavesDisabled) !== null && _d !== void 0 ? _d : false;
|
|
7346
7344
|
var wavesColor = (_g = (_f = (_e = theme.idCapture) === null || _e === void 0 ? void 0 : _e.guideBox) === null || _f === void 0 ? void 0 : _f.wavesColor) !== null && _g !== void 0 ? _g : '#287ec6';
|
|
7347
7345
|
var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k : '#287ec6';
|
|
7346
|
+
var progressBarWidth = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.progressBarWidth) !== null && _o !== void 0 ? _o : borderWidth;
|
|
7348
7347
|
return /*#__PURE__*/React__namespace.default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__namespace.default.createElement("div", {
|
|
7349
7348
|
ref: ref,
|
|
7350
7349
|
style: {
|
|
@@ -7379,7 +7378,7 @@ function IdCardBorder(_a) {
|
|
|
7379
7378
|
height: height,
|
|
7380
7379
|
borderRadius: borderRadius,
|
|
7381
7380
|
borderColor: borderColor,
|
|
7382
|
-
borderWidth:
|
|
7381
|
+
borderWidth: progressBarWidth,
|
|
7383
7382
|
className: "idmSdkWavesOrigin"
|
|
7384
7383
|
}), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
|
|
7385
7384
|
key: "progress".concat(progressResets),
|
|
@@ -14120,7 +14119,8 @@ var defaultTheme = {
|
|
|
14120
14119
|
imagePadding: 50,
|
|
14121
14120
|
wavesDisabled: false,
|
|
14122
14121
|
wavesColor: '#287ec6',
|
|
14123
|
-
progressBarColor: '#287ec6'
|
|
14122
|
+
progressBarColor: '#287ec6',
|
|
14123
|
+
progressBarWidth: '2.5%'
|
|
14124
14124
|
}
|
|
14125
14125
|
},
|
|
14126
14126
|
selfieCapture: {
|