@regulaforensics/vp-frontend-face-components 1.4.0 → 2.0.0
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 +47 -22
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +19 -20
- package/lib/common/Icon.d.ts +58 -1
- package/lib/common/Message.d.ts +3 -2
- 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 +6 -5
- 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 +14 -10
- 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 +6 -7
- package/lib/constants.d.ts +489 -169
- package/lib/contexts/DocumentAttributesContext.d.ts +25 -0
- package/lib/contexts/DocumentSDKContext.d.ts +8 -0
- package/lib/contexts/FaceAttributesContext.d.ts +11 -10
- package/lib/hoc/withDocumentAttributesContext.d.ts +4 -0
- package/lib/hoc/withDocumentSDKContext.d.ts +3 -0
- package/lib/hoc/withLocalize.d.ts +5 -4
- package/lib/hooks/useDocumentReaderSeries.d.ts +20 -0
- package/lib/hooks/useDocumentReaderSingle.d.ts +15 -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/DocumentReaderProcessor.d.ts +50 -0
- package/lib/services/DocumentReaderService.d.ts +48 -30
- package/lib/services/FaceLivenessService.d.ts +35 -19
- package/lib/services/FaceService.d.ts +34 -6
- 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/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Regula framework agnostic web components to work with webcamera",
|
|
5
|
-
"types": "lib/
|
|
5
|
+
"types": "lib/types.d.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
|
+
"module": "esm/main.js",
|
|
7
8
|
"files": [
|
|
8
|
-
"dist
|
|
9
|
-
"
|
|
9
|
+
"dist",
|
|
10
|
+
"esm",
|
|
11
|
+
"lib"
|
|
10
12
|
],
|
|
11
13
|
"author": "Regula Forensics, Inc.",
|
|
12
14
|
"license": "MIT",
|
|
13
15
|
"homepage": "https://storybook-face.regulaforensics.com/",
|
|
14
16
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"build": "webpack --config webpack.
|
|
17
|
-
"build-face": "npm run clean-lib && npm run generate-face-types && webpack --config webpack.face.js",
|
|
18
|
-
"build-document": "npm run clean-lib && npm run generate-document-types && webpack --config webpack.document.js",
|
|
17
|
+
"build-face": "npm run clean-lib && npm run generate-face-types && webpack --config webpack.face-umd.js",
|
|
18
|
+
"build-document": "npm run clean-lib && npm run generate-document-types && webpack --config webpack.document-umd.js && webpack --config webpack.document-esm.js",
|
|
19
19
|
"storybook": "start-storybook -p 6006 -c .storybook-development -h localhost",
|
|
20
20
|
"build-storybook-development": "build-storybook -c .storybook-development",
|
|
21
21
|
"build-storybook-nightly": "build-storybook -c .storybook-nightly",
|
|
@@ -23,80 +23,77 @@
|
|
|
23
23
|
"build-storybook-document-rc": "build-storybook -c .storybook-rc/document",
|
|
24
24
|
"build-storybook-face-release": "build-storybook -c .storybook-release/face",
|
|
25
25
|
"build-storybook-document-release": "build-storybook -c .storybook-release/document",
|
|
26
|
+
"build-storybook-document-beta": "build-storybook -c .storybook-beta/document",
|
|
27
|
+
"build-storybook-face-beta": "build-storybook -c .storybook-beta/face",
|
|
26
28
|
"generate-dictionaries": "node scripts/xml-dictionary-parser/index.js Translator.xml src/i18n/dictionaries",
|
|
27
|
-
"clean-lib": "
|
|
29
|
+
"clean-lib": "rimraf ./lib",
|
|
28
30
|
"generate-face-types": "tsc --project ./configs/face.tsconfig.json",
|
|
29
|
-
"generate-document-types": "tsc --project ./configs/document.tsconfig.json"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"hooks": {
|
|
33
|
-
"pre-commit": "lint-staged && tsc --noEmit"
|
|
34
|
-
}
|
|
31
|
+
"generate-document-types": "tsc --project ./configs/document.tsconfig.json",
|
|
32
|
+
"prepare": "husky install",
|
|
33
|
+
"check-types": "tsc --noEmit"
|
|
35
34
|
},
|
|
36
35
|
"lint-staged": {
|
|
37
36
|
"*.{js,ts,tsx}": "eslint --fix"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@regulaforensics/document-reader-webclient": "^6.3.1",
|
|
41
39
|
"@regulaforensics/facesdk-webclient": "^3.1.2",
|
|
42
|
-
"@
|
|
43
|
-
"@webcomponents/webcomponentsjs": "^2.6.0",
|
|
44
|
-
"axios": "^0.21.1",
|
|
45
|
-
"base64-arraybuffer": "^0.2.0",
|
|
40
|
+
"@webcomponents/webcomponentsjs": "2.6.0",
|
|
46
41
|
"localize-react": "^1.7.1",
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-device-detect": "^2.
|
|
49
|
-
"react-dom": "^
|
|
50
|
-
"
|
|
51
|
-
"uuid": "^8.3.2",
|
|
52
|
-
"wasm-feature-detect": "^1.2.11"
|
|
42
|
+
"react": "^18.2.0",
|
|
43
|
+
"react-device-detect": "^2.2.2",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
45
|
+
"uuid": "^9.0.0"
|
|
53
46
|
},
|
|
54
47
|
"devDependencies": {
|
|
55
|
-
"@babel/core": "^7.
|
|
56
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
57
|
-
"@babel/preset-env": "^7.
|
|
58
|
-
"@babel/preset-react": "^7.
|
|
59
|
-
"@babel/preset-typescript": "^7.
|
|
60
|
-
"@babel/runtime": "^7.
|
|
48
|
+
"@babel/core": "^7.19.1",
|
|
49
|
+
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
50
|
+
"@babel/preset-env": "^7.19.1",
|
|
51
|
+
"@babel/preset-react": "^7.18.6",
|
|
52
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
53
|
+
"@babel/runtime": "^7.19.0",
|
|
61
54
|
"@regulaforensics/vp-frontend-document-components": "*",
|
|
55
|
+
"@regulaforensics/vp-frontend-document-components-beta": "*",
|
|
62
56
|
"@regulaforensics/vp-frontend-document-components-nightly": "*",
|
|
63
57
|
"@regulaforensics/vp-frontend-document-components-rc": "*",
|
|
64
58
|
"@regulaforensics/vp-frontend-face-components": "*",
|
|
59
|
+
"@regulaforensics/vp-frontend-face-components-beta": "*",
|
|
65
60
|
"@regulaforensics/vp-frontend-face-components-nightly": "*",
|
|
66
61
|
"@regulaforensics/vp-frontend-face-components-rc": "*",
|
|
67
|
-
"@storybook/addon-actions": "6.
|
|
68
|
-
"@storybook/addon-essentials": "6.
|
|
69
|
-
"@storybook/addon-links": "6.
|
|
70
|
-
"@storybook/builder-webpack5": "6.
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@
|
|
73
|
-
"@types/react": "^
|
|
74
|
-
"@types/react-dom": "^
|
|
75
|
-
"@types/uuid": "^8.3.
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
77
|
-
"@typescript-eslint/parser": "^
|
|
78
|
-
"babel-loader": "^8.2.
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"eslint
|
|
83
|
-
"eslint-
|
|
84
|
-
"eslint-plugin-
|
|
85
|
-
"
|
|
62
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
63
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
64
|
+
"@storybook/addon-links": "^6.5.13",
|
|
65
|
+
"@storybook/builder-webpack5": "^6.5.13",
|
|
66
|
+
"@storybook/manager-webpack5": "^6.5.13",
|
|
67
|
+
"@storybook/react": "^6.5.13",
|
|
68
|
+
"@types/react": "^18.0.21",
|
|
69
|
+
"@types/react-dom": "^18.0.6",
|
|
70
|
+
"@types/uuid": "^8.3.4",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^5.38.0",
|
|
72
|
+
"@typescript-eslint/parser": "^5.38.0",
|
|
73
|
+
"babel-loader": "^8.2.5",
|
|
74
|
+
"base64-arraybuffer": "^1.0.2",
|
|
75
|
+
"css-loader": "^6.7.1",
|
|
76
|
+
"dotenv-webpack": "^8.0.1",
|
|
77
|
+
"eslint": "^8.24.0",
|
|
78
|
+
"eslint-config-prettier": "^8.5.0",
|
|
79
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
80
|
+
"eslint-plugin-react": "^7.31.8",
|
|
81
|
+
"fast-xml-parser": "^4.0.10",
|
|
86
82
|
"he": "^1.2.0",
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
83
|
+
"husky": "^8.0.0",
|
|
84
|
+
"lint-staged": "^13.0.3",
|
|
85
|
+
"prettier": "^2.7.1",
|
|
86
|
+
"react-json-view": "^1.21.3",
|
|
87
|
+
"rimraf": "^4.1.2",
|
|
91
88
|
"style-loader": "^2.0.0",
|
|
92
|
-
"terser-webpack-plugin": "^5.3.
|
|
93
|
-
"to-string-loader": "^1.
|
|
94
|
-
"ts-loader": "^
|
|
95
|
-
"typescript": "
|
|
89
|
+
"terser-webpack-plugin": "^5.3.6",
|
|
90
|
+
"to-string-loader": "^1.2.0",
|
|
91
|
+
"ts-loader": "^9.4.1",
|
|
92
|
+
"typescript": "<4.8",
|
|
96
93
|
"url-loader": "^4.1.1",
|
|
97
|
-
"webpack": "^5.
|
|
98
|
-
"webpack-cli": "^4.
|
|
99
|
-
"webpack-dev-server": "^4.
|
|
94
|
+
"webpack": "^5.74.0",
|
|
95
|
+
"webpack-cli": "^4.10.0",
|
|
96
|
+
"webpack-dev-server": "^4.11.1",
|
|
100
97
|
"webpack-merge": "^5.8.0",
|
|
101
98
|
"worker-loader": "^3.0.8"
|
|
102
99
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type InstructionScreenProps = {
|
|
3
|
-
onStart: () => void;
|
|
4
|
-
icon: string;
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
};
|
|
8
|
-
declare function InstructionScreen({ onStart, icon, title, subtitle }: InstructionScreenProps): JSX.Element;
|
|
9
|
-
export default InstructionScreen;
|
package/lib/web-components.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FaceLivenessDetailType, FaceCaptureDetailType, DocumentReaderDetailType, CameraSnapshotDetailType } from './types';
|
|
3
|
-
export declare global {
|
|
4
|
-
namespace JSX {
|
|
5
|
-
interface IntrinsicElements {
|
|
6
|
-
'face-liveness': IFaceLiveness;
|
|
7
|
-
'face-capture': IFaceDetection;
|
|
8
|
-
'document-reader': IDocumentReader;
|
|
9
|
-
'camera-snapshot': ICameraSnapshot;
|
|
10
|
-
'fullscreen-container': IBaseComponent;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
interface IBaseComponent extends React.RefAttributes<Node>, React.AllHTMLAttributes<string | number | boolean>, Pick<Element, any> {
|
|
14
|
-
locale?: string;
|
|
15
|
-
copyright?: boolean;
|
|
16
|
-
'camera-id'?: string;
|
|
17
|
-
}
|
|
18
|
-
interface IDocumentBaseComponent extends IBaseComponent {
|
|
19
|
-
'start-screen'?: boolean;
|
|
20
|
-
multiple?: boolean;
|
|
21
|
-
}
|
|
22
|
-
interface IFaceLiveness extends Omit<IBaseComponent, 'headers'> {
|
|
23
|
-
url?: string;
|
|
24
|
-
debug?: boolean;
|
|
25
|
-
mode?: number;
|
|
26
|
-
headers?: string | {
|
|
27
|
-
[key: string]: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
interface IDocumentReader extends IDocumentBaseComponent {
|
|
31
|
-
'internal-scenario'?: string;
|
|
32
|
-
'multipage-processing'?: boolean;
|
|
33
|
-
license?: string;
|
|
34
|
-
url?: string;
|
|
35
|
-
}
|
|
36
|
-
interface IFaceDetection extends IBaseComponent {
|
|
37
|
-
debug?: boolean;
|
|
38
|
-
}
|
|
39
|
-
type ICameraSnapshot = IDocumentBaseComponent;
|
|
40
|
-
}
|
|
41
|
-
export interface ICustomEventListener<T> extends EventListener {
|
|
42
|
-
(evt: CustomEvent<T>): void;
|
|
43
|
-
}
|
|
44
|
-
export interface ICustomEvent<T = any> extends Event {
|
|
45
|
-
readonly detail?: T;
|
|
46
|
-
}
|
|
47
|
-
export type { FaceLivenessDetailType, FaceCaptureDetailType, DocumentReaderDetailType, CameraSnapshotDetailType };
|