@salesforcedevs/docs-components 1.13.1 → 1.14.2

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,11 +1,11 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.13.1",
3
+ "version": "1.14.2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "engines": {
8
- "node": "18.x"
8
+ "node": "20.x"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -24,5 +24,5 @@
24
24
  "@types/lodash.orderby": "4.6.9",
25
25
  "@types/lodash.uniqby": "4.7.9"
26
26
  },
27
- "gitHead": "5972a7da41fde5c28244cbf604064eb390291e09"
27
+ "gitHead": "5ceecca5be7104a277cacc732f83b8cc734c4754"
28
28
  }
@@ -0,0 +1,16 @@
1
+ export class CoveoAnalyticsClient {
2
+ private config: { token: string; endpoint: string };
3
+
4
+ constructor(config: { token: string; endpoint: string }) {
5
+ this.config = config;
6
+ }
7
+
8
+ sendViewEvent(event: {
9
+ contentIdKey: string;
10
+ contentType?: string;
11
+ contentIdValue: string;
12
+ }): void {
13
+ // Mock implementation
14
+ console.log("Mock Coveo Analytics event:", event);
15
+ }
16
+ }
@@ -0,0 +1,10 @@
1
+ declare module "coveo.analytics/dist/browser.mjs" {
2
+ export class CoveoAnalyticsClient {
3
+ constructor(config: { token: string; endpoint: string });
4
+ sendViewEvent(event: {
5
+ contentIdKey: string;
6
+ contentType?: string;
7
+ contentIdValue: string;
8
+ }): void;
9
+ }
10
+ }
@@ -1,4 +1,4 @@
1
- import { CoveoAnalyticsClient } from "coveo.analytics";
1
+ import { CoveoAnalyticsClient } from "coveo.analytics/dist/browser.mjs"; // This fix is required for Node 20 upgrade, so that Coveo analytics is loaded properly by LWR.
2
2
 
3
3
  export const oldVersionDocInfo = (latestVersionLink: string) => {
4
4
  return {