@salesforcedevs/docs-components 1.3.227-dh6-alpha → 1.3.227-dh8-alpha

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-dh6-alpha",
3
+ "version": "1.3.227-dh8-alpha",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -22,7 +22,7 @@ doc-breadcrumbs {
22
22
 
23
23
  dx-sidebar,
24
24
  dx-sidebar-old {
25
- --dx-c-sidebar-vertical-padding: var(--dx-c-content-vertical-spacing);
25
+ --dx-c-sidebar-vertical-padding: var(--dx-g-spacing-md);
26
26
 
27
27
  z-index: calc(var(--dx-g-z-index-100) + 5);
28
28
  }
@@ -42,7 +42,6 @@ header:not(.has-brand) > .header_l2 {
42
42
  .has-brand .header_l2_group-title {
43
43
  padding: var(--dx-g-spacing-smd) var(--dx-g-spacing-xl)
44
44
  calc(var(--dx-g-spacing-smd - 1px)) 0;
45
- min-width: 320px;
46
45
  }
47
46
 
48
47
  .no-header-content {
@@ -68,7 +67,7 @@ header:not(.has-brand) > .header_l2 {
68
67
  margin-right: 0;
69
68
  padding: var(--dx-g-spacing-sm) 0 2px
70
69
  var(--dx-g-global-header-padding-horizontal);
71
- min-height: 41px;
70
+ height: 41px;
72
71
  }
73
72
 
74
73
  .header_l2_group-nav {
@@ -89,9 +88,8 @@ header:not(.has-brand) > .header_l2 {
89
88
 
90
89
  .has-brand .header_l2_group-title {
91
90
  margin-right: 0;
92
- padding: var(--dx-g-spacing-sm) 0 2px
91
+ padding: var(--dx-g-spacing-sm) 0 var(--dx-g-spacing-2xs)
93
92
  var(--dx-g-global-header-padding-horizontal);
94
- min-height: 41px;
95
93
  }
96
94
 
97
95
  .has-scoped-nav-items > .header_l2 {
@@ -40,7 +40,7 @@
40
40
  </header>
41
41
  </dx-brand-theme-provider>
42
42
  </template>
43
- <template if:false={shouldRender}>
43
+ <template if:true={showDocDivider}>
44
44
  <div class="no-header-content"></div>
45
45
  </template>
46
46
  </template>
@@ -23,6 +23,8 @@ export default class Header extends HeaderBase {
23
23
  private _scopedNavItems!: OptionWithNested[];
24
24
  private tablet = false;
25
25
  private tabletMatchMedia!: MediaQueryList;
26
+ private shouldRender: boolean = false;
27
+ private showDocDivider: boolean = false;
26
28
 
27
29
  protected mobileBreakpoint(): string {
28
30
  return MOBILE_MATCH;
@@ -41,16 +43,22 @@ export default class Header extends HeaderBase {
41
43
  this.tabletMatchMedia.addEventListener("change", this.onTabletChange);
42
44
 
43
45
  if (
44
- ((window.location.pathname.includes("/docs/") &&
46
+ (window.location.pathname.includes("/docs/") &&
45
47
  window.location.pathname !== "/docs/apis") ||
46
- window.location.pathname ===
47
- "/tableau/embedding-playground/overview" ||
48
- window.location.host === "localhost:6006" ||
49
- window.location.host === "dsc-components.herokuapp.com") &&
50
- (this.brand || this.mobile)
48
+ window.location.pathname ===
49
+ "/tableau/embedding-playground/overview" ||
50
+ window.location.host === "localhost:6006" ||
51
+ window.location.host === "dsc-components.herokuapp.com"
51
52
  ) {
52
53
  this.shouldRender = true;
53
54
  }
55
+
56
+ if (this.shouldRender && window.location.pathname.includes("/docs/")) {
57
+ if (!this.brand && !this.mobile) {
58
+ this.shouldRender = false;
59
+ this.showDocDivider = true;
60
+ }
61
+ }
54
62
  }
55
63
 
56
64
  disconnectedCallback(): void {
@@ -6,7 +6,7 @@
6
6
  coveo-analytics-token={coveoAnalyticsToken}
7
7
  coveo-search-hub={coveoSearchHub}
8
8
  coveo-advanced-query-config={coveoAdvancedQueryConfig}
9
- sidebar-header={projectTitle}
9
+ sidebar-header={docTitle}
10
10
  sidebar-content={sidebarContent}
11
11
  sidebar-value={sidebarValue}
12
12
  onselect={handleSelect}
@@ -44,7 +44,6 @@ export default class DocXmlContent extends LightningElementWithState<{
44
44
  @api coveoPublicAccessToken!: string;
45
45
  @api coveoAnalyticsToken!: string;
46
46
  @api coveoSearchHub!: string;
47
- @api projectTitle!: string;
48
47
 
49
48
  @api
50
49
  get allLanguages(): Array<Language> {
@@ -546,8 +545,6 @@ export default class DocXmlContent extends LightningElementWithState<{
546
545
 
547
546
  if (this.docTitle) {
548
547
  this.pageHeader.subtitle = this.docTitle;
549
- // eslint-disable-next-line @lwc/lwc/no-api-reassignments
550
- this.projectTitle = this.docTitle;
551
548
  }
552
549
 
553
550
  if (this.pdfUrl) {