@salesforcedevs/dx-components 1.40.7 → 1.40.9
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 +3 -3
- package/src/modules/dx/codeBlock/codeBlock.ts +6 -0
- package/src/modules/dx/input/input.html +1 -0
- package/src/modules/dx/searchResults/searchResults.html +1 -0
- package/src/modules/dx/select/select.html +1 -0
- package/src/modules/dxBaseElements/headerBase/headerBase.ts +6 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.9",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": "22.
|
|
7
|
+
"node": "24.22.1"
|
|
8
8
|
},
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"luxon": "3.4.4",
|
|
45
45
|
"msw": "^2.12.4"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "483ca68f1d878910284fbcb0df178fc2a4f48a3a"
|
|
48
48
|
}
|
|
@@ -87,6 +87,12 @@ export default class CodeBlock extends LightningElement {
|
|
|
87
87
|
this._codeBlock = value.trim();
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/** True once the highlighted code has been rendered into the DOM. */
|
|
91
|
+
@api
|
|
92
|
+
get rendered(): boolean {
|
|
93
|
+
return this._codeBlockRendered;
|
|
94
|
+
}
|
|
95
|
+
|
|
90
96
|
@api
|
|
91
97
|
get showLoadingIndicator() {
|
|
92
98
|
return this._showLoadingIndicator;
|
|
@@ -155,7 +155,12 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
155
155
|
setTimeout(() => {
|
|
156
156
|
const id = hash.replace("#", "");
|
|
157
157
|
const element = document.getElementById(id);
|
|
158
|
-
|
|
158
|
+
// doc-heading targets are scrolled by doc-content-layout once the page has rendered
|
|
159
|
+
if (
|
|
160
|
+
element &&
|
|
161
|
+
element.tagName !== "DOC-HEADING" &&
|
|
162
|
+
element.scrollIntoView
|
|
163
|
+
) {
|
|
159
164
|
element.scrollIntoView();
|
|
160
165
|
}
|
|
161
166
|
}, 0);
|