@salesforcedevs/docs-components 1.27.22 → 1.28.6-alpha.1
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.
|
|
3
|
+
"version": "1.28.6-alpha.1",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/lodash.orderby": "4.6.9",
|
|
26
26
|
"@types/lodash.uniqby": "4.7.9"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "6cfd671b3d33f43fcc4bb3f83c6f1b5ec0a7ed3b"
|
|
29
29
|
}
|
|
@@ -19,6 +19,7 @@ export default class Nav extends LightningElement {
|
|
|
19
19
|
@api pdfUrl!: PdfUrl;
|
|
20
20
|
@api toc!: DocToc;
|
|
21
21
|
@api pageReference!: PageReference;
|
|
22
|
+
@api enableDataCloudSearch: boolean | string = false;
|
|
22
23
|
|
|
23
24
|
handleSelected(event: CustomEvent) {
|
|
24
25
|
event.stopPropagation();
|
|
@@ -291,7 +291,11 @@ export default class RedocReference extends LightningElement {
|
|
|
291
291
|
this.insertDocPhase(apiContentDiv, docPhaseInfo);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
if (typeof Sprig !== "undefined") {
|
|
295
|
+
this.insertSprigSurvey(apiContentDiv);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
this.insertFooter(apiContentDiv);
|
|
295
299
|
|
|
296
300
|
// Wait for footer to be rendered before updating styles
|
|
297
301
|
requestAnimationFrame(() => {
|
|
@@ -354,16 +358,6 @@ export default class RedocReference extends LightningElement {
|
|
|
354
358
|
wrapper.appendChild(feedbackElement);
|
|
355
359
|
}
|
|
356
360
|
|
|
357
|
-
private appendFooterItems(parent: HTMLElement): void {
|
|
358
|
-
const container = document.createElement("div");
|
|
359
|
-
container.className = "appended-footer-container";
|
|
360
|
-
if (typeof Sprig !== "undefined") {
|
|
361
|
-
this.insertSprigSurvey(container);
|
|
362
|
-
}
|
|
363
|
-
this.insertFooter(container);
|
|
364
|
-
parent.appendChild(container);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
361
|
// Adjusts third column bottom position to prevent footer overlap
|
|
368
362
|
private updateRedocThirdColumnStyle(redocContainer: HTMLElement): void {
|
|
369
363
|
const footer = redocContainer.querySelector(
|