@adobe/helix-rum-enhancer
Advanced tools
Comparing version 2.21.1 to 2.22.0
@@ -0,1 +1,13 @@ | ||
# [2.22.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.21.1...v2.22.0) (2024-09-18) | ||
### Bug Fixes | ||
* **consent:** spelling ([1279aca](https://github.com/adobe/helix-rum-enhancer/commit/1279aca5ab997b33428766a9c552cbde7007804a)) | ||
### Features | ||
* **onetrust:** detect supressed consent banner ([440473e](https://github.com/adobe/helix-rum-enhancer/commit/440473ea92fcd281eacad5a14478d3d4751a3c1a)) | ||
## [2.21.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.21.0...v2.21.1) (2024-09-18) | ||
@@ -2,0 +14,0 @@ |
@@ -24,4 +24,9 @@ /* | ||
const trackShowConsent = () => { | ||
if (document.querySelector('body > div#onetrust-consent-sdk')) { | ||
sampleRUM('consent', { source: 'onetrust', target: 'show' }); | ||
const otsdk = document.querySelector('body > div#onetrust-consent-sdk'); | ||
if (otsdk) { | ||
if (otsdk.checkVisibility && !otsdk.checkVisibility()) { | ||
sampleRUM('consent', { source: 'onetrust', target: 'suppressed' }); | ||
} else { | ||
sampleRUM('consent', { source: 'onetrust', target: 'show' }); | ||
} | ||
if (consentMutationObserver) { | ||
@@ -28,0 +33,0 @@ consentMutationObserver.disconnect(); |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "2.21.1", | ||
"version": "2.22.0", | ||
"description": "Helix RUM Enhancer", | ||
@@ -42,3 +42,3 @@ "main": "src/index.js", | ||
"@semantic-release/npm": "12.0.1", | ||
"@web/test-runner": "0.18.3", | ||
"@web/test-runner": "0.19.0", | ||
"@web/test-runner-commands": "0.9.0", | ||
@@ -49,7 +49,7 @@ "@web/test-runner-mocha": "0.9.0", | ||
"codecov": "3.8.3", | ||
"eslint": "8.57.0", | ||
"eslint": "8.57.1", | ||
"eslint-plugin-header": "3.1.1", | ||
"eslint-plugin-import": "2.30.0", | ||
"husky": "9.1.5", | ||
"jsdoc-to-markdown": "9.0.0", | ||
"husky": "9.1.6", | ||
"jsdoc-to-markdown": "9.0.1", | ||
"junit-report-builder": "5.0.0", | ||
@@ -59,7 +59,7 @@ "lint-staged": "15.2.10", | ||
"mocha-multi-reporters": "1.5.1", | ||
"rollup": "4.21.2", | ||
"rollup": "4.21.3", | ||
"rollup-plugin-cleanup": "3.2.1", | ||
"rollup-plugin-checksum": "1.0.1", | ||
"rollup-plugin-eslint-bundle": "9.0.0", | ||
"semantic-release": "24.1.0", | ||
"semantic-release": "24.1.1", | ||
"web-vitals": "4.2.3" | ||
@@ -66,0 +66,0 @@ }, |
@@ -129,4 +129,9 @@ /* | ||
const trackShowConsent = () => { | ||
if (document.querySelector('body > div#onetrust-consent-sdk')) { | ||
sampleRUM('consent', { source: 'onetrust', target: 'show' }); | ||
const otsdk = document.querySelector('body > div#onetrust-consent-sdk'); | ||
if (otsdk) { | ||
if (otsdk.checkVisibility && !otsdk.checkVisibility()) { | ||
sampleRUM('consent', { source: 'onetrust', target: 'suppressed' }); | ||
} else { | ||
sampleRUM('consent', { source: 'onetrust', target: 'show' }); | ||
} | ||
if (consentMutationObserver) { | ||
@@ -133,0 +138,0 @@ consentMutationObserver.disconnect(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91789
1122