@regulaforensics/vp-frontend-document-components 8.1.2233-rc → 8.1.2234-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
@@ -37,7 +37,7 @@ export declare type CameraSnapshotResponseType = Array<{
37
37
 
38
38
  export declare interface CameraSnapshotSettings {
39
39
  startScreen?: boolean;
40
- locale?: Locales | string;
40
+ locale?: Locales;
41
41
  multipleFileInput?: boolean;
42
42
  regulaLogo?: boolean;
43
43
  copyright?: boolean;
@@ -53,6 +53,10 @@ export declare interface CameraSnapshotSettings {
53
53
  uploadFileButton?: boolean;
54
54
  mirrorButton?: boolean;
55
55
  mirrorType?: MirrorType;
56
+ statusPositionMultiplier?: number;
57
+ statusIcon?: boolean;
58
+ activityIndicatorPortraitPositionMultiplier?: number;
59
+ activityIndicatorLandscapePositionMultiplier?: number;
56
60
  }
57
61
 
58
62
  export declare type CaptureFrameType = {
@@ -174,6 +178,7 @@ export declare class DocumentReaderProcessor {
174
178
  }
175
179
 
176
180
  export declare type DocumentReaderProcessParam = Pick<ProcessParams, 'generateNumericCodes' | 'returnUncroppedImage' | 'log' | 'resultTypeOutput' | 'customParams' | 'imageOutputMaxHeight' | 'imageOutputMaxWidth' | 'fieldTypesFilter' | 'dateFormat' | 'measureSystem' | 'imageDpiOutMax' | 'alreadyCropped' | 'fastDocDetect' | 'updateOCRValidityByGlare' | 'returnCroppedBarcode' | 'respectImageQuality' | 'forceDocFormat' | 'noGraphics' | 'depersonalizeLog' | 'multiDocOnImage' | 'shiftExpiryDate' | 'minimalHolderAge' | 'mrzFormatsFilter' | 'forceReadMrzBeforeLocate' | 'parseBarcodes' | 'splitNames' | 'doublePageSpread' | 'strictImageQuality' | 'doDetectCan' | 'generateDoublePageSpreadImage' | 'mrzDetectMode' | 'strictBarcodeDigitalSignatureCheck' | 'selectLongestNames'> & {
181
+ generateAlpha2Codes?: boolean;
177
182
  returnPackageForReprocess?: boolean;
178
183
  scenario?: InternalScenarios;
179
184
  multipageProcessing?: boolean;
@@ -263,8 +268,6 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
263
268
  backgroundMaskAlpha?: number;
264
269
  cameraFramePortraitAspectRatio?: number;
265
270
  cameraFrameLandscapeAspectRatio?: number;
266
- statusPositionMultiplier?: number;
267
- statusIcon?: boolean;
268
271
  cameraFrameOffsetWidth?: number;
269
272
  cameraFrameVerticalPositionMultiplier?: number;
270
273
  cameraFrameHorizontalPositionMultiplier?: number;
@@ -304,55 +307,7 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
304
307
  disconnectedCallback(): void;
305
308
  }
306
309
 
307
- export declare interface DocumentTranslations {
308
- scanIDInBrowser?: string;
309
- useYourDeviceCamera?: string;
310
- success?: string;
311
- processingFinished?: string;
312
- largeFile?: string;
313
- selectSmallerFile?: string;
314
- versionNotSupported?: string;
315
- httpNotSupported?: string;
316
- insecurePageContext?: string;
317
- updateBrowser?: string;
318
- licenseError?: string;
319
- licenseExpired?: string;
320
- fileCorrupt?: string;
321
- selectAnotherFile?: string;
322
- timeout?: string;
323
- error?: string;
324
- somethingWentWrong?: string;
325
- tryAgain?: string;
326
- fromCamera?: string;
327
- fromGallery?: string;
328
- processing?: string;
329
- preparingService?: string;
330
- placeDocumentIntoFrame?: string;
331
- positionDocumentCenter?: string;
332
- noFocus?: string;
333
- moveCloser?: string;
334
- glaresOnDocument?: string;
335
- holdDocumentStraight?: string;
336
- documentProcessing?: string;
337
- flipDocument?: string;
338
- cameraUnavailable?: string;
339
- preparingCamera?: string;
340
- noCameraAvailable?: string;
341
- incorrectCameraId?: string;
342
- allowAccessToCamera?: string;
343
- cameraConnection?: string;
344
- checkCameraId?: string;
345
- photoCapturedSuccessfully?: string;
346
- uploadPhoto?: string;
347
- useCameraOrGallery?: string;
348
- connect?: string;
349
- disconnect?: string;
350
- process?: string;
351
- device?: string;
352
- service?: string;
353
- autoScan?: string;
354
- keepDeviceStill?: string;
355
- }
310
+ export declare type DocumentTranslations = Partial<Record<Labels, string>>;
356
311
 
357
312
  export declare enum ErrorTypes {
358
313
  WASM_ERROR = "WASM_ERROR",
@@ -465,6 +420,10 @@ declare interface IOptions {
465
420
  color?: string;
466
421
  }
467
422
 
423
+ declare type Labels = 'preparingCamera' | 'timeout' | 'noFocus' | 'somethingWentWrong' | 'incorrectCameraId' | 'done' | 'cameraUnavailable' | 'versionNotSupported' | 'httpNotSupported' | 'insecurePageContext' | 'badLicense' | 'fileCorrupt' | 'largeFile' | 'placeDocumentIntoFrame' | 'holdDocumentStraight' | 'glaresOnDocument' | 'tryAgain' | 'noCameraAvailable' | 'positionDocumentCenter' | 'uploadPhoto' | 'moveCloser' | 'keepDeviceStill' | 'camera' | 'switchToMobile' | 'openPhoneCamera' | 'pleaseWait' | 'mobileDevice' | 'verifyYourIdentity' | 'fromCameraFilesMobileDesktop' | 'fromCameraFilesDesktop' | 'fromCameraMobileDesktop' | 'fromFilesMobileDesktop' | 'fromCameraDesktop' | 'fromFilesDesktop' | 'fromMobileDesktop' | 'fromCameraGalleryMobile' | 'fromGalleryMobile' | 'gallery' | 'files' | 'returnToComputer' | 'documentCaptured';
424
+
425
+ declare type Languages = 'ru' | 'en' | 'de' | 'pl' | 'it' | 'hu' | 'zh' | 'sk' | 'uk' | 'fr' | 'es' | 'pt' | 'ar' | 'nl' | 'id' | 'vi' | 'ko' | 'ms' | 'ro' | 'el' | 'tr' | 'ja' | 'cs' | 'th' | 'hi' | 'bn' | 'he' | 'fi' | 'sv' | 'da' | 'hr' | 'no' | 'uz' | 'hy' | 'ky';
426
+
468
427
  export declare type License = {
469
428
  license: {
470
429
  errorCode: number;
@@ -474,7 +433,7 @@ export declare type License = {
474
433
  scenario: Array<TScenarioParams>;
475
434
  };
476
435
 
477
- export declare type Locales = 'ru' | 'en' | 'de' | 'pl' | 'it' | 'hu' | 'zh' | 'sk' | 'uk' | 'fr' | 'es' | 'pt' | 'ar' | 'nl' | 'id' | 'vi' | 'ko' | 'ms' | 'ro' | 'el' | 'tr' | 'ja' | 'cs' | 'th' | 'hi' | 'bn' | 'he' | 'fi' | 'sv' | 'da' | 'hr' | 'no' | 'uz' | 'hy' | 'ky' | string;
436
+ export declare type Locales = Languages | string;
478
437
 
479
438
  export declare const Logger: Logger_2;
480
439