idmission-web-sdk 2.2.125 → 2.2.126

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.125';
213
+ var webSdkVersion = '2.2.126';
215
214
 
216
215
  function getPlatform() {
217
216
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -27562,78 +27561,7 @@
27562
27561
  };
27563
27562
 
27564
27563
  initializeI18n();
27565
- function renderElement(component, targetElement) {
27566
- if (typeof targetElement === 'string') {
27567
- var result = document.querySelector(targetElement);
27568
- if (!result) throw new Error("targetElement ".concat(targetElement, " not found"));
27569
- targetElement = result;
27570
- } else if (!targetElement) {
27571
- targetElement = document.createElement('div');
27572
- document.body.append(targetElement);
27573
- }
27574
- var root = ReactDOM__namespace.createRoot(targetElement);
27575
- root.render( /*#__PURE__*/React.createElement(OverlayContainer, null, component));
27576
- if ('remove' in targetElement) {
27577
- var originalRemove_1 = targetElement.remove;
27578
- targetElement.remove = function () {
27579
- try {
27580
- root.unmount();
27581
- originalRemove_1();
27582
- } catch (e) {
27583
- debug('failed to unmount', e);
27584
- }
27585
- };
27586
- }
27587
- return targetElement;
27588
- }
27589
- function renderComponent(Component, targetElement, options) {
27590
- if (!options) {
27591
- options = targetElement;
27592
- targetElement = undefined;
27593
- }
27594
- return renderElement( /*#__PURE__*/React.createElement(Component, _assign({}, options)), targetElement);
27595
- }
27596
- var renderIdValidation = function renderIdValidation(optionsOrTargetElement, options) {
27597
- return renderComponent(IdValidation, optionsOrTargetElement, options);
27598
- };
27599
- var renderFaceValidation = function renderFaceValidation(optionsOrTargetElement, options) {
27600
- return renderComponent(FaceValidation, optionsOrTargetElement, options);
27601
- };
27602
- var renderIdAndFaceValidation = function renderIdAndFaceValidation(optionsOrTargetElement, options) {
27603
- return renderComponent(IdAndFaceValidation, optionsOrTargetElement, options);
27604
- };
27605
- var renderCustomerIdAndBiometricsEnrollment = function renderCustomerIdAndBiometricsEnrollment(optionsOrTargetElement, options) {
27606
- return renderComponent(CustomerIdAndBiometricsEnrollment, optionsOrTargetElement, options);
27607
- };
27608
- var renderCustomerBiometricsEnrollment = function renderCustomerBiometricsEnrollment(optionsOrTargetElement, options) {
27609
- return renderComponent(CustomerBiometricsEnrollment, optionsOrTargetElement, options);
27610
- };
27611
- var renderCustomerVerification = function renderCustomerVerification(optionsOrTargetElement, options) {
27612
- return renderComponent(CustomerVerification, optionsOrTargetElement, options);
27613
- };
27614
- var renderCustomerIdentification = function renderCustomerIdentification(optionsOrTargetElement, options) {
27615
- return renderComponent(CustomerIdentification, optionsOrTargetElement, options);
27616
- };
27617
- var renderSignatureKYC = function renderSignatureKYC(optionsOrTargetElement, options) {
27618
- return renderComponent(SignatureKYC, optionsOrTargetElement, options);
27619
- };
27620
- var renderVideoIdValidation = function renderVideoIdValidation(optionsOrTargetElement, options) {
27621
- return renderComponent(VideoIdValidation, optionsOrTargetElement, options);
27622
- };
27623
- var renderDocumentCapture = function renderDocumentCapture(optionsOrTargetElement, options) {
27624
- return renderComponent(DocumentCapture, optionsOrTargetElement, options);
27625
- };
27626
27564
  globalThis.IDmissionSDK = {
27627
- renderIdValidation: renderIdValidation,
27628
- renderFaceValidation: renderFaceValidation,
27629
- renderIdAndFaceValidation: renderIdAndFaceValidation,
27630
- renderCustomerIdAndBiometricsEnrollment: renderCustomerIdAndBiometricsEnrollment,
27631
- renderCustomerBiometricsEnrollment: renderCustomerBiometricsEnrollment,
27632
- renderCustomerVerification: renderCustomerVerification,
27633
- renderCustomerIdentification: renderCustomerIdentification,
27634
- renderSignatureKYC: renderSignatureKYC,
27635
- renderVideoIdValidation: renderVideoIdValidation,
27636
- renderDocumentCapture: renderDocumentCapture,
27637
27565
  preloadModels: preloadModels,
27638
27566
  themes: themes,
27639
27567
  version: webSdkVersion,
@@ -28121,16 +28049,6 @@
28121
28049
  exports.allowedAuthUrls = allowedAuthUrls;
28122
28050
  exports.isObject = isObject;
28123
28051
  exports.preloadModels = preloadModels;
28124
- exports.renderCustomerBiometricsEnrollment = renderCustomerBiometricsEnrollment;
28125
- exports.renderCustomerIdAndBiometricsEnrollment = renderCustomerIdAndBiometricsEnrollment;
28126
- exports.renderCustomerIdentification = renderCustomerIdentification;
28127
- exports.renderCustomerVerification = renderCustomerVerification;
28128
- exports.renderDocumentCapture = renderDocumentCapture;
28129
- exports.renderFaceValidation = renderFaceValidation;
28130
- exports.renderIdAndFaceValidation = renderIdAndFaceValidation;
28131
- exports.renderIdValidation = renderIdValidation;
28132
- exports.renderSignatureKYC = renderSignatureKYC;
28133
- exports.renderVideoIdValidation = renderVideoIdValidation;
28134
28052
  exports.setServerUrl = setServerUrl;
28135
28053
  exports.themes = themes;
28136
28054