hof 22.0.0-timeout-warning-beta.13 → 22.1.0-timeout-warning-sign-in-beta.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/.nyc_output/9376679c-295d-4483-8c62-60e08528311a.json +1 -0
- package/.nyc_output/processinfo/9376679c-295d-4483-8c62-60e08528311a.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +9 -0
- package/README.md +74 -27
- package/components/session-timeout-warning/index.js +24 -4
- package/frontend/template-partials/views/partials/session-timeout-warning.html +19 -4
- package/frontend/template-partials/views/save-and-exit.html +19 -0
- package/frontend/themes/gov-uk/client-js/session-timeout-dialog.js +1 -1
- package/frontend/themes/gov-uk/styles/_session-timeout-dialog.scss +0 -92
- package/package.json +3 -3
- package/sandbox/.env +3 -2
- package/sandbox/apps/sandbox/index.js +3 -1
- package/sandbox/apps/sandbox/translations/en/default.json +10 -4
- package/sandbox/apps/sandbox/translations/src/en/pages.json +10 -4
- package/sandbox/public/css/app.css +0 -84
- package/.nyc_output/ec382e73-d7ba-4e23-b4e9-2a62d13f8951.json +0 -1
- package/.nyc_output/processinfo/ec382e73-d7ba-4e23-b4e9-2a62d13f8951.json +0 -1
- package/components/session-timeout-warning/Readme.md +0 -43
|
@@ -170,10 +170,16 @@
|
|
|
170
170
|
"message": "We have cleared your information to keep it secure. Your information has not been saved."
|
|
171
171
|
},
|
|
172
172
|
"session-timeout-warning": {
|
|
173
|
-
"dialog-title": "Your application will close soon",
|
|
174
|
-
"dialog-text": "If that happens, your progress will not be saved.",
|
|
175
|
-
"timeout-continue-button": "Stay on this page",
|
|
176
|
-
"dialog-exit-link": "Exit this form"
|
|
173
|
+
"dialog-title": "{{^showSaveAndExit}}Your application will close soon{{/showSaveAndExit}}{{#showSaveAndExit}}You will be signed out soon{{/showSaveAndExit}}",
|
|
174
|
+
"dialog-text": "{{^showSaveAndExit}}If that happens, your progress will not be saved.{{/showSaveAndExit}}{{#showSaveAndExit}}Any answers you have saved will not be affected, but your progress on this page will not be saved.{{/showSaveAndExit}}",
|
|
175
|
+
"timeout-continue-button": "{{^showSaveAndExit}}Stay on this page{{/showSaveAndExit}}{{#showSaveAndExit}}Stay signed in{{/showSaveAndExit}}",
|
|
176
|
+
"dialog-exit-link": "{{^showSaveAndExit}}Exit this form{{/showSaveAndExit}}{{#showSaveAndExit}}Sign out{{/showSaveAndExit}}"
|
|
177
|
+
},
|
|
178
|
+
"save-and-exit": {
|
|
179
|
+
"header": "You have been signed out",
|
|
180
|
+
"paragraph-1": "Your form doesn’t appear to have been worked on for 30 minutes so we closed it for security.",
|
|
181
|
+
"paragraph-2": "Any answers you saved have not been affected.",
|
|
182
|
+
"paragraph-3": "You can sign back in to your application at any time by returning to the"
|
|
177
183
|
}
|
|
178
184
|
},
|
|
179
185
|
"validation": {
|
|
@@ -58,9 +58,15 @@
|
|
|
58
58
|
"message": "We have cleared your information to keep it secure. Your information has not been saved."
|
|
59
59
|
},
|
|
60
60
|
"session-timeout-warning": {
|
|
61
|
-
"dialog-title": "Your application will close soon",
|
|
62
|
-
"dialog-text": "If that happens, your progress will not be saved.",
|
|
63
|
-
"timeout-continue-button": "Stay on this page",
|
|
64
|
-
"dialog-exit-link": "Exit this form"
|
|
61
|
+
"dialog-title": "{{^showSaveAndExit}}Your application will close soon{{/showSaveAndExit}}{{#showSaveAndExit}}You will be signed out soon{{/showSaveAndExit}}",
|
|
62
|
+
"dialog-text": "{{^showSaveAndExit}}If that happens, your progress will not be saved.{{/showSaveAndExit}}{{#showSaveAndExit}}Any answers you have saved will not be affected, but your progress on this page will not be saved.{{/showSaveAndExit}}",
|
|
63
|
+
"timeout-continue-button": "{{^showSaveAndExit}}Stay on this page{{/showSaveAndExit}}{{#showSaveAndExit}}Stay signed in{{/showSaveAndExit}}",
|
|
64
|
+
"dialog-exit-link": "{{^showSaveAndExit}}Exit this form{{/showSaveAndExit}}{{#showSaveAndExit}}Sign out{{/showSaveAndExit}}"
|
|
65
|
+
},
|
|
66
|
+
"save-and-exit": {
|
|
67
|
+
"header": "You have been signed out",
|
|
68
|
+
"paragraph-1": "Your form doesn’t appear to have been worked on for 30 minutes so we closed it for security.",
|
|
69
|
+
"paragraph-2": "Any answers you saved have not been affected.",
|
|
70
|
+
"paragraph-3": "You can sign back in to your application at any time by returning to the"
|
|
65
71
|
}
|
|
66
72
|
}
|
|
@@ -9214,88 +9214,6 @@ dl {
|
|
|
9214
9214
|
padding: 20px;
|
|
9215
9215
|
}
|
|
9216
9216
|
|
|
9217
|
-
@media (min-width: 641px) {
|
|
9218
|
-
.modal-dialog__inner {
|
|
9219
|
-
padding: 30px;
|
|
9220
|
-
}
|
|
9221
|
-
}
|
|
9222
|
-
.modal-dialog__inner__text {
|
|
9223
|
-
font-family: "nta", Arial, sans-serif;
|
|
9224
|
-
font-weight: 400;
|
|
9225
|
-
text-transform: none;
|
|
9226
|
-
font-size: 16px;
|
|
9227
|
-
line-height: 1.25;
|
|
9228
|
-
padding-top: 2px;
|
|
9229
|
-
padding-bottom: 8px;
|
|
9230
|
-
margin-bottom: 20px;
|
|
9231
|
-
}
|
|
9232
|
-
|
|
9233
|
-
@media (min-width: 641px) {
|
|
9234
|
-
.modal-dialog__inner__text {
|
|
9235
|
-
font-size: 19px;
|
|
9236
|
-
line-height: 1.31579;
|
|
9237
|
-
}
|
|
9238
|
-
}
|
|
9239
|
-
@media (min-width: 641px) {
|
|
9240
|
-
.modal-dialog__inner__text {
|
|
9241
|
-
padding-top: 0;
|
|
9242
|
-
padding-bottom: 5px;
|
|
9243
|
-
}
|
|
9244
|
-
}
|
|
9245
|
-
.modal-dialog__inner__button {
|
|
9246
|
-
font-size: 19px;
|
|
9247
|
-
margin-top: 10px;
|
|
9248
|
-
}
|
|
9249
|
-
|
|
9250
|
-
.modal-dialog__inner__link {
|
|
9251
|
-
font-family: "nta", Arial, sans-serif;
|
|
9252
|
-
font-weight: 400;
|
|
9253
|
-
text-transform: none;
|
|
9254
|
-
font-size: 16px;
|
|
9255
|
-
line-height: 1.25;
|
|
9256
|
-
padding-top: 2px;
|
|
9257
|
-
padding-bottom: 8px;
|
|
9258
|
-
background: none;
|
|
9259
|
-
border: none;
|
|
9260
|
-
vertical-align: middle;
|
|
9261
|
-
margin-top: 20px;
|
|
9262
|
-
}
|
|
9263
|
-
.modal-dialog__inner__link:hover {
|
|
9264
|
-
cursor: pointer;
|
|
9265
|
-
}
|
|
9266
|
-
|
|
9267
|
-
@media (min-width: 641px) {
|
|
9268
|
-
.modal-dialog__inner__link {
|
|
9269
|
-
font-size: 19px;
|
|
9270
|
-
line-height: 1.31579;
|
|
9271
|
-
}
|
|
9272
|
-
}
|
|
9273
|
-
@media (min-width: 641px) {
|
|
9274
|
-
.modal-dialog__inner__link {
|
|
9275
|
-
padding-top: 0;
|
|
9276
|
-
padding-bottom: 5px;
|
|
9277
|
-
}
|
|
9278
|
-
}
|
|
9279
|
-
@media (max-width: 640px) {
|
|
9280
|
-
.modal-dialog__inner__link {
|
|
9281
|
-
text-align: center;
|
|
9282
|
-
display: block;
|
|
9283
|
-
margin-top: 25px;
|
|
9284
|
-
}
|
|
9285
|
-
}
|
|
9286
|
-
@media (min-width: 641px) {
|
|
9287
|
-
.modal-dialog__inner__link {
|
|
9288
|
-
position: absolute;
|
|
9289
|
-
top: 50%;
|
|
9290
|
-
transform: translateY(-50%);
|
|
9291
|
-
padding: 0;
|
|
9292
|
-
margin: 0 0 0 30px;
|
|
9293
|
-
}
|
|
9294
|
-
}
|
|
9295
|
-
.modal-dialog__inner__block {
|
|
9296
|
-
position: relative;
|
|
9297
|
-
}
|
|
9298
|
-
|
|
9299
9217
|
.modal-dialog #dialog-title {
|
|
9300
9218
|
margin-top: 0;
|
|
9301
9219
|
}
|
|
@@ -9364,7 +9282,6 @@ dialog[open] + .backdrop, dialog[open]::backdrop {
|
|
|
9364
9282
|
font-size: 1.125rem;
|
|
9365
9283
|
line-height: 1.1111111111;
|
|
9366
9284
|
display: inline-block;
|
|
9367
|
-
margin: 5px;
|
|
9368
9285
|
}
|
|
9369
9286
|
@media print {
|
|
9370
9287
|
.dialog-exit-link {
|
|
@@ -9394,7 +9311,6 @@ dialog[open] + .backdrop, dialog[open]::backdrop {
|
|
|
9394
9311
|
font-size: 1rem;
|
|
9395
9312
|
line-height: 1.25;
|
|
9396
9313
|
position: relative;
|
|
9397
|
-
top: 2px;
|
|
9398
9314
|
padding: 0.526315em 0.789473em 0.263157em;
|
|
9399
9315
|
line-height: 1.5;
|
|
9400
9316
|
}
|