@adobe/helix-rum-enhancer 2.26.3 → 2.27.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/.releaserc.cjs CHANGED
@@ -7,7 +7,7 @@ module.exports = {
7
7
  }],
8
8
  "@semantic-release/npm",
9
9
  ["@semantic-release/git", {
10
- "assets": ["package.json", "CHANGELOG.md"],
10
+ "assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
11
11
  "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12
12
  }],
13
13
  ["@semantic-release/github", {
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.27.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.26.4...v2.27.0) (2024-12-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding new checkpoint fill ([#336](https://github.com/adobe/helix-rum-enhancer/issues/336)) ([d3887f3](https://github.com/adobe/helix-rum-enhancer/commit/d3887f3b7eb073aa9f9e18f4d4a106bf7fa5b676))
7
+
8
+ ## [2.26.4](https://github.com/adobe/helix-rum-enhancer/compare/v2.26.3...v2.26.4) (2024-12-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * release process ([bdce5c3](https://github.com/adobe/helix-rum-enhancer/commit/bdce5c328037630347f6bc96b64f097c983418e0))
14
+
1
15
  ## [2.26.3](https://github.com/adobe/helix-rum-enhancer/compare/v2.26.2...v2.26.3) (2024-12-16)
2
16
 
3
17
 
package/modules/index.js CHANGED
@@ -256,6 +256,20 @@ function addFormTracking(parent) {
256
256
  activateMediaMO();
257
257
  parent.querySelectorAll('form').forEach((form) => {
258
258
  form.addEventListener('submit', (e) => sampleRUM('formsubmit', { target: targetSelector(e.target), source: sourceSelector(e.target) }), { once: true });
259
+ let lastSource;
260
+ form.addEventListener('change', (e) => {
261
+ const source = sourceSelector(e.target);
262
+ if (source !== lastSource) {
263
+ sampleRUM('fill', { source });
264
+ lastSource = source;
265
+ }
266
+ });
267
+ form.addEventListener('focusin', (e) => {
268
+ if (['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON'].includes(e.target.tagName)
269
+ || e.target.getAttribute('contenteditable') === 'true') {
270
+ sampleRUM('click', { source: sourceSelector(e.target) });
271
+ }
272
+ });
259
273
  });
260
274
  }
261
275
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.26.3",
3
+ "version": "2.27.0",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -389,6 +389,20 @@
389
389
  activateMediaMO();
390
390
  parent.querySelectorAll('form').forEach((form) => {
391
391
  form.addEventListener('submit', (e) => sampleRUM('formsubmit', { target: targetSelector(e.target), source: sourceSelector(e.target) }), { once: true });
392
+ let lastSource;
393
+ form.addEventListener('change', (e) => {
394
+ const source = sourceSelector(e.target);
395
+ if (source !== lastSource) {
396
+ sampleRUM('fill', { source });
397
+ lastSource = source;
398
+ }
399
+ });
400
+ form.addEventListener('focusin', (e) => {
401
+ if (['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON'].includes(e.target.tagName)
402
+ || e.target.getAttribute('contenteditable') === 'true') {
403
+ sampleRUM('click', { source: sourceSelector(e.target) });
404
+ }
405
+ });
392
406
  });
393
407
  }
394
408
  function addObserver(ck, fn, block) {
package/src/index.md5 CHANGED
@@ -1 +1 @@
1
- 6562b464055f9498b72eab295021c297
1
+ 04eb0119fbaa5f7d37e24a608bbb8195