@salesforcedevs/dx-components 1.3.211-canary.0 → 1.3.215-alpha
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/lwc.config.json +1 -0
- package/package.json +1 -1
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.css +4 -0
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.html +9 -0
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.ts +22 -0
- package/src/modules/dx/searchResults/coveo.css +1 -1
package/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { track } from "dxUtils/analytics";
|
|
2
|
+
import { LightningElement, api } from "lwc";
|
|
3
|
+
|
|
4
|
+
export default class CoveoRecommendations extends LightningElement {
|
|
5
|
+
@api coveoAuthToken!: string;
|
|
6
|
+
|
|
7
|
+
renderedCallback() {
|
|
8
|
+
const actionsHistory = localStorage.getItem(
|
|
9
|
+
"__coveo.analytics.history"
|
|
10
|
+
);
|
|
11
|
+
const url = `https://platform.cloud.coveo.com/rest/search/q=test&actionsHistory=${actionsHistory}`;
|
|
12
|
+
fetch(url, {
|
|
13
|
+
headers: { Authorization: this.coveoAuthToken }
|
|
14
|
+
}).then(async (recs) => console.log(await recs.json()));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
private trackClick(e: Event) {
|
|
18
|
+
const payload = {};
|
|
19
|
+
|
|
20
|
+
track(e.currentTarget!, "custEv_blogAudioPlay", payload);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -7944,7 +7944,7 @@ select.coveo-dropdown::-ms-expand {
|
|
|
7944
7944
|
|
|
7945
7945
|
@font-face {
|
|
7946
7946
|
font-family: "Lato";
|
|
7947
|
-
src: url('https://static.cloud.coveo.com/searchui/v2.
|
|
7947
|
+
src: url('https://static.cloud.coveo.com/searchui/v2.10109/0/fonts/lato.woff2'), url('https://staticdev.cloud.coveo.com/searchui/v2.10109/0/fonts/lato.woff2'), url('../fonts/lato.woff2'), url('https://static.cloud.coveo.com/searchui/v2.10109/0/fonts/lato.woff'), url('https://staticdev.cloud.coveo.com/searchui/v2.10109/0/fonts/lato.woff'), url('../fonts/lato.woff');
|
|
7948
7948
|
font-weight: normal;
|
|
7949
7949
|
font-style: normal;
|
|
7950
7950
|
}
|