@salesforcedevs/docs-components 1.28.5-redoc-alpha2 → 1.28.5-redoc-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.28.5-redoc-alpha2",
3
+ "version": "1.28.5-redoc-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -91,11 +91,11 @@ export default class RedocReference extends LightningElement {
91
91
  /** Title of the currently selected spec, shown beneath the project title. */
92
92
  @api
93
93
  get specTitle(): string | null {
94
- return this._specTitle;
94
+ return this._specTitle || this.getSelectedReference()?.title || null;
95
95
  }
96
96
 
97
97
  set specTitle(value: string | null) {
98
- this._specTitle = value || this.getSelectedReference()?.title || null;
98
+ this._specTitle = value || null;
99
99
  }
100
100
 
101
101
  /**
@@ -152,13 +152,7 @@ export default class RedocReference extends LightningElement {
152
152
  }
153
153
 
154
154
  private getRedocContainer(): HTMLElement | null {
155
- // Prefer the slotted container in the consumer's light DOM so this
156
- // component composes inside shadow trees; fall back to a global
157
- // `.redoc-container` for legacy page-level integrations.
158
- return (
159
- this.querySelector<HTMLElement>(".redoc-container") ||
160
- document.querySelector<HTMLElement>(".redoc-container")
161
- );
155
+ return document.querySelector(".redoc-container");
162
156
  }
163
157
 
164
158
  private getSelectedReference(): ReferenceItem | null {