@salesforcedevs/docs-components 1.3.138-coveo-alpha3 → 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
|
@@ -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,15 +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
|
-
this._coveoAdvancedQueryConfig = config;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
get coveoAdvancedQueryConfig() {
|
|
90
|
-
return this._coveoAdvancedQueryConfig;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
75
|
@track
|
|
94
76
|
private _sidebarContent: unknown;
|
|
95
77
|
|
|
@@ -98,7 +80,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
98
80
|
|
|
99
81
|
@track
|
|
100
82
|
private _tocOptions: Array<unknown>;
|
|
101
|
-
private _coveoAdvancedQueryConfig!: string;
|
|
102
83
|
|
|
103
84
|
private tocOptionIdsSet = new Set();
|
|
104
85
|
private anchoredElements: AnchorMap = {};
|
|
@@ -146,23 +127,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
146
127
|
);
|
|
147
128
|
}
|
|
148
129
|
|
|
149
|
-
private getUpdateCoveoQuery() {
|
|
150
|
-
console.log(
|
|
151
|
-
"Content-Layout Before: " +
|
|
152
|
-
JSON.stringify(this._coveoAdvancedQueryConfig)
|
|
153
|
-
);
|
|
154
|
-
const coveoConfig = toJson(this._coveoAdvancedQueryConfig);
|
|
155
|
-
if (this._newVersion !== "latest") {
|
|
156
|
-
coveoConfig.version = this._newVersion;
|
|
157
|
-
}
|
|
158
|
-
this._coveoAdvancedQueryConfig = coveoConfig;
|
|
159
|
-
console.log(
|
|
160
|
-
"After Content-Layout: " +
|
|
161
|
-
JSON.stringify(this._coveoAdvancedQueryConfig)
|
|
162
|
-
);
|
|
163
|
-
return this._coveoAdvancedQueryConfig;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
130
|
connectedCallback(): void {
|
|
167
131
|
const hasParentHighlightListener = closest(
|
|
168
132
|
"doc-xml-content",
|