@salesforcedevs/docs-components 1.28.5-redoc-alpha3 → 1.28.5-redoc-alpha4

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.28.5-redoc-alpha3",
3
+ "version": "1.28.5-redoc-alpha4",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -13,7 +13,6 @@
13
13
  onclick={onLinkClick}
14
14
  class="dev-center-content"
15
15
  >
16
- <dx-icon symbol="back"></dx-icon>
17
16
  <dx-icon
18
17
  class="brand-icon"
19
18
  lwc:if={devCenter.icon}
@@ -84,7 +84,7 @@ export default class RedocReference extends LightningElement {
84
84
  * Project title (same value passed to `<doc-header>` as `subtitle`). Used
85
85
  * inside the Redoc-rendered UI to label the parent project.
86
86
  */
87
- @api projectTitle: string | null = null;
87
+ @api projectTitle: string | null = "All Reference";
88
88
 
89
89
  private _specTitle: string | null = null;
90
90
 
@@ -393,11 +393,7 @@ export default class RedocReference extends LightningElement {
393
393
  const wrapper = document.createElement("div");
394
394
  wrapper.className = "redoc-project-header";
395
395
 
396
- /* TODO:
397
- * Uncomment when doc-header is dropped with Vision state UX.
398
- * if(this.projectTitle) {
399
- */
400
- if (this.specTitle) {
396
+ if (this.projectTitle) {
401
397
  const backLink = document.createElement("a");
402
398
  backLink.className = "redoc-project-back";
403
399
  backLink.href = "#";
@@ -413,20 +409,19 @@ export default class RedocReference extends LightningElement {
413
409
 
414
410
  const label = document.createElement("span");
415
411
  label.className = "redoc-project-title";
416
- label.textContent = this.specTitle;
412
+ label.textContent = this.projectTitle;
417
413
 
418
414
  backLink.appendChild(icon);
419
415
  backLink.appendChild(label);
420
416
  wrapper.appendChild(backLink);
421
417
  }
422
418
 
423
- // TODO: Uncomment when we we have vision state UX with no doc-header
424
- // if (this.specTitle) {
425
- // const specEl = document.createElement("h2");
426
- // specEl.className = "redoc-spec-title";
427
- // specEl.textContent = this.specTitle;
428
- // wrapper.appendChild(specEl);
429
- // }
419
+ if (this.specTitle) {
420
+ const specEl = document.createElement("h2");
421
+ specEl.className = "redoc-spec-title dx-text-display-7";
422
+ specEl.textContent = this.specTitle;
423
+ wrapper.appendChild(specEl);
424
+ }
430
425
 
431
426
  return wrapper;
432
427
  }