@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
|
@@ -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 ||
|
|
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
|
-
|
|
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 {
|