@salesforcedevs/docs-components 1.20.16 → 1.20.17
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.17",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@types/lodash.orderby": "4.6.9",
|
|
26
26
|
"@types/lodash.uniqby": "4.7.9"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "22c9cf5daf39dab3832c98616c2b557c69395105",
|
|
29
29
|
"volta": {
|
|
30
30
|
"node": "20.19.0",
|
|
31
31
|
"yarn": "1.22.19"
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
></dx-banner>
|
|
9
9
|
<!-- To-Do: Move the devCenter as a new component and use it here, as devCenter is also used in Sidebar now -->
|
|
10
10
|
<div lwc:if={devCenter} class="dev-center-link">
|
|
11
|
-
<a
|
|
11
|
+
<a
|
|
12
|
+
href={devCenter.link}
|
|
13
|
+
onclick={onLinkClick}
|
|
14
|
+
class="dev-center-content"
|
|
15
|
+
>
|
|
12
16
|
<dx-icon symbol="back"></dx-icon>
|
|
13
17
|
<dx-icon
|
|
14
18
|
class="brand-icon"
|
|
@@ -3,6 +3,7 @@ import cx from "classnames";
|
|
|
3
3
|
import type { OptionWithNested, DevCenterConfig } from "typings/custom";
|
|
4
4
|
import { HeaderBase } from "dxBaseElements/headerBase";
|
|
5
5
|
import { toJson, normalizeBoolean } from "dxUtils/normalizers";
|
|
6
|
+
import { track } from "dxUtils/analytics";
|
|
6
7
|
|
|
7
8
|
const TABLET_MATCH = "980px";
|
|
8
9
|
const MOBILE_MATCH = "768px";
|
|
@@ -117,4 +118,13 @@ export default class Header extends HeaderBase {
|
|
|
117
118
|
this.showScopedNavItems && "has-scoped-nav-items"
|
|
118
119
|
);
|
|
119
120
|
}
|
|
121
|
+
|
|
122
|
+
private onLinkClick(event: Event): void {
|
|
123
|
+
track(event.target!, "custEv_linkClick", {
|
|
124
|
+
click_text: this.devCenter.title,
|
|
125
|
+
click_url: this.devCenter.link,
|
|
126
|
+
element_type: "link",
|
|
127
|
+
content_category: "dev-center"
|
|
128
|
+
});
|
|
129
|
+
}
|
|
120
130
|
}
|