@regulaforensics/vp-frontend-document-components 7.5.1877-rc → 7.5.1879-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 +282 -125
- package/dist/index.d.ts +36 -12
- package/dist/main.iife.js +57 -675
- package/dist/main.js +16010 -11675
- 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;
|
|
@@ -292,6 +297,7 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
|
|
|
292
297
|
captureButtonDelay?: number;
|
|
293
298
|
videoRecord?: boolean | VideoRecordSettings;
|
|
294
299
|
videoCaptureMotionControl?: boolean;
|
|
300
|
+
mobileDelegate?: boolean;
|
|
295
301
|
}
|
|
296
302
|
|
|
297
303
|
export declare class DocumentReaderWebComponent extends HTMLElement {
|
|
@@ -320,6 +326,8 @@ export declare interface DocumentTranslations {
|
|
|
320
326
|
largeFile?: string;
|
|
321
327
|
selectSmallerFile?: string;
|
|
322
328
|
versionNotSupported?: string;
|
|
329
|
+
httpNotSupported?: string;
|
|
330
|
+
insecurePageContext?: string;
|
|
323
331
|
updateBrowser?: string;
|
|
324
332
|
licenseError?: string;
|
|
325
333
|
licenseExpired?: string;
|
|
@@ -373,7 +381,9 @@ export declare enum ErrorTypes {
|
|
|
373
381
|
CAMERA_PERMISSION_DENIED = "CAMERA_PERMISSION_DENIED",
|
|
374
382
|
NO_CAMERA = "NO_CAMERA",
|
|
375
383
|
INCORRECT_CAMERA_ID = "INCORRECT_CAMERA_ID",
|
|
376
|
-
CONNECTION_ERROR = "CONNECTION_ERROR"
|
|
384
|
+
CONNECTION_ERROR = "CONNECTION_ERROR",
|
|
385
|
+
HTTP_NOT_SUPPORTED = "HTTP_NOT_SUPPORTED",
|
|
386
|
+
INSECURE_PAGE_CONTEXT = "INSECURE_PAGE_CONTEXT"
|
|
377
387
|
}
|
|
378
388
|
|
|
379
389
|
export declare enum EventActions {
|
|
@@ -384,11 +394,8 @@ export declare enum EventActions {
|
|
|
384
394
|
PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
|
|
385
395
|
PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
|
|
386
396
|
PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
|
|
397
|
+
PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
|
|
387
398
|
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",
|
|
392
399
|
NEW_PAGE_AVAILABLE = "NEW_PAGE_AVAILABLE",
|
|
393
400
|
NEW_PAGE_STARTED = "NEW_PAGE_STARTED",
|
|
394
401
|
CLOSE = "CLOSE",
|
|
@@ -397,9 +404,10 @@ export declare enum EventActions {
|
|
|
397
404
|
VIDEO_STARTED = "VIDEO_STARTED",
|
|
398
405
|
VIDEO_STOPPED = "VIDEO_STOPPED",
|
|
399
406
|
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
400
|
-
PROCESS_STARTED = "PROCESS_STARTED",
|
|
401
407
|
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
402
|
-
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
408
|
+
SERVICE_INITIALIZED = "SERVICE_INITIALIZED",
|
|
409
|
+
REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
|
|
410
|
+
REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
|
|
403
411
|
}
|
|
404
412
|
|
|
405
413
|
export declare enum FrameLineCap {
|
|
@@ -472,7 +480,7 @@ export declare type License = {
|
|
|
472
480
|
scenario: Array<TScenarioParams>;
|
|
473
481
|
};
|
|
474
482
|
|
|
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;
|
|
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' | 'uz' | string;
|
|
476
484
|
|
|
477
485
|
export declare const Logger: Logger_2;
|
|
478
486
|
|
|
@@ -487,6 +495,11 @@ declare class Logger_2 {
|
|
|
487
495
|
saveLogs(): void;
|
|
488
496
|
}
|
|
489
497
|
|
|
498
|
+
export declare enum MirrorType {
|
|
499
|
+
mirror = "mirror",
|
|
500
|
+
noMirror = "noMirror"
|
|
501
|
+
}
|
|
502
|
+
|
|
490
503
|
export declare interface NewTransaction {
|
|
491
504
|
ContainerList: ContainerList;
|
|
492
505
|
TransactionInfo: {
|
|
@@ -507,6 +520,7 @@ export declare interface PackageParams {
|
|
|
507
520
|
|
|
508
521
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
509
522
|
metadata?: Record<string, any>;
|
|
523
|
+
delegateURL?: string;
|
|
510
524
|
processParam: DocumentReaderProcessParam;
|
|
511
525
|
imagesList?: Array<DocumentReaderImage>;
|
|
512
526
|
imageInputParam?: ImageInputParamType;
|
|
@@ -543,11 +557,22 @@ declare type TProcessingListener = ({ isProcessing }: {
|
|
|
543
557
|
isProcessing: boolean;
|
|
544
558
|
}) => void;
|
|
545
559
|
|
|
560
|
+
export declare interface TransactionEvent {
|
|
561
|
+
action: EventActions.REMOTE_TRANSACTION_UPLOADED;
|
|
562
|
+
data: GetTransactionsByTagResponse;
|
|
563
|
+
}
|
|
564
|
+
|
|
546
565
|
export declare interface TransactionInfo {
|
|
547
566
|
tag: string;
|
|
548
567
|
transactionId: string;
|
|
549
568
|
}
|
|
550
569
|
|
|
570
|
+
export declare enum TransactionStateStatus {
|
|
571
|
+
STARTED = 0,
|
|
572
|
+
UPLOADED = 1,
|
|
573
|
+
PROCESSED = 2
|
|
574
|
+
}
|
|
575
|
+
|
|
551
576
|
export declare type TScenarioParams = {
|
|
552
577
|
name: string;
|
|
553
578
|
desc: string;
|
|
@@ -585,11 +610,10 @@ export { }
|
|
|
585
610
|
|
|
586
611
|
declare global {
|
|
587
612
|
interface HTMLElementEventMap {
|
|
588
|
-
'document-reader': CustomEvent<DocumentReaderDetailType>;
|
|
613
|
+
'document-reader': CustomEvent<DocumentReaderDetailType | TransactionEvent>;
|
|
589
614
|
'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
|
|
590
615
|
}
|
|
591
616
|
interface Window {
|
|
592
617
|
RegulaDocumentSDK: DocumentReaderService;
|
|
593
618
|
}
|
|
594
619
|
}
|
|
595
|
-
|