@regulaforensics/vp-frontend-face-components 1.4.0 → 2.0.1
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 +60 -23
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +28 -19
- package/lib/common/Button.d.ts +2 -2
- package/lib/common/Icon.d.ts +58 -1
- package/lib/common/Message.d.ts +5 -4
- package/lib/common/NoGlareIconLivenessDetection.d.ts +5 -0
- package/lib/common/NoSmilingIconLivenessDetection.d.ts +5 -0
- package/lib/common/PortraitOrientationOnlyIcon.d.ts +6 -0
- package/lib/common/RegulaLogoLivenessDetection.d.ts +5 -0
- package/lib/components/ButtonFaceLiveness.d.ts +7 -0
- package/lib/components/CameraCapture.d.ts +9 -0
- package/lib/components/CameraSnapshot.d.ts +2 -0
- package/lib/components/CameraSnapshotFileCapture.d.ts +10 -0
- package/lib/components/DocumentCapture.d.ts +11 -0
- package/lib/components/DocumentContainer.d.ts +11 -0
- package/lib/components/DocumentReader.d.ts +2 -0
- package/lib/components/DocumentReaderFileCapture.d.ts +12 -0
- package/lib/components/DocumentReaderLayout.d.ts +22 -0
- package/lib/components/DocumentReaderStartScreen.d.ts +10 -0
- package/lib/components/ErrorBoundary.d.ts +10 -9
- package/lib/components/FaceCapture.d.ts +17 -9
- package/lib/components/FaceFullScreenOverlay.d.ts +2 -3
- package/lib/components/FaceHintAnimaition.d.ts +16 -0
- package/lib/components/FaceLayout.d.ts +16 -12
- package/lib/components/InfoScreen.d.ts +2 -1
- package/lib/components/InfoScreenFaceLiveness.d.ts +12 -0
- package/lib/components/InstructionVideoScreen.d.ts +9 -0
- package/lib/components/ProcessScreenFaceLiveness.d.ts +6 -0
- package/lib/components/RetryScreenFaceLiveness.d.ts +7 -0
- package/lib/components/SectorAnimationSvg.d.ts +11 -0
- package/lib/components/WebCamera.d.ts +8 -9
- package/lib/constants.d.ts +471 -169
- package/lib/contexts/DocumentAttributesContext.d.ts +25 -0
- package/lib/contexts/DocumentSDKContext.d.ts +8 -0
- package/lib/contexts/FaceAttributesContext.d.ts +14 -12
- package/lib/hoc/withDocumentAttributesContext.d.ts +4 -0
- package/lib/hoc/withDocumentSDKContext.d.ts +3 -0
- package/lib/hoc/withFaceAttributesContext.d.ts +2 -2
- package/lib/hoc/withLocalize.d.ts +6 -5
- package/lib/hooks/useDocumentReaderSeries.d.ts +19 -0
- package/lib/hooks/useDocumentReaderSingle.d.ts +14 -0
- package/lib/hooks/useFaceLiveness.d.ts +34 -26
- package/lib/hooks/useImageInputParam.d.ts +7 -0
- package/lib/hooks/useStateCallback.d.ts +1 -0
- package/lib/hooks/useStream.d.ts +3 -9
- package/lib/i18n/dictionaries/_dictionaries.d.ts +2212 -1988
- package/lib/index-document.d.ts +4 -0
- package/lib/media-resources/resourcesBase64.d.ts +7 -0
- package/lib/models/CameraModel.d.ts +2 -2
- package/lib/models/CustomError.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/authenticity.d.ts +32 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/fiber.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/ident.d.ts +8 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/image-ident.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/index.d.ts +5 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/ocr-security-text.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/security-feature.d.ts +8 -0
- package/lib/models/DocReaderWebclient/ext/images.d.ts +16 -0
- package/lib/models/DocReaderWebclient/ext/index.d.ts +6 -0
- package/lib/models/DocReaderWebclient/ext/process-request-image.d.ts +5 -0
- package/lib/models/DocReaderWebclient/ext/process-request.d.ts +38 -0
- package/lib/models/DocReaderWebclient/ext/process-response.d.ts +36 -0
- package/lib/models/DocReaderWebclient/ext/text-field.d.ts +40 -0
- package/lib/models/DocReaderWebclient/ext/text.d.ts +14 -0
- package/lib/models/DocReaderWebclient/models/area-array.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/area-container.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-list.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-result-item.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-result.d.ts +43 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result-type.d.ts +33 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/bc-pdf417-info.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/bc-roidetect.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/check-diagnose.d.ts +98 -0
- package/lib/models/DocReaderWebclient/models/check-result.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/container-list.d.ts +45 -0
- package/lib/models/DocReaderWebclient/models/critical.d.ts +26 -0
- package/lib/models/DocReaderWebclient/models/cross-source-value-comparison.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/data-module.d.ts +48 -0
- package/lib/models/DocReaderWebclient/models/details-optical.d.ts +67 -0
- package/lib/models/DocReaderWebclient/models/details-rfid.d.ts +61 -0
- package/lib/models/DocReaderWebclient/models/device-info.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info-all-of.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-field.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-info.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-format.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/document-image-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-image-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/document-image.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/document-position-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-position-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/document-position.d.ts +80 -0
- package/lib/models/DocReaderWebclient/models/document-type-recognition-result.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/document-type.d.ts +246 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-list.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult-all-of.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/fdsidlist.d.ts +80 -0
- package/lib/models/DocReaderWebclient/models/fiber-result-all-of.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/fiber-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/graphic-field-type.d.ts +118 -0
- package/lib/models/DocReaderWebclient/models/graphic-field.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/graphic-fields-list.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/graphics-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/graphics-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/ident-result-all-of.d.ts +65 -0
- package/lib/models/DocReaderWebclient/models/ident-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/image-data.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/image-qa.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check-list.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check-type.d.ts +50 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check.d.ts +64 -0
- package/lib/models/DocReaderWebclient/models/image-quality-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/image-quality-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/images-available-source.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/images-field-value.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/images-field.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/images-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/images-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/images.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/index.d.ts +123 -0
- package/lib/models/DocReaderWebclient/models/lcid.d.ts +582 -0
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/license-result-all-of.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/license-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/light.d.ts +34 -0
- package/lib/models/DocReaderWebclient/models/list-verified-fields.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/log-level.d.ts +23 -0
- package/lib/models/DocReaderWebclient/models/measure-system.d.ts +26 -0
- package/lib/models/DocReaderWebclient/models/mrzformat.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result-all-of.d.ts +81 -0
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/one-candidate.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/original-symbol.d.ts +37 -0
- package/lib/models/DocReaderWebclient/models/parray-field.d.ts +81 -0
- package/lib/models/DocReaderWebclient/models/per-document-config.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/photo-ident-result-all-of.d.ts +76 -0
- package/lib/models/DocReaderWebclient/models/photo-ident-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/point-array.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/point.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/points-container.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/process-params.d.ts +254 -0
- package/lib/models/DocReaderWebclient/models/process-request-image.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/process-request.d.ts +60 -0
- package/lib/models/DocReaderWebclient/models/process-response.d.ts +66 -0
- package/lib/models/DocReaderWebclient/models/process-system-info.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/processing-status.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/raw-image-container-list.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/rectangle-coordinates.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/result-item.d.ts +48 -0
- package/lib/models/DocReaderWebclient/models/result.d.ts +98 -0
- package/lib/models/DocReaderWebclient/models/rfid-location.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/rfid-origin.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/scenario.d.ts +36 -0
- package/lib/models/DocReaderWebclient/models/security-feature-result-all-of.d.ts +59 -0
- package/lib/models/DocReaderWebclient/models/security-feature-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/security-feature-type.d.ts +49 -0
- package/lib/models/DocReaderWebclient/models/source-validity.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/source.d.ts +23 -0
- package/lib/models/DocReaderWebclient/models/status-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/status-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/status.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/string-recognition-result.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/symbol-candidate.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/symbol-recognition-result.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/text-available-source.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/text-data-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/text-data-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/text-field-type.d.ts +2386 -0
- package/lib/models/DocReaderWebclient/models/text-field-value.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/text-field.d.ts +84 -0
- package/lib/models/DocReaderWebclient/models/text-post-processing.d.ts +22 -0
- package/lib/models/DocReaderWebclient/models/text-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/text-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/text.d.ts +51 -0
- package/lib/models/DocReaderWebclient/models/transaction-info.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/verification-result.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/verified-field-map.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/visibility.d.ts +23 -0
- package/lib/services/DebugService.d.ts +4 -0
- package/lib/services/DeviceOrientationService.d.ts +18 -0
- package/lib/services/DocumentReaderProcessor.d.ts +43 -0
- package/lib/services/DocumentReaderService.d.ts +30 -32
- package/lib/services/FaceLivenessService.d.ts +43 -19
- package/lib/services/FaceService.d.ts +36 -8
- package/lib/services/StreamRecorderService.d.ts +24 -0
- package/lib/types.d.ts +261 -119
- package/lib/utils.d.ts +17 -52
- package/lib/web-components/CameraSnapshot.d.ts +14 -0
- package/lib/web-components/DocumentReader.d.ts +14 -0
- package/lib/web-components/FaceDetection.d.ts +3 -3
- package/lib/web-components/FaceLiveness.d.ts +7 -4
- package/lib/web-components/FullScreenContainer.d.ts +1 -1
- package/package.json +59 -62
- package/lib/common/InstructionIconFaceDetection.d.ts +0 -5
- package/lib/common/InstructionIconFaceLiveness.d.ts +0 -5
- package/lib/common/NoGlareIcon.d.ts +0 -5
- package/lib/common/NoSmilingIcon.d.ts +0 -5
- package/lib/components/InstructionScreen.d.ts +0 -9
- package/lib/components/RetryScreen.d.ts +0 -7
- package/lib/hooks/useDebounce.d.ts +0 -2
- package/lib/hooks/useInterval.d.ts +0 -3
- package/lib/services/WasmFeatureDetectService.d.ts +0 -4
- package/lib/web-components.d.ts +0 -47
package/dist/main.js.LICENSE.txt
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
6
2
|
|
|
7
3
|
/**
|
|
8
|
-
@license
|
|
9
|
-
|
|
10
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
11
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
12
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
13
|
-
Code distributed by Google as part of the polymer project is also
|
|
14
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/** @license React v0.20.2
|
|
18
|
-
* scheduler.production.min.js
|
|
4
|
+
* @license React
|
|
5
|
+
* react-dom.production.min.js
|
|
19
6
|
*
|
|
20
7
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
8
|
*
|
|
@@ -23,8 +10,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
23
10
|
* LICENSE file in the root directory of this source tree.
|
|
24
11
|
*/
|
|
25
12
|
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
13
|
+
/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-jsx-runtime.production.min.js
|
|
28
16
|
*
|
|
29
17
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
18
|
*
|
|
@@ -32,7 +20,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
32
20
|
* LICENSE file in the root directory of this source tree.
|
|
33
21
|
*/
|
|
34
22
|
|
|
35
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* @license React
|
|
36
25
|
* react.production.min.js
|
|
37
26
|
*
|
|
38
27
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -40,3 +29,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
40
29
|
* This source code is licensed under the MIT license found in the
|
|
41
30
|
* LICENSE file in the root directory of this source tree.
|
|
42
31
|
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @license React
|
|
35
|
+
* scheduler.production.min.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
@license @nocompile
|
|
45
|
+
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
46
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
47
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
48
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
49
|
+
Code distributed by Google as part of the polymer project is also
|
|
50
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
51
|
+
*/
|
package/lib/common/Button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
declare type ButtonProps = {
|
|
3
|
-
children:
|
|
3
|
+
children: ReactNode | string;
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
};
|
|
6
6
|
declare function Button({ children, onClick, ...rest }: ButtonProps): JSX.Element;
|
package/lib/common/Icon.d.ts
CHANGED
|
@@ -1,6 +1,63 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import FullscreenIcon from './FullscreenIcon';
|
|
3
|
+
import FullscreenExitIcon from './FullscreenExitIcon';
|
|
4
|
+
import CheckIcon from './CheckIcon';
|
|
5
|
+
import ErrorIcon from './ErrorIcon';
|
|
6
|
+
import CrossIcon from './CrossIcon';
|
|
7
|
+
import RegulaLogo from './RegulaLogo';
|
|
8
|
+
import BackCameraIcon from './BackCameraIcon';
|
|
9
|
+
import FrontCameraIcon from './FrontCameraIcon';
|
|
10
|
+
import CameraIcon from './CameraIcon';
|
|
11
|
+
import VerifiedIcon from './VerifiedIcon';
|
|
12
|
+
import FromCameraIcon from './FromCameraIcon';
|
|
13
|
+
import FromGalleryIcon from './FromGalleryIcon';
|
|
14
|
+
import DocReaderSearch from './DocReaderSearch';
|
|
15
|
+
import DocReaderProcessingFinished from './DocReaderProcessingFinished';
|
|
16
|
+
import DocReaderProcessingError from './DocReaderProcessingError';
|
|
17
|
+
import DocReaderProcessing from './DocReaderProcessing';
|
|
18
|
+
import DocReaderFlip from './DocReaderFlip';
|
|
19
|
+
import DocReaderCameraDisabled from './DocReaderCameraDisabled';
|
|
20
|
+
import DocReaderCameraPreparing from './DocReaderCameraPreparing';
|
|
21
|
+
import SnapshotIcon from './SnapshotIcon';
|
|
22
|
+
import SquareIcon from './SquareIcon';
|
|
23
|
+
import StopIcon from './StopIcon';
|
|
24
|
+
import NoSmilingIconLivenessDetection from './NoSmilingIconLivenessDetection';
|
|
25
|
+
import NoGlareIconLivenessDetection from './NoGlareIconLivenessDetection';
|
|
26
|
+
import CameraChangeIcon from './CameraChangeIcon';
|
|
27
|
+
import RegulaLogoLivenessDetection from './RegulaLogoLivenessDetection';
|
|
28
|
+
import PortraitOrientationOnlyIcon from './PortraitOrientationOnlyIcon';
|
|
29
|
+
declare const icons: {
|
|
30
|
+
fullscreen: typeof FullscreenIcon;
|
|
31
|
+
verified: typeof VerifiedIcon;
|
|
32
|
+
check: typeof CheckIcon;
|
|
33
|
+
error: typeof ErrorIcon;
|
|
34
|
+
cross: typeof CrossIcon;
|
|
35
|
+
snapshot: typeof SnapshotIcon;
|
|
36
|
+
square: typeof SquareIcon;
|
|
37
|
+
stop: typeof StopIcon;
|
|
38
|
+
'regula-logo': typeof RegulaLogo;
|
|
39
|
+
'regula-logo-liveness-detection': typeof RegulaLogoLivenessDetection;
|
|
40
|
+
'back-camera': typeof BackCameraIcon;
|
|
41
|
+
'front-camera': typeof FrontCameraIcon;
|
|
42
|
+
'camera-logo': typeof CameraIcon;
|
|
43
|
+
'fullscreen-exit': typeof FullscreenExitIcon;
|
|
44
|
+
'no-smiling-liveness-detection': typeof NoSmilingIconLivenessDetection;
|
|
45
|
+
'no-glare-liveness-detection': typeof NoGlareIconLivenessDetection;
|
|
46
|
+
'from-camera': typeof FromCameraIcon;
|
|
47
|
+
'from-gallery': typeof FromGalleryIcon;
|
|
48
|
+
'docreader-search': typeof DocReaderSearch;
|
|
49
|
+
'docreader-processing-finished': typeof DocReaderProcessingFinished;
|
|
50
|
+
'docreader-processing-error': typeof DocReaderProcessingError;
|
|
51
|
+
'docreader-processing': typeof DocReaderProcessing;
|
|
52
|
+
'docreader-flip': typeof DocReaderFlip;
|
|
53
|
+
'docreader-camera-disabled': typeof DocReaderCameraDisabled;
|
|
54
|
+
'docreader-camera-preparing': typeof DocReaderCameraPreparing;
|
|
55
|
+
'camera-change': typeof CameraChangeIcon;
|
|
56
|
+
'portrait-orientation-only': typeof PortraitOrientationOnlyIcon;
|
|
57
|
+
};
|
|
58
|
+
export declare type TIcons = keyof typeof icons;
|
|
2
59
|
declare function Icon({ type, size, color }: {
|
|
3
|
-
type:
|
|
60
|
+
type: TIcons;
|
|
4
61
|
size?: number;
|
|
5
62
|
color?: string;
|
|
6
63
|
}): JSX.Element;
|
package/lib/common/Message.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare type MessageProps = {
|
|
3
|
-
children:
|
|
3
|
+
children: string;
|
|
4
|
+
isLivenessDetection?: boolean;
|
|
4
5
|
};
|
|
5
|
-
declare function Message({ children }: MessageProps): JSX.Element;
|
|
6
|
-
declare const _default:
|
|
6
|
+
declare function Message({ children, isLivenessDetection }: MessageProps): JSX.Element;
|
|
7
|
+
declare const _default: import("react").MemoExoticComponent<typeof Message>;
|
|
7
8
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type ButtonLivenessDetectionProps = {
|
|
3
|
+
children: ReactNode | string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
};
|
|
6
|
+
declare function ButtonFaceLiveness({ children, onClick, ...rest }: ButtonLivenessDetectionProps): JSX.Element;
|
|
7
|
+
export default ButtonFaceLiveness;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DocumentCompletionStatus } from '../constants';
|
|
3
|
+
import { CaptureType } from '../types';
|
|
4
|
+
declare type CameraCaptureProps = {
|
|
5
|
+
onStatusChange: (completionStatus: DocumentCompletionStatus) => void;
|
|
6
|
+
onCapture: (capture: CaptureType) => void;
|
|
7
|
+
};
|
|
8
|
+
declare function CameraCapture({ onStatusChange, onCapture }: CameraCaptureProps): JSX.Element;
|
|
9
|
+
export default CameraCapture;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DocumentCompletionStatus } from '../constants';
|
|
3
|
+
import { CaptureType } from '../types';
|
|
4
|
+
declare type DocumentReaderFileCaptureProps = {
|
|
5
|
+
onStatusChange: (completionStatus: DocumentCompletionStatus) => void;
|
|
6
|
+
onCapture: (capture: CaptureType) => void;
|
|
7
|
+
images: FileList | null;
|
|
8
|
+
};
|
|
9
|
+
declare function CameraSnapshotFileCapture({ onStatusChange, onCapture, images }: DocumentReaderFileCaptureProps): JSX.Element;
|
|
10
|
+
export default CameraSnapshotFileCapture;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DocumentCompletionStatus } from '../constants';
|
|
3
|
+
import { Response as DocumentReaderResponseType } from '../models/DocReaderWebclient/ext';
|
|
4
|
+
declare type DocumentCaptureProps = {
|
|
5
|
+
onResponse: (res: DocumentReaderResponseType) => void;
|
|
6
|
+
onStatusChange: (statusData: DocumentCompletionStatus) => void;
|
|
7
|
+
onFileImageSet: (images: Array<ImageData> | null) => void;
|
|
8
|
+
};
|
|
9
|
+
declare function DocumentCapture({ onResponse, onStatusChange, onFileImageSet }: DocumentCaptureProps): JSX.Element;
|
|
10
|
+
declare const _default: import("react").MemoExoticComponent<typeof DocumentCapture>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DirectionType, DocumentCompletionStatus } from '../constants';
|
|
3
|
+
declare type DocumentFullScreenOverlayProps = {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
children: JSX.Element;
|
|
6
|
+
completionStatus?: DocumentCompletionStatus;
|
|
7
|
+
copyright?: boolean;
|
|
8
|
+
direction: DirectionType;
|
|
9
|
+
};
|
|
10
|
+
declare function DocumentContainer({ onClose, children, completionStatus, copyright, direction, }: DocumentFullScreenOverlayProps): JSX.Element;
|
|
11
|
+
export default DocumentContainer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DocumentCompletionStatus, InternalScenarios } from '../constants';
|
|
3
|
+
import { Response as DocumentReaderResponseType } from '../models/DocReaderWebclient/ext';
|
|
4
|
+
declare type DocumentReaderFileCaptureProps = {
|
|
5
|
+
onStatusChange: (completionStatus: DocumentCompletionStatus) => void;
|
|
6
|
+
onResponse: (response: DocumentReaderResponseType) => void;
|
|
7
|
+
images: FileList | Array<ImageData> | null;
|
|
8
|
+
scenario?: InternalScenarios;
|
|
9
|
+
license?: string;
|
|
10
|
+
};
|
|
11
|
+
declare function DocumentReaderFileCapture({ onStatusChange, onResponse, images, scenario, license, }: DocumentReaderFileCaptureProps): JSX.Element;
|
|
12
|
+
export default DocumentReaderFileCapture;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DocumentCaptureStatus } from '../constants';
|
|
3
|
+
import { ImageInputParamType, VideoParamsType, VideoStatusParamsType } from '../types';
|
|
4
|
+
declare type DocumentReaderLayoutProps = {
|
|
5
|
+
status: DocumentCaptureStatus;
|
|
6
|
+
isServiceInitialized: boolean;
|
|
7
|
+
children: JSX.Element | null;
|
|
8
|
+
mirroring: boolean;
|
|
9
|
+
onChangeMirroring: () => void;
|
|
10
|
+
onChangeCamera: () => void;
|
|
11
|
+
videoStatusParams: VideoStatusParamsType;
|
|
12
|
+
videoElementParams: VideoParamsType;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
onSnapshotProcess?: () => void;
|
|
15
|
+
onCameraSnapshot?: () => void;
|
|
16
|
+
onSkip?: () => void;
|
|
17
|
+
frameParams?: ImageInputParamType;
|
|
18
|
+
showChangeCameraButton?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare function DocumentReaderLayout({ status, isServiceInitialized, children, mirroring, onChangeMirroring, onChangeCamera, videoStatusParams, videoElementParams, onClose, onSnapshotProcess, onCameraSnapshot, onSkip, frameParams, showChangeCameraButton, }: DocumentReaderLayoutProps): JSX.Element;
|
|
21
|
+
declare const _default: import("react").MemoExoticComponent<typeof DocumentReaderLayout>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type DocumentReaderStartScreenProps = {
|
|
3
|
+
onStart: () => void;
|
|
4
|
+
onFileImageSet: (images: FileList | null) => void;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare function DocumentReaderStartScreen({ onStart, onFileImageSet, title, subtitle, multiple, }: DocumentReaderStartScreenProps): JSX.Element;
|
|
10
|
+
export default DocumentReaderStartScreen;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { ErrorTypes } from '../constants';
|
|
2
|
+
import { SupportedBrowserVersionsByOsType } from '../types';
|
|
3
|
+
import CustomError from '../models/CustomError';
|
|
4
|
+
import { Component, ReactNode } from 'react';
|
|
4
5
|
declare type PropsType = {
|
|
5
|
-
children:
|
|
6
|
-
onError: (error:
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
onError: (error: ErrorTypes) => void;
|
|
7
8
|
supportedBrowserVersions?: SupportedBrowserVersionsByOsType;
|
|
8
9
|
};
|
|
9
|
-
declare class ErrorBoundary extends
|
|
10
|
-
onError: (error:
|
|
10
|
+
declare class ErrorBoundary extends Component<PropsType> {
|
|
11
|
+
onError: (error: ErrorTypes) => void;
|
|
11
12
|
supportedBrowserVersions?: SupportedBrowserVersionsByOsType;
|
|
12
13
|
constructor(props: PropsType);
|
|
13
|
-
componentDidCatch(error: Error |
|
|
14
|
+
componentDidCatch(error: Error | CustomError): void;
|
|
14
15
|
componentDidMount(): void;
|
|
15
|
-
render():
|
|
16
|
+
render(): ReactNode;
|
|
16
17
|
}
|
|
17
18
|
export default ErrorBoundary;
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare type
|
|
4
|
-
onStatusChange: (
|
|
1
|
+
import { FaceAbortSessionStatus, FaceCompletionStatus } from '../constants';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
declare type FaceCapturePropsLivenessDetection = {
|
|
4
|
+
onStatusChange: (completionStatus: FaceCompletionStatus) => void;
|
|
5
5
|
onImagesCapture: (images: Array<string>) => void;
|
|
6
|
-
onVideoStatusChange: (streamStatus: streamStatus) => void;
|
|
7
6
|
onReset: () => void;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
setSessionId?: (id: string) => void;
|
|
9
|
+
setTransactionId?: (id: string) => void;
|
|
10
|
+
setPublicKey?: (id: string) => void;
|
|
11
11
|
onRequestChange?: (request: Uint8Array | null) => void;
|
|
12
12
|
faceSnapshot?: boolean;
|
|
13
13
|
debug?: boolean;
|
|
14
14
|
showChangeCameraButton?: boolean;
|
|
15
|
+
backendUrl?: string;
|
|
16
|
+
userCameraId?: string;
|
|
17
|
+
setUserCameraId: Dispatch<SetStateAction<string | undefined>>;
|
|
18
|
+
onRestart: (forceCapture?: boolean) => void;
|
|
19
|
+
abortProcess?: boolean;
|
|
20
|
+
setAbortProcess?: Dispatch<SetStateAction<boolean>>;
|
|
21
|
+
setAbortSessionStatus?: Dispatch<SetStateAction<FaceAbortSessionStatus | null>>;
|
|
22
|
+
videoRecording?: boolean;
|
|
15
23
|
};
|
|
16
|
-
declare function FaceCapture({ onStatusChange, onImagesCapture,
|
|
24
|
+
declare function FaceCapture({ onStatusChange, onImagesCapture, onReset, sessionId, setSessionId, onRequestChange, faceSnapshot, debug, showChangeCameraButton, setTransactionId, setPublicKey, backendUrl, userCameraId, setUserCameraId, onRestart, abortProcess, setAbortProcess, setAbortSessionStatus, videoRecording, }: FaceCapturePropsLivenessDetection): JSX.Element;
|
|
17
25
|
export default FaceCapture;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DirectionType
|
|
2
|
+
import { DirectionType } from '../constants';
|
|
3
3
|
declare type FaceFullScreenOverlayProps = {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
children: JSX.Element;
|
|
6
|
-
completionStatus: faceCaptureComplitionStatus;
|
|
7
6
|
copyright?: boolean;
|
|
8
7
|
direction: DirectionType;
|
|
9
8
|
};
|
|
10
|
-
declare function FaceFullScreenOverlay({ onClose, children,
|
|
9
|
+
declare function FaceFullScreenOverlay({ onClose, children, copyright, direction }: FaceFullScreenOverlayProps): JSX.Element;
|
|
11
10
|
export default FaceFullScreenOverlay;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FacePositionLivenessDetection } from '../types';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
declare type FaceHintAnimaitionProps = {
|
|
4
|
+
targetSector: number;
|
|
5
|
+
roundRadiusX?: number;
|
|
6
|
+
roundRadiusY: number;
|
|
7
|
+
isFaceAnimation: boolean;
|
|
8
|
+
setCameraBlur: (toggle: boolean) => void;
|
|
9
|
+
isSectorMode: boolean;
|
|
10
|
+
message: number;
|
|
11
|
+
facePosition: FacePositionLivenessDetection;
|
|
12
|
+
centerX: number;
|
|
13
|
+
centerY: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const FaceHintAnimaition: FC<FaceHintAnimaitionProps>;
|
|
16
|
+
export {};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { FrameObject } from '../types';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FaceMessage } from '../constants';
|
|
3
|
+
import { FacePositionLivenessDetection, FrameObject, VideoStatusParamsType } from '../types';
|
|
4
4
|
declare type FaceLayoutProps = {
|
|
5
|
-
children:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
message: eFL_Message;
|
|
10
|
-
messageStyle: eFL_MessageStyle;
|
|
5
|
+
children: JSX.Element | null;
|
|
6
|
+
captureFrame: FrameObject;
|
|
7
|
+
videoStatusParams: VideoStatusParamsType;
|
|
8
|
+
message: FaceMessage;
|
|
11
9
|
prepared: boolean;
|
|
12
10
|
onChangeCamera: () => void;
|
|
13
|
-
|
|
11
|
+
readiness: number;
|
|
12
|
+
step: number;
|
|
13
|
+
numSectors: number;
|
|
14
|
+
currSector: number;
|
|
15
|
+
targetSector: number | undefined;
|
|
14
16
|
breakpoint?: string;
|
|
15
17
|
showChangeCameraButton?: boolean;
|
|
18
|
+
facePosition: FacePositionLivenessDetection;
|
|
19
|
+
faceSnapshot: boolean | undefined;
|
|
16
20
|
};
|
|
17
|
-
declare function FaceLayout({ children,
|
|
18
|
-
declare const _default:
|
|
21
|
+
declare function FaceLayout({ children, captureFrame, videoStatusParams, message, prepared, onChangeCamera, readiness, numSectors, currSector, targetSector, step, showChangeCameraButton, facePosition, faceSnapshot, }: FaceLayoutProps): JSX.Element;
|
|
22
|
+
declare const _default: import("react").MemoExoticComponent<typeof FaceLayout>;
|
|
19
23
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TIcons } from '../common/Icon';
|
|
3
|
+
declare type InfoScreenFaceLivenessProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
type: TIcons;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
onReset?: () => void;
|
|
8
|
+
size?: number;
|
|
9
|
+
iconColor?: string;
|
|
10
|
+
};
|
|
11
|
+
declare function InfoScreenFaceLiveness({ title, type, subtitle, onReset, size, iconColor }: InfoScreenFaceLivenessProps): JSX.Element;
|
|
12
|
+
export default InfoScreenFaceLiveness;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type InstructionVideoScreenProps = {
|
|
3
|
+
onStart: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
videoSrc: string;
|
|
7
|
+
};
|
|
8
|
+
declare function InstructionVideoScreen({ onStart, title, subtitle, videoSrc }: InstructionVideoScreenProps): JSX.Element;
|
|
9
|
+
export default InstructionVideoScreen;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type RetryScreenFaceLivenessProps = {
|
|
3
|
+
errorCode: number;
|
|
4
|
+
onReset: () => void;
|
|
5
|
+
};
|
|
6
|
+
declare function RetryScreenFaceLiveness({ errorCode, onReset }: RetryScreenFaceLivenessProps): JSX.Element;
|
|
7
|
+
export default RetryScreenFaceLiveness;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface SectorAnimationSvgProps {
|
|
3
|
+
numSectors: number;
|
|
4
|
+
targetSector: number;
|
|
5
|
+
currSector: number;
|
|
6
|
+
centerX: number;
|
|
7
|
+
centerY: number;
|
|
8
|
+
sectorRadius: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const SectorAnimationSvg: FC<SectorAnimationSvgProps>;
|
|
11
|
+
export {};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CameraFacingMode, ErrorTypes } from '../constants';
|
|
3
|
+
import { VideoParamsType, VideoStatusParamsType } from '../types';
|
|
4
4
|
declare type WebCameraVideoProps = {
|
|
5
|
-
captureMode: webCameraComponentMode;
|
|
6
5
|
onVideoStatusChange: (status: VideoStatusParamsType) => void;
|
|
7
|
-
onCapture: (document: CaptureFrameType) => void;
|
|
8
6
|
onVideoSizeChange?: (params: VideoParamsType) => void;
|
|
9
|
-
mode?:
|
|
7
|
+
mode?: CameraFacingMode;
|
|
10
8
|
resolution?: {
|
|
11
9
|
width: number;
|
|
12
10
|
height: number;
|
|
13
11
|
};
|
|
14
12
|
mirroring?: boolean;
|
|
15
|
-
onFailStatus?: (reason:
|
|
13
|
+
onFailStatus?: (reason: ErrorTypes) => void;
|
|
16
14
|
cameraId?: string;
|
|
15
|
+
videoRecording?: boolean;
|
|
17
16
|
};
|
|
18
|
-
declare function WebCamera({
|
|
19
|
-
declare const _default:
|
|
17
|
+
declare function WebCamera({ onVideoStatusChange, onVideoSizeChange, mode, resolution, mirroring, onFailStatus, cameraId, videoRecording, }: WebCameraVideoProps): JSX.Element;
|
|
18
|
+
declare const _default: import("react").MemoExoticComponent<typeof WebCamera>;
|
|
20
19
|
export default _default;
|