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.
package/dist/sdk2.esm.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { forwardRef, useState, useEffect, useRef, useContext, createContext, useReducer, useCallback, useMemo, useLayoutEffect } from 'react';
3
- import * as ReactDOM from 'react-dom/client';
4
3
  import platform from 'platform';
5
4
  import styled, { keyframes, useTheme, ThemeProvider as ThemeProvider$1 } from 'styled-components';
6
5
  import { useTranslation, initReactI18next } from 'react-i18next';
@@ -203,7 +202,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
202
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
203
  };
205
204
 
206
- var webSdkVersion = '2.2.125';
205
+ var webSdkVersion = '2.2.126';
207
206
 
208
207
  function getPlatform() {
209
208
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -17670,78 +17669,7 @@ var DocumentCapture = function DocumentCapture(_a) {
17670
17669
  };
17671
17670
 
17672
17671
  initializeI18n();
17673
- function renderElement(component, targetElement) {
17674
- if (typeof targetElement === 'string') {
17675
- var result = document.querySelector(targetElement);
17676
- if (!result) throw new Error("targetElement ".concat(targetElement, " not found"));
17677
- targetElement = result;
17678
- } else if (!targetElement) {
17679
- targetElement = document.createElement('div');
17680
- document.body.append(targetElement);
17681
- }
17682
- var root = ReactDOM.createRoot(targetElement);
17683
- root.render( /*#__PURE__*/React__default.createElement(OverlayContainer, null, component));
17684
- if ('remove' in targetElement) {
17685
- var originalRemove_1 = targetElement.remove;
17686
- targetElement.remove = function () {
17687
- try {
17688
- root.unmount();
17689
- originalRemove_1();
17690
- } catch (e) {
17691
- debug('failed to unmount', e);
17692
- }
17693
- };
17694
- }
17695
- return targetElement;
17696
- }
17697
- function renderComponent(Component, targetElement, options) {
17698
- if (!options) {
17699
- options = targetElement;
17700
- targetElement = undefined;
17701
- }
17702
- return renderElement( /*#__PURE__*/React__default.createElement(Component, _assign({}, options)), targetElement);
17703
- }
17704
- var renderIdValidation = function renderIdValidation(optionsOrTargetElement, options) {
17705
- return renderComponent(IdValidation, optionsOrTargetElement, options);
17706
- };
17707
- var renderFaceValidation = function renderFaceValidation(optionsOrTargetElement, options) {
17708
- return renderComponent(FaceValidation, optionsOrTargetElement, options);
17709
- };
17710
- var renderIdAndFaceValidation = function renderIdAndFaceValidation(optionsOrTargetElement, options) {
17711
- return renderComponent(IdAndFaceValidation, optionsOrTargetElement, options);
17712
- };
17713
- var renderCustomerIdAndBiometricsEnrollment = function renderCustomerIdAndBiometricsEnrollment(optionsOrTargetElement, options) {
17714
- return renderComponent(CustomerIdAndBiometricsEnrollment, optionsOrTargetElement, options);
17715
- };
17716
- var renderCustomerBiometricsEnrollment = function renderCustomerBiometricsEnrollment(optionsOrTargetElement, options) {
17717
- return renderComponent(CustomerBiometricsEnrollment, optionsOrTargetElement, options);
17718
- };
17719
- var renderCustomerVerification = function renderCustomerVerification(optionsOrTargetElement, options) {
17720
- return renderComponent(CustomerVerification, optionsOrTargetElement, options);
17721
- };
17722
- var renderCustomerIdentification = function renderCustomerIdentification(optionsOrTargetElement, options) {
17723
- return renderComponent(CustomerIdentification, optionsOrTargetElement, options);
17724
- };
17725
- var renderSignatureKYC = function renderSignatureKYC(optionsOrTargetElement, options) {
17726
- return renderComponent(SignatureKYC, optionsOrTargetElement, options);
17727
- };
17728
- var renderVideoIdValidation = function renderVideoIdValidation(optionsOrTargetElement, options) {
17729
- return renderComponent(VideoIdValidation, optionsOrTargetElement, options);
17730
- };
17731
- var renderDocumentCapture = function renderDocumentCapture(optionsOrTargetElement, options) {
17732
- return renderComponent(DocumentCapture, optionsOrTargetElement, options);
17733
- };
17734
17672
  globalThis.IDmissionSDK = {
17735
- renderIdValidation: renderIdValidation,
17736
- renderFaceValidation: renderFaceValidation,
17737
- renderIdAndFaceValidation: renderIdAndFaceValidation,
17738
- renderCustomerIdAndBiometricsEnrollment: renderCustomerIdAndBiometricsEnrollment,
17739
- renderCustomerBiometricsEnrollment: renderCustomerBiometricsEnrollment,
17740
- renderCustomerVerification: renderCustomerVerification,
17741
- renderCustomerIdentification: renderCustomerIdentification,
17742
- renderSignatureKYC: renderSignatureKYC,
17743
- renderVideoIdValidation: renderVideoIdValidation,
17744
- renderDocumentCapture: renderDocumentCapture,
17745
17673
  preloadModels: preloadModels,
17746
17674
  themes: themes,
17747
17675
  version: webSdkVersion,
@@ -17753,5 +17681,5 @@ globalThis.IDmissionSDK = {
17753
17681
  setServerUrl: setServerUrl
17754
17682
  };
17755
17683
 
17756
- export { CapturedDocumentImg, CustomerBiometricsEnrollment, CustomerIdAndBiometricsEnrollment, CustomerIdentification, CustomerVerification, DocumentCapture, FaceValidation, IdAndFaceValidation, IdValidation, SignatureKYC, VideoIdValidation, allowedAuthUrls, defaultAuthUrl, defaultSubmissionUrl, isObject, preloadModels, renderCustomerBiometricsEnrollment, renderCustomerIdAndBiometricsEnrollment, renderCustomerIdentification, renderCustomerVerification, renderDocumentCapture, renderFaceValidation, renderIdAndFaceValidation, renderIdValidation, renderSignatureKYC, renderVideoIdValidation, setServerUrl, themes };
17684
+ export { CapturedDocumentImg, CustomerBiometricsEnrollment, CustomerIdAndBiometricsEnrollment, CustomerIdentification, CustomerVerification, DocumentCapture, FaceValidation, IdAndFaceValidation, IdValidation, SignatureKYC, VideoIdValidation, allowedAuthUrls, defaultAuthUrl, defaultSubmissionUrl, isObject, preloadModels, setServerUrl, themes };
17757
17685
  //# sourceMappingURL=sdk2.esm.js.map