@salesforcedevs/docs-components 1.3.139-coveo-fix-test7 → 1.3.139-coveo-fix-test8
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
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
coveo-public-access-token={coveoPublicAccessToken}
|
|
7
7
|
coveo-search-hub={coveoSearchHub}
|
|
8
8
|
coveo-advanced-query-config={coveoAdvancedQueryConfig}
|
|
9
|
+
version={selectedVersion.id}
|
|
9
10
|
breadcrumbs={breadcrumbs}
|
|
10
11
|
sidebar-header={sidebarHeader}
|
|
11
12
|
sidebar-value={selectedSidebarValue}
|
|
@@ -42,7 +42,6 @@ export default class AmfReference extends LightningElement {
|
|
|
42
42
|
@track navigation = [];
|
|
43
43
|
@track versions: Array<ReferenceVersion> = [];
|
|
44
44
|
@track showVersionBanner = false;
|
|
45
|
-
@api currentVersion: string = "something";
|
|
46
45
|
|
|
47
46
|
// Update this to update what component gets rendered in the content block
|
|
48
47
|
@track
|
|
@@ -35,7 +35,17 @@ export default class ContentLayout extends LightningElement {
|
|
|
35
35
|
@api coveoSearchHub!: string;
|
|
36
36
|
@api coveoAdvancedQueryConfig!: string;
|
|
37
37
|
@api useOldSidebar?: boolean = false;
|
|
38
|
-
@api
|
|
38
|
+
@api
|
|
39
|
+
get version(): string {
|
|
40
|
+
return this._newVersion;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set version(val) {
|
|
44
|
+
if (val) {
|
|
45
|
+
this._newVersion = val;
|
|
46
|
+
}
|
|
47
|
+
console.log("Content Layout: " + this._newVersion);
|
|
48
|
+
}
|
|
39
49
|
|
|
40
50
|
@api
|
|
41
51
|
get breadcrumbs() {
|
|
@@ -75,6 +85,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
75
85
|
private _sidebarContent: unknown;
|
|
76
86
|
|
|
77
87
|
private _breadcrumbs = null;
|
|
88
|
+
protected _newVersion = "latest";
|
|
78
89
|
|
|
79
90
|
@track
|
|
80
91
|
private _tocOptions: Array<unknown>;
|