@salesforcedevs/dx-components 0.46.3 → 0.48.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@types/lodash.get": "^4.4.6",
|
|
29
29
|
"@types/vimeo__player": "^2.16.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "94eacd41da85d0b33d86995d1f4bceef96ed51c6"
|
|
32
32
|
}
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
CardNewsSize,
|
|
10
10
|
CardNewsTextContainerSize
|
|
11
11
|
} from "typings/custom";
|
|
12
|
+
import { track } from "dx/instrumentation";
|
|
12
13
|
|
|
13
14
|
export default class CardNews extends LightningElement {
|
|
14
15
|
@api backgroundColor?: string = "indigo-vibrant-40";
|
|
@@ -61,4 +62,16 @@ export default class CardNews extends LightningElement {
|
|
|
61
62
|
this.textContainerWidth === "large" && `dx-card-news-img-small`
|
|
62
63
|
);
|
|
63
64
|
}
|
|
65
|
+
|
|
66
|
+
private trackClick(e: Event) {
|
|
67
|
+
const payload = {
|
|
68
|
+
clickText: this.buttonText,
|
|
69
|
+
itemTitle: this.title,
|
|
70
|
+
elementType: "link",
|
|
71
|
+
destinationType: "internal",
|
|
72
|
+
ctaClick: true,
|
|
73
|
+
clickUrl: this.href
|
|
74
|
+
};
|
|
75
|
+
track(e.currentTarget!, "custEv_ctaLinkClick", payload);
|
|
76
|
+
}
|
|
64
77
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
<div class="content-container content-container_bottom">
|
|
124
124
|
<div class="terms">
|
|
125
125
|
<span>
|
|
126
|
-
© Copyright {currentYear} Salesforce
|
|
126
|
+
© Copyright {currentYear} Salesforce, Inc.
|
|
127
127
|
<a href={intellectualHref}>All rights reserved.</a>
|
|
128
128
|
Various trademarks held by their respective owners.
|
|
129
129
|
</span>
|