@salesforcedevs/docs-components 1.29.0-newct-alpha1 → 1.29.0-newct-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.29.0-newct-alpha1",
3
+ "version": "1.29.0-newct-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,5 +1,5 @@
1
1
  import { LightningElement, api } from "lwc";
2
- import { normalizeBoolean } from "dxUtils/normalizers";
2
+ import { toJson, normalizeBoolean } from "dxUtils/normalizers";
3
3
  import type { OptionWithLink } from "typings/custom";
4
4
 
5
5
  /**
@@ -25,7 +25,6 @@ export default class UnifiedContentLayout extends LightningElement {
25
25
  @api breadcrumbs: string | null = null;
26
26
  @api sidebarHeader?: string;
27
27
  @api sidebarValue?: string;
28
- @api sidebarContent?: string;
29
28
  @api tocTitle?: string;
30
29
  @api tocOptions?: string;
31
30
  @api tocAriaLevel?: string;
@@ -50,6 +49,7 @@ export default class UnifiedContentLayout extends LightningElement {
50
49
  @api topicType: string = TOPIC_TYPE_MARKDOWN;
51
50
 
52
51
  private _docPhaseInfo: string | null = null;
52
+ private _sidebarContent: unknown = null;
53
53
 
54
54
  @api
55
55
  get docPhaseInfo(): string | null {
@@ -60,6 +60,15 @@ export default class UnifiedContentLayout extends LightningElement {
60
60
  this._docPhaseInfo = value || null;
61
61
  }
62
62
 
63
+ @api
64
+ get sidebarContent(): unknown {
65
+ return this._sidebarContent;
66
+ }
67
+
68
+ set sidebarContent(value: string | { topics?: unknown } | null) {
69
+ this._sidebarContent = value ? toJson(value)?.topics ?? null : null;
70
+ }
71
+
63
72
  private _expandChildren = false;
64
73
 
65
74
  @api