@regulaforensics/vp-frontend-document-components 7.5.1875-nightly → 7.5.1877-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 +123 -210
- package/dist/index.d.ts +6 -32
- package/dist/main.iife.js +675 -57
- package/dist/main.js +11661 -16108
- 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;
|
|
@@ -325,8 +320,6 @@ export declare interface DocumentTranslations {
|
|
|
325
320
|
largeFile?: string;
|
|
326
321
|
selectSmallerFile?: string;
|
|
327
322
|
versionNotSupported?: string;
|
|
328
|
-
httpNotSupported?: string;
|
|
329
|
-
insecurePageContext?: string;
|
|
330
323
|
updateBrowser?: string;
|
|
331
324
|
licenseError?: string;
|
|
332
325
|
licenseExpired?: string;
|
|
@@ -391,7 +384,6 @@ export declare enum EventActions {
|
|
|
391
384
|
PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
|
|
392
385
|
PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
|
|
393
386
|
PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
|
|
394
|
-
PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
|
|
395
387
|
PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
|
|
396
388
|
PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
|
|
397
389
|
PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
|
|
@@ -407,9 +399,7 @@ export declare enum EventActions {
|
|
|
407
399
|
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
408
400
|
PROCESS_STARTED = "PROCESS_STARTED",
|
|
409
401
|
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
410
|
-
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
411
|
-
REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
|
|
412
|
-
REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
|
|
402
|
+
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
413
403
|
}
|
|
414
404
|
|
|
415
405
|
export declare enum FrameLineCap {
|
|
@@ -482,7 +472,7 @@ export declare type License = {
|
|
|
482
472
|
scenario: Array<TScenarioParams>;
|
|
483
473
|
};
|
|
484
474
|
|
|
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' |
|
|
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;
|
|
486
476
|
|
|
487
477
|
export declare const Logger: Logger_2;
|
|
488
478
|
|
|
@@ -497,11 +487,6 @@ declare class Logger_2 {
|
|
|
497
487
|
saveLogs(): void;
|
|
498
488
|
}
|
|
499
489
|
|
|
500
|
-
export declare enum MirrorType {
|
|
501
|
-
mirror = "mirror",
|
|
502
|
-
noMirror = "noMirror"
|
|
503
|
-
}
|
|
504
|
-
|
|
505
490
|
export declare interface NewTransaction {
|
|
506
491
|
ContainerList: ContainerList;
|
|
507
492
|
TransactionInfo: {
|
|
@@ -522,7 +507,6 @@ export declare interface PackageParams {
|
|
|
522
507
|
|
|
523
508
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
524
509
|
metadata?: Record<string, any>;
|
|
525
|
-
delegateURL?: string;
|
|
526
510
|
processParam: DocumentReaderProcessParam;
|
|
527
511
|
imagesList?: Array<DocumentReaderImage>;
|
|
528
512
|
imageInputParam?: ImageInputParamType;
|
|
@@ -559,22 +543,11 @@ declare type TProcessingListener = ({ isProcessing }: {
|
|
|
559
543
|
isProcessing: boolean;
|
|
560
544
|
}) => void;
|
|
561
545
|
|
|
562
|
-
export declare interface TransactionEvent {
|
|
563
|
-
action: EventActions.REMOTE_TRANSACTION_UPLOADED;
|
|
564
|
-
data: GetTransactionsByTagResponse;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
546
|
export declare interface TransactionInfo {
|
|
568
547
|
tag: string;
|
|
569
548
|
transactionId: string;
|
|
570
549
|
}
|
|
571
550
|
|
|
572
|
-
export declare enum TransactionStateStatus {
|
|
573
|
-
STARTED = 0,
|
|
574
|
-
UPLOADED = 1,
|
|
575
|
-
PROCESSED = 2
|
|
576
|
-
}
|
|
577
|
-
|
|
578
551
|
export declare type TScenarioParams = {
|
|
579
552
|
name: string;
|
|
580
553
|
desc: string;
|
|
@@ -612,10 +585,11 @@ export { }
|
|
|
612
585
|
|
|
613
586
|
declare global {
|
|
614
587
|
interface HTMLElementEventMap {
|
|
615
|
-
'document-reader': CustomEvent<DocumentReaderDetailType
|
|
588
|
+
'document-reader': CustomEvent<DocumentReaderDetailType>;
|
|
616
589
|
'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
|
|
617
590
|
}
|
|
618
591
|
interface Window {
|
|
619
592
|
RegulaDocumentSDK: DocumentReaderService;
|
|
620
593
|
}
|
|
621
594
|
}
|
|
595
|
+
|