@salesforcedevs/dx-components 0.10.1-alpha.128 → 0.10.1-alpha.131
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
|
@@ -37,7 +37,7 @@ export default class SidebarSearch extends LightningElement {
|
|
|
37
37
|
return this._coveoAdvancedQueryConfig;
|
|
38
38
|
}
|
|
39
39
|
set coveoAdvancedQueryConfig(value) {
|
|
40
|
-
console.log('
|
|
40
|
+
console.log('set coveoAdvancedQueryConfig', value)
|
|
41
41
|
this._coveoAdvancedQueryConfig = toJson(value);
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -96,6 +96,8 @@ export default class SidebarSearch extends LightningElement {
|
|
|
96
96
|
this.value = getSidebarSearchParams() || "";
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
queryConfigValue: string | null = null;
|
|
100
|
+
|
|
99
101
|
renderedCallback() {
|
|
100
102
|
// in prod some of the critical coveo configuration attributes seem to arrive later
|
|
101
103
|
// so I needed to put this coveo startup flow here where we can wait for them to arrive
|
|
@@ -115,6 +117,16 @@ export default class SidebarSearch extends LightningElement {
|
|
|
115
117
|
);
|
|
116
118
|
}
|
|
117
119
|
|
|
120
|
+
const queryConfigValue = JSON.stringify(this.coveoAdvancedQueryConfig);
|
|
121
|
+
console.log('query config value', queryConfigValue);
|
|
122
|
+
if (this.queryConfigValue !== queryConfigValue) {
|
|
123
|
+
if (this.queryConfigValue && this.engine) {
|
|
124
|
+
console.log('setting query config again')
|
|
125
|
+
this.setAdvancedFilters(this.engine);
|
|
126
|
+
}
|
|
127
|
+
this.queryConfigValue = queryConfigValue;
|
|
128
|
+
}
|
|
129
|
+
|
|
118
130
|
// If this is the first render and there is a search value, trigger
|
|
119
131
|
// term highlighting
|
|
120
132
|
if (!this.didRender && this.value) {
|