@adobe/helix-rum-enhancer 2.21.1 → 2.22.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 +12 -0
- package/modules/martech.js +7 -2
- package/package.json +7 -7
- package/src/index.js +7 -2
- package/src/index.md5 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [2.22.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.21.1...v2.22.0) (2024-09-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **consent:** spelling ([1279aca](https://github.com/adobe/helix-rum-enhancer/commit/1279aca5ab997b33428766a9c552cbde7007804a))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **onetrust:** detect supressed consent banner ([440473e](https://github.com/adobe/helix-rum-enhancer/commit/440473ea92fcd281eacad5a14478d3d4751a3c1a))
|
|
12
|
+
|
|
1
13
|
## [2.21.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.21.0...v2.21.1) (2024-09-18)
|
|
2
14
|
|
|
3
15
|
|
package/modules/martech.js
CHANGED
|
@@ -21,8 +21,13 @@ export function addCookieConsentTracking(sampleRUM) {
|
|
|
21
21
|
|
|
22
22
|
let consentMutationObserver;
|
|
23
23
|
const trackShowConsent = () => {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const otsdk = document.querySelector('body > div#onetrust-consent-sdk');
|
|
25
|
+
if (otsdk) {
|
|
26
|
+
if (otsdk.checkVisibility && !otsdk.checkVisibility()) {
|
|
27
|
+
sampleRUM('consent', { source: 'onetrust', target: 'suppressed' });
|
|
28
|
+
} else {
|
|
29
|
+
sampleRUM('consent', { source: 'onetrust', target: 'show' });
|
|
30
|
+
}
|
|
26
31
|
if (consentMutationObserver) {
|
|
27
32
|
consentMutationObserver.disconnect();
|
|
28
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"@semantic-release/changelog": "6.0.3",
|
|
40
40
|
"@semantic-release/git": "10.0.1",
|
|
41
41
|
"@semantic-release/npm": "12.0.1",
|
|
42
|
-
"@web/test-runner": "0.
|
|
42
|
+
"@web/test-runner": "0.19.0",
|
|
43
43
|
"@web/test-runner-commands": "0.9.0",
|
|
44
44
|
"@web/test-runner-mocha": "0.9.0",
|
|
45
45
|
"@web/test-runner-playwright": "0.11.0",
|
|
46
46
|
"c8": "10.1.2",
|
|
47
47
|
"codecov": "3.8.3",
|
|
48
|
-
"eslint": "8.57.
|
|
48
|
+
"eslint": "8.57.1",
|
|
49
49
|
"eslint-plugin-header": "3.1.1",
|
|
50
50
|
"eslint-plugin-import": "2.30.0",
|
|
51
|
-
"husky": "9.1.
|
|
52
|
-
"jsdoc-to-markdown": "9.0.
|
|
51
|
+
"husky": "9.1.6",
|
|
52
|
+
"jsdoc-to-markdown": "9.0.1",
|
|
53
53
|
"junit-report-builder": "5.0.0",
|
|
54
54
|
"lint-staged": "15.2.10",
|
|
55
55
|
"mocha": "10.7.3",
|
|
56
56
|
"mocha-multi-reporters": "1.5.1",
|
|
57
|
-
"rollup": "4.21.
|
|
57
|
+
"rollup": "4.21.3",
|
|
58
58
|
"rollup-plugin-cleanup": "3.2.1",
|
|
59
59
|
"rollup-plugin-checksum": "1.0.1",
|
|
60
60
|
"rollup-plugin-eslint-bundle": "9.0.0",
|
|
61
|
-
"semantic-release": "24.1.
|
|
61
|
+
"semantic-release": "24.1.1",
|
|
62
62
|
"web-vitals": "4.2.3"
|
|
63
63
|
},
|
|
64
64
|
"lint-staged": {
|
package/src/index.js
CHANGED
|
@@ -126,8 +126,13 @@
|
|
|
126
126
|
}
|
|
127
127
|
let consentMutationObserver;
|
|
128
128
|
const trackShowConsent = () => {
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
const otsdk = document.querySelector('body > div#onetrust-consent-sdk');
|
|
130
|
+
if (otsdk) {
|
|
131
|
+
if (otsdk.checkVisibility && !otsdk.checkVisibility()) {
|
|
132
|
+
sampleRUM('consent', { source: 'onetrust', target: 'suppressed' });
|
|
133
|
+
} else {
|
|
134
|
+
sampleRUM('consent', { source: 'onetrust', target: 'show' });
|
|
135
|
+
}
|
|
131
136
|
if (consentMutationObserver) {
|
|
132
137
|
consentMutationObserver.disconnect();
|
|
133
138
|
}
|
package/src/index.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
294dc58195b0b6a3a3163004bfb8e10b
|