idmission-web-sdk 1.0.18 → 1.0.19

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
@@ -9,15 +9,15 @@ import { VideoIdValidation, VideoIdValidationProps } from './components/customer
9
9
  import { preloadModels } from './lib/models/preloadModels';
10
10
  import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
11
11
  type TargetElement = Element | DocumentFragment | string | undefined;
12
- export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => HTMLDivElement;
13
- export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => HTMLDivElement;
14
- export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => HTMLDivElement;
15
- export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => HTMLDivElement;
16
- export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => HTMLDivElement;
17
- export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => HTMLDivElement;
18
- export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => HTMLDivElement;
19
- export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => HTMLDivElement;
20
- export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => HTMLDivElement;
12
+ export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => Element | DocumentFragment;
13
+ export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => Element | DocumentFragment;
14
+ export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => Element | DocumentFragment;
15
+ export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
16
+ export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
17
+ export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => Element | DocumentFragment;
18
+ export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => Element | DocumentFragment;
19
+ export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => Element | DocumentFragment;
20
+ export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => Element | DocumentFragment;
21
21
  export type IDmissionSDK = {
22
22
  renderIdValidation: typeof renderIdValidation;
23
23
  renderFaceValidation: typeof renderFaceValidation;
@@ -50,7 +50,7 @@ var tf__namespace = /*#__PURE__*/_interopNamespace(tf);
50
50
  var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
51
51
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
52
52
 
53
- var webSdkVersion = '1.0.18';
53
+ var webSdkVersion = '1.0.19';
54
54
 
55
55
  function getPlatform() {
56
56
  return window.platform;
@@ -14554,7 +14554,7 @@ function renderElement(component, targetElement) {
14554
14554
  ref: ref
14555
14555
  }, component);
14556
14556
  ReactDOM__namespace.createRoot(targetElement).render(container);
14557
- return ref.current;
14557
+ return targetElement;
14558
14558
  }
14559
14559
  function renderComponent(Component, targetElement, options) {
14560
14560
  if (!options) {