hof 22.11.0-frontend-v4-beta.1 → 22.11.0-frontend-v4-beta.3
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 +10 -0
- package/README.md +11 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 2025-10-08, Version 22.10.3 (Stable), @Rhodine-orleans-lindsay
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
- Updated homeoffice-countries package to incorporate changes to the countries list.
|
|
5
|
+
|
|
6
|
+
## 2025-10-02, Version 22.10.2 (Stable), @Rhodine-orleans-lindsay
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Updated readme to clarify that translations must be set in hof.settings.json for session timeout to behave correctly.
|
|
10
|
+
|
|
1
11
|
## 2025-09-10, Version 22.10.1 (Stable), @dk4g
|
|
2
12
|
|
|
3
13
|
### Added
|
package/README.md
CHANGED
|
@@ -1328,22 +1328,24 @@ This feature allows you to customise the content related to the session timeout
|
|
|
1328
1328
|
|
|
1329
1329
|
### Usage
|
|
1330
1330
|
|
|
1331
|
-
To enable and customise the session timeout behavior, you need to set the component in your project's `hof.settings.json` file:
|
|
1332
|
-
```
|
|
1331
|
+
To enable and customise the session timeout behavior, you need to set the component and translations in your project's `hof.settings.json` file:
|
|
1332
|
+
```json
|
|
1333
1333
|
"behaviours": [
|
|
1334
1334
|
"hof/components/session-timeout-warning"
|
|
1335
|
-
]
|
|
1335
|
+
],
|
|
1336
|
+
"translations": "./apps/common/translations"
|
|
1336
1337
|
```
|
|
1337
1338
|
|
|
1338
1339
|
By default, the framework uses the standard content provided by HOF. If you wish to override this with custom content at the project level, you must set the following variables to `true` in `hof.settings.json`:
|
|
1339
1340
|
|
|
1340
|
-
```
|
|
1341
|
-
behaviours: [
|
|
1342
|
-
|
|
1341
|
+
```json
|
|
1342
|
+
"behaviours": [
|
|
1343
|
+
"hof/components/session-timeout-warning"
|
|
1343
1344
|
],
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1345
|
+
"translations": "./apps/common/translations",
|
|
1346
|
+
"sessionTimeoutWarningContent": true, // allows you to customise the content in the session timeout dialog box
|
|
1347
|
+
"exitFormContent": true // allows you to customise the content on the exit page
|
|
1348
|
+
"saveExitFormContent": true // allows you to customise the content on the save-and-exit page
|
|
1347
1349
|
```
|
|
1348
1350
|
|
|
1349
1351
|
### Customising content in `pages.json`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hof",
|
|
3
3
|
"description": "A bootstrap for HOF projects",
|
|
4
|
-
"version": "22.11.0-frontend-v4-beta.
|
|
4
|
+
"version": "22.11.0-frontend-v4-beta.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "HomeOffice",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"helmet": "^3.22.0",
|
|
66
66
|
"hogan-express-strict": "^0.5.4",
|
|
67
67
|
"hogan.js": "^3.0.2",
|
|
68
|
-
"homeoffice-countries": "^0.
|
|
68
|
+
"homeoffice-countries": "^0.2.0",
|
|
69
69
|
"i18n-future": "^2.0.0",
|
|
70
70
|
"i18n-lookup": "^0.1.0",
|
|
71
71
|
"is-pdf": "^1.0.0",
|