hmrc-frontend 6.72.0 → 6.74.0

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.
@@ -10,7 +10,7 @@
10
10
  "pluginDependencies": [
11
11
  {
12
12
  "packageName": "govuk-frontend",
13
- "minVersion": "5.10.2"
13
+ "minVersion": "5.11.0"
14
14
  }
15
15
  ],
16
16
  "assets": [
package/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 6.72.0
1
+ 6.74.0
@@ -1,2 +1,2 @@
1
1
  .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #0b0c0c;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:2.5rem;line-height:1.25;margin-bottom:0;width:100%}.autocomplete__input{background-color:rgba(0,0,0,0);position:relative}.autocomplete__hint{color:#505a5f;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{-webkit-box-shadow:inset 0 0 0 2px;box-shadow:inset 0 0 0 2px;outline:3px solid #fd0;outline-offset:0}.autocomplete__input--show-all-values{cursor:pointer;padding:5px 35px 5px 5px}.autocomplete__dropdown-arrow-down{display:inline-block;height:24px;position:absolute;right:8px;top:10px;width:24px;z-index:-1}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{-webkit-box-shadow:0 2px 6px rgba(0,0,0,.257);box-shadow:0 2px 6px rgba(0,0,0,.257);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:1px solid #b1b4b6;border-left-width:0;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#f3f2f1}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:none}@media (-ms-high-contrast:active),(forced-colors:active){.autocomplete__menu{border-color:FieldText}.autocomplete__option{background-color:Field;color:FieldText}.autocomplete__option--focused,.autocomplete__option:hover{background-color:Highlight;background-color:SelectedItem;border-color:SelectedItem;color:HighlightText;color:SelectedItemText;forced-color-adjust:none;outline-color:SelectedItemText}}.autocomplete__option--no-results{background-color:#f3f2f1;color:#505a5f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1rem;font-weight:400}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1.1875rem;line-height:1.3157894737}}.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:1rem;line-height:1.25}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:sans-serif}}@media (min-width:40.0625em){.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-size:1.1875rem;line-height:1.3157894737}}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-size:14pt;line-height:1.15}}.govuk-form-group--error div:has(+.govuk-select--error[data-module=hmrc-accessible-autocomplete])>.autocomplete__wrapper .autocomplete__input{border-color:#d4351c}.autocomplete__dropdown-arrow-down{z-index:0;pointer-events:none}
2
- /*# sourceMappingURL=maps/accessible-autocomplete-6.72.0.css.map */
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-6.74.0.css.map */
package/hmrc/all.js CHANGED
@@ -714,27 +714,45 @@
714
714
  };
715
715
 
716
716
  function initAll() {
717
+ function logAndIgnoreErrors(init) {
718
+ try {
719
+ init();
720
+ } catch (error) {
721
+ // eslint-disable-next-line no-console
722
+ console.error('hmrc-frontend component initialisation failed', error);
723
+ }
724
+ }
717
725
  var $AccountMenuSelector = '[data-module="hmrc-account-menu"]';
718
726
  if (document.querySelector($AccountMenuSelector)) {
719
- new AccountMenu($AccountMenuSelector).init();
727
+ logAndIgnoreErrors(function () {
728
+ new AccountMenu($AccountMenuSelector).init();
729
+ });
720
730
  }
721
731
  var $HmrcPrintLinks = document.querySelectorAll('a[data-module="hmrc-print-link"]');
722
732
  $HmrcPrintLinks.forEach(function ($HmrcPrintLink) {
723
- new HmrcPrintLink($HmrcPrintLink, window).init();
733
+ logAndIgnoreErrors(function () {
734
+ new HmrcPrintLink($HmrcPrintLink, window).init();
735
+ });
724
736
  });
725
737
  var sessionActivityService = new SessionActivityService(window.BroadcastChannel);
726
738
  sessionActivityService.logActivity();
727
739
  var $TimeoutDialog = document.querySelector('meta[name="hmrc-timeout-dialog"]');
728
740
  if ($TimeoutDialog) {
729
- new TimeoutDialog($TimeoutDialog, sessionActivityService).init();
741
+ logAndIgnoreErrors(function () {
742
+ new TimeoutDialog($TimeoutDialog, sessionActivityService).init();
743
+ });
730
744
  }
731
745
  var $UserResearchBanner = document.querySelector('[data-module="hmrc-user-research-banner"]');
732
746
  if ($UserResearchBanner) {
733
- new UserResearchBanner($UserResearchBanner).init();
747
+ logAndIgnoreErrors(function () {
748
+ new UserResearchBanner($UserResearchBanner).init();
749
+ });
734
750
  }
735
751
  var $BackLinks = document.querySelectorAll('[data-module="hmrc-back-link"]');
736
752
  $BackLinks.forEach(function ($BackLink) {
737
- new BackLinkHelper($BackLink, window, document).init();
753
+ logAndIgnoreErrors(function () {
754
+ new BackLinkHelper($BackLink, window, document).init();
755
+ });
738
756
  });
739
757
  }
740
758
  var all = {