@guardian/ophan-tracker-js 2.2.6 → 2.2.8
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.
|
@@ -81,7 +81,7 @@ interface LazyComponents {
|
|
|
81
81
|
components: Component[];
|
|
82
82
|
}
|
|
83
83
|
export type TEdition = 'UK' | 'US' | 'AU' | 'International' | 'Europe';
|
|
84
|
-
export interface EventPayload extends Partial<Consent> {
|
|
84
|
+
export interface EventPayload extends Partial<Consent>, Partial<InPageClick> {
|
|
85
85
|
/** If the user is logged in, the identity user id */
|
|
86
86
|
userId?: string;
|
|
87
87
|
pageView?: PageView;
|
|
@@ -91,7 +91,6 @@ export interface EventPayload extends Partial<Consent> {
|
|
|
91
91
|
video?: VideoEvent;
|
|
92
92
|
ab?: AbTestInfo;
|
|
93
93
|
lazyComponents?: LazyComponents;
|
|
94
|
-
inPageClick?: InPageClick;
|
|
95
94
|
interaction?: Interaction;
|
|
96
95
|
inPrivateBrowsingMode?: boolean;
|
|
97
96
|
adUnitWasHidden?: boolean;
|
|
@@ -3,9 +3,9 @@ export interface InPageClick {
|
|
|
3
3
|
/**
|
|
4
4
|
* the component that contained the item clicked on
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
clickComponent?: string;
|
|
7
7
|
/**
|
|
8
8
|
* The link name associated with the element clicked.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
clickLinkNames?: LinkName;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/ophan-tracker-js",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"types": "NPM-dist/types/ng.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"types": "./NPM-dist/types/ng.d.ts",
|
|
17
|
+
"default": "./NPM-dist/ng.js"
|
|
18
18
|
},
|
|
19
19
|
"./MMA": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"types": "./NPM-dist/types/manage-my-account.d.ts",
|
|
21
|
+
"default": "./NPM-dist/manage-my-account.js"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"typesVersions": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"babel-jest": "^29.7.0",
|
|
41
41
|
"jest": "^29.7.0",
|
|
42
42
|
"jest-environment-jsdom": "^29.7.0",
|
|
43
|
-
"rollup": "3.
|
|
43
|
+
"rollup": "3.29.5",
|
|
44
44
|
"rollup-jest": "^3.1.0",
|
|
45
45
|
"ts-jest": "^29.1.4",
|
|
46
46
|
"typescript": "^5.4.4"
|