gov-ui-core 1.0.25 → 1.0.27

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.
@@ -10,7 +10,7 @@ object-assign
10
10
  http://jedwatson.github.io/classnames
11
11
  */
12
12
 
13
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
13
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
14
14
 
15
15
  /**
16
16
  * @license
@@ -52,7 +52,7 @@ object-assign
52
52
  */
53
53
 
54
54
  /**
55
- * @remix-run/router v1.21.1
55
+ * @remix-run/router v1.23.0
56
56
  *
57
57
  * Copyright (c) Remix Software Inc.
58
58
  *
@@ -63,7 +63,7 @@ object-assign
63
63
  */
64
64
 
65
65
  /**
66
- * React Router v6.28.2
66
+ * React Router v6.30.1
67
67
  *
68
68
  * Copyright (c) Remix Software Inc.
69
69
  *
package/package.json CHANGED
@@ -1,57 +1,138 @@
1
1
  {
2
2
  "name": "gov-ui-core",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
+ "repository": "https://github.com/liamyoon/gov-ui-core",
4
5
  "main": "./build/index.js",
5
6
  "module": "./build/index.js",
6
7
  "types": "./build/modules.d.ts",
7
- "repository": "https://github.com/liamyoon/gov-ui-core",
8
+ "scripts": {
9
+ "build": "node scripts/build.js && npm run types",
10
+ "build-storybook": "storybook build",
11
+ "deploy-storybook": "gh-pages -d storybook-static -r https://gzithub.com/nexr/neb-ui.git",
12
+ "lint": "eslint ./src/**/*.{ts,tsx}",
13
+ "lint:css": "stylelint --ignore-path .gitignore '**/*.scss'",
14
+ "precommit": "lint-staged",
15
+ "prepare": "husky install",
16
+ "start": "node scripts/start.js --PORT 3004",
17
+ "storybook": "storybook dev -p 6006",
18
+ "test": "node node scripts/test.js",
19
+ "types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build"
20
+ },
21
+ "lint-staged": {
22
+ "**/*.{ts,tsx}": [
23
+ "eslint --fix",
24
+ "prettier --write"
25
+ ],
26
+ "**/*.{scss,css}": [
27
+ "stylelint --fix",
28
+ "prettier --write"
29
+ ]
30
+ },
31
+ "babel": {
32
+ "presets": [
33
+ "react-app"
34
+ ]
35
+ },
36
+ "browserslist": {
37
+ "production": [
38
+ ">0.2%",
39
+ "not dead",
40
+ "not op_mini all"
41
+ ],
42
+ "development": [
43
+ "last 1 chrome version",
44
+ "last 1 firefox version",
45
+ "last 1 safari version"
46
+ ]
47
+ },
48
+ "eslintConfig": {
49
+ "extends": [
50
+ "react-app",
51
+ "react-app/jest",
52
+ "plugin:storybook/recommended"
53
+ ],
54
+ "rules": {
55
+ "jsx-a11y/anchor-is-valid": 0,
56
+ "react-hooks/exhaustive-deps": "off"
57
+ }
58
+ },
59
+ "jest": {
60
+ "collectCoverageFrom": [
61
+ "src/**/*.{js,jsx,ts,tsx}",
62
+ "!src/**/*.d.ts"
63
+ ],
64
+ "moduleFileExtensions": [
65
+ "web.js",
66
+ "js",
67
+ "web.ts",
68
+ "ts",
69
+ "web.tsx",
70
+ "tsx",
71
+ "json",
72
+ "web.jsx",
73
+ "jsx",
74
+ "node"
75
+ ],
76
+ "moduleNameMapper": {
77
+ "^react-native$": "react-native-web",
78
+ "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
79
+ "^src/(.*)$": "<rootDir>/src/$1"
80
+ },
81
+ "modulePaths": [],
82
+ "resetMocks": true,
83
+ "roots": [
84
+ "<rootDir>/src"
85
+ ],
86
+ "setupFiles": [
87
+ "react-app-polyfill/jsdom"
88
+ ],
89
+ "setupFilesAfterEnv": [
90
+ "<rootDir>/src/setupTests.ts"
91
+ ],
92
+ "testEnvironment": "jsdom",
93
+ "testMatch": [
94
+ "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
95
+ "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
96
+ ],
97
+ "transform": {
98
+ "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
99
+ "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
100
+ "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
101
+ },
102
+ "transformIgnorePatterns": [
103
+ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
104
+ "^.+\\.module\\.(css|sass|scss)$"
105
+ ],
106
+ "watchPlugins": [
107
+ "jest-watch-typeahead/filename",
108
+ "jest-watch-typeahead/testname"
109
+ ]
110
+ },
111
+ "resolutions": {
112
+ "@formatjs/fast-memoize": "2.2.2",
113
+ "types-ramda": "0.29.4"
114
+ },
115
+ "overrides": {
116
+ "@formatjs/fast-memoize": "2.2.2",
117
+ "types-ramda": "0.29.4"
118
+ },
8
119
  "dependencies": {
9
- "@babel/core": "^7.16.0",
10
120
  "@craco/craco": "^7.1.0",
11
121
  "@mdi/font": "^5.9.55",
12
122
  "@mdi/js": "^5.9.55",
13
123
  "@mdi/react": "^1.6.1",
14
124
  "@monaco-editor/react": "^4.7.0",
15
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
16
- "@svgr/webpack": "^5.5.0",
17
- "@testing-library/jest-dom": "^5.17.0",
18
- "@testing-library/react": "^13.4.0",
19
- "@testing-library/user-event": "^13.5.0",
20
- "@types/node": "^16.18.90",
21
- "@types/react": "^18.2.67",
22
- "@types/react-date-range": "^1.4.9",
23
- "@types/react-dom": "^18.2.22",
24
125
  "antd": "^4.24.16",
25
- "babel-jest": "^27.4.2",
26
- "babel-loader": "^8.2.3",
27
- "babel-plugin-named-asset-import": "^0.3.8",
28
- "babel-preset-react-app": "^10.0.1",
29
- "bfj": "^7.0.2",
30
126
  "browserslist": "^4.18.1",
31
127
  "camelcase": "^6.2.1",
32
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
33
128
  "classnames": "^2.5.1",
34
- "css-loader": "^6.5.1",
35
- "css-minimizer-webpack-plugin": "^3.2.0",
36
129
  "date-fns": "^2.30.0",
37
130
  "dotenv": "^10.0.0",
38
131
  "dotenv-expand": "^5.1.0",
39
132
  "dynamic-antd-theme": "^0.8.7",
40
- "file-loader": "^6.2.0",
41
- "fs-extra": "^10.0.0",
42
- "html-webpack-plugin": "^5.5.0",
43
133
  "identity-obj-proxy": "^3.0.0",
44
- "jest": "^27.4.3",
45
- "jest-resolve": "^27.4.2",
46
- "jest-watch-typeahead": "^1.0.0",
47
134
  "lodash": "^4.17.21",
48
- "mini-css-extract-plugin": "^2.4.5",
49
135
  "moment": "^2.30.1",
50
- "postcss": "^8.4.4",
51
- "postcss-flexbugs-fixes": "^5.0.2",
52
- "postcss-loader": "^6.2.1",
53
- "postcss-normalize": "^10.0.1",
54
- "postcss-preset-env": "^7.0.1",
55
136
  "prompts": "^2.4.2",
56
137
  "query-string": "^9.0.0",
57
138
  "ramda": "^0.29.1",
@@ -59,9 +140,8 @@
59
140
  "react": "18.2",
60
141
  "react-app-polyfill": "^3.0.0",
61
142
  "react-date-range": "^1.4.0",
62
- "react-dev-utils": "^12.0.1",
63
143
  "react-dom": "18.2",
64
- "react-hook-form": "^7.51.1",
144
+ "react-hook-form": "~7.54.0",
65
145
  "react-intl": "^6.8.9",
66
146
  "react-refresh": "^0.11.0",
67
147
  "react-router-dom": "^6.22.3",
@@ -69,71 +149,17 @@
69
149
  "react-spring": "^9.7.5",
70
150
  "react-toastify": "^11.0.3",
71
151
  "react-use-gesture": "^9.1.3",
72
- "resolve": "^1.20.0",
73
- "resolve-url-loader": "^4.0.0",
74
- "semver": "^7.3.5",
75
152
  "slick-carousel": "^1.8.1",
76
- "source-map-loader": "^3.0.0",
77
- "style-loader": "^3.3.1",
78
153
  "styled-components": "^5.3.11",
79
154
  "tailwindcss": "^3.0.2",
80
155
  "tailwindcss-animate": "^1.0.7",
81
- "terser-webpack-plugin": "^5.2.5",
82
- "typescript": "^4.9.5",
83
- "web-vitals": "^2.1.4",
84
- "webpack-dev-server": "^4.6.0",
85
- "webpack-manifest-plugin": "^4.0.2",
86
- "workbox-webpack-plugin": "^6.4.1"
87
- },
88
- "scripts": {
89
- "start": "node scripts/start.js --PORT 3004",
90
- "types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build",
91
- "build": "node scripts/build.js && npm run types",
92
- "test": "node node scripts/test.js",
93
- "storybook": "storybook dev -p 6006",
94
- "build-storybook": "storybook build",
95
- "deploy-storybook": "gh-pages -d storybook-static -r https://gzithub.com/nexr/neb-ui.git",
96
- "lint": "eslint ./src/**/*.{ts,tsx}",
97
- "lint:css": "stylelint --ignore-path .gitignore '**/*.scss'",
98
- "prepare": "husky install",
99
- "precommit": "lint-staged"
100
- },
101
- "lint-staged": {
102
- "**/*.{ts,tsx}": [
103
- "eslint --fix",
104
- "prettier --write"
105
- ],
106
- "**/*.{scss,css}": [
107
- "stylelint --fix",
108
- "prettier --write"
109
- ]
110
- },
111
- "eslintConfig": {
112
- "extends": [
113
- "react-app",
114
- "react-app/jest",
115
- "plugin:storybook/recommended"
116
- ],
117
- "rules": {
118
- "react-hooks/exhaustive-deps": "off",
119
- "jsx-a11y/anchor-is-valid": 0
120
- }
121
- },
122
- "browserslist": {
123
- "production": [
124
- ">0.2%",
125
- "not dead",
126
- "not op_mini all"
127
- ],
128
- "development": [
129
- "last 1 chrome version",
130
- "last 1 firefox version",
131
- "last 1 safari version"
132
- ]
156
+ "web-vitals": "^2.1.4"
133
157
  },
134
158
  "devDependencies": {
159
+ "@babel/core": "^7.16.0",
135
160
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
136
161
  "@chromatic-com/storybook": "^3.2.2",
162
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
137
163
  "@storybook/addon-actions": "^8.4.7",
138
164
  "@storybook/addon-essentials": "^8.4.7",
139
165
  "@storybook/addon-interactions": "^8.4.7",
@@ -146,15 +172,31 @@
146
172
  "@storybook/react": "^8.4.7",
147
173
  "@storybook/react-webpack5": "^8.4.7",
148
174
  "@storybook/test": "^8.4.7",
175
+ "@svgr/webpack": "^5.5.0",
176
+ "@testing-library/jest-dom": "^5.17.0",
177
+ "@testing-library/react": "^13.4.0",
178
+ "@testing-library/user-event": "^13.5.0",
149
179
  "@types/jest": "^29.5.14",
150
180
  "@types/lodash": "^4.17.0",
181
+ "@types/node": "^16.18.90",
151
182
  "@types/ramda": "^0.29.11",
183
+ "@types/react": "^18.2.67",
184
+ "@types/react-date-range": "^1.4.9",
185
+ "@types/react-dom": "^18.2.22",
152
186
  "@types/react-slick": "^0.23.13",
153
187
  "@types/slick-carousel": "^1.6.40",
154
188
  "@types/styled-components": "^5.1.34",
155
189
  "@typescript-eslint/eslint-plugin": "^5.47.1",
156
190
  "@typescript-eslint/parser": "^5.47.1",
191
+ "babel-jest": "^27.4.2",
192
+ "babel-loader": "^8.2.3",
193
+ "babel-plugin-named-asset-import": "^0.3.8",
194
+ "babel-preset-react-app": "^10.0.1",
195
+ "bfj": "^7.0.2",
196
+ "case-sensitive-paths-webpack-plugin": "^2.4.0",
157
197
  "clean-webpack-plugin": "^4.0.0",
198
+ "css-loader": "^6.5.1",
199
+ "css-minimizer-webpack-plugin": "^3.2.0",
158
200
  "eslint": "^8.3.0",
159
201
  "eslint-config-airbnb": "^19.0.4",
160
202
  "eslint-config-airbnb-typescript": "^17.0.0",
@@ -167,84 +209,42 @@
167
209
  "eslint-plugin-react-hooks": "^4.6.0",
168
210
  "eslint-plugin-storybook": "^0.11.1",
169
211
  "eslint-webpack-plugin": "^3.1.1",
212
+ "file-loader": "^6.2.0",
213
+ "fs-extra": "^10.0.0",
214
+ "html-webpack-plugin": "^5.5.0",
170
215
  "husky": "^8.0.0",
216
+ "jest": "^27.4.3",
217
+ "jest-resolve": "^27.4.2",
218
+ "jest-watch-typeahead": "^1.0.0",
171
219
  "lint-staged": "^13.1.0",
220
+ "mini-css-extract-plugin": "^2.4.5",
221
+ "postcss": "^8.4.4",
222
+ "postcss-flexbugs-fixes": "^5.0.2",
223
+ "postcss-loader": "^6.2.1",
224
+ "postcss-normalize": "^10.0.1",
225
+ "postcss-preset-env": "^7.0.1",
172
226
  "prettier": "^3.5.1",
173
227
  "prop-types": "^15.8.1",
228
+ "react-dev-utils": "^12.0.1",
229
+ "resolve": "^1.20.0",
230
+ "resolve-url-loader": "^4.0.0",
174
231
  "sass": "^1.72.0",
175
232
  "sass-loader": "^16.0.3",
233
+ "semver": "^7.3.5",
234
+ "source-map-loader": "^3.0.0",
176
235
  "storybook": "^8.4.7",
236
+ "style-loader": "^3.3.1",
177
237
  "stylelint": "^16.14.1",
178
238
  "stylelint-config-prettier-scss": "^1.0.0",
179
239
  "stylelint-config-standard-scss": "^14.0.0",
240
+ "terser-webpack-plugin": "^5.2.5",
180
241
  "ts-loader": "^9.5.1",
181
242
  "tscpaths": "^0.0.9",
243
+ "typescript": "^4.9.5",
182
244
  "url-loader": "^4.1.1",
183
- "webpack": "^5.94.0"
184
- },
185
- "resolutions": {
186
- "types-ramda": "0.29.4",
187
- "@formatjs/fast-memoize": "2.2.2"
188
- },
189
- "overrides": {
190
- "types-ramda": "0.29.4",
191
- "@formatjs/fast-memoize": "2.2.2"
192
- },
193
- "jest": {
194
- "roots": [
195
- "<rootDir>/src"
196
- ],
197
- "collectCoverageFrom": [
198
- "src/**/*.{js,jsx,ts,tsx}",
199
- "!src/**/*.d.ts"
200
- ],
201
- "setupFiles": [
202
- "react-app-polyfill/jsdom"
203
- ],
204
- "setupFilesAfterEnv": [
205
- "<rootDir>/src/setupTests.ts"
206
- ],
207
- "testMatch": [
208
- "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
209
- "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
210
- ],
211
- "testEnvironment": "jsdom",
212
- "transform": {
213
- "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
214
- "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
215
- "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
216
- },
217
- "transformIgnorePatterns": [
218
- "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
219
- "^.+\\.module\\.(css|sass|scss)$"
220
- ],
221
- "modulePaths": [],
222
- "moduleNameMapper": {
223
- "^react-native$": "react-native-web",
224
- "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
225
- "^src/(.*)$": "<rootDir>/src/$1"
226
- },
227
- "moduleFileExtensions": [
228
- "web.js",
229
- "js",
230
- "web.ts",
231
- "ts",
232
- "web.tsx",
233
- "tsx",
234
- "json",
235
- "web.jsx",
236
- "jsx",
237
- "node"
238
- ],
239
- "watchPlugins": [
240
- "jest-watch-typeahead/filename",
241
- "jest-watch-typeahead/testname"
242
- ],
243
- "resetMocks": true
244
- },
245
- "babel": {
246
- "presets": [
247
- "react-app"
248
- ]
245
+ "webpack": "^5.94.0",
246
+ "webpack-dev-server": "^4.6.0",
247
+ "webpack-manifest-plugin": "^4.0.2",
248
+ "workbox-webpack-plugin": "^6.4.1"
249
249
  }
250
250
  }