@salesforcedevs/dx-components 0.18.6 → 0.18.10
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": "0.18.
|
|
3
|
+
"version": "0.18.10",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"@types/debounce": "^1.2.0",
|
|
30
30
|
"@types/lodash.get": "^4.4.6"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f29684780634b9abec6ead2e47fe7bda05e31412"
|
|
33
33
|
}
|
|
@@ -69,8 +69,10 @@ export default class SidebarSearch extends LightningElement {
|
|
|
69
69
|
|
|
70
70
|
@api
|
|
71
71
|
setInputValue(searchTerm: string) {
|
|
72
|
-
this.value
|
|
73
|
-
|
|
72
|
+
if (searchTerm !== this.value) {
|
|
73
|
+
this.value = searchTerm || "";
|
|
74
|
+
this.handleValueChange(true);
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
private _coveoAdvancedQueryConfig!: { [key: string]: any };
|
|
@@ -283,19 +285,17 @@ export default class SidebarSearch extends LightningElement {
|
|
|
283
285
|
}: Result): SidebarSearchResult => {
|
|
284
286
|
// discussion about this normalization here: https://salesforce-internal.slack.com/archives/C020S6784JX/p1639506238376600
|
|
285
287
|
|
|
286
|
-
const isOverview = clickUri.endsWith("/overview");
|
|
287
|
-
|
|
288
|
-
const query = isOverview ? "" : `?q=${this.value}`;
|
|
289
288
|
let pathname;
|
|
290
289
|
if (sfhtml_url__c) {
|
|
291
290
|
pathname = `/docs/${sfhtml_url__c}`;
|
|
292
291
|
} else {
|
|
292
|
+
const isNestedGuide = clickUri.includes("/guide/");
|
|
293
293
|
const url = new URL(clickUri);
|
|
294
|
-
const extension =
|
|
294
|
+
const extension = isNestedGuide ? ".html" : "";
|
|
295
295
|
pathname = `${url.pathname}${extension}`;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
const href = `${pathname}
|
|
298
|
+
const href = `${pathname}?q=${this.value}`;
|
|
299
299
|
|
|
300
300
|
return {
|
|
301
301
|
title,
|