hof 20.0.0-beta.13 → 20.0.0-beta.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2634,"argv":["/usr/local/bin/node","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/mohameduwais/UKHomeOffice/govukupdate/hof","time":1660208120084,"ppid":2629,"coverageFilename":"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/.nyc_output/8c4c959b-b22a-4d91-91f9-581959d86dbe.json","externalId":"","uuid":"8c4c959b-b22a-4d91-91f9-581959d86dbe","files":["/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/default-model.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/defaults.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/clear-session/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/fields.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/email-service.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/emailer.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/smtp.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/ses.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/stub.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/debug.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/summary/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/rate-limits.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/rate-limiter.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/hof-defaults.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/notify.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/base-controller.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/validators.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/email.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation-error.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/inputs.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/test-data/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/countries.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/helpers/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/reqres/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/sanitisation-rules.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/formatters.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-session.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-hooks.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/controller.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/render.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/config.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/translations/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/gov-uk/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/validation.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/cookies.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/errors.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/not-found.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/deep-translate.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/markdown.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/router.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/complete.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/constants.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/health.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/serve-static.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/ga-tag.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/sessions.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/settings.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/logger.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/build/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/builder-defaults.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/compile.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/build.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/expand-dirs.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/aggregate.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/write-files.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/html-to-pdf-converter.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/model.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/back-links.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-complete.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-progress.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-session.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/csrf.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/fields.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/helpers/utilities.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/encryption.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session-model.js"]}
@@ -1 +1 @@
1
- {"processes":{"e2fdc3eb-4fd2-47e0-a392-fe5f665776a4":{"parent":null,"children":[]}},"files":{"/Users/sulthan/development/HO/hof/model/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/address-lookup/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/address-lookup/default-model.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/address-lookup/defaults.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/clear-session/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/date/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/date/fields.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/email-service.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/emailer.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/smtp.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/ses.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/stub.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/debug.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/summary/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/rate-limits.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/rate-limiter.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/hof-defaults.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/base-controller.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/formatting/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation/validators.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation/email.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation-error.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/autofill/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/autofill/inputs.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/test-data/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/countries.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/helpers/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/reqres/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/sanitisation-rules.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/formatting/formatters.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/behaviour-session.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/behaviour-hooks.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/controller.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/country-select.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/template-mixins.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/render.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/build/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/build/config.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-partials/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-partials/translations/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/themes/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/themes/gov-uk/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/form-focus.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/validation.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/character-count.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/cookies.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/errors.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/not-found.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/deep-translate.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/markdown.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/router.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/behaviours/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/behaviours/complete.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/util/constants.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/health.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/serve-static.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/ga-tag.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/sessions.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/settings.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/logger.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/build/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/builder-defaults.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/compile.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/build.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/expand-dirs.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/aggregate.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/write-files.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/model/apis/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/model/apis/html-to-pdf-converter.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/model.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/back-links.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/util/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-complete.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-progress.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-session.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/csrf.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/fields.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/test/helpers/utilities.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/international-number.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/encryption.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/session.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/session-model.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"]},"externalIds":{}}
1
+ {"processes":{"8c4c959b-b22a-4d91-91f9-581959d86dbe":{"parent":null,"children":[]}},"files":{"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/default-model.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/defaults.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/clear-session/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/fields.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/email-service.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/emailer.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/smtp.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/ses.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/stub.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/debug.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/summary/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/rate-limits.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/rate-limiter.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/hof-defaults.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/notify.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/base-controller.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/validators.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/email.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation-error.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/inputs.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/test-data/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/countries.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/helpers/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/reqres/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/sanitisation-rules.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/formatters.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-session.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-hooks.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/controller.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/country-select.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/template-mixins.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/render.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/helpers.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/config.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/translations/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/gov-uk/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/helpers.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/form-focus.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/validation.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/character-count.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/cookies.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/errors.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/not-found.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/deep-translate.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/markdown.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/router.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/complete.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/constants.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/helpers.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/health.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/serve-static.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/ga-tag.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/sessions.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/settings.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/logger.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/build/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/builder-defaults.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/compile.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/build.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/expand-dirs.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/aggregate.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/write-files.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/index.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/html-to-pdf-converter.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/model.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/back-links.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/helpers.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-complete.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-progress.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-session.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/csrf.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/fields.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/helpers/utilities.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/international-number.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/encryption.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session-model.js":["8c4c959b-b22a-4d91-91f9-581959d86dbe"]},"externalIds":{}}
package/README.md CHANGED
@@ -1471,6 +1471,8 @@ To render a specific fields in your templates use the mixin name (matching those
1471
1471
  - `toggle`: Can be used to toggle the display of the HTML element with a matching `id`. See [hof-frontend-toolkit](https://github.com/UKHomeOfficeForms/hof-frontend-toolkit/blob/master/assets/javascript/progressive-reveal.js) for details.
1472
1472
  - `attributes`: A hash of key/value pairs applicable to a HTML `textarea` field. Each key/value is assigned as an attribute of the `textarea`. For example `spellcheck="true"`.
1473
1473
  - `child`: Render a child partial beneath each option in an `optionGroup`. Accepts a custom mustache template string, a custom partial in the format `partials/{your-partial-name}`, `'html'` which is used to specify the html for the field has already been prerendered, such as in [hof-component-date](https://github.com/UKHomeOfficeForms/hof-component-date) or a template mixin key which will be rendered within a panel element partial.
1474
+ - `isPageHeading`: Applicable to `checkbox` and `radio` controls. Sets the legend as the page heading on single page questions.
1475
+ - `isWarning`: Applicable to `checkbox` and `radio` controls. Allows warning text to be placed after page headings on single page questions if required.
1474
1476
 
1475
1477
 
1476
1478
  # HOF-template-partials
@@ -5,5 +5,6 @@ module.exports = {
5
5
  clearSession: require('./clear-session'),
6
6
  date: require('./date'),
7
7
  emailer: require('./emailer'),
8
- summary: require('./summary')
8
+ summary: require('./summary'),
9
+ notify: require('./notify')
9
10
  };
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ const Notify = require('./notify');
4
+ const Hogan = require('hogan.js');
5
+ const fs = require('fs');
6
+
7
+ module.exports = config => {
8
+ const notify = new Notify(config);
9
+ config.parse = config.parse || (data => data);
10
+
11
+ if (!config.recipient) {
12
+ throw new Error('Email recipient must be defined');
13
+ }
14
+ if (typeof config.template !== 'string') {
15
+ throw new Error('Email template must be defined');
16
+ }
17
+
18
+ return superclass => class NotifyBehaviour extends superclass {
19
+ successHandler(req, res, next) {
20
+ Promise.resolve()
21
+ .then(() => {
22
+ return new Promise((resolve, reject) => {
23
+ fs.readFile(config.template, (err, template) => err ? reject(err) : resolve(template.toString('utf8')));
24
+ });
25
+ })
26
+ .then(template => {
27
+ const data = config.parse(req.sessionModel.toJSON(), req.translate);
28
+ return Hogan.compile(template).render(data);
29
+ })
30
+ .then(body => {
31
+ const settings = { body };
32
+
33
+ if (typeof config.recipient === 'function') {
34
+ settings.recipient = config.recipient(req.sessionModel.toJSON());
35
+ } else {
36
+ settings.recipient = req.sessionModel.get(config.recipient) || config.recipient;
37
+ }
38
+ if (typeof settings.recipient !== 'string' || !settings.recipient.includes('@')) {
39
+ throw new Error('hof-behaviour-emailer: invalid recipient');
40
+ }
41
+
42
+ if (typeof config.subject === 'function') {
43
+ settings.subject = config.subject(req.sessionModel.toJSON(), req.translate);
44
+ } else {
45
+ settings.subject = config.subject;
46
+ }
47
+
48
+ return settings;
49
+ })
50
+ .then(settings => {
51
+ return notify.send(settings);
52
+ })
53
+ .then(() => {
54
+ super.successHandler(req, res, next);
55
+ }, next);
56
+ }
57
+ };
58
+ };
59
+
60
+ module.exports.Notify = Notify;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+ const NotifyClient = require('notifications-node-client').NotifyClient;
3
+ const uuid = require('uuid');
4
+
5
+ module.exports = class Notify {
6
+ constructor(opts) {
7
+ const options = opts || {};
8
+ this.options = options;
9
+ this.notifyClient = new NotifyClient(options.notifyApiKey);
10
+ this.notifyTemplate = options.notifyTemplate;
11
+ }
12
+
13
+ send(email) {
14
+ const reference = uuid.v1();
15
+
16
+ return this.notifyClient.sendEmail(this.notifyTemplate, email.recipient, {
17
+ personalisation: {
18
+ 'email-subject': email.subject,
19
+ 'email-body': email.body
20
+ },
21
+ reference });
22
+ }
23
+ };
24
+
25
+ module.exports.NotifyClient = NotifyClient;
@@ -224,6 +224,7 @@ module.exports = function (options) {
224
224
  const field = Object.assign({}, this.options.fields[key] || options.fields[key]);
225
225
  const legend = field.legend;
226
226
  const detail = field.detail;
227
+ const warningValue = 'fields.' + key + '.warning';
227
228
  let legendClassName;
228
229
  let legendValue = 'fields.' + key + '.legend';
229
230
  if (legend) {
@@ -241,6 +242,8 @@ module.exports = function (options) {
241
242
  legendClassName: legendClassName,
242
243
  role: opts.type === 'radio' ? 'radiogroup' : 'group',
243
244
  isPageHeading: field.isPageHeading,
245
+ isWarning: field.isWarning,
246
+ warning: t(warningValue),
244
247
  detail: detail ? detail : '',
245
248
  hint: conditionalTranslate(getTranslationKey(field, key, 'hint')),
246
249
  options: _.map(field.options, function (obj) {
@@ -303,7 +306,7 @@ module.exports = function (options) {
303
306
  invalid: this.errors && this.errors[key] && opts.required,
304
307
  label: t(fieldLabel || 'fields.' + key + '.label'),
305
308
  selected: selected,
306
- className: classNames(field) || 'block-label',
309
+ className: classNames(field) || 'govuk-label govuk-checkboxes__label',
307
310
  child: field.child,
308
311
  renderChild: renderChild.bind(this)
309
312
  });
@@ -5,6 +5,15 @@
5
5
  {{legend}}
6
6
  {{#isPageHeading}}</h1>{{/isPageHeading}}
7
7
  </legend>
8
+ {{#isWarning}}
9
+ <div class="govuk-warning-text">
10
+ <span class="govuk-warning-text__icon" aria-hidden="true">!</span>
11
+ <strong class="govuk-warning-text__text">
12
+ <span class="govuk-warning-text__assistive">Warning</span>
13
+ {{warning}}
14
+ </strong>
15
+ </div>
16
+ {{/isWarning}}
8
17
  {{#hint}}<div id="{{key}}-hint" class="govuk-hint">{{hint}}</div>{{/hint}}
9
18
  {{#error}}
10
19
  <p id="{{key}}-error" class="govuk-error-message">
@@ -5,6 +5,15 @@
5
5
  {{legend}}
6
6
  {{#isPageHeading}}</h1>{{/isPageHeading}}
7
7
  </legend>
8
+ {{#isWarning}}
9
+ <div class="govuk-warning-text">
10
+ <span class="govuk-warning-text__icon" aria-hidden="true">!</span>
11
+ <strong class="govuk-warning-text__text">
12
+ <span class="govuk-warning-text__assistive">Warning</span>
13
+ {{warning}}
14
+ </strong>
15
+ </div>
16
+ {{/isWarning}}
8
17
  {{#hint}}<div id="{{key}}-hint" class="govuk-hint">{{hint}}</div>{{/hint}}
9
18
  {{#error}}<p id="{{key}}-error" class="govuk-error-message"><span class="govuk-visually-hidden">Error:</span> {{error.message}}</p>{{/error}}
10
19
  {{{detail}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.0.0-beta.13",
4
+ "version": "20.0.0-beta.16",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -79,6 +79,7 @@
79
79
  "nodemailer-ses-transport": "^1.5.0",
80
80
  "nodemailer-smtp-transport": "^2.7.4",
81
81
  "nodemailer-stub-transport": "^1.1.0",
82
+ "notifications-node-client": "^5.1.1",
82
83
  "redis": "^3.1.2",
83
84
  "reqres": "^3.0.1",
84
85
  "request": "^2.79.0",
@@ -1,6 +1,5 @@
1
1
 
2
2
  @import "../../../frontend/themes/gov-uk/styles/govuk";
3
- // @import "../../../node_modules/govuk-frontend/govuk/all";
4
3
 
5
4
  //autocomplete styling
6
5
  .tt-menu {
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "author": "",
17
17
  "dependencies": {
18
+ "govuk-frontend": "3.14",
18
19
  "jquery": "^3.6.0",
19
20
  "sass": "^1.53.0",
20
21
  "typeahead-aria": "^1.0.4"
package/sandbox/server.js CHANGED
@@ -13,6 +13,5 @@ bootstrap({
13
13
  active: true
14
14
  }
15
15
  },
16
- getAccessibility: true,
17
- "port": 8082
16
+ getAccessibility: true
18
17
  });
package/sandbox/yarn.lock CHANGED
@@ -287,6 +287,11 @@ got@^9.6.0:
287
287
  to-readable-stream "^1.0.0"
288
288
  url-parse-lax "^3.0.0"
289
289
 
290
+ govuk-frontend@3.14:
291
+ version "3.14.0"
292
+ resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-3.14.0.tgz#d3a9c54437c08f5188f87b1f4480ba60e95c8eb6"
293
+ integrity sha512-y7FTuihCSA8Hty+e9h0uPhCoNanCAN+CLioNFlPmlbeHXpbi09VMyxTcH+XfnMPY4Cp++7096v0rLwwdapTXnA==
294
+
290
295
  graceful-fs@^4.1.2:
291
296
  version "4.2.10"
292
297
  resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"