@salesforcedevs/docs-components 1.28.7-alpha.11 → 1.28.7-alpha.13
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.28.7-alpha.
|
|
3
|
+
"version": "1.28.7-alpha.13",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/lodash.orderby": "4.6.9",
|
|
26
26
|
"@types/lodash.uniqby": "4.7.9"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "30013174e0eb18a3bc89e854eaf505dc33d1089b"
|
|
29
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @lwc/lwc/no-document-query */
|
|
2
2
|
import { LightningElement, api, track } from "lwc";
|
|
3
3
|
import { closest } from "kagekiri";
|
|
4
|
-
import { fetchHasResults } from "dxUtils/
|
|
4
|
+
import { fetchHasResults } from "dxUtils/data360Search";
|
|
5
5
|
import { toJson, normalizeBoolean } from "dxUtils/normalizers";
|
|
6
6
|
import { highlightTerms } from "dxUtils/highlight";
|
|
7
7
|
import { SearchSyncer } from "docUtils/searchSyncer";
|
|
@@ -109,12 +109,12 @@ export default class ContentLayout extends LightningElement {
|
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
/** Show Data
|
|
112
|
+
/** Show Data 360 sidebar only when not using old sidebar and the page has searchable results. */
|
|
113
113
|
protected get showDataCloudSidebar(): boolean {
|
|
114
114
|
return !this.useOldSidebar && this.hasDataCloudResults === true;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
/** Show legacy sidebar when explicitly requested or when Data
|
|
117
|
+
/** Show legacy sidebar when explicitly requested or when Data 360 has no results. Don't show until we know (avoids flash). */
|
|
118
118
|
protected get showOldSidebar(): boolean {
|
|
119
119
|
return (
|
|
120
120
|
this.useOldSidebar === true || this.hasDataCloudResults === false
|