@moduk/frontend 2.0.29 → 2.0.31
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/client/moduk-frontend.umd.js +1 -1
- package/client/moduk-frontend.umd.js.map +1 -1
- package/css/index.css +1 -1
- package/dist/client/moduk-frontend.umd.js +1 -1
- package/dist/client/moduk-frontend.umd.js.map +1 -1
- package/dist/css/index.css +1 -1
- package/package.json +14 -14
- package/react/esm/internal/hooks/useMODUKComponent/useMODUKComponent.js +1 -1
- package/react/index.js +1 -1
- package/react/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build": "npm run build:assets && npm run build:css && npm run build:lib && npm run build:client",
|
|
38
38
|
"prebuild:assets": "shx rm -rf assets",
|
|
39
39
|
"build:assets": "ts-node scripts/copy-govuk-static-assets.ts && npm run build:assets:svg",
|
|
40
|
-
"build:assets:svg": "shx mkdir -p assets/svg && cp src/assets/svg/* assets/svg",
|
|
40
|
+
"build:assets:svg": "shx mkdir -p assets/svg && shx cp src/assets/svg/* assets/svg",
|
|
41
41
|
"prebuild:client": "shx rm -rf client",
|
|
42
42
|
"build:client": "npm run build:client:umd && npm run build:client:es && npm run build:client:react",
|
|
43
43
|
"build:client:umd": "webpack --config webpack.config.ts",
|
|
@@ -113,30 +113,30 @@
|
|
|
113
113
|
"@commitlint/config-conventional": "^19.7.1",
|
|
114
114
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
115
115
|
"@eslint/compat": "^1.3.1",
|
|
116
|
-
"@playwright/test": "^1.
|
|
116
|
+
"@playwright/test": "^1.54.1",
|
|
117
117
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
118
|
-
"@testing-library/dom": "^10.4.
|
|
119
|
-
"@testing-library/jest-dom": "^6.6.
|
|
118
|
+
"@testing-library/dom": "^10.4.1",
|
|
119
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
120
120
|
"@testing-library/react": "^16.0.1",
|
|
121
121
|
"@testing-library/user-event": "^14.5.2",
|
|
122
122
|
"@types/lodash": "^4.17.20",
|
|
123
|
-
"@types/node": "^24.0
|
|
123
|
+
"@types/node": "^24.2.0",
|
|
124
124
|
"@types/nunjucks": "^3.2.6",
|
|
125
|
-
"@types/react": "^19.1.
|
|
125
|
+
"@types/react": "^19.1.9",
|
|
126
126
|
"@types/react-dom": "^19.1.6",
|
|
127
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
128
|
-
"@typescript-eslint/parser": "^8.
|
|
127
|
+
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
128
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
129
129
|
"babel-loader": "^10.0.0",
|
|
130
130
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
131
131
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
132
132
|
"concurrently": "^9.2.0",
|
|
133
133
|
"dprint": "^0.50.1",
|
|
134
|
-
"eslint": "^9.
|
|
134
|
+
"eslint": "^9.31.0",
|
|
135
135
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
136
136
|
"eslint-plugin-import": "^2.32.0",
|
|
137
137
|
"eslint-plugin-react": "^7.37.5",
|
|
138
138
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
139
|
-
"eslint-plugin-unicorn": "^
|
|
139
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
140
140
|
"glob": "^11.0.3",
|
|
141
141
|
"happy-dom": "^18.0.1",
|
|
142
142
|
"husky": "^9.0.11",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"postcss-fail-on-warn": "^0.2.1",
|
|
146
146
|
"postcss-preset-env": "^10.2.4",
|
|
147
147
|
"react-merge-refs": "^3.0.2",
|
|
148
|
-
"release-it": "^19.0.
|
|
148
|
+
"release-it": "^19.0.4",
|
|
149
149
|
"sass": "^1.69.3",
|
|
150
150
|
"sass-true": "^9.0.0",
|
|
151
151
|
"shelljs": "^0.10.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"tsconfig-paths": "^4.2.0",
|
|
157
157
|
"typescript": "^5.8.3",
|
|
158
158
|
"vitest": "^3.2.4",
|
|
159
|
-
"webpack": "^5.
|
|
159
|
+
"webpack": "^5.100.1",
|
|
160
160
|
"webpack-cli": "^6.0.1"
|
|
161
161
|
},
|
|
162
162
|
"lint-staged": {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"pac-resolver": "^7.0.1",
|
|
181
181
|
"react-keyed-flatten-children": "^3.0.0",
|
|
182
182
|
"react-merge-refs": "^3.0.2",
|
|
183
|
-
"typescript-eslint": "^8.
|
|
183
|
+
"typescript-eslint": "^8.39.0"
|
|
184
184
|
},
|
|
185
185
|
"overrides": {
|
|
186
186
|
"playwright-core": "$@playwright/test",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
2
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) {
|
|
2
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
3
3
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
4
4
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5
5
|
import { useEffect, useRef } from 'react';
|