@govuk-one-login/frontend-ui 4.1.1 → 4.1.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.
@@ -138,7 +138,12 @@
138
138
  {% endblock %}
139
139
 
140
140
  {% block bodyEnd %}
141
- <script type="text/javascript" src="/public/scripts/application.js"></script>
141
+ <script type="module" nonce='{{ scriptNonce }}' src="/public/scripts/govuk-frontend.min.js"></script>
142
+ <script type="module" nonce='{{ scriptNonce }}'>
143
+ import {initAll} from '/public/scripts/govuk-frontend.min.js'
144
+ initAll()
145
+ </script>
146
+ <script type="module" src="/public/scripts/application.js"></script>
142
147
  <script type="text/javascript" src="/public/scripts/analytics.js" nonce='{{scriptNonce}}'></script>
143
148
  <script type="text/javascript" nonce='{{scriptNonce}}'>
144
149
  window.DI = window.DI || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-one-login/frontend-ui",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "",
5
5
  "main": "build/cjs/backend/index.cjs",
6
6
  "module": "build/esm/backend/index.js",