@salesforcedevs/docs-components 1.3.138-coveoversion-alpha1 → 1.3.138-coveoversion-alpha3

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-coveoversion-alpha1",
3
+ "version": "1.3.138-coveoversion-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <doc-content-layout
3
+ if:true={loaded}
3
4
  use-old-sidebar={useOldSidebar}
4
5
  class="content-type content-type-reference"
5
6
  coveo-organization-id={coveoOrganizationId}
@@ -41,6 +41,7 @@ export default class AmfReference extends LightningElement {
41
41
  @track navigation = [];
42
42
  @track versions: Array<ReferenceVersion> = [];
43
43
  @track showVersionBanner = false;
44
+ @track loaded = false;
44
45
 
45
46
  // Update this to update what component gets rendered in the content block
46
47
  @track
@@ -104,12 +105,14 @@ export default class AmfReference extends LightningElement {
104
105
  this.versions = this.getVersions();
105
106
  }
106
107
  this.selectedVersion = selectedVersion;
107
- if (
108
- this.isSpecBasedReference(this._currentReferenceId) &&
109
- this.oldVersionInfo
110
- ) {
111
- this.showVersionBanner = true;
108
+ if (this.isSpecBasedReference(this._currentReferenceId)) {
109
+ this.loaded = true;
110
+ if (this.oldVersionInfo) {
111
+ this.showVersionBanner = true;
112
+ }
112
113
  }
114
+ } else {
115
+ this.loaded = true;
113
116
  }
114
117
 
115
118
  // This is to check if the url is hash based and redirect if needed
@@ -1277,6 +1280,7 @@ export default class AmfReference extends LightningElement {
1277
1280
  if (this.oldVersionInfo) {
1278
1281
  this.showVersionBanner = true;
1279
1282
  }
1283
+ this.loaded = true;
1280
1284
  this.updateDocPhase();
1281
1285
  this.selectedSidebarValue = window.location.pathname;
1282
1286
  }