govuk_publishing_components 31.0.0 → 31.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js +2 -0
- data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +536 -481
- data/app/assets/stylesheets/component_guide/application.scss +10 -12
- data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +2 -2
- data/lib/govuk_publishing_components/presenters/machine_readable/creative_work_schema.rb +1 -1
- data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +1 -1
- data/lib/govuk_publishing_components/presenters/machine_readable/potential_search_action_schema.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8f89b321d55b2623a30beb4b0f53a54a6b5174bbcc1ba7f4e15097fbaf0e4b0
|
4
|
+
data.tar.gz: db8e005e0bf1068eededf53799905388fe09ea2ca8bb0c5fe62de95e8347e3de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29904c326d8df2559116c9adfaaed028ff593a371585a04c1409067b7d21221a937bdace0ab8904b421e744fdc2cd12dcefda6428b370c98dcd3defe7da0b03e
|
7
|
+
data.tar.gz: 016de6ad1910ffa3563760f7dc8dd79102b4258bf7c56f0f1f72da4815925753252e7b3682e23e4b40942f9f3ca5536e3aeea7afc2fa8f070f8d913bd4bcf5ce
|
data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-ecommerce-tracker.js
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
init: function (isNewPageLoad) {
|
13
13
|
if (window.dataLayer) {
|
14
|
+
/* The data-ga4-ecommerce attribute may be present on several DOM elements e.g. search results and spelling
|
15
|
+
suggestions, hence why document.querySelectorAll is required */
|
14
16
|
this.searchResultsBlocks = document.querySelectorAll('[data-ga4-ecommerce]')
|
15
17
|
this.isNewPageLoad = isNewPageLoad
|
16
18
|
|