{"_id":"hof-behaviour-summary-page","_rev":"62-9f2c4852fb5a6afde45090247ec13278","name":"hof-behaviour-summary-page","dist-tags":{"latest":"3.3.0"},"versions":{"2.0.0":{"name":"hof-behaviour-summary-page","version":"2.0.0","author":"","license":"MIT","_id":"hof-behaviour-summary-page@2.0.0","maintainers":[{"name":"joefitter","email":"hello@joefitter.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"dist":{"shasum":"cc3f240d2396fa5b1aa554f02963a7292e894195","tarball":"https://registry.npmjs.org/hof-behaviour-summary-page/-/hof-behaviour-summary-page-2.0.0.tgz","integrity":"sha512-YiTMOojCJMn21o4RmscM5yoKIZ1U+J3eE5vju8trGaLQFpQxgO4XkDpf2cwEhkgiBRKsL5dvngwV4jG2ijHzcg==","signatures":[{"sig":"MEUCIQCWiou5V5f/9Eh4TuwJ3QNxtkJdr6KvjBtlTS2bjxv6xwIgB3J48joJrPpFCz0q9iUYZi6oanKKbpeLt+p89o41gu8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cc3f240d2396fa5b1aa554f02963a7292e894195","gitHead":"1a3cd5688d5c9da99f76076784fa180e13104818","scripts":{"test":"npm run test:lint && npm run test:unit","test:lint":"eslint .","test:unit":"istanbul cover _mocha"},"_npmUser":{"name":"joefitter","email":"hello@joefitter.com"},"deprecated":"DEPRECATED, this is built into hof v19 <(^_^)> & should not be installed separately","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"_npmVersion":"3.10.10","description":"HOF behaviour for showing summary pages","directories":{},"_nodeVersion":"6.2.2","dependencies":{"lodash":"^4.17.4"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","sinon":"^1.17.7","eslint":"^3.14.1","reqres":"^1.2.2","mixwith":"^0.1.1","istanbul":"^0.4.5","hof-model":"^2.0.0","sinon-chai":"^2.8.0","hof-form-controller":"^3.0.1","eslint-config-homeoffice":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-behaviour-summary-page-2.0.0.tgz_1487171193561_0.986414882587269","host":"packages-18-east.internal.npmjs.com"}},"3.0.0":{"name":"hof-behaviour-summary-page","version":"3.0.0","author":"","license":"MIT","_id":"hof-behaviour-summary-page@3.0.0","maintainers":[{"name":"joefitter","email":"hello@joefitter.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"dist":{"shasum":"54d4d58dbd8ab6f4f936d42c3cfd53063c5f727e","tarball":"https://registry.npmjs.org/hof-behaviour-summary-page/-/hof-behaviour-summary-page-3.0.0.tgz","integrity":"sha512-BlcSj9ibhBzl6nrmnK4K1FZpGfJGoktsWk7J9TYSCjBgpQ92+fl+lTYwImKz30nQwlxTfsnAATWDLCDhBoF88Q==","signatures":[{"sig":"MEYCIQCyRgGTtPOcz8o5m/TnnMhV+/7Ls8RQtAHAZGCoxexVfwIhAJgwvVEgOeaKIT/CPAJlBAJYjJPs+r7maQs3wK0GAPXY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"54d4d58dbd8ab6f4f936d42c3cfd53063c5f727e","gitHead":"931ed41bf3353dd8f57e86384a98ba684841b7b9","scripts":{"test":"npm run test:lint && npm run test:unit","test:lint":"eslint .","test:unit":"istanbul cover _mocha"},"_npmUser":{"name":"joefitter","email":"hello@joefitter.com"},"deprecated":"DEPRECATED, this is built into hof v19 <(^_^)> & should not be installed separately","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"_npmVersion":"3.10.10","description":"HOF behaviour for showing summary pages","directories":{},"_nodeVersion":"6.2.2","dependencies":{"lodash":"^4.17.4"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","sinon":"^1.17.7","eslint":"^3.14.1","reqres":"^1.2.2","mixwith":"^0.1.1","istanbul":"^0.4.5","hof-model":"^2.0.0","sinon-chai":"^2.8.0","hof-form-controller":"^3.0.1","eslint-config-homeoffice":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-behaviour-summary-page-3.0.0.tgz_1488195192398_0.48529177717864513","host":"packages-18-east.internal.npmjs.com"}},"3.1.0":{"name":"hof-behaviour-summary-page","version":"3.1.0","author":"","license":"MIT","_id":"hof-behaviour-summary-page@3.1.0","maintainers":[{"name":"joefitter","email":"hello@joefitter.com"},{"name":"josephchapman","email":"info@josephchapman.com"},{"name":"easternbloc","email":"ben@marvell-consulting.com"},{"name":"lennym","email":"leonard.martin@gmail.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"dist":{"shasum":"f709615cdcf9f6fc398c284bbc766fe734dd88f2","tarball":"https://registry.npmjs.org/hof-behaviour-summary-page/-/hof-behaviour-summary-page-3.1.0.tgz","integrity":"sha512-PyexR6/0/V5Qa4p9GJYXPzUnKmu8iLuyDrtPT8lcljiVlE6TFNshFHfBlss60qLRhLu6x8hTQDBaGlG828Ta1g==","signatures":[{"sig":"MEUCIQC0YHTXc27F5XPVokzvmbz72OUvfPxCSsCvYrUkqdmb/QIgNkL5vCKF/ZjsJb9+2CXtvd3mihnOBxUEv4ub4qrPcYQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"0de53cfa6986a6fb726c9fb1ea814c35203d256c","scripts":{"test":"npm run test:lint && npm run test:unit","test:lint":"eslint .","test:unit":"istanbul cover _mocha"},"_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"deprecated":"DEPRECATED, this is built into hof v19 <(^_^)> & should not be installed separately","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"_npmVersion":"5.4.2","description":"HOF behaviour for showing summary pages","directories":{},"_nodeVersion":"8.8.1","dependencies":{"lodash":"^4.17.4"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","sinon":"^1.17.7","eslint":"^3.14.1","reqres":"^1.2.2","mixwith":"^0.1.1","istanbul":"^0.4.5","hof-model":"^2.0.0","sinon-chai":"^2.8.0","hof-form-controller":"^3.0.1","eslint-config-homeoffice":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-behaviour-summary-page-3.1.0.tgz_1511879416465_0.28429488465189934","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"hof-behaviour-summary-page","version":"3.2.0","author":"","license":"MIT","_id":"hof-behaviour-summary-page@3.2.0","maintainers":[{"name":"andrew.moody.ho","email":"andrew.moody@digital.homeoffice.gov.uk"},{"name":"coupey","email":"paul@coupey.co.uk"},{"name":"easternbloc","email":"ben@marvell-consulting.com"},{"name":"joefitter","email":"hello@joefitter.com"},{"name":"josephchapman","email":"joe@creatify.io"},{"name":"lennym","email":"leonard.martin@gmail.com"},{"name":"sulthan-ahmed","email":"sulthanahmeduk@gmail.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"dist":{"shasum":"bd533382199bc36882ae94d52192edf3cb743ebc","tarball":"https://registry.npmjs.org/hof-behaviour-summary-page/-/hof-behaviour-summary-page-3.2.0.tgz","fileCount":16,"integrity":"sha512-rxrTqDQmCszHL9W2ZmVLI0uaEMajflVxQsD4pTASObdrFzwysNiyrUbc0FhFn2ozx4pqX5g4sQGRTQ0If2Ey0A==","signatures":[{"sig":"MEQCIDokC86/0bWgDdKke90D2MhDZvuu5fDcZNcF7EvNh8NVAiBih+WhiGqsQKhYyB2u+MY4Ik4nnVJdJ/AzPyOUhEF37Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezPQDCRA9TVsSAnZWagAAAu0P/RkF+PTxgOpvM7NUDgqf\nWrS8DEJabjt446cGNoFheZkXo3x+Lph5KvgwipZ0UGgmuyGN15CZRc7ZoBy9\nYZ9nA6Kj78idqsZI5Jtldmv0h+foGNimGuh4366BlLHbiExwmi2B5SUW/U9Z\nugadDg9sfQQEp2Pye1GIApa7PpMwce5CKD4hFXWMHPX+Mu8KgO7wVQgxcAcE\nHsh7k2dpYWMlfQNXY1xl4eJ0Hn0kHfC9Cwqg5BZ81zcPMyfrkZTBFzdtwF8/\noqO/8U2VrXBA1WGGOnn+gNDVtpdTfm/9pOlMGRUM6dfKea1pXUfLkl1j8SpF\n73hyz8nKaRNs20GfJO6pUhg9T8LWuHJRSeUO33iGF1dx1j/QSRdyvP9febUE\n3/CFdmbM/2lT4H+zF5Kwp+i0MB3qYfWYypR+gHvC7Mi/5HWpbtvmkQjLXkXC\nfTFDTAJwaOOEd1gYu/IL3HxLohFXG/E2icNTQuLGqduJxeXBbOtiFY8FQ5ag\ndd/UbKu63qujXp9xH1rCQ+uwOQRU0dc10l50D7LqzMtFJ7Ax5JXqUwgRVRVM\ngSMd1idzU+ztxh0MnIkO4WRiyBi6myoIwbaCHiL7OGG0f1t+z040SW2Lw2yQ\nCIMfxr41f7sF5FL5NbVTlSjfhu17C4vE75Piw4hjVz+HmsegaKqVmpSBkw+k\nIIzo\r\n=VaD1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2c1aa1fdefd16724b440b1d56eca90bba77d6476","scripts":{"test":"npm run test:lint && npm run test:unit","test:lint":"eslint .","test:unit":"nyc mocha"},"_npmUser":{"name":"andrew.moody.ho","email":"andrew.moody@digital.homeoffice.gov.uk"},"deprecated":"DEPRECATED, this is built into hof v19 <(^_^)> & should not be installed separately","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"_npmVersion":"6.11.3","description":"HOF behaviour for showing summary pages","directories":{},"_nodeVersion":"12.10.0","dependencies":{"lodash":"^4.17.15"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.1","chai":"^3.5.0","mocha":"^7.2.0","sinon":"^1.17.7","eslint":"^4.18.2","reqres":"^1.2.2","mixwith":"^0.1.1","hof-model":"^2.0.0","sinon-chai":"^2.8.0","hof-form-controller":"^3.0.1","eslint-config-homeoffice":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-behaviour-summary-page_3.2.0_1590490114842_0.8208735487248282","host":"s3://npm-registry-packages"}},"3.2.1":{"name":"hof-behaviour-summary-page","version":"3.2.1","author":"","license":"MIT","_id":"hof-behaviour-summary-page@3.2.1","maintainers":[{"name":"andrew.moody.ho","email":"andrew.moody@digital.homeoffice.gov.uk"},{"name":"coupey","email":"paul@coupey.co.uk"},{"name":"easternbloc","email":"ben@marvell-consulting.com"},{"name":"joefitter","email":"hello@joefitter.com"},{"name":"josephchapman","email":"joe@creatify.io"},{"name":"lennym","email":"leonard.martin@gmail.com"},{"name":"sulthan-ahmed","email":"sulthanahmeduk@gmail.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"dist":{"shasum":"510474cff11ccf162606bc9d5a7e605f617e4989","tarball":"https://registry.npmjs.org/hof-behaviour-summary-page/-/hof-behaviour-summary-page-3.2.1.tgz","fileCount":16,"integrity":"sha512-wCAFCtSnDhErXssXwsizdqIE9OnAMs+jJwbRdC2uiaBypD0FYX2QJsyX6gNpWWtcVdjq8bnNL+NAuGQYr1/h2w==","signatures":[{"sig":"MEQCIC+LHUbSc/am2phUHQxKmnL0EsieaRJ1tNNGQw/vdN0tAiBfTl+UoJRywGqCMeMKZQ2SgNy8Rvd9adEC8noJqBLmcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezPkPCRA9TVsSAnZWagAAbhUP/jl3EK1//Gu6qLI4z7Y4\ng4CKgWh47tF4DC0vafmLa283zwLnqAPYARAoIb9lnZNIZU4Ru2jYy5xPSblS\n3mG+Bbcr4kEMgtrcPtliApnLHAY+bFeH5mh+QkaZYQouCmHXeFglEZoJjCz/\nvU19/DcVF974sv6L+gQ4VZyE13Y4w297nplWiqikYHGfUJ2XSqC4jLDiLTXN\nUwohgl2bhydfXvhs8Lh6j3C1SmKpmmkNWCc22rSaKMdy8CpDJsmVDHeH87ct\nNKmJBlLAAJg82IxoPBgthP3BPxT4lkoEIdWgIe+wjXhiTAitjUBTyKts0myz\nDe1tV0M5ScSocbFVogIY5/8Jc+NI4Er6YjDevUbIuYOUH0I5RPkVab66W4wa\nudHChSgtb3bh6f52cBKvZF3LPub5L3mqvn2R3wQ+cqT9sHice6liJwA062eP\nsJz9DxraFLOn7pi/36R4mjhNy5DDC/72Kj+kGc2uTQpSnjyLVQ5RLA88urYq\nGLTfLUSoHvARuHsp6znFOKRJ/Uq2B/ID+MNZ38wHsLU/wxr5EY6LI/HM/DXs\nwTCU24y3vJY9ve3EbQrNXjReSyhXiqNut62KFyI+ddV197jeT4/da3c177QX\nNJRKWIPyDb2vDE68ks81v8YL5HJgWEiPo05MJNXZ+cXhYWClMPr6MphMx5ZV\nzFpS\r\n=oOOq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"d28f5686e0a13c75d4b321a8b36f26c15d17bc0b","scripts":{"test":"npm run test:lint && npm run test:unit","test:lint":"eslint .","test:unit":"nyc mocha"},"_npmUser":{"name":"andrew.moody.ho","email":"andrew.moody@digital.homeoffice.gov.uk"},"deprecated":"DEPRECATED, this is built into hof v19 <(^_^)> & should not be installed separately","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"_npmVersion":"6.11.3","description":"HOF behaviour for showing summary pages","directories":{},"_nodeVersion":"12.10.0","dependencies":{"lodash":"^4.17.15"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.1","chai":"^3.5.0","mocha":"^7.2.0","sinon":"^1.17.7","eslint":"^4.18.2","reqres":"^1.2.2","mixwith":"^0.1.1","hof-model":"^2.0.0","sinon-chai":"^2.8.0","hof-form-controller":"^3.0.1","eslint-config-homeoffice":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-behaviour-summary-page_3.2.1_1590491406869_0.42921583718906176","host":"s3://npm-registry-packages"}},"3.3.0":{"name":"hof-behaviour-summary-page","version":"3.3.0","author":"","license":"MIT","_id":"hof-behaviour-summary-page@3.3.0","maintainers":[{"name":"andrew.moody.ho","email":"andrew.moody@digital.homeoffice.gov.uk"},{"name":"coupey","email":"paul@coupey.co.uk"},{"name":"easternbloc","email":"ben@marvell-consulting.com"},{"name":"joefitter","email":"hello@joefitter.com"},{"name":"josephchapman","email":"joe@creatify.io"},{"name":"lennym","email":"leonard.martin@gmail.com"},{"name":"sulthan-ahmed","email":"sulthanahmeduk@gmail.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"dist":{"shasum":"079a100c87631dd1ccb9163d1b2132e6e22a55a5","tarball":"https://registry.npmjs.org/hof-behaviour-summary-page/-/hof-behaviour-summary-page-3.3.0.tgz","fileCount":16,"integrity":"sha512-gdveUeduK9nwHuQsWUIue07Qp8DNRuCPGQPBpYPfPfyxcPDxKVDeWO6FSeAStMz2zcAhkP5ZPBOMJ4Q20ITAhQ==","signatures":[{"sig":"MEUCIGDTfT60zs+Ms59YfBCib83guBtBD7wt6Hvs1lWhTHVHAiEAxhFTrLj6zXVBEn8WZ8nNpPMjsOfioYQ0v0mdvLinKDM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe31ewCRA9TVsSAnZWagAA8ssQAIYULVRWQE+iB5Uw/vUd\n35PU9vN1TGKn4xIug+z0qe82E2vlAaQo4H6O32t165M82Hjk6kWEP7+jOe7N\nJqiw6+1igC75v0UjH21Q6ArO8cUCuKY5kMfnxsAaxrN+dnn2/HB5vi63W5U3\nokIv1tZKQN5yYSWThIJxYH1pYyDVDlBtDD8wOCEvNngwhltCaq5aN29vq7bn\nAri6/VAdSByA48lbrTH0CaVyMQ5w336hFYw1X8Vf3Xs5yatHUqPQGo+qShK2\nac7Z5OOh2p9SaTdnOGRZk4rxqLn3o8foHjhLFR9dQWR8SKPTO5uiWPcioAAf\ngv+VYi56gqOuHmWY6InTW1tlKiH2CqZbC+1KiXSXTmnCcYjzNMfKl3R0DOcU\nzqux6/MycpUtWFNfZPwY/KlaaXUlDEBg3rWJ5s8N/5FbYMkF58dnC+LZm9LR\n2R7l5Ehtmyb181yr7UbJNwQvzoRzXd9Rhem0AEY6qnNR+CokUaaBe4wdYlXj\n0xCsaYPd0GjmfrBTwvV2xYX40CONh5gwmA6V3kbRRIzF92NCFbJaUNtDWQwT\nXLVSvgPmCCBJvlYi8IRHozPfdQQmyznIwWvJoU2avZIQ3PgUh9sxz4uizFtZ\ndlwJsFihrerCbngUyBrEpUc1pwPYSmY53F9C0UvzuPeJte5CdSCgqLjYpckZ\ntOxQ\r\n=hJ+4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"4a9a5dcf6c942fb08f3f488a539d5527f5469f02","scripts":{"test":"npm run test:lint && npm run test:unit","test:lint":"eslint .","test:unit":"nyc mocha","unit:debug":"mocha --inspect-brk"},"_npmUser":{"name":"andrew.moody.ho","email":"andrew.moody@digital.homeoffice.gov.uk"},"deprecated":"DEPRECATED, this is built into hof v19 <(^_^)> & should not be installed separately","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"_npmVersion":"6.11.3","description":"HOF behaviour for showing summary pages","directories":{},"_nodeVersion":"12.10.0","dependencies":{"lodash":"^4.17.15"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.1","chai":"^3.5.0","mocha":"^7.2.0","sinon":"^1.17.7","eslint":"^4.18.2","reqres":"^1.2.2","mixwith":"^0.1.1","hof-model":"^2.0.0","sinon-chai":"^2.8.0","hof-form-controller":"^3.0.1","eslint-config-homeoffice":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-behaviour-summary-page_3.3.0_1591695280464_0.7802181977612197","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-02-15T15:06:34.141Z","modified":"2026-09-21T15:12:48.199Z","2.0.0":"2017-02-15T15:06:34.141Z","3.0.0":"2017-02-27T11:33:12.972Z","3.1.0":"2017-11-28T14:30:17.406Z","3.2.0":"2020-05-26T10:48:35.129Z","3.2.1":"2020-05-26T11:10:07.107Z","3.3.0":"2020-06-09T09:34:40.561Z"},"bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page/issues"},"license":"MIT","homepage":"https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page#readme","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-behaviour-summary-page.git","type":"git"},"description":"HOF behaviour for showing summary pages","maintainers":[{"email":"aaron.russell@digital.homeoffice.gov.uk","name":"aaronrussellho"},{"email":"sas-hof-test@digital.homeoffice.gov.uk","name":"hof-bot-user"},{"email":"dk4g.blob@gmail.com","name":"dk4g"},{"email":"gregory.wolverson@digital.homeoffice.gov.uk","name":"greg_wolverson_ho"},{"email":"vinodha.samiyappan@digital.homeoffice.gov.uk","name":"vinodha.s"},{"email":"megan.john@digital.homeoffice.gov.uk","name":"meganjohn"},{"email":"nese.zorba@digital.homeoffice.gov.uk","name":"nzorba"},{"email":"rayhannur.rohman@digital.homeoffice.gov.uk","name":"rayhannurrohmanho"},{"email":"vivek.kumar1@digital.homeoffice.gov.uk","name":"vivekkumar-ho"},{"email":"hello@joefitter.com","name":"joefitter"}],"readme":"# hof-behaviour-summary-page\n\nHOF behaviour for showing summary pages\n\nThe behaviour mixin will create a set of \"locals\" data which is compatible with [the `confirm` view from `hof-template-partials`](https://github.com/UKHomeOfficeForms/hof-template-partials/blob/master/views/confirm.html).\n\n## Usage\n\nIf no sections config is passed, then the mixin will create a section for each step that has fields, and a row within each section for each field on that step.\n\n```js\n'/confirm': {\n  behaviours: require('hof-behaviour-summary-page'),\n  ...\n}\n```\n\n\nAlternatively, sections can be defined manually as follows:\n\n```js\n'/confirm': {\n  behaviours: require('hof-behaviour-summary-page'),\n  sections: {\n    'museum-details': [\n      'name',\n      {\n        field: 'exhibit-addresses',\n        parse: (value) => value.map(a => a.address),\n        step: '/exhibit-add-another-address'\n      }\n    ],\n    'contact': [\n      'contact-name',\n      'contact-email',\n      'contact-phone',\n      {\n        field: 'contact-address',\n        step: '/contact-address'\n      }\n    ]\n  },\n  ...\n}\n```\n\n## Configuration\n\nThe `sections` configuration should be a map of arrays, where the entries in the array are the fields that should be shown within that section.\n\n### Field configuration\n\nFields can be defined as simple strings of the field key, in which case all default configuration will be used.\n\nAlternatively, a field can be passed as an object with a `field` property defining the field key, and any additional properties as follows:\n\n* `step` - `String` defines the step which the user is returned to to edit the field value. By default this is the first step in the form's steps configuration which contains the field.\n* `parse` - `Function` can parse the value for the field from the session into a value for display.\n* `derivation` - `Object` allows for a new derived field based on a combination of other fields in the form. Note that\n  if both `derivation` and `parse` are specified then parse will be applied to the result of derivation. E.G. \n  ```javascript\n     derivation: {\n       fromFields: ['field-one', 'field-two'],\n       combiner: (values) => values.map(it => Number(it)).reduce((a, b) => a + b, 0) \n     }\n  ```\n\n## Translations\n\nThe content for section headings and field labels will be loaded from translation files based on the keys.\n\n### Section headings\n\nTranslations for section headings are looked for in the following order:\n\n* `pages.confirm.sections.${key}.header`\n* `pages.${key}.header`\n\n### Field labels\n\nTranslations for field labels are looked for in the following order:\n\n* `pages.confirm.fields.${key}.label`\n* `fields.${key}.label`\n* `fields.${key}.legend`\n","readmeFilename":"README.md"}