@salesforcedevs/docs-components 1.3.138-coveo1 → 1.3.138-coveoversion-alpha1
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
|
@@ -145,11 +145,11 @@ export default class AmfReference extends LightningElement {
|
|
|
145
145
|
@api
|
|
146
146
|
get coveoAdvancedQueryConfig(): { [key: string]: any } {
|
|
147
147
|
const coveoConfig = this._coveoAdvancedQueryConfig;
|
|
148
|
-
let version = "latest";
|
|
149
148
|
if (this.versions.length > 1 && this.selectedVersion) {
|
|
150
149
|
const currentGAVersionRef = this.versions[0];
|
|
151
150
|
if (this.selectedVersion.id !== currentGAVersionRef.id) {
|
|
152
|
-
|
|
151
|
+
// Currently Coveo only supports query without "v"
|
|
152
|
+
const version = this.selectedVersion.id.replace("v", "");
|
|
153
153
|
coveoConfig.version = version;
|
|
154
154
|
this._coveoAdvancedQueryConfig = coveoConfig;
|
|
155
155
|
}
|
|
@@ -160,6 +160,7 @@ export default class AmfReference extends LightningElement {
|
|
|
160
160
|
set coveoAdvancedQueryConfig(config) {
|
|
161
161
|
this._coveoAdvancedQueryConfig = toJson(config);
|
|
162
162
|
}
|
|
163
|
+
|
|
163
164
|
// model
|
|
164
165
|
protected _amfConfigList: AmfConfig[] = [];
|
|
165
166
|
protected _amfConfigMap: Map<string, AmfConfig> = new Map();
|