@salesforcedevs/docs-components 1.31.0-md-alpha1 → 1.31.0-md-alpha2

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.0-md-alpha1",
3
+ "version": "1.31.0-md-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -9,8 +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 HEADING_SELECTOR = "h1, h2, h3, h4, h5, h6";
13
- const CONTENT_BODY_SELECTOR = ".content-body-container .content-body";
12
+ const PAGE_HEADING_SELECTOR = "h1, doc-heading";
14
13
 
15
14
  type AnchorMap = { [key: string]: { intersect: boolean; id: string } };
16
15
 
@@ -296,18 +295,9 @@ export default class ContentLayout extends LightningElement {
296
295
  return;
297
296
  }
298
297
 
299
- const contentBody = querySelector(
300
- CONTENT_BODY_SELECTOR,
301
- this.template.host
302
- ) as HTMLElement | null;
303
-
304
- if (!contentBody) {
305
- return;
306
- }
307
-
308
298
  const heading = querySelector(
309
- HEADING_SELECTOR,
310
- contentBody
299
+ PAGE_HEADING_SELECTOR,
300
+ this.template.host
311
301
  ) as HTMLElement | null;
312
302
 
313
303
  if (!heading) {