@regulaforensics/vp-frontend-document-components 7.5.1879-nightly → 7.5.1880-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/README.md +125 -282
- package/dist/index.d.ts +12 -36
- package/dist/main.iife.js +675 -57
- package/dist/main.js +11666 -16001
- package/package.json +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ContainerList } from '@regulaforensics/document-reader-webclient';
|
|
2
2
|
import { DocumentFormat } from '@regulaforensics/document-reader-webclient';
|
|
3
|
-
import { GetTransactionsByTagResponse } from '@regulaforensics/document-reader-webclient';
|
|
4
3
|
import { MeasureSystem } from '@regulaforensics/document-reader-webclient';
|
|
5
4
|
import { MRZFormat } from '@regulaforensics/document-reader-webclient';
|
|
6
5
|
import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
|
|
@@ -28,7 +27,7 @@ declare enum CameraSnapshotAttributes {
|
|
|
28
27
|
closeButton = "close-button"
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
export declare type CameraSnapshotDetailType = DetailEvent<
|
|
30
|
+
export declare type CameraSnapshotDetailType = DetailEvent<EventActions, CameraSnapshotResponseType>;
|
|
32
31
|
|
|
33
32
|
export declare type CameraSnapshotResponseType = Array<{
|
|
34
33
|
raw: string;
|
|
@@ -48,10 +47,6 @@ export declare interface CameraSnapshotSettings {
|
|
|
48
47
|
nonce?: string;
|
|
49
48
|
statusTextColor?: string;
|
|
50
49
|
statusBackgroundColor?: string;
|
|
51
|
-
fromCameraButton?: boolean;
|
|
52
|
-
uploadFileButton?: boolean;
|
|
53
|
-
mirrorButton?: boolean;
|
|
54
|
-
mirrorType?: MirrorType;
|
|
55
50
|
}
|
|
56
51
|
|
|
57
52
|
export declare type CaptureFrameType = {
|
|
@@ -123,7 +118,7 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
|
|
|
123
118
|
disconnectedCallback(): void;
|
|
124
119
|
}
|
|
125
120
|
|
|
126
|
-
export declare type DocumentReaderDetailType = DetailEvent<
|
|
121
|
+
export declare type DocumentReaderDetailType = DetailEvent<EventActions, DocumentReaderResponseType>;
|
|
127
122
|
|
|
128
123
|
export declare interface DocumentReaderImage {
|
|
129
124
|
data: string;
|
|
@@ -297,7 +292,6 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
|
|
|
297
292
|
captureButtonDelay?: number;
|
|
298
293
|
videoRecord?: boolean | VideoRecordSettings;
|
|
299
294
|
videoCaptureMotionControl?: boolean;
|
|
300
|
-
mobileDelegate?: boolean;
|
|
301
295
|
}
|
|
302
296
|
|
|
303
297
|
export declare class DocumentReaderWebComponent extends HTMLElement {
|
|
@@ -326,8 +320,6 @@ export declare interface DocumentTranslations {
|
|
|
326
320
|
largeFile?: string;
|
|
327
321
|
selectSmallerFile?: string;
|
|
328
322
|
versionNotSupported?: string;
|
|
329
|
-
httpNotSupported?: string;
|
|
330
|
-
insecurePageContext?: string;
|
|
331
323
|
updateBrowser?: string;
|
|
332
324
|
licenseError?: string;
|
|
333
325
|
licenseExpired?: string;
|
|
@@ -381,9 +373,7 @@ export declare enum ErrorTypes {
|
|
|
381
373
|
CAMERA_PERMISSION_DENIED = "CAMERA_PERMISSION_DENIED",
|
|
382
374
|
NO_CAMERA = "NO_CAMERA",
|
|
383
375
|
INCORRECT_CAMERA_ID = "INCORRECT_CAMERA_ID",
|
|
384
|
-
CONNECTION_ERROR = "CONNECTION_ERROR"
|
|
385
|
-
HTTP_NOT_SUPPORTED = "HTTP_NOT_SUPPORTED",
|
|
386
|
-
INSECURE_PAGE_CONTEXT = "INSECURE_PAGE_CONTEXT"
|
|
376
|
+
CONNECTION_ERROR = "CONNECTION_ERROR"
|
|
387
377
|
}
|
|
388
378
|
|
|
389
379
|
export declare enum EventActions {
|
|
@@ -394,8 +384,11 @@ export declare enum EventActions {
|
|
|
394
384
|
PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
|
|
395
385
|
PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
|
|
396
386
|
PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
|
|
397
|
-
PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
|
|
398
387
|
PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
|
|
388
|
+
PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
|
|
389
|
+
PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
|
|
390
|
+
PRESS_AUTOSCAN_BUTTON = "PRESS_AUTOSCAN_BUTTON",
|
|
391
|
+
PRESS_PROCESS_BUTTON = "PRESS_PROCESS_BUTTON",
|
|
399
392
|
NEW_PAGE_AVAILABLE = "NEW_PAGE_AVAILABLE",
|
|
400
393
|
NEW_PAGE_STARTED = "NEW_PAGE_STARTED",
|
|
401
394
|
CLOSE = "CLOSE",
|
|
@@ -404,10 +397,9 @@ export declare enum EventActions {
|
|
|
404
397
|
VIDEO_STARTED = "VIDEO_STARTED",
|
|
405
398
|
VIDEO_STOPPED = "VIDEO_STOPPED",
|
|
406
399
|
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
400
|
+
PROCESS_STARTED = "PROCESS_STARTED",
|
|
407
401
|
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
408
|
-
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
409
|
-
REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
|
|
410
|
-
REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
|
|
402
|
+
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
411
403
|
}
|
|
412
404
|
|
|
413
405
|
export declare enum FrameLineCap {
|
|
@@ -480,7 +472,7 @@ export declare type License = {
|
|
|
480
472
|
scenario: Array<TScenarioParams>;
|
|
481
473
|
};
|
|
482
474
|
|
|
483
|
-
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' |
|
|
475
|
+
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' | string;
|
|
484
476
|
|
|
485
477
|
export declare const Logger: Logger_2;
|
|
486
478
|
|
|
@@ -495,11 +487,6 @@ declare class Logger_2 {
|
|
|
495
487
|
saveLogs(): void;
|
|
496
488
|
}
|
|
497
489
|
|
|
498
|
-
export declare enum MirrorType {
|
|
499
|
-
mirror = "mirror",
|
|
500
|
-
noMirror = "noMirror"
|
|
501
|
-
}
|
|
502
|
-
|
|
503
490
|
export declare interface NewTransaction {
|
|
504
491
|
ContainerList: ContainerList;
|
|
505
492
|
TransactionInfo: {
|
|
@@ -520,7 +507,6 @@ export declare interface PackageParams {
|
|
|
520
507
|
|
|
521
508
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
522
509
|
metadata?: Record<string, any>;
|
|
523
|
-
delegateURL?: string;
|
|
524
510
|
processParam: DocumentReaderProcessParam;
|
|
525
511
|
imagesList?: Array<DocumentReaderImage>;
|
|
526
512
|
imageInputParam?: ImageInputParamType;
|
|
@@ -557,22 +543,11 @@ declare type TProcessingListener = ({ isProcessing }: {
|
|
|
557
543
|
isProcessing: boolean;
|
|
558
544
|
}) => void;
|
|
559
545
|
|
|
560
|
-
export declare interface TransactionEvent {
|
|
561
|
-
action: EventActions.REMOTE_TRANSACTION_UPLOADED;
|
|
562
|
-
data: GetTransactionsByTagResponse;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
546
|
export declare interface TransactionInfo {
|
|
566
547
|
tag: string;
|
|
567
548
|
transactionId: string;
|
|
568
549
|
}
|
|
569
550
|
|
|
570
|
-
export declare enum TransactionStateStatus {
|
|
571
|
-
STARTED = 0,
|
|
572
|
-
UPLOADED = 1,
|
|
573
|
-
PROCESSED = 2
|
|
574
|
-
}
|
|
575
|
-
|
|
576
551
|
export declare type TScenarioParams = {
|
|
577
552
|
name: string;
|
|
578
553
|
desc: string;
|
|
@@ -610,10 +585,11 @@ export { }
|
|
|
610
585
|
|
|
611
586
|
declare global {
|
|
612
587
|
interface HTMLElementEventMap {
|
|
613
|
-
'document-reader': CustomEvent<DocumentReaderDetailType
|
|
588
|
+
'document-reader': CustomEvent<DocumentReaderDetailType>;
|
|
614
589
|
'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
|
|
615
590
|
}
|
|
616
591
|
interface Window {
|
|
617
592
|
RegulaDocumentSDK: DocumentReaderService;
|
|
618
593
|
}
|
|
619
594
|
}
|
|
595
|
+
|