@stokr/components-library 0.8.9 → 0.9.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.
Files changed (55) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/Dockerfile +20 -0
  3. package/build/asset-manifest.json +45 -0
  4. package/build/favicon.ico +0 -0
  5. package/build/index.html +1 -0
  6. package/build/logo192.png +0 -0
  7. package/build/logo512.png +0 -0
  8. package/build/manifest.json +25 -0
  9. package/build/robots.txt +3 -0
  10. package/build/static/css/main.e30a9d15.css +15 -0
  11. package/build/static/css/main.e30a9d15.css.map +1 -0
  12. package/build/static/js/main.29d4a625.js +3 -0
  13. package/build/static/js/main.29d4a625.js.LICENSE.txt +164 -0
  14. package/build/static/js/main.29d4a625.js.map +1 -0
  15. package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
  16. package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
  17. package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
  18. package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
  19. package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
  20. package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
  21. package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
  22. package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
  23. package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
  24. package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
  25. package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
  26. package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
  27. package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
  28. package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
  29. package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
  30. package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
  31. package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
  32. package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
  33. package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
  34. package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +21 -0
  35. package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
  36. package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
  37. package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +47 -0
  38. package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
  39. package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
  40. package/build/static/media/lemonway.33e88c3a49e7ac73e3a9.png +0 -0
  41. package/build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg +1 -0
  42. package/build/static/media/slick.2630a3e3eab21c607e21.svg +14 -0
  43. package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
  44. package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
  45. package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
  46. package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
  47. package/buildpushndeploy.sh +9 -0
  48. package/devops/Dockerfile +20 -0
  49. package/devops/Jenkinsfile +56 -0
  50. package/devops/ansible/docker-stack-deploy.yml +32 -0
  51. package/devops/ansible/hosts.ini +7 -0
  52. package/devops/docker-compose.yml +25 -0
  53. package/dist/index.js +1 -1039
  54. package/docker-compose.yml +25 -0
  55. package/package.json +78 -86
@@ -0,0 +1,25 @@
1
+ version: '3.4'
2
+
3
+ networks:
4
+ internal-net-l1:
5
+ external: true
6
+ services:
7
+ components-library:
8
+ image: reg.stokr.io/stokr/components-library:latest
9
+ networks:
10
+ - internal-net-l1
11
+ deploy:
12
+ mode: replicated
13
+ replicas: 1
14
+ placement:
15
+ constraints:
16
+ - node.hostname == node0
17
+ labels:
18
+ - 'traefik.enable=true'
19
+ - 'traefik.http.routers.components-library.rule=Host(`storybook.stokr.io`)'
20
+ - 'traefik.http.routers.components-library.entrypoints=httpsEntryPoint'
21
+ - 'traefik.http.routers.components-library.tls=true'
22
+ # # #### applying the custome middelware to the route, vip.
23
+ #- "traefik.http.routers.components-library.middlewares=customeSecurityHeaders@file, hsts-header@file"
24
+ - 'traefik.http.services.components-library.loadbalancer.server.port=9009'
25
+ - 'traefik.docker.network=internal-net-l1'
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "0.8.9",
3
+ "version": "0.9.0",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "files": [
8
- "dist",
9
- "README.md"
10
- ],
11
6
  "repository": {
12
7
  "type": "git",
13
8
  "url": "http://46.101.229.186:3000/stokr/components-library"
@@ -15,104 +10,104 @@
15
10
  "author": "Marcel Cruz <marcel@stokr.io>",
16
11
  "license": "MIT",
17
12
  "scripts": {
18
- "build": "react-app-rewired build",
19
- "build-storybook": "build-storybook",
13
+ "build": "webpack --mode production",
14
+ "build-storybook": "build-storybook -s public",
20
15
  "build-storybook-docs": "build-storybook -s public --docs",
21
- "build:dist": "cross-env BABEL_ENV=production babel src -d dist",
22
- "test": "react-app-rewired test",
16
+ "test": "react-scripts test",
23
17
  "prepare": "npm run build",
24
- "storybook": "start-storybook -p 6006",
18
+ "storybook": "start-storybook -p 9009 -s public",
25
19
  "start": "npm run storybook",
26
20
  "chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
27
21
  "release": "auto shipit",
28
22
  "pub": "rm -rf ./dist && npm publish --access public"
29
23
  },
30
24
  "dependencies": {
31
- "@fortawesome/fontawesome-svg-core": "^6.3.0",
32
- "@fortawesome/free-solid-svg-icons": "^6.3.0",
33
- "@fortawesome/react-fontawesome": "^0.2.0",
34
- "@randlabs/myalgo-connect": "^1.4.2",
25
+ "@atlaskit/field-range": "^9.0.5",
26
+ "@fortawesome/fontawesome-svg-core": "^1.2.36",
27
+ "@fortawesome/free-solid-svg-icons": "^5.15.3",
28
+ "@fortawesome/react-fontawesome": "^0.1.14",
29
+ "@randlabs/myalgo-connect": "^1.1.1",
30
+ "@reach/router": "^1.3.4",
35
31
  "@stokr/utils": "^1.0.3",
36
- "@testing-library/jest-dom": "^5.16.5",
37
- "@testing-library/react": "^13.4.0",
38
- "@testing-library/user-event": "^14.4.3",
39
- "algosdk": "^2.1.0",
40
- "axios": "^0.27.1",
41
- "bignumber.js": "^9.1.1",
42
- "cross-env": "^7.0.3",
43
- "d3": "^7.8.3",
44
- "date-fns": "^2.29.3",
45
- "formik": "^2.2.9",
46
- "formik-persist": "^1.1.0",
32
+ "@testing-library/jest-dom": "^4.2.4",
33
+ "@testing-library/react": "^9.5.0",
34
+ "@testing-library/user-event": "^7.1.2",
35
+ "algosdk": "^1.12.0",
36
+ "axios": "^0.21.1",
37
+ "bignumber.js": "^9.0.1",
38
+ "formik": "^2.2.8",
47
39
  "js-cookie": "^2.2.1",
48
40
  "mobile-detect": "^1.4.5",
49
- "polished": "^4.2.2",
50
- "prop-types": "^15.8.1",
51
- "react": "^18.2.0",
52
- "react-app-rewired": "^2.2.1",
53
- "react-collapse": "^5.1.1",
54
- "react-copy-to-clipboard": "^5.1.0",
55
- "react-countup": "^6.4.1",
56
- "react-custom-scrollbars-2": "^4.5.0",
57
- "react-day-picker": "^8.5.1",
58
- "react-device-detect": "^2.2.3",
59
- "react-dom": "^18.2.0",
41
+ "polished": "^3.7.1",
42
+ "prop-types": "^15.7.2",
43
+ "react-collapse": "^5.1.0",
44
+ "react-copy-to-clipboard": "^5.0.3",
45
+ "react-countup": "^4.3.3",
46
+ "react-custom-scrollbars": "^4.2.1",
47
+ "react-day-picker": "^7.4.10",
48
+ "react-device-detect": "^2.1.2",
60
49
  "react-helmet": "^6.1.0",
61
- "react-portal": "^4.2.2",
62
- "react-range": "^1.8.14",
63
- "react-router": "^6.8.1",
64
- "react-router-dom": "^6.8.1",
65
- "react-scripts": "5.0.1",
66
- "react-select": "^5.7.0",
67
- "react-slick": "^0.29.0",
50
+ "react-portal": "^4.2.1",
51
+ "react-scripts": "3.4.0",
52
+ "react-slick": "^0.28.1",
68
53
  "react-tippy": "^1.4.0",
69
- "react-transition-group": "^4.4.5",
70
54
  "scroll-to-element": "^2.0.3",
71
- "semantic-ui-css": "^2.5.0",
72
- "semantic-ui-react": "^2.1.4",
55
+ "semantic-ui-css": "^2.4.1",
56
+ "semantic-ui-react": "^2.0.3",
73
57
  "slick-carousel": "^1.8.1",
58
+ "storybook-formik": "^2.3.1",
74
59
  "styled-breakpoints": "^11.1.1",
75
- "styled-components": "^5.3.6",
76
- "support-color": "^7.1.0",
77
- "supports-color": "^9.3.1",
78
- "yup": "^1.0.0"
60
+ "styled-components": "^5.3.0",
61
+ "webpack-node-externals": "^1.7.2",
62
+ "yup": "^0.32.9"
79
63
  },
80
64
  "devDependencies": {
81
- "@babel/cli": "^7.20.7",
82
- "@babel/core": "^7.20.12",
83
- "@babel/preset-env": "^7.20.2",
84
- "@babel/preset-react": "^7.18.6",
85
- "@storybook/addon-actions": "^6.5.16",
86
- "@storybook/addon-essentials": "^6.5.16",
87
- "@storybook/addon-interactions": "^6.5.16",
88
- "@storybook/addon-links": "^6.5.16",
89
- "@storybook/builder-webpack4": "^6.5.16",
90
- "@storybook/builder-webpack5": "^6.5.16",
91
- "@storybook/manager-webpack4": "^6.5.16",
92
- "@storybook/manager-webpack5": "^6.5.16",
93
- "@storybook/react": "^6.5.16",
94
- "@storybook/testing-library": "^0.0.13",
95
- "auto": "^10.42.0",
96
- "babel-loader": "^8.3.0",
97
- "prettier": "^2.8.4",
65
+ "@babel/cli": "^7.14.3",
66
+ "@babel/core": "^7.14.3",
67
+ "@babel/plugin-proposal-class-properties": "^7.13.0",
68
+ "@babel/preset-env": "^7.14.2",
69
+ "@babel/preset-react": "^7.13.13",
70
+ "@storybook/addon-a11y": "^6.4.14",
71
+ "@storybook/addon-actions": "^6.4.14",
72
+ "@storybook/addon-backgrounds": "^6.4.14",
73
+ "@storybook/addon-docs": "^6.4.14",
74
+ "@storybook/addon-essentials": "^6.4.14",
75
+ "@storybook/addon-knobs": "^6.4.0",
76
+ "@storybook/addon-links": "^6.4.14",
77
+ "@storybook/addon-storysource": "^6.4.14",
78
+ "@storybook/addons": "^6.4.14",
79
+ "@storybook/preset-create-react-app": "^1.5.2",
80
+ "@storybook/react": "^6.4.14",
81
+ "auto": "^9.61.0",
82
+ "babel-core": "^7.0.0-bridge.0",
83
+ "babel-eslint": "^10.1.0",
84
+ "babel-jest": "^25.5.1",
85
+ "babel-loader": "^8.2.2",
86
+ "babel-plugin-styled-components": "^1.12.0",
87
+ "cross-env": "^7.0.3",
88
+ "eslint": "^6.8.0",
89
+ "eslint-config-react-app": "^5.2.1",
90
+ "eslint-plugin-flowtype": "^4.7.0",
91
+ "eslint-plugin-import": "^2.23.3",
92
+ "eslint-plugin-jsx-a11y": "^6.4.1",
93
+ "eslint-plugin-react": "^7.23.2",
94
+ "eslint-plugin-react-hooks": "^2.5.1",
95
+ "eslint-plugin-storybook": "^0.5.6",
96
+ "jest": "^25.5.4",
97
+ "prettier": "^1.19.1",
98
+ "react": "^16.14.0",
99
+ "react-dom": "^16.14.0",
100
+ "storybook-chromatic": "^3.5.5",
98
101
  "styled-components.macro": "^1.0.0",
99
- "webpack": "^5.75.0"
102
+ "webpack": "^4.46.0",
103
+ "webpack-cli": "^3.3.12"
104
+ },
105
+ "peerDependencies": {
106
+ "react": "^16.14.0",
107
+ "react-dom": "^16.14.0"
100
108
  },
101
109
  "eslintConfig": {
102
- "extends": [
103
- "react-app",
104
- "react-app/jest"
105
- ],
106
- "overrides": [
107
- {
108
- "files": [
109
- "**/*.stories.*"
110
- ],
111
- "rules": {
112
- "import/no-anonymous-default-export": "off"
113
- }
114
- }
115
- ]
110
+ "extends": "react-app"
116
111
  },
117
112
  "browserslist": {
118
113
  "production": [
@@ -126,9 +121,6 @@
126
121
  "last 1 safari version"
127
122
  ]
128
123
  },
129
- "browser": {
130
- "[module-name]": false
131
- },
132
124
  "bugs": {
133
125
  "url": "https://github.com/stokr-io/components-library/issues"
134
126
  },