@getyoti/react-face-capture 0.5.0 → 1.0.0-beta.3

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.
@@ -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,60 +1,56 @@
1
1
  {
2
2
  "name": "@getyoti/react-face-capture",
3
- "version": "0.5.0",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Face capture module to collect picture and data for Yoti AI API",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "start": "NODE_ENV=development webpack-dev-server --config ./tools/webpack-dev-config.babel.js",
8
- "build:react": "NODE_ENV=production webpack --config ./tools/webpack-prod-config.babel.js && npm run copy-assets",
9
- "build:vanilla": "cd ./vanilla-face-capture && npm run build && cp -R ./dist/ ../dist/vanilla/",
10
- "build": "npm run build:react && npm run build:vanilla",
11
- "lint": "prettier 'src/**/*.{js,jsx,json,md,css,scss,html}' --write && eslint --ext .jsx,.js src",
12
- "lint:fix": "npm run lint -- --fix",
13
- "test": "jest --config ./tools/jest.config.json",
14
- "test:watch": "npm run test -- --watch",
15
- "test:coverage": "npm run test -- --coverage",
16
- "npm-version": "npm --no-git-tag-version version",
17
- "audit": "audit-ci -h",
18
- "updateBrowserSupport": "node ./tools/updateBrowserSupport.js",
19
- "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
- "publishToNpm": "npm publish dist --access=public",
21
- "publishToNexus": "npm publish dist",
22
- "publish:check": "npm publish dist --dry-run",
23
- "lingui:extract": "lingui extract --clean",
24
- "lingui:compile": "lingui compile --strict --verbose",
25
- "lingui:build": "npm run lingui:extract && npm run lingui:compile"
26
- },
27
6
  "author": "Yoti LTD",
28
7
  "license": "Yoti Face Capture Licence",
29
8
  "dependencies": {
30
9
  "@lingui/macro": "3.6.0",
31
10
  "@lingui/react": "3.6.0",
32
- "@svgr/parcel-plugin-svgr": "5.1.0",
33
- "babel-plugin-macros": "3.0.1",
11
+ "axios": "0.24.0",
34
12
  "classnames": "2.2.6",
35
13
  "face-api.js": "0.22.0",
36
- "react-webcam": "4.1.1"
14
+ "react-resize-detector": "7.0.0"
37
15
  },
38
16
  "peerDependencies": {
39
- "react": "16.12.0",
40
- "react-dom": "16.12.0"
17
+ "react": ">=16.12.0 <18",
18
+ "react-dom": ">=16.12.0 <18"
41
19
  },
42
20
  "devDependencies": {
43
21
  "@babel/core": "7.12.3",
44
- "@babel/eslint-parser": "7.12.1",
22
+ "@babel/eslint-parser": "7.16.5",
45
23
  "@babel/plugin-proposal-class-properties": "7.12.1",
24
+ "@babel/plugin-transform-modules-commonjs": "7.16.0",
46
25
  "@babel/preset-env": "7.12.1",
47
26
  "@babel/preset-react": "7.12.5",
48
27
  "@babel/register": "7.12.1",
49
28
  "@lingui/cli": "3.6.0",
29
+ "@storybook/addon-actions": "6.4.19",
30
+ "@storybook/addon-essentials": "6.4.19",
31
+ "@storybook/addon-links": "6.4.19",
32
+ "@storybook/addon-postcss": "2.0.0",
33
+ "@storybook/addon-storysource": "6.4.19",
34
+ "@storybook/builder-webpack5": "6.4.19",
35
+ "@storybook/manager-webpack5": "6.4.19",
36
+ "@storybook/preset-scss": "1.0.3",
37
+ "@storybook/react": "6.4.19",
38
+ "@svgr/webpack": "5.5.0",
50
39
  "@testing-library/jest-dom": "5.11.6",
51
40
  "@testing-library/react": "11.1.2",
52
- "@yoti/webpack-config": "0.1.0-alpha.9",
53
- "audit-ci": "3.1.1",
41
+ "@testing-library/react-hooks": "7.0.2",
42
+ "@yoti/ui-kit-components-react": "4.0.0-alpha.9",
43
+ "@yoti/webpack-config": "1.0.0-alpha.5",
44
+ "audit-ci": "5.1.2",
54
45
  "autoprefixer": "10.0.2",
55
46
  "babel-jest": "26.6.3",
47
+ "babel-loader": "8.2.2",
48
+ "babel-plugin-macros": "3.1.0",
56
49
  "babel-plugin-module-resolver": "4.0.0",
57
50
  "core-js": "3.7.0",
51
+ "cors": "2.8.5",
52
+ "css-hot-loader": "1.4.4",
53
+ "css-loader": "6.2.0",
58
54
  "eslint": "7.13.0",
59
55
  "eslint-config-airbnb": "18.2.1",
60
56
  "eslint-config-prettier": "6.15.0",
@@ -68,20 +64,25 @@
68
64
  "eslint-plugin-react": "7.21.5",
69
65
  "eslint-plugin-react-hooks": "4.2.0",
70
66
  "eslint-plugin-testing-library": "3.10.0",
71
- "husky": "4.3.8",
67
+ "follow-redirects": "1.14.7",
68
+ "http-server": "13.0.0",
69
+ "identity-obj-proxy": "3.0.0",
72
70
  "jest": "26.6.3",
73
- "lint-staged": "9.5.0",
71
+ "jest-environment-node": "27.4.2",
74
72
  "markdown-table": "2.0.0",
75
73
  "modules": "0.4.0",
76
- "postcss-modules": "1.5.0",
74
+ "nanoid": "3.2.0",
75
+ "postcss": "8.4.5",
76
+ "postcss-modules": "4.3.0",
77
77
  "prettier": "2.1.2",
78
+ "process": "0.11.10",
78
79
  "prop-types": "15.7.2",
79
80
  "react": "16.12.0",
80
81
  "react-dom": "16.12.0",
81
82
  "replace-in-file": "6.1.0",
82
83
  "sass": "1.29.0",
83
- "webpack": "4.44.2",
84
- "webpack-cli": "3.3.12",
85
- "webpack-dev-server": "3.11.0"
84
+ "sass-loader": "12.1.0",
85
+ "webpack": "5.52.0",
86
+ "webpack-cli": "4.8.0"
86
87
  }
87
- }
88
+ }
package/vanilla/index.css CHANGED
@@ -1 +1 @@
1
- ._1BAMDen_YLcifIe4T1Qv-_{display:flex;height:100%;justify-content:center;position:absolute;top:0;width:100%}._1e9w5ipw5j_XUcEv_CJUlO{display:block;height:100%;margin:auto;position:absolute}._2W6OS2MmM9HFQCXWdJ8ASr{box-sizing:border-box;position:absolute}._2W6OS2MmM9HFQCXWdJ8ASr._2R1kfrIDlFyYzv1nDgZcTN{height:43.5%;top:28.3%}._2W6OS2MmM9HFQCXWdJ8ASr.TwXhRfznW400Ln2BpPUbd{height:71.7%;top:11.5%}._3UWaUYYyQc5VbvW6HKIRHv{align-items:center;box-sizing:border-box;color:#333b40;display:flex;font-family:sans-serif;font-size:24px;font-weight:900;height:2em;justify-content:center;padding:0 23px;position:absolute;text-align:center;top:12px;width:100%}._3UWaUYYyQc5VbvW6HKIRHv._2degJvmXASrj_NvC6CXWqN{top:0}._1Tg9slZrrhpko8KnDP7C6X{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%}@media(min-width:628px){._1Tg9slZrrhpko8KnDP7C6X{max-width:350px;width:45%}}._1Tg9slZrrhpko8KnDP7C6X:hover{background-color:#007ee8}._1Tg9slZrrhpko8KnDP7C6X:disabled{background-color:#88caff}._1Fm1wq10kVJMKVxtWwkZex use{fill:currentColor}._309CoDF8kNC59Cacci2i3u{align-items:center;bottom:-8px;box-sizing:border-box;display:inline-block;justify-content:center;padding:16px;position:absolute;text-align:center;width:100%}.vNKPZsVtPwMoITxtjuu9V{position:absolute}.tUn9t5uXBW0G4uOuaTOqA{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%}._1fIU1q1Zn5Q8C9xn0Ir-dW,._2mwc0c5WhPOqV9wJk9VkGV,._3JRt0WWENWRFRoNQBy35fI{color:#333b40;font-family:sans-serif;font-size:40px;font-weight:700;height:50px;line-height:55px;text-align:center;width:51px}._2mwc0c5WhPOqV9wJk9VkGV{opacity:.5}._1RzxXrRIq2Q9MbP1nZJdM9,._2_g_DOxWE8kqzFMzKyK37t,._3mr2-PKNrqmyEJlyzqUVvx{fill:#333b40}._1RzxXrRIq2Q9MbP1nZJdM9 use,._2_g_DOxWE8kqzFMzKyK37t use,._3mr2-PKNrqmyEJlyzqUVvx use{fill:inherit}._1fIU1q1Zn5Q8C9xn0Ir-dW svg,._2mwc0c5WhPOqV9wJk9VkGV svg,._3JRt0WWENWRFRoNQBy35fI svg{font-size:50px}._1RzxXrRIq2Q9MbP1nZJdM9{opacity:.5}._3GqInLQ5XsRTU_HmqqchW9{box-shadow:0 0 3px 1px #0000001c;height:auto;transform:scaleX(-1)}._3Ums-OZ0qWebWj0SZbqYjT{display:flex;flex-direction:column;overflow:hidden;position:relative}.IOOd58zY5WSnpJo3-6iVV{position:relative}
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%}