@salesforcedevs/dx-components 1.3.186-alpha2 → 1.3.186-alpha3

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": "1.3.186-alpha2",
3
+ "version": "1.3.186-alpha3",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -1,5 +1,5 @@
1
+ import { logCoveoPageView } from "docUtils/utils";
1
2
  import { LightningElement, api } from "lwc";
2
- import { CoveoAnalyticsClient } from "coveo.analytics";
3
3
 
4
4
  const REDUNDANT_INSTANCE_ERROR_MESSAGE =
5
5
  "Multiple <dx-traffic-labeler>s detected, this should never be the case.";
@@ -8,29 +8,6 @@ declare module globalThis {
8
8
  let singletonTrafficLabelerConnected: boolean;
9
9
  }
10
10
 
11
- export function logCoveoPageView(
12
- coveoOrganizationId: string | undefined,
13
- coveoAnalyticsToken: string | undefined
14
- ) {
15
- if (coveoOrganizationId && coveoAnalyticsToken) {
16
- const ua = new CoveoAnalyticsClient({
17
- token: coveoAnalyticsToken,
18
- endpoint: `https://${coveoOrganizationId}.analytics.org.coveo.com`
19
- });
20
- const pathParts = window.location.pathname.split("/");
21
- let contentType;
22
- if (pathParts.length >= 2) {
23
- contentType = pathParts[1];
24
- }
25
-
26
- ua.sendViewEvent({
27
- contentIdKey: "@clickableuri",
28
- contentType: contentType,
29
- contentIdValue: window.location.href
30
- });
31
- }
32
- }
33
-
34
11
  export default class TrafficLabeler extends LightningElement {
35
12
  @api internalIps?: string;
36
13
  @api clearbitPublicKey?: string;
@@ -53,8 +30,6 @@ export default class TrafficLabeler extends LightningElement {
53
30
  logCoveoPageView(this.coveoOrganizationId, this.coveoAnalyticsToken);
54
31
  }
55
32
 
56
- private;
57
-
58
33
  async loadClearBitData() {
59
34
  try {
60
35
  const result = await fetch(