@regulaforensics/vp-frontend-document-components 7.6.2186-rc → 7.7.2187-nightly

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
@@ -70,7 +70,7 @@ export declare enum CaptureMode {
70
70
  export declare type CaptureType = Array<Omit<CaptureFrameType, 'imageData'>>;
71
71
 
72
72
  export declare interface CurrentPage {
73
- data: Response_2 | null;
73
+ data: DocumentReaderResponseType | null;
74
74
  startNextPage: () => Promise<void>;
75
75
  finishRecognition: () => void;
76
76
  }
@@ -112,12 +112,12 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
112
112
  private _translations;
113
113
  private _settings;
114
114
  constructor();
115
- static get observedAttributes(): CameraSnapshotAttributes[];
115
+ static get observedAttributes(): Array<CameraSnapshotAttributes>;
116
116
  private onEvent;
117
117
  attributeChangedCallback(name: CameraSnapshotAttributes): void;
118
118
  connectedCallback(): void;
119
- set translations(dictionary: Partial<Record<string, DocumentTranslations>> | null);
120
- get translations(): Partial<Record<string, DocumentTranslations>> | null;
119
+ set translations(dictionary: DocumentDictionaries | null);
120
+ get translations(): DocumentDictionaries | null;
121
121
  set settings(params: CameraSnapshotSettings);
122
122
  get settings(): CameraSnapshotSettings;
123
123
  private render;
@@ -147,8 +147,8 @@ export declare class DocumentReaderProcessor {
147
147
  isInitialized: boolean;
148
148
  videoElement: HTMLVideoElement | null;
149
149
  constructor(videoElement?: HTMLVideoElement);
150
- get recognizeListener(): ((data: Response_2 | ProcessRejectResponse) => void) | null;
151
- set recognizeListener(listener: ((data: Response_2 | ProcessRejectResponse) => void) | null);
150
+ get recognizeListener(): RecognizeListener | null;
151
+ set recognizeListener(listener: RecognizeListener | null);
152
152
  get streamParam(): Partial<StreamParams>;
153
153
  set streamParam(params: Partial<StreamParams>);
154
154
  get recognizerProcessParam(): ProcessingRequest;
@@ -164,8 +164,8 @@ export declare class DocumentReaderProcessor {
164
164
  private startNewPage;
165
165
  private startNewDocument;
166
166
  switchCamera(): Promise<void>;
167
- startRecognition(responseListener?: ResponseListener): Promise<Response_2 | null>;
168
- processImage(images: FileList | Array<Blob>): Promise<Response_2>;
167
+ startRecognition(responseListener?: ResponseListener): Promise<DocumentReaderResponseType | null>;
168
+ processImage(images: FileList | Array<Blob>): Promise<DocumentReaderResponseType>;
169
169
  stopRecognition(): void;
170
170
  initialize(license?: {
171
171
  license: string | undefined;
@@ -182,6 +182,10 @@ export declare type DocumentReaderProcessParam = Pick<ProcessParams, 'generateNu
182
182
  timeoutFromFirstDocType?: number;
183
183
  documentAreaMin?: number;
184
184
  imageQa?: {
185
+ angleThreshold?: number;
186
+ focusCheck?: boolean;
187
+ documentPositionIndent?: number;
188
+ brightnessThreshold?: number;
185
189
  expectedPass?: Array<ImageQualityChecks>;
186
190
  dpiThreshold?: number;
187
191
  glaresCheck?: boolean;
@@ -235,9 +239,9 @@ export declare class DocumentReaderService {
235
239
  license: string | undefined;
236
240
  }): Promise<License>;
237
241
  private doProcess;
238
- processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<Response_2>;
239
- process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2>;
240
- processImage(imageDataArray: Array<ImageData> | Array<ArrayBuffer>, params?: ProcessingRequest): Promise<Response_2>;
242
+ processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<DocumentReaderResponseType>;
243
+ process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<DocumentReaderResponseType>;
244
+ processImage(imageDataArray: Array<ImageData> | Array<ArrayBuffer>, params?: ProcessingRequest): Promise<DocumentReaderResponseType>;
241
245
  startNewPage(): Promise<void>;
242
246
  startNewDocument(metadata?: Record<string, any>): Promise<NewTransaction>;
243
247
  createBackendTransaction(metadata?: Record<string, any>): Promise<NewTransaction>;
@@ -288,12 +292,12 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
288
292
  private _translations;
289
293
  private _settings;
290
294
  constructor();
291
- static get observedAttributes(): DocumentReaderAttributes[];
295
+ static get observedAttributes(): Array<DocumentReaderAttributes>;
292
296
  private onEvent;
293
297
  attributeChangedCallback(name: DocumentReaderAttributes): void;
294
298
  connectedCallback(): void;
295
- set translations(dictionary: Partial<Record<string, DocumentTranslations>> | null);
296
- get translations(): Partial<Record<string, DocumentTranslations>> | null;
299
+ set translations(dictionary: DocumentDictionaries | null);
300
+ get translations(): DocumentDictionaries | null;
297
301
  set settings(params: DocumentReaderSettings);
298
302
  get settings(): DocumentReaderSettings;
299
303
  private render;
@@ -518,7 +522,7 @@ export declare interface ProcessRejectResponse extends ProcessResponse {
518
522
  reject_reason: number;
519
523
  }
520
524
 
521
- declare type RecognizeListener = (data: Response_2 | ProcessRejectResponse) => void;
525
+ declare type RecognizeListener = (data: DocumentReaderResponseType | ProcessRejectResponse) => void;
522
526
 
523
527
  export declare type Resolution = Partial<WidthAndHeight>;
524
528
 
@@ -607,24 +611,51 @@ export * from "@regulaforensics/document-reader-webclient";
607
611
  export { }
608
612
 
609
613
 
614
+
610
615
  declare global {
616
+ const UI_COMPONENTS_VERSION: string;
617
+ const DOC_WASM_S3_PATH: string;
618
+ const DOCUMENT_API: string;
619
+ const LICENSE: string | undefined;
620
+
621
+ namespace React.JSX {
622
+ interface IntrinsicElements {
623
+ 'document-reader': React.DetailedHTMLProps<
624
+ IDocumentReader & React.HTMLAttributes<DocumentReaderWebComponent>,
625
+ DocumentReaderWebComponent
626
+ >;
627
+ 'camera-snapshot': React.DetailedHTMLProps<
628
+ ICameraSnapshot & React.HTMLAttributes<DocumentReaderCaptureWebComponent>,
629
+ DocumentReaderCaptureWebComponent
630
+ >;
631
+ 'fullscreen-container': React.DetailedHTMLProps<
632
+ React.HTMLAttributes<FullScreenContainer>,
633
+ FullScreenContainer
634
+ >;
635
+ }
636
+ }
637
+
611
638
  interface HTMLElementEventMap {
612
639
  'document-reader': CustomEvent<DocumentReaderDetailType | TransactionEvent>;
613
640
  'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
614
641
  }
642
+
615
643
  interface Window {
616
644
  RegulaDocumentSDK: DocumentReaderService;
617
645
  }
618
646
  }
619
647
 
620
-
621
- declare namespace v3 {
622
- var DNS: string;
623
- var URL: string;
648
+ declare global {
649
+ const VERSION: string;
650
+ const ENV: string;
624
651
  }
625
652
 
653
+ declare module 'react' {
654
+ interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
655
+ part?: string;
656
+ }
626
657
 
627
- declare namespace v5 {
628
- var DNS: string;
629
- var URL: string;
658
+ interface SVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
659
+ part?: string;
660
+ }
630
661
  }