@regulaforensics/ui-components 1.3.0 → 1.4.0

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/README.md CHANGED
@@ -9,7 +9,6 @@ Here is an example of using components to display the results of document-reader
9
9
  ```typescript jsx
10
10
  import { FC } from 'react'
11
11
  import { createRoot } from 'react-dom/client'
12
- import { ProcessResponse } from '@regulaforensics/document-reader-typings'
13
12
  import {
14
13
  DocReaderContainer,
15
14
  Status,
@@ -25,7 +24,7 @@ import {
25
24
 
26
25
 
27
26
  interface ProcessingResultsProps {
28
- response: ProcessResponse
27
+ response: unknown
29
28
  request: any
30
29
  language: string
31
30
  }
@@ -54,7 +53,7 @@ const ProcessingResultTabs: FC<ProcessingResultsProps> = ({ response, request, l
54
53
  </DocReaderContainer>
55
54
  )
56
55
 
57
- const RESPONSE = ProcessResponse.fromPlain(YOUR_RESPONSE_DATA)
56
+ const RESPONSE = YOUR_RESPONSE_DATA
58
57
  const REQUEST = YOUR_REQUEST_DATA
59
58
 
60
59
  const Results = () => (
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ import { FC } from 'react';
3
3
  import { ForwardRefExoticComponent } from 'react';
4
4
  import { HTMLAttributes } from 'react';
5
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
6
- import { ProcessResponse } from '@regulaforensics/document-reader-typings';
7
6
  import { ReactNode } from 'react';
8
7
  import { RefAttributes } from 'react';
9
8
 
@@ -173,7 +172,7 @@ declare interface ICrossProps extends HTMLAttributes<HTMLSpanElement> {
173
172
  }
174
173
 
175
174
  declare interface IDocReaderContainerProps extends HTMLAttributes<HTMLElement> {
176
- response: ProcessResponse;
175
+ response: unknown;
177
176
  request?: any;
178
177
  language?: string;
179
178
  }
@@ -252,7 +251,7 @@ declare interface iLightsLabelProps {
252
251
  children: ReactNode;
253
252
  }
254
253
 
255
- declare const Image_2: FC<IImageProps>;
254
+ declare const Image_2: ForwardRefExoticComponent<IImageProps & RefAttributes<HTMLDivElement>>;
256
255
  export { Image_2 as Image }
257
256
 
258
257
  declare const ImageQualityCheckTypeLabel: FC<iImageQualityCheckTypeLabelProps>;