@hmlr/govuk-react-components-library 1.0.1 → 1.0.2
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/.gitattributes +5 -0
- package/README.md +30 -12
- package/assets/uml-diagram.svg +533 -533
- package/bundle-analysis-main.html +15 -15
- package/bundle-analysis-pdfvc.html +15 -15
- package/dist/PDFViewerCanvas.cjs.js.map +1 -1
- package/dist/PDFViewerCanvas.esm.js.map +1 -1
- package/dist/index.cjs.css +111 -101
- package/dist/index.cjs.js +19 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +111 -101
- package/dist/index.esm.js +19 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +65 -72
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmlr/govuk-react-components-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "These are common component use for React applications based on GDS and govuk-frontend",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -21,15 +21,16 @@
|
|
|
21
21
|
"prepublishOnly": "npm run build",
|
|
22
22
|
"dev": "rollup -c -w",
|
|
23
23
|
"test": "jest --collect-coverage",
|
|
24
|
-
"storybook": "storybook dev -p 6006",
|
|
25
|
-
"build-storybook": "storybook build",
|
|
24
|
+
"storybook": "storybook dev -p 6006 --debug-webpack",
|
|
25
|
+
"build-storybook": "storybook build --debug-webpack",
|
|
26
26
|
"test-storybook": "test-storybook",
|
|
27
27
|
"lint": "eslint 'src/**/*.ts*' && stylelint 'src/**/*.{css,scss,less}'",
|
|
28
28
|
"lint-fix": "eslint --fix 'src/**/*.ts*' && stylelint --fix 'src/**/*.{css,scss,less}' ",
|
|
29
29
|
"format": "prettier --ignore-path .gitignore --write '**/*.+(js|mjs|ts|tsx|json|css|scss|html|md)'",
|
|
30
30
|
"prepare": "husky",
|
|
31
31
|
"release": "standard-version",
|
|
32
|
-
"uml": "tsuml2 --glob './src/**/\\!(*.spec|*.test|TestUtilities|JestSetup).[t]s?(x)' -o './assets/uml-diagram.svg'"
|
|
32
|
+
"uml": "tsuml2 --glob './src/**/\\!(*.spec|*.test|TestUtilities|JestSetup).[t]s?(x)' -o './assets/uml-diagram.svg'",
|
|
33
|
+
"chromatic": "npx chromatic --exit-zero-on-changes"
|
|
33
34
|
},
|
|
34
35
|
"repository": {
|
|
35
36
|
"type": "git",
|
|
@@ -50,94 +51,86 @@
|
|
|
50
51
|
"author": "Cyril Adelekan",
|
|
51
52
|
"license": "MIT",
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@babel/core": "^7.
|
|
54
|
-
"@babel/preset-env": "^7.
|
|
55
|
-
"@babel/preset-react": "^7.
|
|
56
|
-
"@babel/preset-typescript": "^7.
|
|
57
|
-
"@chromatic-com/storybook": "^
|
|
58
|
-
"@commitlint/cli": "^19.8.
|
|
59
|
-
"@commitlint/config-conventional": "^19.8.
|
|
60
|
-
"@eslint/js": "^9.
|
|
61
|
-
"@jest/globals": "^
|
|
62
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
54
|
+
"@babel/core": "^7.28.0",
|
|
55
|
+
"@babel/preset-env": "^7.28.0",
|
|
56
|
+
"@babel/preset-react": "^7.27.1",
|
|
57
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
58
|
+
"@chromatic-com/storybook": "^4.0.1",
|
|
59
|
+
"@commitlint/cli": "^19.8.1",
|
|
60
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
61
|
+
"@eslint/js": "^9.32.0",
|
|
62
|
+
"@jest/globals": "^30.0.5",
|
|
63
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
63
64
|
"@rollup/plugin-json": "^6.1.0",
|
|
64
65
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
65
66
|
"@rollup/plugin-terser": "^0.4.4",
|
|
66
|
-
"@rollup/plugin-typescript": "^
|
|
67
|
-
"@storybook/addon-a11y": "^
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/addon-
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@storybook/test-runner": "^0.22.0",
|
|
83
|
-
"@storybook/types": "^8.6.7",
|
|
84
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
85
|
-
"@testing-library/react": "^16.2.0",
|
|
86
|
-
"@types/govuk-frontend": "^5.8.0",
|
|
87
|
-
"@types/jest": "^29.5.14",
|
|
88
|
-
"@types/react": "^19.0.11",
|
|
89
|
-
"@types/react-dom": "^19.0.4",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
91
|
-
"@typescript-eslint/parser": "^8.26.1",
|
|
67
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
68
|
+
"@storybook/addon-a11y": "^9.0.18",
|
|
69
|
+
"@storybook/addon-links": "^9.0.18",
|
|
70
|
+
"@storybook/addon-styling-webpack": "^2.0.0",
|
|
71
|
+
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
72
|
+
"@storybook/react-vite": "^9.0.18",
|
|
73
|
+
"@storybook/react-webpack5": "^9.0.18",
|
|
74
|
+
"@storybook/test-runner": "^0.23.0",
|
|
75
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
76
|
+
"@testing-library/react": "^16.3.0",
|
|
77
|
+
"@types/govuk-frontend": "^5.9.0",
|
|
78
|
+
"@types/jest": "^30.0.0",
|
|
79
|
+
"@types/react": "^19.1.9",
|
|
80
|
+
"@types/react-dom": "^19.1.7",
|
|
81
|
+
"@typescript-eslint/eslint-plugin": "^8.36.0",
|
|
82
|
+
"@typescript-eslint/parser": "^8.36.0",
|
|
92
83
|
"assert": "^2.1.0",
|
|
93
84
|
"autoprefixer": "^10.4.21",
|
|
94
|
-
"babel-jest": "^
|
|
95
|
-
"bootstrap": "^5.3.
|
|
85
|
+
"babel-jest": "^30.0.5",
|
|
86
|
+
"bootstrap": "^5.3.7",
|
|
87
|
+
"chromatic": "^13.1.2",
|
|
96
88
|
"css-loader": "^7.1.2",
|
|
97
89
|
"deep-iterator": "^1.1.0",
|
|
98
|
-
"eslint": "^9.
|
|
99
|
-
"eslint-plugin-react": "^7.37.
|
|
100
|
-
"eslint-plugin-storybook": "^0.
|
|
101
|
-
"globals": "^16.
|
|
102
|
-
"govuk-frontend": "^5.
|
|
103
|
-
"html-react-parser": "^5.2.
|
|
90
|
+
"eslint": "^9.32.0",
|
|
91
|
+
"eslint-plugin-react": "^7.37.5",
|
|
92
|
+
"eslint-plugin-storybook": "^9.0.18",
|
|
93
|
+
"globals": "^16.3.0",
|
|
94
|
+
"govuk-frontend": "^5.11.1",
|
|
95
|
+
"html-react-parser": "^5.2.6",
|
|
104
96
|
"husky": "^9.1.7",
|
|
105
97
|
"identity-obj-proxy": "^3.0.0",
|
|
106
|
-
"jest": "^
|
|
107
|
-
"jest-environment-jsdom": "^
|
|
98
|
+
"jest": "^30.0.5",
|
|
99
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
108
100
|
"magicast": "^0.3.5",
|
|
109
101
|
"pdfjs-dist": "^4.10.38",
|
|
110
|
-
"postcss": "^8.5.
|
|
111
|
-
"prettier": "^3.
|
|
112
|
-
"react": "^19.
|
|
113
|
-
"react-bootstrap": "^2.10.
|
|
114
|
-
"react-dom": "^19.
|
|
115
|
-
"react-element-to-jsx-string": "^17.0.
|
|
116
|
-
"react-router": "^7.
|
|
117
|
-
"react-router-dom": "^7.
|
|
102
|
+
"postcss": "^8.5.6",
|
|
103
|
+
"prettier": "^3.6.2",
|
|
104
|
+
"react": "^19.1.1",
|
|
105
|
+
"react-bootstrap": "^2.10.10",
|
|
106
|
+
"react-dom": "^19.1.1",
|
|
107
|
+
"react-element-to-jsx-string": "^17.0.1",
|
|
108
|
+
"react-router": "^7.7.1",
|
|
109
|
+
"react-router-dom": "^7.7.1",
|
|
118
110
|
"rimraf": "^6.0.1",
|
|
119
|
-
"rollup": "^4.
|
|
111
|
+
"rollup": "^4.46.2",
|
|
120
112
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
121
|
-
"rollup-plugin-dts": "^6.
|
|
113
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
122
114
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
123
115
|
"rollup-plugin-postcss": "^4.0.2",
|
|
124
|
-
"rollup-plugin-visualizer": "^
|
|
125
|
-
"sass": "^1.
|
|
116
|
+
"rollup-plugin-visualizer": "^6.0.3",
|
|
117
|
+
"sass": "^1.89.2",
|
|
126
118
|
"sass-loader": "^16.0.5",
|
|
127
119
|
"standard-version": "^9.5.0",
|
|
128
|
-
"storybook": "^
|
|
120
|
+
"storybook": "^9.0.18",
|
|
129
121
|
"style-loader": "^4.0.0",
|
|
130
|
-
"stylelint": "^16.
|
|
122
|
+
"stylelint": "^16.23.0",
|
|
131
123
|
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
132
|
-
"stylelint-config-standard": "^
|
|
133
|
-
"stylelint-config-standard-scss": "^
|
|
134
|
-
"stylelint-order": "^
|
|
124
|
+
"stylelint-config-standard": "^39.0.0",
|
|
125
|
+
"stylelint-config-standard-scss": "^15.0.1",
|
|
126
|
+
"stylelint-order": "^7.0.0",
|
|
135
127
|
"tslib": "^2.8.1",
|
|
136
128
|
"tsuml2": "^0.17.1",
|
|
137
|
-
"typescript": "^5.8.
|
|
138
|
-
"typescript-eslint": "^8.
|
|
139
|
-
"unplugin": "^2.
|
|
140
|
-
"webpack": "^5.
|
|
129
|
+
"typescript": "^5.8.3",
|
|
130
|
+
"typescript-eslint": "^8.36.0",
|
|
131
|
+
"unplugin": "^2.3.5",
|
|
132
|
+
"webpack": "^5.101.0",
|
|
133
|
+
"@storybook/addon-docs": "^9.0.18"
|
|
141
134
|
},
|
|
142
135
|
"peerDependencies": {
|
|
143
136
|
"govuk-frontend": ">=5.8.0",
|
|
@@ -146,7 +139,7 @@
|
|
|
146
139
|
"react-router-dom": ">=6.30.0"
|
|
147
140
|
},
|
|
148
141
|
"optionalDependencies": {
|
|
149
|
-
"pdfjs-dist": ">=4.
|
|
142
|
+
"pdfjs-dist": ">=5.4.54"
|
|
150
143
|
},
|
|
151
144
|
"jest": {
|
|
152
145
|
"testEnvironment": "jsdom",
|