@getyoti/react-face-capture 0.4.0 → 1.0.0-beta.2
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/CHANGELOG.md +73 -2
- package/README.md +105 -31
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.js.LICENSE.txt +0 -23
- package/package.json +46 -21
- package/vanilla/index.css +1 -1
- package/vanilla/index.js +1 -1
- package/vanilla/index.js.LICENSE.txt +3 -3
- package/vanilla/index.js.map +1 -1
package/index.js.LICENSE.txt
CHANGED
|
@@ -4,13 +4,6 @@
|
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/*!
|
|
8
|
-
* The buffer module from node.js, for the browser.
|
|
9
|
-
*
|
|
10
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
11
|
-
* @license MIT
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
7
|
/*! *****************************************************************************
|
|
15
8
|
Copyright (c) Microsoft Corporation.
|
|
16
9
|
|
|
@@ -26,22 +19,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
26
19
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27
20
|
***************************************************************************** */
|
|
28
21
|
|
|
29
|
-
/*! exports provided: default */
|
|
30
|
-
|
|
31
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
32
|
-
|
|
33
|
-
/*! no static exports found */
|
|
34
|
-
|
|
35
|
-
/*! react */
|
|
36
|
-
|
|
37
|
-
/*!******************************!*\
|
|
38
|
-
!*** ./src/react-webcam.tsx ***!
|
|
39
|
-
\******************************/
|
|
40
|
-
|
|
41
|
-
/*!**************************************************************************************!*\
|
|
42
|
-
!*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
|
|
43
|
-
\**************************************************************************************/
|
|
44
|
-
|
|
45
22
|
/**
|
|
46
23
|
* @license
|
|
47
24
|
* Copyright 2019 Google LLC. All Rights Reserved.
|
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getyoti/react-face-capture",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"description": "Face capture module to collect picture and data for Yoti AI API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"start": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"build": "
|
|
7
|
+
"start": "start-storybook -p 6006 --no-manager-cache",
|
|
8
|
+
"start:url": "SECURE_PROVIDER_URL=$npm_config_url start-storybook -p 6006 --no-manager-cache",
|
|
9
|
+
"mock": "cd mock && npm start",
|
|
10
|
+
"build": "NODE_ENV=production webpack --config ./tools/webpack-prod-config.babel.js && npm run copy-assets && node ./tools/ignore-webpack-replacement.js dist/index.js",
|
|
11
|
+
"build:storybook": "build-storybook",
|
|
12
|
+
"start:storybook-static": "npm run build && npm run build:storybook && http-server storybook-static -S -C './tools/pem/cert.pem' -K './tools/pem/key.pem'",
|
|
11
13
|
"lint": "prettier 'src/**/*.{js,jsx,json,md,css,scss,html}' --write && eslint --ext .jsx,.js src",
|
|
12
14
|
"lint:fix": "npm run lint -- --fix",
|
|
13
15
|
"test": "jest --config ./tools/jest.config.json",
|
|
14
16
|
"test:watch": "npm run test -- --watch",
|
|
15
17
|
"test:coverage": "npm run test -- --coverage",
|
|
16
18
|
"npm-version": "npm --no-git-tag-version version",
|
|
17
|
-
"audit": "audit-ci -
|
|
19
|
+
"audit": "audit-ci -c -a trim glob-parent node-fetch",
|
|
18
20
|
"updateBrowserSupport": "node ./tools/updateBrowserSupport.js",
|
|
19
|
-
"copy-assets": "cp -f package.json dist
|
|
21
|
+
"copy-assets": "cp -f package.json ./dist/; cp -f CHANGELOG.md ./dist/; cp -f LICENCE.md ./dist/; cp -f docs/integrators.md ./dist/README.md",
|
|
20
22
|
"publishToNpm": "npm publish dist --access=public",
|
|
21
23
|
"publishToNexus": "npm publish dist",
|
|
22
24
|
"publish:check": "npm publish dist --dry-run",
|
|
@@ -29,32 +31,50 @@
|
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"@lingui/macro": "3.6.0",
|
|
31
33
|
"@lingui/react": "3.6.0",
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
+
"@yoti/capture": "file:../capture/dist/capture-protected",
|
|
35
|
+
"axios": "0.24.0",
|
|
34
36
|
"classnames": "2.2.6",
|
|
35
37
|
"face-api.js": "0.22.0",
|
|
36
|
-
"react-
|
|
38
|
+
"react-resize-detector": "7.0.0"
|
|
37
39
|
},
|
|
38
40
|
"peerDependencies": {
|
|
39
|
-
"react": "16.12.0",
|
|
40
|
-
"react-dom": "16.12.0"
|
|
41
|
+
"react": ">=16.12.0 <18",
|
|
42
|
+
"react-dom": ">=16.12.0 <18"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@babel/core": "7.12.3",
|
|
44
|
-
"@babel/eslint-parser": "7.
|
|
46
|
+
"@babel/eslint-parser": "7.16.5",
|
|
45
47
|
"@babel/plugin-proposal-class-properties": "7.12.1",
|
|
48
|
+
"@babel/plugin-transform-modules-commonjs": "7.16.0",
|
|
46
49
|
"@babel/preset-env": "7.12.1",
|
|
47
50
|
"@babel/preset-react": "7.12.5",
|
|
48
51
|
"@babel/register": "7.12.1",
|
|
49
52
|
"@lingui/cli": "3.6.0",
|
|
53
|
+
"@storybook/addon-actions": "6.4.19",
|
|
54
|
+
"@storybook/addon-essentials": "6.4.19",
|
|
55
|
+
"@storybook/addon-links": "6.4.19",
|
|
56
|
+
"@storybook/addon-postcss": "2.0.0",
|
|
57
|
+
"@storybook/addon-storysource": "6.4.19",
|
|
58
|
+
"@storybook/builder-webpack5": "6.4.19",
|
|
59
|
+
"@storybook/manager-webpack5": "6.4.19",
|
|
60
|
+
"@storybook/preset-scss": "1.0.3",
|
|
61
|
+
"@storybook/react": "6.4.19",
|
|
62
|
+
"@svgr/webpack": "5.5.0",
|
|
50
63
|
"@testing-library/jest-dom": "5.11.6",
|
|
51
64
|
"@testing-library/react": "11.1.2",
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
65
|
+
"@testing-library/react-hooks": "7.0.2",
|
|
66
|
+
"@yoti/ui-kit-components-react": "4.0.0-alpha.9",
|
|
67
|
+
"@yoti/webpack-config": "1.0.0-alpha.5",
|
|
68
|
+
"audit-ci": "5.1.2",
|
|
54
69
|
"autoprefixer": "10.0.2",
|
|
55
70
|
"babel-jest": "26.6.3",
|
|
71
|
+
"babel-loader": "8.2.2",
|
|
72
|
+
"babel-plugin-macros": "3.1.0",
|
|
56
73
|
"babel-plugin-module-resolver": "4.0.0",
|
|
57
74
|
"core-js": "3.7.0",
|
|
75
|
+
"cors": "2.8.5",
|
|
76
|
+
"css-hot-loader": "1.4.4",
|
|
77
|
+
"css-loader": "6.2.0",
|
|
58
78
|
"eslint": "7.13.0",
|
|
59
79
|
"eslint-config-airbnb": "18.2.1",
|
|
60
80
|
"eslint-config-prettier": "6.15.0",
|
|
@@ -68,20 +88,25 @@
|
|
|
68
88
|
"eslint-plugin-react": "7.21.5",
|
|
69
89
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
70
90
|
"eslint-plugin-testing-library": "3.10.0",
|
|
71
|
-
"
|
|
91
|
+
"follow-redirects": "1.14.7",
|
|
92
|
+
"http-server": "13.0.0",
|
|
93
|
+
"identity-obj-proxy": "3.0.0",
|
|
72
94
|
"jest": "26.6.3",
|
|
73
|
-
"
|
|
95
|
+
"jest-environment-node": "27.4.2",
|
|
74
96
|
"markdown-table": "2.0.0",
|
|
75
97
|
"modules": "0.4.0",
|
|
76
|
-
"
|
|
98
|
+
"nanoid": "3.2.0",
|
|
99
|
+
"postcss": "8.4.5",
|
|
100
|
+
"postcss-modules": "4.3.0",
|
|
77
101
|
"prettier": "2.1.2",
|
|
102
|
+
"process": "0.11.10",
|
|
78
103
|
"prop-types": "15.7.2",
|
|
79
104
|
"react": "16.12.0",
|
|
80
105
|
"react-dom": "16.12.0",
|
|
81
106
|
"replace-in-file": "6.1.0",
|
|
82
107
|
"sass": "1.29.0",
|
|
83
|
-
"
|
|
84
|
-
"webpack
|
|
85
|
-
"webpack-
|
|
108
|
+
"sass-loader": "12.1.0",
|
|
109
|
+
"webpack": "5.52.0",
|
|
110
|
+
"webpack-cli": "4.8.0"
|
|
86
111
|
}
|
|
87
112
|
}
|
package/vanilla/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._2_U2DYHedfGUyvS1oS5{display:flex;flex-direction:column;overflow:hidden;position:relative}.mteIzegCA0cNMXt96BYN{position:relative}.Ds2gos19dHtdm4Aer1pq,.Va8swWS5S29Uvou7UNnc{height:100%;position:absolute;width:100%}.Ds2gos19dHtdm4Aer1pq{display:flex;justify-content:center;top:0}.x_r8eQXclQHy5Jjno7pU{display:block;height:100%;margin:auto;position:absolute}.HPEPfcUpwWOVOJSPP9R_{box-sizing:border-box;color:#67717f;height:100%;left:0;position:absolute;right:0}.HPEPfcUpwWOVOJSPP9R_._0fft05LhDRetV8QdNSI{color:#39c48e}.HPEPfcUpwWOVOJSPP9R_.JHe4OqVjOOuBZXJn_axE{color:#ffba37}.xsnSbKRs6MZbpP2odJGk{box-sizing:border-box;position:absolute;width:100%}.xsnSbKRs6MZbpP2odJGk.lSsJ_kvBTJOO0shULKLn{height:43.5%;top:28.3%}.xsnSbKRs6MZbpP2odJGk._6X0Zl0a0b8R2wCqGS_K{height:71.7%;top:11.5%}.IpX4dJbHat9i3luoCwef{align-items:start;background-color:#fff;border-radius:.3em;box-shadow:0 8px 15px #333b401a;box-sizing:border-box;color:#333b40;display:flex;font-family:sans-serif;font-size:16px;font-size:var(--message-font-size);font-weight:900;justify-content:start;left:50%;padding:.4em 0;position:absolute;text-align:center}.a_0VmnisbKCGWfubHrmj{margin-bottom:50px;top:4.6%;transform:translate(-50%);width:90%}.CqNtyAmFAcDIeu8mRGPD{top:5.5%;transform:translate(-50%);width:51.25%}.rlF15FcuMGotbEHYe5KW{align-items:start;font-size:calc(var(--message-font-size) + 3px)}._CvVxyqwMB2D7fkKx_NZ{display:flex;justify-content:center;order:1;width:14%}._znJxLRvhRnuCU0KBY3_{order:2;width:72%}.aM6UBOeSFg8vwirw8BEs{position:absolute}.RxkomAqHmrdu47_oGii4{bottom:-8px;box-sizing:border-box;display:grid;font-size:40px;grid-template-columns:repeat(3,80px) 50px;justify-content:center;padding:16px;position:absolute;text-align:center;width:100%}.ZSTtG9h6K6_0_axlDNnV,.__OOQVMtxL3v8uCw9eKy,.hwSkw4zQBundKmrqIwqC{color:#333b40;font-family:sans-serif;font-size:40px;font-weight:700;height:50px;line-height:55px;text-align:center;width:51px}.__OOQVMtxL3v8uCw9eKy{opacity:.5}.Gf_S7QnzULbIZZZ7roY2,.OZI1jG8pdtaOfb2ZsB2n,.XOix2SeWtEFksSSmLt9v{fill:#333b40}.Gf_S7QnzULbIZZZ7roY2 use,.OZI1jG8pdtaOfb2ZsB2n use,.XOix2SeWtEFksSSmLt9v use{fill:inherit}.ZSTtG9h6K6_0_axlDNnV svg,.__OOQVMtxL3v8uCw9eKy svg,.hwSkw4zQBundKmrqIwqC svg{font-size:50px}.Gf_S7QnzULbIZZZ7roY2{opacity:.5}._XKP_3EMO0LKJr53EW21{box-shadow:0 0 3px 1px #0000001c;height:auto;transform:scaleX(-1);width:100%}@keyframes TgYAVlLOGfJ_hl3TBdkC{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.X_Bq5FImnGbO6TLe3Len{align-items:center;display:flex;height:100%;justify-content:center;line-height:0;text-align:center}.WPX6_jcjLpB6aH420ZCd{animation:TgYAVlLOGfJ_hl3TBdkC 1.5s infinite}.bPwt8l_jKvlB2llQ7azY{height:35.71px;width:35.71px}.bPwt8l_jKvlB2llQ7azY use{fill:#333b40}.mtcvKOHbFdRFpAH7ZHwW{align-items:center;background-color:#229dff;border:none;border-radius:5px;color:#fff;cursor:pointer;display:block;display:flex;font-size:14px;font-weight:500;justify-content:center;letter-spacing:.5px;margin:auto;min-width:134px;outline:none;padding:12px 20px;text-transform:uppercase;transition:background-color .15s ease-out 0s;width:100%}.mtcvKOHbFdRFpAH7ZHwW.kYH4ilWb5sFtCcwqD29n{max-width:350px;width:45%}.mtcvKOHbFdRFpAH7ZHwW:hover{background-color:#007ee8}.mtcvKOHbFdRFpAH7ZHwW:disabled{background-color:#88caff}.GusgiqC_1nbmjyHkruu0 use{fill:currentColor}.dDcfK_agfQV9XSYSuuxR{align-items:center;bottom:-8px;box-sizing:border-box;display:inline-block;justify-content:center;padding:16px;position:absolute;text-align:center;width:100%}
|