@getyoti/react-face-capture 1.0.0-beta.2 → 1.1.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/CHANGELOG.md +77 -0
- package/README.md +33 -33
- package/index.css +1 -1
- package/index.d.ts +181 -0
- package/index.js +1 -1
- package/package.json +6 -28
- package/vanilla/index.css +1 -1
- package/vanilla/index.js +1 -1
- package/vanilla/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,37 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getyoti/react-face-capture",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Face capture module to collect picture and data for Yoti AI API",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"
|
|
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'",
|
|
13
|
-
"lint": "prettier 'src/**/*.{js,jsx,json,md,css,scss,html}' --write && eslint --ext .jsx,.js src",
|
|
14
|
-
"lint:fix": "npm run lint -- --fix",
|
|
15
|
-
"test": "jest --config ./tools/jest.config.json",
|
|
16
|
-
"test:watch": "npm run test -- --watch",
|
|
17
|
-
"test:coverage": "npm run test -- --coverage",
|
|
18
|
-
"npm-version": "npm --no-git-tag-version version",
|
|
19
|
-
"audit": "audit-ci -c -a trim glob-parent node-fetch",
|
|
20
|
-
"updateBrowserSupport": "node ./tools/updateBrowserSupport.js",
|
|
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",
|
|
22
|
-
"publishToNpm": "npm publish dist --access=public",
|
|
23
|
-
"publishToNexus": "npm publish dist",
|
|
24
|
-
"publish:check": "npm publish dist --dry-run",
|
|
25
|
-
"lingui:extract": "lingui extract --clean",
|
|
26
|
-
"lingui:compile": "lingui compile --strict --verbose",
|
|
27
|
-
"lingui:build": "npm run lingui:extract && npm run lingui:compile"
|
|
28
|
-
},
|
|
6
|
+
"typings": "index.d.ts",
|
|
29
7
|
"author": "Yoti LTD",
|
|
30
8
|
"license": "Yoti Face Capture Licence",
|
|
31
9
|
"dependencies": {
|
|
32
10
|
"@lingui/macro": "3.6.0",
|
|
33
11
|
"@lingui/react": "3.6.0",
|
|
34
|
-
"@yoti/capture": "file:../capture/dist/capture-protected",
|
|
35
12
|
"axios": "0.24.0",
|
|
36
13
|
"classnames": "2.2.6",
|
|
37
14
|
"face-api.js": "0.22.0",
|
|
@@ -65,7 +42,7 @@
|
|
|
65
42
|
"@testing-library/react-hooks": "7.0.2",
|
|
66
43
|
"@yoti/ui-kit-components-react": "4.0.0-alpha.9",
|
|
67
44
|
"@yoti/webpack-config": "1.0.0-alpha.5",
|
|
68
|
-
"audit-ci": "
|
|
45
|
+
"audit-ci": "6.1.2",
|
|
69
46
|
"autoprefixer": "10.0.2",
|
|
70
47
|
"babel-jest": "26.6.3",
|
|
71
48
|
"babel-loader": "8.2.2",
|
|
@@ -75,6 +52,7 @@
|
|
|
75
52
|
"cors": "2.8.5",
|
|
76
53
|
"css-hot-loader": "1.4.4",
|
|
77
54
|
"css-loader": "6.2.0",
|
|
55
|
+
"detect-browser": "5.3.0",
|
|
78
56
|
"eslint": "7.13.0",
|
|
79
57
|
"eslint-config-airbnb": "18.2.1",
|
|
80
58
|
"eslint-config-prettier": "6.15.0",
|
|
@@ -89,7 +67,7 @@
|
|
|
89
67
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
90
68
|
"eslint-plugin-testing-library": "3.10.0",
|
|
91
69
|
"follow-redirects": "1.14.7",
|
|
92
|
-
"http-server": "
|
|
70
|
+
"http-server": "14.1.0",
|
|
93
71
|
"identity-obj-proxy": "3.0.0",
|
|
94
72
|
"jest": "26.6.3",
|
|
95
73
|
"jest-environment-node": "27.4.2",
|
|
@@ -109,4 +87,4 @@
|
|
|
109
87
|
"webpack": "5.52.0",
|
|
110
88
|
"webpack-cli": "4.8.0"
|
|
111
89
|
}
|
|
112
|
-
}
|
|
90
|
+
}
|
package/vanilla/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.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%}._XKP_3EMO0LKJr53EW21{height:auto;transform:scaleX(-1);width:100%}._cYL8AOtgycwZXRT1onC{min-height:300px}.bX5GJJw3AqsCwBDA6qWZ{visibility:hidden}.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}.aM6UBOeSFg8vwirw8BEs{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%}@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}.Ds2gos19dHtdm4Aer1pq{display:flex;height:100%;justify-content:center;position:absolute;top:0;width:100%}.x_r8eQXclQHy5Jjno7pU{display:block;height:100%;margin:auto;position:absolute}.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%}._2_U2DYHedfGUyvS1oS5{display:flex;flex-direction:column;overflow:hidden;position:relative}.mteIzegCA0cNMXt96BYN{position:relative}.Va8swWS5S29Uvou7UNnc{height:100%;position:absolute;width:100%}
|