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/index.d.ts CHANGED
@@ -1,41 +1,20 @@
1
- import { IdValidation, IdValidationProps } from './components/customer_flows/IdValidation';
2
- import { FaceValidation, FaceValidationProps } from './components/customer_flows/FaceValidation';
3
- import { IdAndFaceValidation, IdAndFaceValidationProps } from './components/customer_flows/IdAndFaceValidation';
4
- import { CustomerEnrollmentProps, CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
5
- import { CustomerVerification, CustomerVerificationProps } from './components/customer_flows/CustomerVerification';
6
- import { CustomerIdentification, CustomerIdentificationProps } from './components/customer_flows/CustomerIdentification';
7
- import { SignatureKYC, SignatureKYCProps } from './components/customer_flows/SignatureKYC';
8
- import { VideoIdValidation, VideoIdValidationProps } from './components/customer_flows/VideoIdValidation';
1
+ import { IdValidation } from './components/customer_flows/IdValidation';
2
+ import { FaceValidation } from './components/customer_flows/FaceValidation';
3
+ import { IdAndFaceValidation } from './components/customer_flows/IdAndFaceValidation';
4
+ import { CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
5
+ import { CustomerVerification } from './components/customer_flows/CustomerVerification';
6
+ import { CustomerIdentification } from './components/customer_flows/CustomerIdentification';
7
+ import { SignatureKYC } from './components/customer_flows/SignatureKYC';
8
+ import { VideoIdValidation } from './components/customer_flows/VideoIdValidation';
9
9
  import { preloadModels } from './lib/models/preloadModels';
10
- import { CustomerBiometricsEnrollment, CustomerBiometricsEnrollmentProps } from './components/customer_flows/CustomerBiometricsEnrollment';
10
+ import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
11
11
  import { Theme, themes } from './themes';
12
- import { DocumentCapture, DocumentCaptureProps } from './components/customer_flows/DocumentCapture';
12
+ import { DocumentCapture } from './components/customer_flows/DocumentCapture';
13
13
  import { CapturedDocumentImg } from './components/common/CapturedDocumentImg';
14
14
  import { defaultSubmissionUrl, setServerUrl } from './components/submission/SubmissionProvider';
15
15
  import { allowedAuthUrls, defaultAuthUrl } from './contexts/AuthStateContext';
16
16
  import { SubmissionRequest, SubmissionResponse } from './components/submission/types';
17
- type TargetElement = Element | DocumentFragment | string | undefined;
18
- export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => Element | DocumentFragment;
19
- export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => Element | DocumentFragment;
20
- export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => Element | DocumentFragment;
21
- export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
22
- export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerBiometricsEnrollmentProps, options?: CustomerBiometricsEnrollmentProps) => Element | DocumentFragment;
23
- export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => Element | DocumentFragment;
24
- export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => Element | DocumentFragment;
25
- export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => Element | DocumentFragment;
26
- export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => Element | DocumentFragment;
27
- export declare const renderDocumentCapture: (optionsOrTargetElement: TargetElement | DocumentCaptureProps, options?: DocumentCaptureProps) => Element | DocumentFragment;
28
17
  export type IDmissionSDK = {
29
- renderIdValidation: typeof renderIdValidation;
30
- renderFaceValidation: typeof renderFaceValidation;
31
- renderIdAndFaceValidation: typeof renderIdAndFaceValidation;
32
- renderCustomerIdAndBiometricsEnrollment: typeof renderCustomerIdAndBiometricsEnrollment;
33
- renderCustomerBiometricsEnrollment: typeof renderCustomerBiometricsEnrollment;
34
- renderCustomerVerification: typeof renderCustomerVerification;
35
- renderCustomerIdentification: typeof renderCustomerIdentification;
36
- renderSignatureKYC: typeof renderSignatureKYC;
37
- renderVideoIdValidation: typeof renderVideoIdValidation;
38
- renderDocumentCapture: typeof renderDocumentCapture;
39
18
  preloadModels: typeof preloadModels;
40
19
  themes: typeof themes;
41
20
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,iBAAiB,EAClB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,cAAc,EACd,mBAAmB,EACpB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,iDAAiD,CAAA;AACxD,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EAClC,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,kDAAkD,CAAA;AACzD,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,oDAAoD,CAAA;AAC3D,OAAO,EACL,YAAY,EACZ,iBAAiB,EAClB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,EAClC,MAAM,0DAA0D,CAAA;AAGjE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EACL,eAAe,EACf,oBAAoB,EACrB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MA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AAY,CAAA;CAC/B;AAcD,OAAO,EACL,aAAa,EACb,MAAM,EACN,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,CAAA;AACD,YAAY,EAAE,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var ReactDOM = require('react-dom/client');
5
4
  var platform = require('platform');
6
5
  var styled = require('styled-components');
7
6
  var reactI18next = require('react-i18next');
@@ -38,7 +37,6 @@ function _interopNamespaceCompat(e) {
38
37
  }
39
38
 
40
39
  var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
41
- var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceCompat(ReactDOM);
42
40
  var platform__default = /*#__PURE__*/_interopDefaultCompat(platform);
43
41
  var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
44
42
  var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
@@ -233,7 +231,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
233
231
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
234
232
  };
235
233
 
236
- var webSdkVersion = '2.2.125';
234
+ var webSdkVersion = '2.2.126';
237
235
 
238
236
  function getPlatform() {
239
237
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -17700,78 +17698,7 @@ var DocumentCapture = function DocumentCapture(_a) {
17700
17698
  };
17701
17699
 
17702
17700
  initializeI18n();
17703
- function renderElement(component, targetElement) {
17704
- if (typeof targetElement === 'string') {
17705
- var result = document.querySelector(targetElement);
17706
- if (!result) throw new Error("targetElement ".concat(targetElement, " not found"));
17707
- targetElement = result;
17708
- } else if (!targetElement) {
17709
- targetElement = document.createElement('div');
17710
- document.body.append(targetElement);
17711
- }
17712
- var root = ReactDOM__namespace.createRoot(targetElement);
17713
- root.render( /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, null, component));
17714
- if ('remove' in targetElement) {
17715
- var originalRemove_1 = targetElement.remove;
17716
- targetElement.remove = function () {
17717
- try {
17718
- root.unmount();
17719
- originalRemove_1();
17720
- } catch (e) {
17721
- debug('failed to unmount', e);
17722
- }
17723
- };
17724
- }
17725
- return targetElement;
17726
- }
17727
- function renderComponent(Component, targetElement, options) {
17728
- if (!options) {
17729
- options = targetElement;
17730
- targetElement = undefined;
17731
- }
17732
- return renderElement( /*#__PURE__*/React__namespace.default.createElement(Component, _assign({}, options)), targetElement);
17733
- }
17734
- var renderIdValidation = function renderIdValidation(optionsOrTargetElement, options) {
17735
- return renderComponent(IdValidation, optionsOrTargetElement, options);
17736
- };
17737
- var renderFaceValidation = function renderFaceValidation(optionsOrTargetElement, options) {
17738
- return renderComponent(FaceValidation, optionsOrTargetElement, options);
17739
- };
17740
- var renderIdAndFaceValidation = function renderIdAndFaceValidation(optionsOrTargetElement, options) {
17741
- return renderComponent(IdAndFaceValidation, optionsOrTargetElement, options);
17742
- };
17743
- var renderCustomerIdAndBiometricsEnrollment = function renderCustomerIdAndBiometricsEnrollment(optionsOrTargetElement, options) {
17744
- return renderComponent(CustomerIdAndBiometricsEnrollment, optionsOrTargetElement, options);
17745
- };
17746
- var renderCustomerBiometricsEnrollment = function renderCustomerBiometricsEnrollment(optionsOrTargetElement, options) {
17747
- return renderComponent(CustomerBiometricsEnrollment, optionsOrTargetElement, options);
17748
- };
17749
- var renderCustomerVerification = function renderCustomerVerification(optionsOrTargetElement, options) {
17750
- return renderComponent(CustomerVerification, optionsOrTargetElement, options);
17751
- };
17752
- var renderCustomerIdentification = function renderCustomerIdentification(optionsOrTargetElement, options) {
17753
- return renderComponent(CustomerIdentification, optionsOrTargetElement, options);
17754
- };
17755
- var renderSignatureKYC = function renderSignatureKYC(optionsOrTargetElement, options) {
17756
- return renderComponent(SignatureKYC, optionsOrTargetElement, options);
17757
- };
17758
- var renderVideoIdValidation = function renderVideoIdValidation(optionsOrTargetElement, options) {
17759
- return renderComponent(VideoIdValidation, optionsOrTargetElement, options);
17760
- };
17761
- var renderDocumentCapture = function renderDocumentCapture(optionsOrTargetElement, options) {
17762
- return renderComponent(DocumentCapture, optionsOrTargetElement, options);
17763
- };
17764
17701
  globalThis.IDmissionSDK = {
17765
- renderIdValidation: renderIdValidation,
17766
- renderFaceValidation: renderFaceValidation,
17767
- renderIdAndFaceValidation: renderIdAndFaceValidation,
17768
- renderCustomerIdAndBiometricsEnrollment: renderCustomerIdAndBiometricsEnrollment,
17769
- renderCustomerBiometricsEnrollment: renderCustomerBiometricsEnrollment,
17770
- renderCustomerVerification: renderCustomerVerification,
17771
- renderCustomerIdentification: renderCustomerIdentification,
17772
- renderSignatureKYC: renderSignatureKYC,
17773
- renderVideoIdValidation: renderVideoIdValidation,
17774
- renderDocumentCapture: renderDocumentCapture,
17775
17702
  preloadModels: preloadModels,
17776
17703
  themes: themes,
17777
17704
  version: webSdkVersion,
@@ -17797,16 +17724,6 @@ exports.VideoIdValidation = VideoIdValidation;
17797
17724
  exports.allowedAuthUrls = allowedAuthUrls;
17798
17725
  exports.isObject = isObject;
17799
17726
  exports.preloadModels = preloadModels;
17800
- exports.renderCustomerBiometricsEnrollment = renderCustomerBiometricsEnrollment;
17801
- exports.renderCustomerIdAndBiometricsEnrollment = renderCustomerIdAndBiometricsEnrollment;
17802
- exports.renderCustomerIdentification = renderCustomerIdentification;
17803
- exports.renderCustomerVerification = renderCustomerVerification;
17804
- exports.renderDocumentCapture = renderDocumentCapture;
17805
- exports.renderFaceValidation = renderFaceValidation;
17806
- exports.renderIdAndFaceValidation = renderIdAndFaceValidation;
17807
- exports.renderIdValidation = renderIdValidation;
17808
- exports.renderSignatureKYC = renderSignatureKYC;
17809
- exports.renderVideoIdValidation = renderVideoIdValidation;
17810
17727
  exports.setServerUrl = setServerUrl;
17811
17728
  exports.themes = themes;
17812
17729
  //# sourceMappingURL=sdk2.cjs.development.js.map