idmission-web-sdk 2.3.50 → 2.3.51
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/selfie_capture/SelfieCaptureLoadingGraphic.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +18 -15
- 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 +18 -15
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +18 -15
- 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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelfieCaptureLoadingGraphic.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingGraphic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,QAAQ,EAKT,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAI1E,wBAAgB,2BAA2B,CAAC,EAC1C,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,qBAqRA;
|
|
1
|
+
{"version":3,"file":"SelfieCaptureLoadingGraphic.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingGraphic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,QAAQ,EAKT,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAI1E,wBAAgB,2BAA2B,CAAC,EAC1C,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,qBAqRA;AA8LD,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IACnC,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,KAAS,EACT,WAAe,EACf,WAAqB,EACrB,aAAmB,EACnB,aAAwB,EACxB,MAAgB,EAChB,GAAG,KAAK,EACT,EAAE,8BAA8B,qBAyMhC;AAED,wBAAgB,mCAAmC,CAAC,EAClD,MAAgB,EAChB,GAAG,KAAK,EACT,EAAE,8BAA8B,GAAG;IAClC,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB,qBAoBA"}
|
|
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
235
235
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
var webSdkVersion = '2.3.
|
|
238
|
+
var webSdkVersion = '2.3.51';
|
|
239
239
|
|
|
240
240
|
function getPlatform() {
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -11146,17 +11146,20 @@ var HeadGuideSvg = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
11146
11146
|
HeadGuideSvg.displayName = 'HeadGuideSvg';
|
|
11147
11147
|
var PulsingHeadGuideContainer = styled__default.default.div(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n"], ["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n"])), wavesAnimation);
|
|
11148
11148
|
function HeadGuide(_a) {
|
|
11149
|
-
var _b;
|
|
11150
|
-
var
|
|
11151
|
-
status =
|
|
11149
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
11150
|
+
var _j = _a.status,
|
|
11151
|
+
status = _j === void 0 ? 'ready' : _j,
|
|
11152
11152
|
props = __rest(_a, ["status"]);
|
|
11153
11153
|
var ref = React.useRef(null);
|
|
11154
|
-
var
|
|
11155
|
-
parentRef =
|
|
11156
|
-
parentHeight =
|
|
11157
|
-
var
|
|
11158
|
-
contentAspectRatio =
|
|
11159
|
-
setContentAspectRatio =
|
|
11154
|
+
var _k = useResizeObserver(),
|
|
11155
|
+
parentRef = _k.ref,
|
|
11156
|
+
parentHeight = _k.height;
|
|
11157
|
+
var _l = React.useState(),
|
|
11158
|
+
contentAspectRatio = _l[0],
|
|
11159
|
+
setContentAspectRatio = _l[1];
|
|
11160
|
+
var theme = styled.useTheme();
|
|
11161
|
+
var wavesDisabled = (_d = (_c = (_b = theme.selfieCapture) === null || _b === void 0 ? void 0 : _b.guides) === null || _c === void 0 ? void 0 : _c.wavesDisabled) !== null && _d !== void 0 ? _d : false;
|
|
11162
|
+
var wavesColor = (_g = (_f = (_e = theme.selfieCapture) === null || _e === void 0 ? void 0 : _e.guides) === null || _f === void 0 ? void 0 : _f.wavesColor) !== null && _g !== void 0 ? _g : '#287ec6';
|
|
11160
11163
|
React.useEffect(function () {
|
|
11161
11164
|
if (!ref.current) return;
|
|
11162
11165
|
var bbox = ref.current.getBBox();
|
|
@@ -11167,28 +11170,28 @@ function HeadGuide(_a) {
|
|
|
11167
11170
|
}, [contentAspectRatio, parentHeight]);
|
|
11168
11171
|
return /*#__PURE__*/React__namespace.default.createElement(PulsingHeadGuideContainer, {
|
|
11169
11172
|
ref: parentRef
|
|
11170
|
-
}, status === 'ready' && ( /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
11173
|
+
}, status === 'ready' && !wavesDisabled && ( /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
11171
11174
|
className: "idmSdkWaves",
|
|
11172
11175
|
borderOpacity: 0.25,
|
|
11173
|
-
borderColor:
|
|
11176
|
+
borderColor: wavesColor,
|
|
11174
11177
|
width: scaledWidth,
|
|
11175
11178
|
height: parentHeight
|
|
11176
11179
|
})), /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
11177
11180
|
className: "idmSdkWaves",
|
|
11178
11181
|
borderOpacity: 0.25,
|
|
11179
|
-
borderColor:
|
|
11182
|
+
borderColor: wavesColor,
|
|
11180
11183
|
width: scaledWidth,
|
|
11181
11184
|
height: parentHeight
|
|
11182
11185
|
})), /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
11183
11186
|
className: "idmSdkWaves",
|
|
11184
11187
|
borderOpacity: 0.25,
|
|
11185
|
-
borderColor:
|
|
11188
|
+
borderColor: wavesColor,
|
|
11186
11189
|
width: scaledWidth,
|
|
11187
11190
|
height: parentHeight
|
|
11188
11191
|
})))), /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
11189
11192
|
ref: ref,
|
|
11190
11193
|
borderOpacity: 1,
|
|
11191
|
-
className: "idmSdkWavesOrigin ".concat((
|
|
11194
|
+
className: "idmSdkWavesOrigin ".concat((_h = props.className) !== null && _h !== void 0 ? _h : ''),
|
|
11192
11195
|
status: status,
|
|
11193
11196
|
width: scaledWidth,
|
|
11194
11197
|
height: parentHeight
|