@rh-support/utils 2.1.35 → 2.1.37
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/lib/esm/eventUtils.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export interface IPendoTrackEventProperty {
|
|
|
4
4
|
}
|
|
5
5
|
declare function haltEvent(event: React.SyntheticEvent<{}>): void;
|
|
6
6
|
declare function pendoTrackEvent(name: any, properties?: IPendoTrackEventProperty): void;
|
|
7
|
-
declare function dtmTrackEvent(
|
|
7
|
+
declare function dtmTrackEvent(eventName: string, caseNumber?: string, product?: string): void;
|
|
8
8
|
export { haltEvent, pendoTrackEvent, dtmTrackEvent };
|
|
9
9
|
//# sourceMappingURL=eventUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventUtils.d.ts","sourceRoot":"","sources":["../../src/eventUtils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,wBAAwB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,QAKjD;AAKD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,UAAU,GAAE,wBAA6B,QAMvE;AAED,iBAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"eventUtils.d.ts","sourceRoot":"","sources":["../../src/eventUtils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,wBAAwB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,QAKjD;AAKD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,UAAU,GAAE,wBAA6B,QAMvE;AAED,iBAAS,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,QAU9E;AAED,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}
|
package/lib/esm/eventUtils.js
CHANGED
|
@@ -16,9 +16,15 @@ function pendoTrackEvent(name, properties = {}) {
|
|
|
16
16
|
pendo.track(name, properties);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function dtmTrackEvent(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
function dtmTrackEvent(eventName, caseNumber, product) {
|
|
20
|
+
(window.appEventData || []).push({
|
|
21
|
+
event: 'Case Step Encountered',
|
|
22
|
+
case: {
|
|
23
|
+
type: 'cp-support',
|
|
24
|
+
stepName: eventName, //submit, close, comment, follow, review, search, recommendation click
|
|
25
|
+
caseNumber,
|
|
26
|
+
caseProduct: product,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
23
29
|
}
|
|
24
30
|
export { haltEvent, pendoTrackEvent, dtmTrackEvent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.37",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"defaults and supports es6-module",
|
|
94
94
|
"maintained node versions"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "fe9dac0d0d3517281da0692cf84070b998b22f78"
|
|
97
97
|
}
|