@salesforcedevs/docs-components 1.19.6-alpha2 → 1.19.6-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.19.6-alpha2",
3
+ "version": "1.19.6-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="content">
3
3
  <dx-sidebar-old
4
- lwc:if={!hideSidebar}
4
+ lwc:if={showSidebar}
5
5
  class="is-sticky left-nav-bar"
6
6
  trees={sidebarContent}
7
7
  value={sidebarValue}
@@ -40,7 +40,16 @@ export default class ContentLayout extends LightningElement {
40
40
  @api devCenter: any;
41
41
  @api brand: any;
42
42
  @api emptyStateMessage?: string;
43
- @api hideSidebar?: boolean = false;
43
+ _showSidebar?: boolean = true;
44
+
45
+ @api
46
+ set showSidebar(value: boolean | undefined) {
47
+ this._showSidebar = value;
48
+ }
49
+
50
+ get showSidebar() {
51
+ return this._showSidebar;
52
+ }
44
53
 
45
54
  // This is needed for now to prevent failing snapshot tests due to links in the footer
46
55
  @api showFooter = false;