@adobe/helix-rum-enhancer 2.13.0 → 2.14.0
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.
- package/CHANGELOG.md +7 -0
- package/dist/rum-enhancer.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.14.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.13.0...v2.14.0) (2024-06-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **viewmedia:** expand view media tracking to all images that are there at render time ([d7a1715](https://github.com/adobe/helix-rum-enhancer/commit/d7a17158cf6ef2023ca36811ac5e436b6f18847e))
|
|
7
|
+
|
|
1
8
|
# [2.13.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.12.0...v2.13.0) (2024-06-11)
|
|
2
9
|
|
|
3
10
|
|
package/dist/rum-enhancer.js
CHANGED
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
function addViewMediaTracking(parent) {
|
|
275
275
|
const mediaobserver = getIntersectionObsever('viewmedia');
|
|
276
276
|
if (mediaobserver) {
|
|
277
|
-
parent.querySelectorAll('
|
|
277
|
+
parent.querySelectorAll('img, video, audio, iframe').forEach((m) => {
|
|
278
278
|
if (!m.closest('div .block') || m.closest('div[data-block-status="loaded"]')) {
|
|
279
279
|
mediaobserver.observe(m);
|
|
280
280
|
}
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -274,7 +274,7 @@ function addViewBlockTracking(element) {
|
|
|
274
274
|
function addViewMediaTracking(parent) {
|
|
275
275
|
const mediaobserver = getIntersectionObsever('viewmedia');
|
|
276
276
|
if (mediaobserver) {
|
|
277
|
-
parent.querySelectorAll('
|
|
277
|
+
parent.querySelectorAll('img, video, audio, iframe').forEach((m) => {
|
|
278
278
|
if (!m.closest('div .block') || m.closest('div[data-block-status="loaded"]')) {
|
|
279
279
|
mediaobserver.observe(m);
|
|
280
280
|
}
|