@salesforcedevs/docs-components 1.3.300-alpha.0 → 1.3.300-alpha.2

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.300-alpha.0",
3
+ "version": "1.3.300-alpha.2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -361,7 +361,7 @@ export default class ContentLayout extends LightningElement {
361
361
  const tocItem = {
362
362
  anchor: `#${headingElement.hash}`,
363
363
  id: headingElement.id,
364
- label: headingElement.title
364
+ label: headingElement.header
365
365
  };
366
366
  tocOptions.push(tocItem);
367
367
  this.tocOptionIdsSet.add(headingElement.id);
@@ -13,9 +13,16 @@ export const displayLevels = Object.values(ariaDisplayLevels);
13
13
 
14
14
  // @ts-ignore: Really Dark Magic (TM) to do with ariaLevel needing explicit getter/setters
15
15
  export default class Heading extends LightningElement {
16
- @api header: string = "";
17
16
  @api hash: string | null = null;
18
17
 
18
+ @api
19
+ get header(): string {
20
+ return this._header;
21
+ }
22
+ set header(value: string) {
23
+ this._header = value;
24
+ }
25
+
19
26
  @api
20
27
  private get ariaLevel(): string {
21
28
  // Really Dark Magic (TM)
@@ -45,6 +52,7 @@ export default class Heading extends LightningElement {
45
52
  }
46
53
  }
47
54
 
55
+ private _header: string = "";
48
56
  private _ariaLevel: string | null = null;
49
57
  private _displayLevel: string | null = null;
50
58