@regulaforensics/vp-frontend-document-components 8.1.2232-nightly → 8.1.2233-rc

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;
40
+ locale?: Locales | string;
41
41
  multipleFileInput?: boolean;
42
42
  regulaLogo?: boolean;
43
43
  copyright?: boolean;
@@ -53,10 +53,6 @@ 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;
60
56
  }
61
57
 
62
58
  export declare type CaptureFrameType = {
@@ -178,7 +174,6 @@ export declare class DocumentReaderProcessor {
178
174
  }
179
175
 
180
176
  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;
182
177
  returnPackageForReprocess?: boolean;
183
178
  scenario?: InternalScenarios;
184
179
  multipageProcessing?: boolean;
@@ -268,6 +263,8 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
268
263
  backgroundMaskAlpha?: number;
269
264
  cameraFramePortraitAspectRatio?: number;
270
265
  cameraFrameLandscapeAspectRatio?: number;
266
+ statusPositionMultiplier?: number;
267
+ statusIcon?: boolean;
271
268
  cameraFrameOffsetWidth?: number;
272
269
  cameraFrameVerticalPositionMultiplier?: number;
273
270
  cameraFrameHorizontalPositionMultiplier?: number;
@@ -307,7 +304,55 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
307
304
  disconnectedCallback(): void;
308
305
  }
309
306
 
310
- export declare type DocumentTranslations = Partial<Record<Labels, string>>;
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
+ }
311
356
 
312
357
  export declare enum ErrorTypes {
313
358
  WASM_ERROR = "WASM_ERROR",
@@ -420,10 +465,6 @@ declare interface IOptions {
420
465
  color?: string;
421
466
  }
422
467
 
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
-
427
468
  export declare type License = {
428
469
  license: {
429
470
  errorCode: number;
@@ -433,7 +474,7 @@ export declare type License = {
433
474
  scenario: Array<TScenarioParams>;
434
475
  };
435
476
 
436
- export declare type Locales = Languages | string;
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;
437
478
 
438
479
  export declare const Logger: Logger_2;
439
480