@adobe/helix-rum-enhancer
Advanced tools
Comparing version 1.9.1 to 1.10.0
@@ -0,1 +1,8 @@ | ||
# [1.10.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.9.1...v1.10.0) (2024-01-16) | ||
### Features | ||
* **sourceselector:** highlight clicks on buttons and CTAs ([4cd62b8](https://github.com/adobe/helix-rum-enhancer/commit/4cd62b86eb08c496712deba42d3f011b8cbac5c6)) | ||
## [1.9.1](https://github.com/adobe/helix-rum-enhancer/compare/v1.9.0...v1.9.1) (2024-01-11) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "1.9.1", | ||
"version": "1.10.0", | ||
"description": "Helix RUM Enhancer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -127,4 +127,4 @@ /* | ||
const blockName = element.closest('.block') ? element.closest('.block').getAttribute('data-block-name') : ''; | ||
if (element.id || formElementSelector) { | ||
const blockName = element.closest('.block') ? element.closest('.block').getAttribute('data-block-name') : ''; | ||
const id = element.id ? `#${element.id}` : ''; | ||
@@ -137,2 +137,7 @@ return blockName ? `.${blockName} ${formElementSelector}${id}` : `${formElementSelector}${id}`; | ||
} | ||
if (Array.from(element.classList).some((className) => className.match(/button|cta/))) { | ||
return blockName ? `.${blockName} .button` : '.button'; | ||
} | ||
return sampleRUM.sourceselector(element.parentElement); | ||
@@ -139,0 +144,0 @@ }; |
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
38489
214