@regulaforensics/vp-frontend-document-components 8.1.2227-nightly → 8.1.2229-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;
@@ -307,55 +307,7 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
307
307
  disconnectedCallback(): void;
308
308
  }
309
309
 
310
- export declare interface DocumentTranslations {
311
- scanIDInBrowser?: string;
312
- useYourDeviceCamera?: string;
313
- success?: string;
314
- processingFinished?: string;
315
- largeFile?: string;
316
- selectSmallerFile?: string;
317
- versionNotSupported?: string;
318
- httpNotSupported?: string;
319
- insecurePageContext?: string;
320
- updateBrowser?: string;
321
- licenseError?: string;
322
- licenseExpired?: string;
323
- fileCorrupt?: string;
324
- selectAnotherFile?: string;
325
- timeout?: string;
326
- error?: string;
327
- somethingWentWrong?: string;
328
- tryAgain?: string;
329
- fromCamera?: string;
330
- fromGallery?: string;
331
- processing?: string;
332
- preparingService?: string;
333
- placeDocumentIntoFrame?: string;
334
- positionDocumentCenter?: string;
335
- noFocus?: string;
336
- moveCloser?: string;
337
- glaresOnDocument?: string;
338
- holdDocumentStraight?: string;
339
- documentProcessing?: string;
340
- flipDocument?: string;
341
- cameraUnavailable?: string;
342
- preparingCamera?: string;
343
- noCameraAvailable?: string;
344
- incorrectCameraId?: string;
345
- allowAccessToCamera?: string;
346
- cameraConnection?: string;
347
- checkCameraId?: string;
348
- photoCapturedSuccessfully?: string;
349
- uploadPhoto?: string;
350
- useCameraOrGallery?: string;
351
- connect?: string;
352
- disconnect?: string;
353
- process?: string;
354
- device?: string;
355
- service?: string;
356
- autoScan?: string;
357
- keepDeviceStill?: string;
358
- }
310
+ export declare type DocumentTranslations = Partial<Record<Labels, string>>;
359
311
 
360
312
  export declare enum ErrorTypes {
361
313
  WASM_ERROR = "WASM_ERROR",
@@ -468,6 +420,10 @@ declare interface IOptions {
468
420
  color?: string;
469
421
  }
470
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
+
471
427
  export declare type License = {
472
428
  license: {
473
429
  errorCode: number;
@@ -477,7 +433,7 @@ export declare type License = {
477
433
  scenario: Array<TScenarioParams>;
478
434
  };
479
435
 
480
- 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;
481
437
 
482
438
  export declare const Logger: Logger_2;
483
439