@regulaforensics/vp-frontend-document-components 7.5.1871-rc → 7.5.1873-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 +210 -123
- package/dist/index.d.ts +32 -6
- package/dist/main.iife.js +57 -675
- package/dist/main.js +16078 -11565
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import { MeasureSystem } from '@regulaforensics/document-reader-webclient';
|
|
4
5
|
import { MRZFormat } from '@regulaforensics/document-reader-webclient';
|
|
5
6
|
import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
|
|
@@ -27,7 +28,7 @@ declare enum CameraSnapshotAttributes {
|
|
|
27
28
|
closeButton = "close-button"
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
export declare type CameraSnapshotDetailType = DetailEvent<EventActions, CameraSnapshotResponseType>;
|
|
31
|
+
export declare type CameraSnapshotDetailType = DetailEvent<Exclude<EventActions, EventActions.REMOTE_TRANSACTION_UPLOADED>, CameraSnapshotResponseType>;
|
|
31
32
|
|
|
32
33
|
export declare type CameraSnapshotResponseType = Array<{
|
|
33
34
|
raw: string;
|
|
@@ -47,6 +48,10 @@ export declare interface CameraSnapshotSettings {
|
|
|
47
48
|
nonce?: string;
|
|
48
49
|
statusTextColor?: string;
|
|
49
50
|
statusBackgroundColor?: string;
|
|
51
|
+
fromCameraButton?: boolean;
|
|
52
|
+
uploadFileButton?: boolean;
|
|
53
|
+
mirrorButton?: boolean;
|
|
54
|
+
mirrorType?: MirrorType;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
export declare type CaptureFrameType = {
|
|
@@ -118,7 +123,7 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
|
|
|
118
123
|
disconnectedCallback(): void;
|
|
119
124
|
}
|
|
120
125
|
|
|
121
|
-
export declare type DocumentReaderDetailType = DetailEvent<EventActions, DocumentReaderResponseType>;
|
|
126
|
+
export declare type DocumentReaderDetailType = DetailEvent<Exclude<EventActions, EventActions.REMOTE_TRANSACTION_UPLOADED>, DocumentReaderResponseType>;
|
|
122
127
|
|
|
123
128
|
export declare interface DocumentReaderImage {
|
|
124
129
|
data: string;
|
|
@@ -320,6 +325,8 @@ export declare interface DocumentTranslations {
|
|
|
320
325
|
largeFile?: string;
|
|
321
326
|
selectSmallerFile?: string;
|
|
322
327
|
versionNotSupported?: string;
|
|
328
|
+
httpNotSupported?: string;
|
|
329
|
+
insecurePageContext?: string;
|
|
323
330
|
updateBrowser?: string;
|
|
324
331
|
licenseError?: string;
|
|
325
332
|
licenseExpired?: string;
|
|
@@ -384,6 +391,7 @@ export declare enum EventActions {
|
|
|
384
391
|
PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
|
|
385
392
|
PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
|
|
386
393
|
PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
|
|
394
|
+
PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
|
|
387
395
|
PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
|
|
388
396
|
PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
|
|
389
397
|
PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
|
|
@@ -399,7 +407,9 @@ export declare enum EventActions {
|
|
|
399
407
|
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
400
408
|
PROCESS_STARTED = "PROCESS_STARTED",
|
|
401
409
|
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
402
|
-
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
410
|
+
SERVICE_INITIALIZED = "SERVICE_INITIALIZED",
|
|
411
|
+
REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
|
|
412
|
+
REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
|
|
403
413
|
}
|
|
404
414
|
|
|
405
415
|
export declare enum FrameLineCap {
|
|
@@ -472,7 +482,7 @@ export declare type License = {
|
|
|
472
482
|
scenario: Array<TScenarioParams>;
|
|
473
483
|
};
|
|
474
484
|
|
|
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;
|
|
485
|
+
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' | string;
|
|
476
486
|
|
|
477
487
|
export declare const Logger: Logger_2;
|
|
478
488
|
|
|
@@ -487,6 +497,11 @@ declare class Logger_2 {
|
|
|
487
497
|
saveLogs(): void;
|
|
488
498
|
}
|
|
489
499
|
|
|
500
|
+
export declare enum MirrorType {
|
|
501
|
+
mirror = "mirror",
|
|
502
|
+
noMirror = "noMirror"
|
|
503
|
+
}
|
|
504
|
+
|
|
490
505
|
export declare interface NewTransaction {
|
|
491
506
|
ContainerList: ContainerList;
|
|
492
507
|
TransactionInfo: {
|
|
@@ -507,6 +522,7 @@ export declare interface PackageParams {
|
|
|
507
522
|
|
|
508
523
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
509
524
|
metadata?: Record<string, any>;
|
|
525
|
+
delegateURL?: string;
|
|
510
526
|
processParam: DocumentReaderProcessParam;
|
|
511
527
|
imagesList?: Array<DocumentReaderImage>;
|
|
512
528
|
imageInputParam?: ImageInputParamType;
|
|
@@ -543,11 +559,22 @@ declare type TProcessingListener = ({ isProcessing }: {
|
|
|
543
559
|
isProcessing: boolean;
|
|
544
560
|
}) => void;
|
|
545
561
|
|
|
562
|
+
export declare interface TransactionEvent {
|
|
563
|
+
action: EventActions.REMOTE_TRANSACTION_UPLOADED;
|
|
564
|
+
data: GetTransactionsByTagResponse;
|
|
565
|
+
}
|
|
566
|
+
|
|
546
567
|
export declare interface TransactionInfo {
|
|
547
568
|
tag: string;
|
|
548
569
|
transactionId: string;
|
|
549
570
|
}
|
|
550
571
|
|
|
572
|
+
export declare enum TransactionStateStatus {
|
|
573
|
+
STARTED = 0,
|
|
574
|
+
UPLOADED = 1,
|
|
575
|
+
PROCESSED = 2
|
|
576
|
+
}
|
|
577
|
+
|
|
551
578
|
export declare type TScenarioParams = {
|
|
552
579
|
name: string;
|
|
553
580
|
desc: string;
|
|
@@ -585,11 +612,10 @@ export { }
|
|
|
585
612
|
|
|
586
613
|
declare global {
|
|
587
614
|
interface HTMLElementEventMap {
|
|
588
|
-
'document-reader': CustomEvent<DocumentReaderDetailType>;
|
|
615
|
+
'document-reader': CustomEvent<DocumentReaderDetailType | TransactionEvent>;
|
|
589
616
|
'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
|
|
590
617
|
}
|
|
591
618
|
interface Window {
|
|
592
619
|
RegulaDocumentSDK: DocumentReaderService;
|
|
593
620
|
}
|
|
594
621
|
}
|
|
595
|
-
|