@salesforcedevs/docs-components 0.66.5 → 0.66.6

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": "0.66.5",
3
+ "version": "0.66.6",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -24,5 +24,5 @@
24
24
  "@types/lodash.orderby": "^4.6.7",
25
25
  "@types/lodash.uniqby": "^4.7.7"
26
26
  },
27
- "gitHead": "df2dbfa015a730f63edd6520662325bac19404a2"
27
+ "gitHead": "2a0520ef73567be295abfa8ccc89b54e0dd8a83b"
28
28
  }
@@ -58,8 +58,7 @@ export default class BreadcrumbItem extends LightningElement {
58
58
  track(event.target!, this.analyticsEvent, {
59
59
  ...this.analyticsBasePayload,
60
60
  clickText: this.label,
61
- itemTitle: this.label,
62
- pageLocation: window.location.pathname
61
+ clickUrl: this.href
63
62
  });
64
63
  }
65
64
  }
@@ -21,8 +21,7 @@ export const ANALYTICS_EVENT_NAME = "custEv_breadcrumbClick";
21
21
  export const ANALYTICS_BASE_PAYLOAD = {
22
22
  elementType: "breadcrumb",
23
23
  locationOnPage: "breadcrumb",
24
- ctaClick: true,
25
- pageLocation: window.location.pathname
24
+ ctaClick: true
26
25
  };
27
26
 
28
27
  export default class Breadcrumbs extends LightningElement {
@@ -110,7 +109,10 @@ export default class Breadcrumbs extends LightningElement {
110
109
  }
111
110
 
112
111
  private get analyticsBasePayload() {
113
- return ANALYTICS_BASE_PAYLOAD;
112
+ return {
113
+ ...ANALYTICS_BASE_PAYLOAD,
114
+ itemTitle: this.breadcrumbs.map((crumb) => crumb.label).join("/")
115
+ };
114
116
  }
115
117
 
116
118
  renderedCallback(): void {