@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.138-coveo1",
3
+ "version": "1.3.138-coveoversion-alpha1",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <doc-content-layout
3
- if:true={hasRendered}
4
3
  use-old-sidebar={useOldSidebar}
5
4
  class="content-type content-type-reference"
6
5
  coveo-organization-id={coveoOrganizationId}
@@ -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
- version = this.selectedVersion.id.replace("v", "");
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();