@regulaforensics/vp-frontend-document-components 7.5.1870-nightly → 7.5.1871-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 -208
- package/dist/index.d.ts +6 -25
- package/dist/main.iife.js +675 -57
- package/dist/main.js +11546 -16053
- 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,8 +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
50
|
}
|
|
54
51
|
|
|
55
52
|
export declare type CaptureFrameType = {
|
|
@@ -121,7 +118,7 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
|
|
|
121
118
|
disconnectedCallback(): void;
|
|
122
119
|
}
|
|
123
120
|
|
|
124
|
-
export declare type DocumentReaderDetailType = DetailEvent<
|
|
121
|
+
export declare type DocumentReaderDetailType = DetailEvent<EventActions, DocumentReaderResponseType>;
|
|
125
122
|
|
|
126
123
|
export declare interface DocumentReaderImage {
|
|
127
124
|
data: string;
|
|
@@ -323,8 +320,6 @@ export declare interface DocumentTranslations {
|
|
|
323
320
|
largeFile?: string;
|
|
324
321
|
selectSmallerFile?: string;
|
|
325
322
|
versionNotSupported?: string;
|
|
326
|
-
httpNotSupported?: string;
|
|
327
|
-
insecurePageContext?: string;
|
|
328
323
|
updateBrowser?: string;
|
|
329
324
|
licenseError?: string;
|
|
330
325
|
licenseExpired?: string;
|
|
@@ -389,7 +384,6 @@ export declare enum EventActions {
|
|
|
389
384
|
PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
|
|
390
385
|
PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
|
|
391
386
|
PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
|
|
392
|
-
PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
|
|
393
387
|
PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
|
|
394
388
|
PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
|
|
395
389
|
PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
|
|
@@ -405,9 +399,7 @@ export declare enum EventActions {
|
|
|
405
399
|
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
406
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
|
|
|
@@ -515,7 +507,6 @@ export declare interface PackageParams {
|
|
|
515
507
|
|
|
516
508
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
517
509
|
metadata?: Record<string, any>;
|
|
518
|
-
delegateURL?: string;
|
|
519
510
|
processParam: DocumentReaderProcessParam;
|
|
520
511
|
imagesList?: Array<DocumentReaderImage>;
|
|
521
512
|
imageInputParam?: ImageInputParamType;
|
|
@@ -552,22 +543,11 @@ declare type TProcessingListener = ({ isProcessing }: {
|
|
|
552
543
|
isProcessing: boolean;
|
|
553
544
|
}) => void;
|
|
554
545
|
|
|
555
|
-
export declare interface TransactionEvent {
|
|
556
|
-
action: EventActions.REMOTE_TRANSACTION_UPLOADED;
|
|
557
|
-
data: GetTransactionsByTagResponse;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
546
|
export declare interface TransactionInfo {
|
|
561
547
|
tag: string;
|
|
562
548
|
transactionId: string;
|
|
563
549
|
}
|
|
564
550
|
|
|
565
|
-
export declare enum TransactionStateStatus {
|
|
566
|
-
STARTED = 0,
|
|
567
|
-
UPLOADED = 1,
|
|
568
|
-
PROCESSED = 2
|
|
569
|
-
}
|
|
570
|
-
|
|
571
551
|
export declare type TScenarioParams = {
|
|
572
552
|
name: string;
|
|
573
553
|
desc: string;
|
|
@@ -605,10 +585,11 @@ export { }
|
|
|
605
585
|
|
|
606
586
|
declare global {
|
|
607
587
|
interface HTMLElementEventMap {
|
|
608
|
-
'document-reader': CustomEvent<DocumentReaderDetailType
|
|
588
|
+
'document-reader': CustomEvent<DocumentReaderDetailType>;
|
|
609
589
|
'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
|
|
610
590
|
}
|
|
611
591
|
interface Window {
|
|
612
592
|
RegulaDocumentSDK: DocumentReaderService;
|
|
613
593
|
}
|
|
614
594
|
}
|
|
595
|
+
|