idmission-web-sdk 2.2.121 → 2.2.122

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom/client'), require('platform'), require('styled-components'), require('tus-js-client'), require('react-dom'), require('prop-types')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom/client', 'platform', 'styled-components', 'tus-js-client', 'react-dom', 'prop-types'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Sdk2 = {}, global.React, global.ReactDOM, global.platform, global.styled, global.tusJsClient, global.ReactDOM, global.PropTypes));
5
- })(this, (function (exports, React, ReactDOM, platform, styled, tusJsClient, reactDom, require$$0) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('platform'), require('styled-components'), require('tus-js-client'), require('react-dom'), require('prop-types')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'platform', 'styled-components', 'tus-js-client', 'react-dom', 'prop-types'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Sdk2 = {}, global.React, global.platform, global.styled, global.tusJsClient, global.reactDom, global.PropTypes));
5
+ })(this, (function (exports, React, platform, styled, tusJsClient, reactDom, require$$0) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -22,7 +22,6 @@
22
22
  }
23
23
 
24
24
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
- var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
26
25
 
27
26
  /******************************************************************************
28
27
  Copyright (c) Microsoft Corporation.
@@ -211,7 +210,7 @@
211
210
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
211
  };
213
212
 
214
- var webSdkVersion = '2.2.121';
213
+ var webSdkVersion = '2.2.122';
215
214
 
216
215
  function getPlatform() {
217
216
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -21156,6 +21155,13 @@
21156
21155
  var templateObject_1$e, templateObject_2$c;
21157
21156
 
21158
21157
  var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
21158
+ var OverlayInner = styled.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
21159
+ var _a, _b, _c, _d;
21160
+ return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
21161
+ }, function (props) {
21162
+ var _a, _b, _c, _d;
21163
+ return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
21164
+ });
21159
21165
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
21160
21166
  var onDismissed = _a.onDismissed,
21161
21167
  onUserCancel = _a.onUserCancel,
@@ -21284,13 +21290,6 @@
21284
21290
  }
21285
21291
  }, verbiage.continueText))))));
21286
21292
  };
21287
- var OverlayInner = styled.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
21288
- var _a, _b, _c, _d;
21289
- return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
21290
- }, function (props) {
21291
- var _a, _b, _c, _d;
21292
- return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
21293
- });
21294
21293
  var OverlayHeader = styled.div(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"])), function (props) {
21295
21294
  var _a;
21296
21295
  return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
@@ -27547,78 +27546,7 @@
27547
27546
  };
27548
27547
 
27549
27548
  initializeI18n();
27550
- function renderElement(component, targetElement) {
27551
- if (typeof targetElement === 'string') {
27552
- var result = document.querySelector(targetElement);
27553
- if (!result) throw new Error("targetElement ".concat(targetElement, " not found"));
27554
- targetElement = result;
27555
- } else if (!targetElement) {
27556
- targetElement = document.createElement('div');
27557
- document.body.append(targetElement);
27558
- }
27559
- var root = ReactDOM__namespace.createRoot(targetElement);
27560
- root.render( /*#__PURE__*/React.createElement(OverlayContainer, null, component));
27561
- if ('remove' in targetElement) {
27562
- var originalRemove_1 = targetElement.remove;
27563
- targetElement.remove = function () {
27564
- try {
27565
- root.unmount();
27566
- originalRemove_1();
27567
- } catch (e) {
27568
- debug('failed to unmount', e);
27569
- }
27570
- };
27571
- }
27572
- return targetElement;
27573
- }
27574
- function renderComponent(Component, targetElement, options) {
27575
- if (!options) {
27576
- options = targetElement;
27577
- targetElement = undefined;
27578
- }
27579
- return renderElement( /*#__PURE__*/React.createElement(Component, _assign({}, options)), targetElement);
27580
- }
27581
- var renderIdValidation = function renderIdValidation(optionsOrTargetElement, options) {
27582
- return renderComponent(IdValidation, optionsOrTargetElement, options);
27583
- };
27584
- var renderFaceValidation = function renderFaceValidation(optionsOrTargetElement, options) {
27585
- return renderComponent(FaceValidation, optionsOrTargetElement, options);
27586
- };
27587
- var renderIdAndFaceValidation = function renderIdAndFaceValidation(optionsOrTargetElement, options) {
27588
- return renderComponent(IdAndFaceValidation, optionsOrTargetElement, options);
27589
- };
27590
- var renderCustomerIdAndBiometricsEnrollment = function renderCustomerIdAndBiometricsEnrollment(optionsOrTargetElement, options) {
27591
- return renderComponent(CustomerIdAndBiometricsEnrollment, optionsOrTargetElement, options);
27592
- };
27593
- var renderCustomerBiometricsEnrollment = function renderCustomerBiometricsEnrollment(optionsOrTargetElement, options) {
27594
- return renderComponent(CustomerBiometricsEnrollment, optionsOrTargetElement, options);
27595
- };
27596
- var renderCustomerVerification = function renderCustomerVerification(optionsOrTargetElement, options) {
27597
- return renderComponent(CustomerVerification, optionsOrTargetElement, options);
27598
- };
27599
- var renderCustomerIdentification = function renderCustomerIdentification(optionsOrTargetElement, options) {
27600
- return renderComponent(CustomerIdentification, optionsOrTargetElement, options);
27601
- };
27602
- var renderSignatureKYC = function renderSignatureKYC(optionsOrTargetElement, options) {
27603
- return renderComponent(SignatureKYC, optionsOrTargetElement, options);
27604
- };
27605
- var renderVideoIdValidation = function renderVideoIdValidation(optionsOrTargetElement, options) {
27606
- return renderComponent(VideoIdValidation, optionsOrTargetElement, options);
27607
- };
27608
- var renderDocumentCapture = function renderDocumentCapture(optionsOrTargetElement, options) {
27609
- return renderComponent(DocumentCapture, optionsOrTargetElement, options);
27610
- };
27611
27549
  globalThis.IDmissionSDK = {
27612
- renderIdValidation: renderIdValidation,
27613
- renderFaceValidation: renderFaceValidation,
27614
- renderIdAndFaceValidation: renderIdAndFaceValidation,
27615
- renderCustomerIdAndBiometricsEnrollment: renderCustomerIdAndBiometricsEnrollment,
27616
- renderCustomerBiometricsEnrollment: renderCustomerBiometricsEnrollment,
27617
- renderCustomerVerification: renderCustomerVerification,
27618
- renderCustomerIdentification: renderCustomerIdentification,
27619
- renderSignatureKYC: renderSignatureKYC,
27620
- renderVideoIdValidation: renderVideoIdValidation,
27621
- renderDocumentCapture: renderDocumentCapture,
27622
27550
  preloadModels: preloadModels,
27623
27551
  themes: themes,
27624
27552
  version: webSdkVersion,
@@ -28106,16 +28034,6 @@
28106
28034
  exports.allowedAuthUrls = allowedAuthUrls;
28107
28035
  exports.isObject = isObject;
28108
28036
  exports.preloadModels = preloadModels;
28109
- exports.renderCustomerBiometricsEnrollment = renderCustomerBiometricsEnrollment;
28110
- exports.renderCustomerIdAndBiometricsEnrollment = renderCustomerIdAndBiometricsEnrollment;
28111
- exports.renderCustomerIdentification = renderCustomerIdentification;
28112
- exports.renderCustomerVerification = renderCustomerVerification;
28113
- exports.renderDocumentCapture = renderDocumentCapture;
28114
- exports.renderFaceValidation = renderFaceValidation;
28115
- exports.renderIdAndFaceValidation = renderIdAndFaceValidation;
28116
- exports.renderIdValidation = renderIdValidation;
28117
- exports.renderSignatureKYC = renderSignatureKYC;
28118
- exports.renderVideoIdValidation = renderVideoIdValidation;
28119
28037
  exports.setServerUrl = setServerUrl;
28120
28038
  exports.themes = themes;
28121
28039