@salesforcedevs/docs-components 1.3.243-newdocux-alpha9 → 1.3.252
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/LICENSE +12 -0
- package/package.json +2 -2
- package/src/modules/doc/amfReference/amfReference.html +1 -0
- package/src/modules/doc/amfReference/amfReference.ts +5 -0
- package/src/modules/doc/contentLayout/contentLayout.html +1 -1
- package/src/modules/doc/contentLayout/contentLayout.ts +1 -5
- package/src/modules/doc/xmlContent/xmlContent.html +1 -0
- package/src/modules/doc/xmlContent/xmlContent.ts +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.252",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
25
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "8379eb747571af22dfdfc3c440e8c23c85d1fe8b"
|
|
28
28
|
}
|
|
@@ -50,6 +50,7 @@ export default class AmfReference extends LightningElement {
|
|
|
50
50
|
@api tocOptions?: string;
|
|
51
51
|
@api languages!: OptionWithLink[];
|
|
52
52
|
@api language!: string;
|
|
53
|
+
@api hideFooter = false;
|
|
53
54
|
@track navigation = [] as NavigationItem[];
|
|
54
55
|
@track versions: Array<ReferenceVersion> = [];
|
|
55
56
|
@track showVersionBanner = false;
|
|
@@ -184,6 +185,10 @@ export default class AmfReference extends LightningElement {
|
|
|
184
185
|
this._coveoAdvancedQueryConfig = toJson(config);
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
private get enableFooter(): boolean {
|
|
189
|
+
return !this.hideFooter;
|
|
190
|
+
}
|
|
191
|
+
|
|
187
192
|
// model
|
|
188
193
|
protected _amfConfigList: AmfConfig[] = [];
|
|
189
194
|
protected _amfConfigMap: Map<string, AmfConfig> = new Map();
|
|
@@ -43,7 +43,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
43
43
|
@api bailLabel!: string;
|
|
44
44
|
|
|
45
45
|
// This is needed for now to prevent failing snapshot tests due to links in the footer
|
|
46
|
-
@api
|
|
46
|
+
@api showFooter = false;
|
|
47
47
|
|
|
48
48
|
@api
|
|
49
49
|
get breadcrumbs() {
|
|
@@ -97,10 +97,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
97
97
|
private contentLoaded: boolean = false;
|
|
98
98
|
private sidebarOpen: boolean = false;
|
|
99
99
|
|
|
100
|
-
get footerHidden() {
|
|
101
|
-
return this.hideFooter !== true;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
100
|
get shouldDisplayFeedback() {
|
|
105
101
|
return this.contentLoaded && typeof Sprig !== "undefined";
|
|
106
102
|
}
|
|
@@ -44,6 +44,7 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
44
44
|
@api coveoPublicAccessToken!: string;
|
|
45
45
|
@api coveoAnalyticsToken!: string;
|
|
46
46
|
@api coveoSearchHub!: string;
|
|
47
|
+
@api hideFooter = false;
|
|
47
48
|
|
|
48
49
|
@api
|
|
49
50
|
get allLanguages(): Array<Language> {
|
|
@@ -84,6 +85,10 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
84
85
|
private latestVersion = false;
|
|
85
86
|
private previewVersion = false;
|
|
86
87
|
|
|
88
|
+
private get enableFooter(): boolean {
|
|
89
|
+
return !this.hideFooter;
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
private searchSyncer = new SearchSyncer({
|
|
88
93
|
callbacks: {
|
|
89
94
|
onSearchChange: (nextSearchString: string): void => {
|