@cfpb/ccdb5-ui 2.5.1 → 2.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfpb/ccdb5-ui",
3
- "version": "2.5.1",
3
+ "version": "2.7.0",
4
4
  "description": "Consumer Complaint Database UI",
5
5
  "homepage": "https://www.consumerfinance.gov/",
6
6
  "repository": {
@@ -17,13 +17,15 @@
17
17
  "dist/*"
18
18
  ],
19
19
  "scripts": {
20
- "build": "node scripts/build.js",
21
- "dev-flow": "node scripts/test.js --env=jsdom --coverage --watch",
20
+ "analyze": "craco build; source-map-explorer 'build/static/js/*.js'",
21
+ "build": "NODE_ENV=production ./scripts/build.sh",
22
+ "eject": "react-scripts eject",
22
23
  "lint": "yarn prettier \"src/**/*.{js,jsx,ts,tsx,json,md}\" --write && yarn eslint ./src --fix && yarn stylelint \"src/**/*.{css,less}\" --fix && yarn lint:cypress",
24
+ "lint:cypress": "yarn eslint ./cypress --fix",
25
+ "prepare": "husky install",
23
26
  "release": "yarn run build && release-it --npm.skipChecks",
24
- "start": "node scripts/start.js",
25
- "test": "node scripts/test.js --env=jsdom --coverage",
26
- "lint:cypress": "yarn eslint ./cypress --fix"
27
+ "start": "NODE_ENV=development craco start",
28
+ "test": "craco test --coverage --watchAll=false"
27
29
  },
28
30
  "browserslist": [
29
31
  ">0.2%",
@@ -32,112 +34,99 @@
32
34
  "not ie > 0"
33
35
  ],
34
36
  "devDependencies": {
35
- "@babel/core": "^7.19.3",
36
- "@babel/eslint-parser": "^7.19.1",
37
- "@babel/preset-env": "^7.19.3",
38
- "@babel/preset-react": "^7.18.6",
39
- "@svgr/webpack": "4.3.2",
40
- "@testing-library/react": "^13.4.0",
41
- "autoprefixer": "^10.4.12",
42
- "babel-jest": "^27.4.5",
43
- "babel-loader": "^8.2.5",
44
- "babel-plugin-named-asset-import": "^0.3.6",
45
- "babel-runtime": "^6.20.0",
37
+ "@babel/cli": "^7.22.5",
38
+ "@babel/core": "^7.22.5",
39
+ "@babel/eslint-parser": "^7.22.5",
40
+ "@babel/preset-react": "^7.22.5",
41
+ "@babel/runtime": "^7.22.5",
42
+ "@cfpb/cfpb-atomic-component": "0.27.0",
43
+ "@cfpb/cfpb-buttons": "0.27.0",
44
+ "@cfpb/cfpb-core": "0.27.0",
45
+ "@cfpb/cfpb-design-system": "^0.27.1",
46
+ "@cfpb/cfpb-expandables": "^0.17.12",
47
+ "@cfpb/cfpb-forms": "0.27.0",
48
+ "@cfpb/cfpb-grid": "0.27.0",
49
+ "@cfpb/cfpb-icons": "0.27.0",
50
+ "@cfpb/cfpb-layout": "0.27.1",
51
+ "@cfpb/cfpb-notifications": "0.27.0",
52
+ "@cfpb/cfpb-pagination": "0.27.0",
53
+ "@cfpb/cfpb-tables": "0.27.0",
54
+ "@cfpb/cfpb-typography": "0.27.0",
55
+ "@craco/craco": "^6.4.3",
56
+ "@reduxjs/toolkit": "^1.8.5",
57
+ "@testing-library/cypress": "^8.0.3",
58
+ "@testing-library/jest-dom": "^5.16.5",
59
+ "@testing-library/react": "13.4.0",
60
+ "@testing-library/user-event": "^14.4.3",
46
61
  "britecharts": "git+https://github.com/cfpb/britecharts.git#v2.4.2",
47
- "camelcase": "^5.2.0",
48
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
49
- "cf-buttons": "^4.3.0",
50
- "cf-core": "^4.2.0",
51
- "cf-expandables": "^4.1.2",
52
- "cf-forms": "^10.2.1",
53
- "cf-grid": "^4.1.0",
54
- "cf-icons": "^10.2.1",
55
- "cf-layout": "^4.2.0",
56
- "cf-pagination": "^4.1.1",
57
- "cf-tables": "^4.1.1",
58
- "cf-typography": "^4.1.0",
59
- "chalk": "2.2.0",
60
62
  "coveralls": "^3.0.9",
61
- "cross-spawn": "5.1.0",
62
- "css-loader": "2.1.1",
63
- "cssnano": "^5.1.13",
64
- "cypress": "^10.7.0",
63
+ "craco-less": "^2.0.0",
64
+ "cypress": "^10.10.0",
65
65
  "d3": "^5.12.0",
66
66
  "d3-selection": "^1.4.0",
67
67
  "dayjs": "^1.10.7",
68
- "dotenv": "6.2.0",
69
- "dotenv-expand": "4.2.0",
70
68
  "enzyme": "^3.11.0",
71
69
  "enzyme-adapter-react-16": "^1.15.2",
72
- "eslint": "^8.23.1",
73
- "eslint-config-prettier": "^8.5.0",
74
- "eslint-plugin-cypress": "^2.12.1",
75
- "eslint-plugin-flowtype": "^8.0.3",
76
- "eslint-plugin-import": "^2.26.0",
77
- "eslint-plugin-jsdoc": "^39.3.6",
78
- "eslint-plugin-jsx-a11y": "^6.6.1",
79
- "eslint-plugin-react": "^7.31.8",
80
- "eslint-plugin-react-hooks": "^4.6.0",
70
+ "eslint": "^8.43.0",
71
+ "eslint-config-prettier": "^8.8.0",
72
+ "eslint-config-react-app": "^7.0.1",
73
+ "eslint-plugin-cypress": "^2.13.3",
74
+ "eslint-plugin-jsdoc": "^46.2.6",
81
75
  "eslint-plugin-react-redux": "^4.0.0",
82
- "eslint-webpack-plugin": "^3.2.0",
83
- "file-loader": "3.0.1",
84
- "fs-extra": "7.0.1",
85
76
  "highcharts": "9.2.2",
86
77
  "history": "^4.10.1",
87
- "html-webpack-plugin": "^5.5.0",
78
+ "husky": "^8.0.1",
88
79
  "identity-obj-proxy": "3.0.0",
89
- "ignore-loader": "^0.1.2",
90
80
  "intro.js": "^6.0.0",
91
81
  "intro.js-react": "0.6.0",
92
- "is-wsl": "^1.1.0",
93
- "jest": "28.1.3",
94
- "jest-environment-jsdom": "28.1.3",
95
- "json-loader": "0.5.7",
96
- "less": "^3.11.1",
97
- "less-loader": "^4.0.5",
82
+ "jest": "29.5.0",
83
+ "jest-environment-jsdom": "29.5.0",
84
+ "jest-fetch-mock": "^3.0.3",
85
+ "less": "^4.1.3",
86
+ "less-plugin-clean-css": "^1.5.1",
87
+ "lint-staged": "^13.2.2",
98
88
  "lodash": "^4.17.21",
99
- "mini-css-extract-plugin": "^2.6.1",
89
+ "mini-css-extract-plugin": "^2.7.6",
100
90
  "mockdate": "^3.0.5",
101
- "object-assign": "4.1.1",
102
- "optimize-css-assets-webpack-plugin": "^6.0.1",
103
- "pnp-webpack-plugin": "^1.7.0",
104
- "postcss": "^8.4.16",
91
+ "postcss": "^8.4.24",
105
92
  "postcss-less": "^6.0.0",
106
- "postcss-loader": "^7.0.1",
107
93
  "postcss-preset-env": "^7.8.2",
108
94
  "postcss-safe-parser": "^6.0.0",
109
- "prettier": "^2.7.1",
95
+ "prettier": "^2.8.8",
110
96
  "prop-types": "^15.5.10",
111
97
  "query-string": "^5.0.0",
112
- "react": "16.14.0",
113
- "react-dev-utils": "^12.0.1",
114
- "react-dom": "16.14.0",
115
- "react-intl": "^2.4.0",
116
- "react-modal": "^3.11.2",
98
+ "react": "^18.2.0",
99
+ "react-bootstrap-typeahead": "^6.0.0",
100
+ "react-dom": "^18.2.0",
101
+ "react-intl": "^6.2.0",
102
+ "react-modal": "^3.16.1",
117
103
  "react-redux": "^7.2.0",
118
- "react-router": "^5.1.2",
119
- "react-router-dom": "^5.1.2",
104
+ "react-router-dom": "^6.4.0",
120
105
  "react-scripts": "^5.0.1",
121
- "react-test-renderer": "^16.14.0",
106
+ "react-test-renderer": "^18.2.0",
122
107
  "redux": "^4.0.5",
123
108
  "redux-devtools-extension": "^2.13.2",
124
109
  "redux-mock-store": "^1.5.4",
125
110
  "redux-thunk": "^2.2.0",
126
- "release-it": "^15.4.2",
127
- "resolve": "1.12.0",
128
- "resolve-url-loader": "3.1.0",
129
- "string-replace-loader": "^1.2.0",
130
- "style-loader": "1.0.0",
131
- "stylelint": "^14.11.0",
132
- "stylelint-config-recommended-less": "^1.0.4",
133
- "terser-webpack-plugin": "^5.3.6",
134
- "ts-pnp": "1.1.2",
135
- "url-loader": "2.1.0",
136
- "webpack": "^5.74.0",
137
- "webpack-dev-server": "^4.11.0"
111
+ "release-it": "^15.11.0",
112
+ "string-replace-loader": "^3.1.0",
113
+ "stylelint": "^14.14.0",
114
+ "stylelint-config-recommended-less": "^1.0.4"
115
+ },
116
+ "lint-staged": {
117
+ "src/**/*.{css,less}": [
118
+ "stylelint --fix"
119
+ ],
120
+ "{cypress,src}/**/*.{js,jsx,ts,tsx,json,md}": [
121
+ "prettier --write"
122
+ ],
123
+ "{cypress,src}/**/*.{js,jsx,ts,tsx}": [
124
+ "eslint --fix"
125
+ ]
138
126
  },
139
127
  "publishConfig": {
140
128
  "access": "public",
141
129
  "registry": "https://registry.npmjs.org/"
142
- }
130
+ },
131
+ "proxy": "http://localhost:8000"
143
132
  }