@salesforcedevs/docs-components 1.3.194-langpicker2-alpha → 1.3.194-langpicker3-alpha

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.194-langpicker2-alpha",
3
+ "version": "1.3.194-langpicker3-alpha",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -24,6 +24,8 @@
24
24
  coveo-search-hub={coveoSearchHub}
25
25
  coveo-advanced-query-config={coveoAdvancedQueryConfig}
26
26
  ontogglesidebar={onToggleSidebar}
27
+ languages={languages}
28
+ language={language}
27
29
  >
28
30
  <slot name="sidebar-header" slot="header"></slot>
29
31
  </dx-sidebar>
@@ -37,6 +37,8 @@ export default class ContentLayout extends LightningElement {
37
37
  @api coveoSearchHub!: string;
38
38
  @api coveoAdvancedQueryConfig!: string;
39
39
  @api useOldSidebar?: boolean = false;
40
+ @api languages!: OptionWithLink[];
41
+ @api language!: string;
40
42
 
41
43
  @api
42
44
  get breadcrumbs() {
@@ -74,26 +76,6 @@ export default class ContentLayout extends LightningElement {
74
76
  );
75
77
  }
76
78
 
77
- @api
78
- get languages() {
79
- return this._languages;
80
- }
81
-
82
- set languages(value) {
83
- this._languages = toJson(value);
84
- }
85
-
86
- @api
87
- get language() {
88
- return this._language;
89
- }
90
-
91
- set language(value) {
92
- if (this._language !== value) {
93
- this._language = value;
94
- }
95
- }
96
-
97
79
  @track
98
80
  private _sidebarContent: unknown;
99
81
 
@@ -109,8 +91,6 @@ export default class ContentLayout extends LightningElement {
109
91
  private hasRendered: boolean = false;
110
92
  private contentLoaded: boolean = false;
111
93
  private sidebarOpen: boolean = false;
112
- private _languages!: OptionWithLink[];
113
- private _language: string | null = null;
114
94
 
115
95
  get shouldDisplayFeedback() {
116
96
  return this.contentLoaded && typeof Sprig !== "undefined";