@salesforcedevs/dx-components 1.3.215-alpha2 → 1.3.215-alpha4
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 +0 -1
- package/package.json +1 -1
- package/src/assets/icons/brand-sprite/svg/symbols.svg +14 -0
- package/src/modules/dx/footer/links.ts +3 -1
- package/src/modules/dx/scrollManager/scrollManager.ts +3 -2
- package/src/modules/dx/searchResults/searchResults.css +8 -2
- package/src/modules/dx/searchResults/searchResults.ts +265 -8
- package/src/modules/dx/stepSequence/stepSequence.ts +43 -11
- package/src/modules/dxUtils/prismjs/prismjs.ts +376 -169
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.css +0 -4
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.html +0 -9
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.ts +0 -22
|
@@ -1,22 +0,0 @@
|
|
|
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: `Bearer ${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
|
-
}
|