diff --git a/README.md b/README.md index d543e8a4..9b3d631b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ **Note:** Previously also used by [CVR](https://gitlab.mot.dvsacloud.uk/vehicle-recalls/recalls-app) / [MOTH](https://github.com/dvsa/mot-history) / [MOTR](https://github.com/dvsa/motr) +**IMPORTANT: NEVER UPDATE DIST FILES DIRECTLY!** They are generated from `/src` directory with `npm run build-production`. + ## Localdev setup **Requirements: Node.js "^12.16"** diff --git a/composer.json b/composer.json index 93458cb5..5c1a4f79 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dvsa/front-end", "description": "DVSA front-end assets used within all applications", - "version": "1.8.2", + "version": "1.8.3", "homepage": "https://github.com/dvsa/front-end", "license": "MIT" } diff --git a/dist/assets/javascripts/development.bundle.js b/dist/assets/javascripts/development.bundle.js index 361b1700..4cc9b180 100644 --- a/dist/assets/javascripts/development.bundle.js +++ b/dist/assets/javascripts/development.bundle.js @@ -1,8 +1,8 @@ /*! * * Name: dvsa-front-end/development - * Version: 1.8.2 - * Timestamp: November 1st 2024, 3:29:05 pm + * Version: 1.8.3 + * Timestamp: November 4th 2024, 3:18:48 pm * Source: https://github.com/dvsa/front-end * */!function(){var e,t={2912:function(e){var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var r=n(1),o=n(6),i=n(7),a=n(16),s=n(18),l="prototype",u=function(e,t,n){var c,d,p,f,h=e&u.F,g=e&u.G,v=e&u.S,m=e&u.P,y=e&u.B,b=g?r:v?r[t]||(r[t]={}):(r[t]||{})[l],w=g?o:o[t]||(o[t]={}),_=w[l]||(w[l]={});for(c in g&&(n=t),n)p=((d=!h&&b&&void 0!==b[c])?b:n)[c],f=y&&d?s(p,r):m&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&u.U),w[c]!=p&&i(w,c,f),m&&_[c]!=p&&(_[c]=p)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",(function(){return s})),n.d(t,"createElement",(function(){return s})),n.d(t,"cloneElement",(function(){return c})),n.d(t,"Component",(function(){return B})),n.d(t,"render",(function(){return L})),n.d(t,"rerender",(function(){return h})),n.d(t,"options",(function(){return o}));var r=function(){},o={},i=[],a=[];function s(e,t){var n,s,l,u,c=a;for(u=arguments.length;2l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var r=n(5),o=a(n(60)),i=a(n(61));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),i||!l&&u&&c?o(s,(function(e){var n=0=u,I=this.props.showNoOptionsFound&&F&&k&&A&&N,B=i+"__wrapper",L=i+"__input",M=null!==E?" "+L+"--focused":"",j=this.props.showAllValues?" "+L+"--show-all-values":" "+L+"--default",H=i+"__dropdown-arrow-down",R=-1!==E&&null!==E,q=i+"__menu",z=q+"--"+a,D=q+"--"+(C||I?"visible":"hidden"),$=i+"__option",G=i+"__hint",V=this.templateInputValue(S[O]),U=V&&0===V.toLowerCase().indexOf(T.toLowerCase())&&P?T+V.substr(T.length):"",X=d&&U;return h&&"string"==typeof(e=w({className:H}))&&(e=(0,r.createElement)("div",{className:i+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,r.createElement)("div",{className:B,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":C?"true":"false"},(0,r.createElement)(o.default,{length:S.length,queryLength:T.length,minQueryLength:u,selectedOption:this.templateInputValue(S[O]),selectedOptionIndex:O,tQueryTooShort:v,tNoResults:m,tSelectedOption:y,tResults:b}),X&&(0,r.createElement)("span",null,(0,r.createElement)("input",{className:G,readonly:!0,tabIndex:"-1",value:U})),(0,r.createElement)("input",s({"aria-activedescendant":!!R&&l+"__option--"+E,"aria-owns":l+"__listbox",autoComplete:"off",className:""+L+M+j,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:p,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:f,value:T})),e,(0,r.createElement)("ul",{className:q+" "+z+" "+D,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},S.map((function(e,n){var o=(-1===E?O===n:E===n)&&null===x?" "+$+"--focused":"",i=n%2?" "+$+"--odd":"";return(0,r.createElement)("li",{"aria-selected":E===n,className:""+$+o+i,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:l+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})})),I&&(0,r.createElement)("li",{className:$+" "+$+"--no-results"},g())))},t}(r.Component);(t.default=f).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:i.default}},function(e,t,n){var r=n(9),o=n(53),i=n(28),a=n(26)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(15)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("