@salesforcedevs/docs-components 1.3.138-coveo-alpha2 → 1.3.138-coveo-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/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
coveo-organization-id={coveoOrganizationId}
|
|
6
6
|
coveo-public-access-token={coveoPublicAccessToken}
|
|
7
7
|
coveo-search-hub={coveoSearchHub}
|
|
8
|
-
coveo-advanced-query-config={coveoAdvancedQueryConfig}
|
|
9
8
|
version={versionForCoveo}
|
|
9
|
+
coveo-advanced-query-config={coveoAdvancedQueryConfig}
|
|
10
10
|
breadcrumbs={breadcrumbs}
|
|
11
11
|
sidebar-header={sidebarHeader}
|
|
12
12
|
sidebar-value={selectedSidebarValue}
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
trees={sidebarContent}
|
|
18
18
|
value={sidebarValue}
|
|
19
19
|
header={sidebarHeader}
|
|
20
|
-
|
|
20
|
+
version={version}
|
|
21
|
+
coveo-organization-id={coveoAdvancedQueryConfig}
|
|
21
22
|
coveo-public-access-token={coveoPublicAccessToken}
|
|
22
23
|
coveo-search-hub={coveoSearchHub}
|
|
23
24
|
coveo-advanced-query-config={coveoAdvancedQueryConfig}
|
|
@@ -33,19 +33,10 @@ export default class ContentLayout extends LightningElement {
|
|
|
33
33
|
@api coveoOrganizationId!: string;
|
|
34
34
|
@api coveoPublicAccessToken!: string;
|
|
35
35
|
@api coveoSearchHub!: string;
|
|
36
|
+
@api coveoAdvancedQueryConfig!: string;
|
|
37
|
+
@api version!: string;
|
|
36
38
|
|
|
37
39
|
@api useOldSidebar?: boolean = false;
|
|
38
|
-
@api
|
|
39
|
-
get version(): string {
|
|
40
|
-
return this._newVersion;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
set version(val) {
|
|
44
|
-
if (val) {
|
|
45
|
-
this._newVersion = val;
|
|
46
|
-
}
|
|
47
|
-
console.log("Content Layout: " + this._newVersion);
|
|
48
|
-
}
|
|
49
40
|
|
|
50
41
|
@api
|
|
51
42
|
get breadcrumbs() {
|
|
@@ -81,23 +72,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
81
72
|
this.template.querySelector("dx-sidebar")?.setInputValue(searchTerm);
|
|
82
73
|
}
|
|
83
74
|
|
|
84
|
-
@api
|
|
85
|
-
set coveoAdvancedQueryConfig(config) {
|
|
86
|
-
const coveoConfig = toJson(config);
|
|
87
|
-
if (this._newVersion !== "latest") {
|
|
88
|
-
coveoConfig.version = this._newVersion;
|
|
89
|
-
}
|
|
90
|
-
this._coveoAdvancedQueryConfig = coveoConfig;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
get coveoAdvancedQueryConfig() {
|
|
94
|
-
console.log(
|
|
95
|
-
"AQ Content Layout: " +
|
|
96
|
-
JSON.stringify(this._coveoAdvancedQueryConfig)
|
|
97
|
-
);
|
|
98
|
-
return this._coveoAdvancedQueryConfig;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
75
|
@track
|
|
102
76
|
private _sidebarContent: unknown;
|
|
103
77
|
|
|
@@ -106,7 +80,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
106
80
|
|
|
107
81
|
@track
|
|
108
82
|
private _tocOptions: Array<unknown>;
|
|
109
|
-
private _coveoAdvancedQueryConfig!: string;
|
|
110
83
|
|
|
111
84
|
private tocOptionIdsSet = new Set();
|
|
112
85
|
private anchoredElements: AnchorMap = {};
|