@salesforcedevs/docs-components 1.3.150-alpha3 → 1.3.150-alpha5

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.3.150-alpha3",
3
+ "version": "1.3.150-alpha5",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -35,7 +35,7 @@ export default class AmfReference extends LightningElement {
35
35
  @api sidebarHeader!: string;
36
36
  @api coveoOrganizationId!: string;
37
37
  @api coveoPublicAccessToken!: string;
38
- @api coveoPageViewToken!: string;
38
+ @api coveoAnalyticsToken!: string;
39
39
  @api coveoAdvancedQueryConfig!: string;
40
40
  @api coveoSearchHub!: string;
41
41
  @api useOldSidebar?: boolean = false;
@@ -218,11 +218,10 @@ export default class AmfReference extends LightningElement {
218
218
  }
219
219
 
220
220
  private logCoveoPageView() {
221
- console.log("log coveo page view");
222
-
223
221
  if (this.coveoOrganizationId) {
222
+ console.log("log coveo page view");
224
223
  const ua = new CoveoAnalyticsClient({
225
- token: this.coveoPageViewToken,
224
+ token: this.coveoAnalyticsToken,
226
225
  endpoint: `https://${"fullsalesforce"}.analytics.org.coveo.com`
227
226
  });
228
227
  ua.sendViewEvent({
@@ -35,7 +35,7 @@ export default class DocXmlContent extends LightningElementWithState<{
35
35
  @api apiDomain = "https://developer.salesforce.com";
36
36
  @api coveoOrganizationId!: string;
37
37
  @api coveoPublicAccessToken!: string;
38
- @api coveoPageViewToken!: string;
38
+ @api coveoAnalyticsToken!: string;
39
39
  @api coveoSearchHub!: string;
40
40
 
41
41
  @api
@@ -452,10 +452,10 @@ export default class DocXmlContent extends LightningElementWithState<{
452
452
  return;
453
453
  }
454
454
 
455
- console.log("log coveo page view");
456
455
  if (this.coveoOrganizationId) {
456
+ console.log("log coveo page view");
457
457
  const ua = new CoveoAnalyticsClient({
458
- token: this.coveoPageViewToken,
458
+ token: this.coveoAnalyticsToken,
459
459
  endpoint: `https://${this.coveoOrganizationId}.analytics.org.coveo.com`
460
460
  }); // MILES TODO: replace 'fullsalesforce' with coveo organizationid
461
461
  ua.sendViewEvent({