@regulaforensics/vp-frontend-document-components 7.6.2053-rc → 7.6.2055-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/README.md CHANGED
@@ -64,7 +64,7 @@ import { defineComponents, DocumentReaderService } from './node_modules/@regulaf
64
64
 
65
65
  #### CDN
66
66
 
67
- Connect the script to your `.html` file. Use a CDN link in the following format: `unpkg.com/:package@:version/:file`.
67
+ 1\. Connect the script to your `.html` file. Use a CDN link in the following format: `unpkg.com/:package@:version/:file`.
68
68
 
69
69
  For example:
70
70
 
@@ -72,6 +72,12 @@ For example:
72
72
  <script src="https://unpkg.com/@regulaforensics/vp-frontend-document-components@latest/dist/main.iife.js"></script>
73
73
  ```
74
74
 
75
+ 2\. Import the function `defineComponents` and the class `DocumentReaderService` into your `.js` file:
76
+
77
+ ```javascript
78
+ const { defineComponents, DocumentReaderService } = window.Regula;
79
+ ```
80
+
75
81
  ### Step 2: Add Component
76
82
 
77
83
  * [Smart capture](#smart-capture-component)
package/dist/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  import { ContainerList } from '@regulaforensics/document-reader-webclient';
2
2
  import { DocumentFormat } from '@regulaforensics/document-reader-webclient';
3
+ import { DocumentTranslations as DocumentTranslations_2 } from '..';
3
4
  import { GetTransactionsByTagResponse } from '@regulaforensics/document-reader-webclient';
5
+ import { License as License_2 } from '../types';
4
6
  import { MeasureSystem } from '@regulaforensics/document-reader-webclient';
5
7
  import { MRZFormat } from '@regulaforensics/document-reader-webclient';
8
+ import { ProcessRejectResponse as ProcessRejectResponse_2 } from '../types';
6
9
  import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
7
10
  import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
8
11
  import { Result } from '@regulaforensics/document-reader-webclient';
@@ -118,8 +121,8 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
118
121
  private onEvent;
119
122
  attributeChangedCallback(name: CameraSnapshotAttributes): void;
120
123
  connectedCallback(): void;
121
- set translations(dictionary: Partial<Record<string, DocumentTranslations>> | null);
122
- get translations(): Partial<Record<string, DocumentTranslations>> | null;
124
+ set translations(dictionary: Partial<Record<string, DocumentTranslations_2>> | null);
125
+ get translations(): Partial<Record<string, DocumentTranslations_2>> | null;
123
126
  set settings(params: CameraSnapshotSettings);
124
127
  get settings(): CameraSnapshotSettings;
125
128
  private render;
@@ -149,8 +152,8 @@ export declare class DocumentReaderProcessor {
149
152
  isInitialized: boolean;
150
153
  videoElement: HTMLVideoElement | null;
151
154
  constructor(videoElement?: HTMLVideoElement);
152
- get recognizeListener(): ((data: Response_2 | ProcessRejectResponse) => void) | null;
153
- set recognizeListener(listener: ((data: Response_2 | ProcessRejectResponse) => void) | null);
155
+ get recognizeListener(): ((data: Response_2 | ProcessRejectResponse_2) => void) | null;
156
+ set recognizeListener(listener: ((data: Response_2 | ProcessRejectResponse_2) => void) | null);
154
157
  get streamParam(): Partial<StreamParams>;
155
158
  set streamParam(params: Partial<StreamParams>);
156
159
  get recognizerProcessParam(): ProcessingRequest;
@@ -171,7 +174,7 @@ export declare class DocumentReaderProcessor {
171
174
  stopRecognition(): void;
172
175
  initialize(license?: {
173
176
  license: string | undefined;
174
- }): Promise<License>;
177
+ }): Promise<License_2>;
175
178
  shutdown(): void;
176
179
  }
177
180
 
@@ -254,6 +257,7 @@ export declare class DocumentReaderService {
254
257
  get initializeListener(): TInitializeListener | null;
255
258
  set initializeListener(listener: TInitializeListener | null);
256
259
  private createProcessImageRequest;
260
+ private prepareImageData;
257
261
  private sendMessage;
258
262
  prepare(): Promise<void>;
259
263
  initialize(initData?: {
@@ -303,6 +307,8 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
303
307
  videoRecord?: boolean | VideoRecordSettings;
304
308
  videoCaptureMotionControl?: boolean;
305
309
  mobileDelegate?: boolean;
310
+ nextPageAnimationStartDelay?: number;
311
+ nextPageAnimationEndDelay?: number;
306
312
  }
307
313
 
308
314
  export declare class DocumentReaderWebComponent extends HTMLElement {
@@ -315,8 +321,8 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
315
321
  private onEvent;
316
322
  attributeChangedCallback(name: DocumentReaderAttributes): void;
317
323
  connectedCallback(): void;
318
- set translations(dictionary: Partial<Record<string, DocumentTranslations>> | null);
319
- get translations(): Partial<Record<string, DocumentTranslations>> | null;
324
+ set translations(dictionary: Partial<Record<string, DocumentTranslations_2>> | null);
325
+ get translations(): Partial<Record<string, DocumentTranslations_2>> | null;
320
326
  set settings(params: DocumentReaderSettings);
321
327
  get settings(): DocumentReaderSettings;
322
328
  private render;