@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
|
@@ -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 =
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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
|
}
|