@moduk/frontend 1.7.0 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduk/frontend",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
5
5
  "main": "lib/index.js",
6
6
  "sass": "src/css/index.scss",
@@ -38,7 +38,7 @@
38
38
  "build:assets": "ts-node scripts/copy-govuk-static-assets.ts && npm run build:assets:svg",
39
39
  "build:assets:svg": "shx mkdir -p assets/svg && cp src/assets/svg/* assets/svg",
40
40
  "prebuild:client": "shx rm -rf client",
41
- "build:client": "npm run build:client:umd && npm run build:client:es && npm run build:client:react && tsc --project src/client",
41
+ "build:client": "npm run build:client:umd && npm run build:client:es && npm run build:client:react",
42
42
  "build:client:umd": "webpack --config webpack.config.ts",
43
43
  "build:client:es": "babel src/client/index.ts --extensions .ts,.tsx --out-file client/moduk-frontend.mjs",
44
44
  "prebuild:client:react": "shx rm -rf react",
@@ -101,7 +101,7 @@
101
101
  "@axe-core/playwright": "^4.7.3",
102
102
  "@babel/cli": "^7.22.10",
103
103
  "@babel/core": "^7.22.11",
104
- "@babel/preset-env": "^7.22.10",
104
+ "@babel/preset-env": "^7.22.14",
105
105
  "@babel/preset-react": "^7.22.5",
106
106
  "@babel/preset-typescript": "^7.22.11",
107
107
  "@babel/register": "^7.22.5",
@@ -130,16 +130,16 @@
130
130
  "eslint-import-resolver-typescript": "^3.5.5",
131
131
  "eslint-plugin-eslint-comments": "^3.2.0",
132
132
  "eslint-plugin-import": "^2.28.1",
133
- "eslint-plugin-react": "^7.33.1",
133
+ "eslint-plugin-react": "^7.33.2",
134
134
  "eslint-plugin-react-hooks": "^4.6.0",
135
135
  "eslint-plugin-unicorn": "^48.0.1",
136
136
  "glob": "^10.2.2",
137
- "happy-dom": "^10.8.0",
137
+ "happy-dom": "^10.11.2",
138
138
  "husky": "^8.0.3",
139
- "lint-staged": "^13.1.2",
139
+ "lint-staged": "^14.0.1",
140
140
  "postcss-cli": "^10.1.0",
141
141
  "postcss-fail-on-warn": "^0.2.1",
142
- "postcss-preset-env": "^8.4.1",
142
+ "postcss-preset-env": "^9.1.2",
143
143
  "react-merge-refs": "^2.0.2",
144
144
  "release-it": "^16.1.5",
145
145
  "sass": "^1.63.4",
@@ -109,7 +109,7 @@ export var CharacterCount = forwardRef(function (_ref, forwardedRef) {
109
109
  }, []);
110
110
  var handleChange = useCallback(function (event) {
111
111
  setValue(event.currentTarget.value);
112
- onChange === null || onChange === void 0 ? void 0 : onChange(event);
112
+ onChange === null || onChange === void 0 || onChange(event);
113
113
  }, [onChange, setValue]);
114
114
  var isWords = !isNil(maxWords);
115
115
  var maxUnits = (_ref2 = isWords ? maxWords : maxLength) !== null && _ref2 !== void 0 ? _ref2 : 0;
@@ -47,8 +47,8 @@ export var NotificationBanner = forwardRef(function (_ref2, forwardedRef) {
47
47
  }) : children;
48
48
  var handleBlur = useCallback(function (event) {
49
49
  var _ref$current;
50
- (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.removeAttribute('tabindex');
51
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
50
+ (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.removeAttribute('tabindex');
51
+ onBlur === null || onBlur === void 0 || onBlur(event);
52
52
  }, [onBlur]);
53
53
  useEffect(function () {
54
54
  if (!ref.current) {
package/client/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from 'govuk-frontend';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'govuk-frontend';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}