@adobe/helix-rum-enhancer 2.21.0 → 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 +19 -0
- package/modules/martech.js +7 -2
- package/package.json +8 -8
- package/rollup.config.js +4 -4
- package/src/index.js +7 -2
- package/src/index.md5 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
|
|
13
|
+
## [2.21.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.21.0...v2.21.1) (2024-09-18)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **release:** do not attempt to create hash from source map ([0ba7631](https://github.com/adobe/helix-rum-enhancer/commit/0ba763158ee7760ec405a0a0e2d6c32e8911d6c2))
|
|
19
|
+
|
|
1
20
|
# [2.21.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.20.0...v2.21.0) (2024-09-18)
|
|
2
21
|
|
|
3
22
|
|
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",
|
|
@@ -34,31 +34,31 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@adobe/eslint-config-helix": "2.0.7",
|
|
37
|
-
"@adobe/helix-rum-js": "2.
|
|
37
|
+
"@adobe/helix-rum-js": "2.5.3",
|
|
38
38
|
"@esm-bundle/chai": "4.3.4-fix.0",
|
|
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/rollup.config.js
CHANGED
|
@@ -38,16 +38,16 @@ export default [...bundles.map(({ outputFile, source }) => ({
|
|
|
38
38
|
input: source,
|
|
39
39
|
output: [
|
|
40
40
|
{
|
|
41
|
-
file: `${outputFile}.js`,
|
|
41
|
+
file: `${outputFile}.map.js`,
|
|
42
42
|
format: 'iife',
|
|
43
|
-
sourcemap:
|
|
43
|
+
sourcemap: 'inline',
|
|
44
44
|
exports: 'auto',
|
|
45
45
|
banner,
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
file: `${outputFile}.
|
|
48
|
+
file: `${outputFile}.js`,
|
|
49
49
|
format: 'iife',
|
|
50
|
-
sourcemap:
|
|
50
|
+
sourcemap: false,
|
|
51
51
|
exports: 'auto',
|
|
52
52
|
banner,
|
|
53
53
|
},
|
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
|