@salesforcedevs/docs-components 1.3.300-scroll-alpha1 → 1.3.300-scroll-alpha2

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.300-scroll-alpha1",
3
+ "version": "1.3.300-scroll-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -215,10 +215,16 @@ export default class ContentLayout extends LightningElement {
215
215
  ".sticky-doc-header"
216
216
  ) as HTMLElement;
217
217
 
218
- const docPhaseEl = (
218
+ let docPhaseEl = (
219
219
  this.template.querySelector("[name=doc-phase]")! as any
220
220
  ).assignedElements()[0] as HTMLSlotElement;
221
221
 
222
+ if(!docPhaseEl) {
223
+ docPhaseEl = (
224
+ this.template.querySelector("[name=version-banner]")! as any
225
+ ).assignedElements()[0] as HTMLSlotElement;
226
+ }
227
+
222
228
  if (!sidebarEl || !globalNavEl || !contextNavEl || !docHeaderEl) {
223
229
  console.warn("One or more required elements are missing.");
224
230
  return;