@salesforcedevs/dx-components 1.40.4-new-brand → 1.40.4-scroll-3
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
|
@@ -95,6 +95,12 @@ export default class CodeBlock extends LightningElement {
|
|
|
95
95
|
).trim();
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
/** True once the highlighted code has been rendered into the DOM. */
|
|
99
|
+
@api
|
|
100
|
+
get rendered(): boolean {
|
|
101
|
+
return this._codeBlockRendered;
|
|
102
|
+
}
|
|
103
|
+
|
|
98
104
|
@api
|
|
99
105
|
get showLoadingIndicator() {
|
|
100
106
|
return this._showLoadingIndicator;
|
|
@@ -18,8 +18,7 @@ const VALID_BRANDS = [
|
|
|
18
18
|
"revenue",
|
|
19
19
|
"sales",
|
|
20
20
|
"service",
|
|
21
|
-
"success"
|
|
22
|
-
"cross-product"
|
|
21
|
+
"success"
|
|
23
22
|
];
|
|
24
23
|
|
|
25
24
|
export const ANALYTICS_INFO = {
|
|
@@ -155,7 +154,12 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
155
154
|
setTimeout(() => {
|
|
156
155
|
const id = hash.replace("#", "");
|
|
157
156
|
const element = document.getElementById(id);
|
|
158
|
-
|
|
157
|
+
// doc-heading targets are scrolled by doc-content-layout once the page has rendered
|
|
158
|
+
if (
|
|
159
|
+
element &&
|
|
160
|
+
element.tagName !== "DOC-HEADING" &&
|
|
161
|
+
element.scrollIntoView
|
|
162
|
+
) {
|
|
159
163
|
element.scrollIntoView();
|
|
160
164
|
}
|
|
161
165
|
}, 0);
|