@salesforcedevs/docs-components 1.3.227-newdocux-alpha3 → 1.3.227-newdocux-alpha-m2

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.227-newdocux-alpha3",
3
+ "version": "1.3.227-newdocux-alpha-m2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -42,10 +42,7 @@
42
42
  latest-version={latestVersion}
43
43
  ></doc-version-picker>
44
44
  </div>
45
- <template if:false={showSpecBasedReference}>
46
- <slot></slot>
47
- </template>
48
- <template if:true={showSpecBasedReference}>
45
+ <template lwc:if={showSpecBasedReference}>
49
46
  <div class="container">
50
47
  <div class="api-documentation">
51
48
  <doc-amf-topic
@@ -55,5 +52,8 @@
55
52
  </div>
56
53
  </div>
57
54
  </template>
55
+ <template lwc:else>
56
+ <slot></slot>
57
+ </template>
58
58
  </doc-content-layout>
59
59
  </template>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="content">
3
- <template if:true={useOldSidebar}>
3
+ <template lwc:if={useOldSidebar}>
4
4
  <dx-sidebar-old
5
5
  class="is-sticky left-nav-bar"
6
6
  trees={sidebarContent}
@@ -15,7 +15,7 @@
15
15
  <slot name="sidebar-header" slot="version-picker"></slot>
16
16
  </dx-sidebar-old>
17
17
  </template>
18
- <template if:false={useOldSidebar}>
18
+ <template lwc:else>
19
19
  <dx-sidebar
20
20
  class="is-sticky left-nav-bar"
21
21
  trees={sidebarContent}
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <template if:true={shouldRender}>
2
+ <template lwc:if={shouldRender}>
3
3
  <dx-brand-theme-provider brand={brand}>
4
4
  <header class={className}>
5
5
  <dx-banner
@@ -40,7 +40,7 @@
40
40
  </header>
41
41
  </dx-brand-theme-provider>
42
42
  </template>
43
- <template if:true={showDocDivider}>
43
+ <template lwc:if={showDocDivider}>
44
44
  <div class="no-header-content"></div>
45
45
  </template>
46
46
  </template>
@@ -16,7 +16,7 @@
16
16
  <p class="selected-version-label">
17
17
  {selectedVersion.label}
18
18
  </p>
19
- <template if:false={hideBadge}>
19
+ <template lwc:if={hideBadge}>
20
20
  <dx-type-badge
21
21
  class="latest-badge"
22
22
  if:true={latestVersion}
@@ -44,7 +44,7 @@ export default class VersionPicker extends LightningElement {
44
44
 
45
45
  @api
46
46
  get hideBadge() {
47
- return this._hideBadge;
47
+ return !this._hideBadge;
48
48
  }
49
49
 
50
50
  set hideBadge(value) {
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <doc-content-layout
3
3
  if:true={loaded}
4
+ lwc:ref="docContentLayout"
4
5
  coveo-organization-id={coveoOrganizationId}
5
6
  coveo-public-access-token={coveoPublicAccessToken}
6
7
  coveo-analytics-token={coveoAnalyticsToken}
@@ -578,9 +578,7 @@ export default class DocXmlContent extends LightningElementWithState<{
578
578
  }
579
579
 
580
580
  private updateSearchInput(searchParam: string): void {
581
- (
582
- this.template.querySelector("doc-content-layout") as any
583
- )?.setSidebarInputValue(searchParam);
581
+ (this.refs.docContentLayout as any)?.setSidebarInputValue(searchParam);
584
582
  }
585
583
 
586
584
  private pageReferenceToString(reference: PageReference): string {