@salesforcedevs/docs-components 1.28.5-redoc-alpha5 → 1.28.5-redoc-alpha6

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-alpha5",
3
+ "version": "1.28.5-redoc-alpha6",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -37,7 +37,7 @@ type NavigationItem = {
37
37
  isExpanded: boolean;
38
38
  children: ParsedMarkdownTopic[];
39
39
  isChildrenLoading: boolean;
40
- renderWith?: string;
40
+ showForwardArrow?: boolean;
41
41
  };
42
42
 
43
43
  export default class AmfReference extends LightningElement {
@@ -499,7 +499,7 @@ export default class AmfReference extends LightningElement {
499
499
  this.isExpandChildrenEnabled(amfConfig.id),
500
500
  children: navItemChildren,
501
501
  isChildrenLoading,
502
- renderWith: this.resolveNavRenderWith(amfConfig)
502
+ showForwardArrow: this.resolveNavRenderWith(amfConfig)
503
503
  };
504
504
  this.parentReferenceUrls.push(amfConfig.href);
505
505
  }
@@ -507,21 +507,19 @@ export default class AmfReference extends LightningElement {
507
507
  }
508
508
 
509
509
  /**
510
- * Determines the `renderWith` value forwarded to the sidebar. Honors any
511
- * value set on the config; otherwise infers `"redoc"` for non-markdown
512
- * references that have no AMF URL (i.e. those rendered by Redoc).
510
+ * Determines whether the sidebar tile should render a forward arrow for
511
+ * this reference. Honors `redoc` set on the config, and also infers it
512
+ * for non-markdown references that have no AMF URL (i.e. those rendered
513
+ * by Redoc).
513
514
  */
514
- private resolveNavRenderWith(amfConfig: AmfConfig): string | undefined {
515
+ private resolveNavRenderWith(amfConfig: AmfConfig): boolean {
515
516
  if (amfConfig.renderWith) {
516
- return amfConfig.renderWith;
517
+ return amfConfig.renderWith === "redoc";
517
518
  }
518
- if (
519
+ return (
519
520
  amfConfig.referenceType !== REFERENCE_TYPES.markdown &&
520
521
  !amfConfig.amf
521
- ) {
522
- return "redoc";
523
- }
524
- return undefined;
522
+ );
525
523
  }
526
524
 
527
525
  /**
@@ -93,16 +93,8 @@ export default class RedocReference extends LightningElement {
93
93
  */
94
94
  @api projectTitle: string | null = "All Reference";
95
95
 
96
- private _specTitle: string | null = null;
97
-
98
- /** Title of the currently selected spec, shown beneath the project title. */
99
- @api
100
96
  get specTitle(): string | null {
101
- return this._specTitle || this.getSelectedReference()?.title || null;
102
- }
103
-
104
- set specTitle(value: string | null) {
105
- this._specTitle = value || null;
97
+ return this.getSelectedReference()?.title ?? null;
106
98
  }
107
99
 
108
100
  /**