@salesforcedevs/docs-components 1.3.300-alpha.2 → 1.3.300-alpha.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.300-alpha.2",
3
+ "version": "1.3.300-alpha.3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -343,8 +343,10 @@ export default class ContentLayout extends LightningElement {
343
343
  );
344
344
 
345
345
  for (const headingElement of headingElements as any) {
346
- // Sometimes elements hash is not being set when slot content is wrapped with div
346
+ // Sometimes elements hash and header is not being set when slot content is wrapped with div
347
347
  headingElement.hash = headingElement.attributes.hash?.nodeValue;
348
+ headingElement.header =
349
+ headingElement.attributes.header?.nodeValue;
348
350
  }
349
351
 
350
352
  const tocOptions = [];
@@ -13,16 +13,9 @@ 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 = "";
16
17
  @api hash: string | null = null;
17
18
 
18
- @api
19
- get header(): string {
20
- return this._header;
21
- }
22
- set header(value: string) {
23
- this._header = value;
24
- }
25
-
26
19
  @api
27
20
  private get ariaLevel(): string {
28
21
  // Really Dark Magic (TM)
@@ -52,7 +45,6 @@ export default class Heading extends LightningElement {
52
45
  }
53
46
  }
54
47
 
55
- private _header: string = "";
56
48
  private _ariaLevel: string | null = null;
57
49
  private _displayLevel: string | null = null;
58
50