@salesforcedevs/docs-components 1.31.0 → 1.31.1-lwr
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.31.
|
|
3
|
+
"version": "1.31.1-lwr",
|
|
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": "956930d90ebb6b2cc4fcc2c33b11199a28f1407a"
|
|
29
29
|
}
|
|
@@ -9,7 +9,7 @@ import { buildDocLinkClickHandler } from "dxUtils/analytics";
|
|
|
9
9
|
import ContentActionToolbar from "doc/contentActionToolbar";
|
|
10
10
|
|
|
11
11
|
const CONTENT_ACTION_TOOLBAR_TAG = "doc-content-action-toolbar";
|
|
12
|
-
const PAGE_HEADING_SELECTOR = "h1";
|
|
12
|
+
const PAGE_HEADING_SELECTOR = "h1, doc-heading";
|
|
13
13
|
|
|
14
14
|
type AnchorMap = { [key: string]: { intersect: boolean; id: string } };
|
|
15
15
|
|
|
@@ -286,7 +286,8 @@ export default class ContentLayout extends LightningElement {
|
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
288
|
* Inserts the content action toolbar into the slotted content immediately
|
|
289
|
-
* after the first
|
|
289
|
+
* after the first heading (any level) found inside the content body. This is
|
|
290
|
+
* the page's H1 when present, otherwise the first heading in document order.
|
|
290
291
|
*/
|
|
291
292
|
protected updateContentActionToolbar(): void {
|
|
292
293
|
if (!this.showContentActionToolbar || !this.sidebarValue) {
|