@salesforcedevs/docs-components 0.56.2-seo-test2 → 0.56.2-seo-test5

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": "0.56.2-seo-test2",
3
+ "version": "0.56.2-seo-test5",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -3,6 +3,7 @@ import { noCase } from "no-case";
3
3
  import { sentenceCase } from "sentence-case";
4
4
  import qs from "query-string";
5
5
  import { AmfModelParser } from "./utils";
6
+ import { normalizeBoolean } from "dxUtils/normalizers";
6
7
  import type {
7
8
  AmfConfig,
8
9
  AmfMetadataTopic,
@@ -37,7 +38,6 @@ export default class AmfReference extends LightningElement {
37
38
  @api tocOptions?: string;
38
39
  @track navigation = [];
39
40
  @track versions: Array<ReferenceVersion> = [];
40
- @api expandChildren?: string = null;
41
41
 
42
42
  // Update this to update what component gets rendered in the content block
43
43
  @track
@@ -124,6 +124,15 @@ export default class AmfReference extends LightningElement {
124
124
  }
125
125
  }
126
126
 
127
+ @api
128
+ get expandChildren() {
129
+ return this._expandChildren;
130
+ }
131
+
132
+ set expandChildren(value) {
133
+ this._expandChildren = normalizeBoolean(value);
134
+ }
135
+
127
136
  // model
128
137
  protected _amfConfigList: AmfConfig[] = [];
129
138
  protected _amfConfigMap: Map<string, AmfConfig> = new Map();
@@ -143,6 +152,7 @@ export default class AmfReference extends LightningElement {
143
152
 
144
153
  private isParentLevelDocPhaseEnabled = false;
145
154
  private selectedReferenceDocPhase?: string | null = null;
155
+ private _expandChildren?: boolean = false;
146
156
 
147
157
  /**
148
158
  * Key for storing the currently selected reference url. This will be used to save the