@adobe/helix-rum-enhancer
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -0,1 +1,8 @@ | ||
# [2.2.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.1.1...v2.2.0) (2024-03-04) | ||
### Features | ||
* **sourceselector:** highlight clicks on buttons and CTAs ([2bc8dc5](https://github.com/adobe/helix-rum-enhancer/commit/2bc8dc531ef31e9ae08daebdd428a98a493c0f9e)) | ||
## [2.1.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.1.0...v2.1.1) (2024-02-28) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Helix RUM Enhancer", | ||
@@ -35,3 +35,3 @@ "main": "src/index.js", | ||
"@semantic-release/git": "10.0.1", | ||
"@semantic-release/npm": "11.0.2", | ||
"@semantic-release/npm": "11.0.3", | ||
"c8": "9.1.0", | ||
@@ -38,0 +38,0 @@ "codecov": "3.8.3", |
@@ -47,4 +47,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}` : ''; | ||
@@ -57,2 +57,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 sourceselector(element.parentElement); | ||
@@ -59,0 +64,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
44010
309