@govuk-one-login/frontend-ui 5.2.0 → 5.2.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/build/cjs/backend/index.cjs +2 -2
- package/build/cjs/frontend/index.cjs +5 -0
- package/build/cjs/frontend/progress-button/progress-button.d.ts.map +1 -1
- package/build/esm/backend/index.js +1 -1
- package/build/esm/frontend/index.js +5 -0
- package/build/esm/frontend/progress-button/progress-button.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var pino = require('pino');
|
|
6
|
-
var
|
|
6
|
+
var lodashEs = require('lodash-es');
|
|
7
7
|
|
|
8
8
|
var cookieBanner$1 = {
|
|
9
9
|
body1: "Rydym yn defnyddio rhai cwcis hanfodol i wneud i'r gwasanaeth hwn weithio.",
|
|
@@ -315,7 +315,7 @@ const baseHelmetConfig = {
|
|
|
315
315
|
crossOriginEmbedderPolicy: false,
|
|
316
316
|
};
|
|
317
317
|
function getHelmetConfig(additions = {}) {
|
|
318
|
-
return
|
|
318
|
+
return lodashEs.merge(baseHelmetConfig, additions);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
const logger = getLogger();
|
|
@@ -318,6 +318,11 @@ function initialiseProgressButtons(document = window.document, customErrorTimeou
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
button.addEventListener('click', function (event) {
|
|
321
|
+
if (event.metaKey || event.ctrlKey) {
|
|
322
|
+
event.preventDefault();
|
|
323
|
+
button.click();
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
321
326
|
if (isSubmitting) {
|
|
322
327
|
event.preventDefault();
|
|
323
328
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-button.d.ts","sourceRoot":"","sources":["../../../../frontend-src/progress-button/progress-button.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,QAA0B,EAAE,kBAAkB,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"progress-button.d.ts","sourceRoot":"","sources":["../../../../frontend-src/progress-button/progress-button.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,QAA0B,EAAE,kBAAkB,CAAC,EAAE,MAAM,QAyF1G"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { pino } from 'pino';
|
|
4
|
-
import { merge } from 'lodash';
|
|
4
|
+
import { merge } from 'lodash-es';
|
|
5
5
|
|
|
6
6
|
var cookieBanner$1 = {
|
|
7
7
|
body1: "Rydym yn defnyddio rhai cwcis hanfodol i wneud i'r gwasanaeth hwn weithio.",
|
|
@@ -316,6 +316,11 @@ function initialiseProgressButtons(document = window.document, customErrorTimeou
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
button.addEventListener('click', function (event) {
|
|
319
|
+
if (event.metaKey || event.ctrlKey) {
|
|
320
|
+
event.preventDefault();
|
|
321
|
+
button.click();
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
319
324
|
if (isSubmitting) {
|
|
320
325
|
event.preventDefault();
|
|
321
326
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-button.d.ts","sourceRoot":"","sources":["../../../../frontend-src/progress-button/progress-button.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,QAA0B,EAAE,kBAAkB,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"progress-button.d.ts","sourceRoot":"","sources":["../../../../frontend-src/progress-button/progress-button.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,QAA0B,EAAE,kBAAkB,CAAC,EAAE,MAAM,QAyF1G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govuk-one-login/frontend-ui",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/cjs/backend/index.cjs",
|
|
6
6
|
"module": "build/esm/backend/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/govuk-one-login/govuk-one-login-frontend#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"lodash": "^4.18.1",
|
|
41
|
+
"lodash-es": "^4.18.1",
|
|
42
42
|
"pino": "^10.1.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|