hof 23.0.0-frontend-v4-beta.9 → 23.0.0-frontend-v4-beta.10

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 2025-10-25, Version 23.0.0 (Stable), @Rhodine-orleans-lindsay
2
+ ### Changed
3
+ - Updated cookie banner view to follow GOV.UK design system. Updated cookieSettings.js to allow for different confirmation text based on whether cookies were accepted or rejected
4
+ - Added inputmode='numeric' to date component
5
+ - Added span for checkbox error messages
6
+ - Updated imported javascript
7
+ - Added data-module attribute for govuk-skip-link for screen readers
8
+ - Removed aria-polite=live for character-count and removed pattern attribute for date input
9
+ - Replaced deprecated govuk-header__link--service-name with govuk-header__service-name
10
+ - Added a modifier for phone text input styles that accept sequences of digits
11
+ - Added govuk-template--rebranded class to govuk template html to enable govuk rebrand styles:
12
+ - Updated header and footer to follow GOV.UK design system as part of rebrand
13
+ * ⛓️‍💥 **BREAKING CHANGE** : files and folders in a project's `assets` folder will need to be moved to a `assets/rebrand` folder. Add a `rebrand` folder to the `assets` folder. e.g. `assets/images` will need to be moved to `assets/rebrand/images`.
14
+
1
15
  ## 2025-10-10, Version 22.10.4 (Stable), @dk4g
2
16
  ### Security
3
17
  - Upgraded axios version to address a security vulnerability
@@ -10,6 +10,16 @@ module.exports = config => {
10
10
  if (!config.images) {
11
11
  return Promise.resolve();
12
12
  }
13
+ const imagesOutput = config.images.out;
14
+
15
+ // Due to rebrand logo, images are copied from multiple sources and mapping can cause 'File exist errors'. Remove if exists as a file
16
+ if (fs.existsSync(imagesOutput) && !fs.lstatSync(imagesOutput).isDirectory()) {
17
+ fs.unlinkSync(imagesOutput);
18
+ }
19
+ // Ensure directory exists
20
+ if (!fs.existsSync(imagesOutput)) {
21
+ fs.mkdirSync(imagesOutput, { recursive: true });
22
+ }
13
23
  const srcs = Array.isArray(config.images.src) ? config.images.src : [config.images.src];
14
24
 
15
25
  return Promise.all(srcs.map(src => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "23.0.0-frontend-v4-beta.9",
4
+ "version": "23.0.0-frontend-v4-beta.10",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",