@salesforcedevs/docs-components 1.35.1-remediation.1 → 1.36.0

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 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.35.1-remediation.1",
3
+ "version": "1.36.0",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -25,5 +25,5 @@
25
25
  "@types/lodash.orderby": "4.6.9",
26
26
  "@types/lodash.uniqby": "4.7.9"
27
27
  },
28
- "gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
28
+ "gitHead": "1de213116307aff8879c765c37d3dda3ef6aa430"
29
29
  }
@@ -149,6 +149,7 @@ a,
149
149
  border-width: 0;
150
150
  border-style: solid;
151
151
  border-color: #e2e8f0;
152
+ font-size: var(--dx-g-text-md);
152
153
  color: var(--dx-g-blue-vibrant-50);
153
154
  }
154
155
 
@@ -79,15 +79,6 @@ export default class ContentLayout extends LightningElement {
79
79
  @api brand: any;
80
80
  @api emptyStateMessage?: string;
81
81
 
82
- @api
83
- get enableOpenSearch() {
84
- return this._enableOpenSearch;
85
- }
86
- set enableOpenSearch(value) {
87
- this._enableOpenSearch = normalizeBoolean(value);
88
- }
89
- private _enableOpenSearch = false;
90
-
91
82
  // This is needed for now to prevent failing snapshot tests due to links in the footer
92
83
  @api
93
84
  get showFooter() {
@@ -165,16 +156,12 @@ export default class ContentLayout extends LightningElement {
165
156
  );
166
157
  }
167
158
 
168
- /** Show the OpenSearch sidebar when enabled, configured, and the old sidebar isn't requested. */
159
+ /** Show the OpenSearch sidebar when SEARCH_API_PATH is set and the old sidebar isn't requested. */
169
160
  protected get showOpenSearchSidebar(): boolean {
170
- return (
171
- this.enableOpenSearch &&
172
- !this.useOldSidebar &&
173
- isOpenSearchConfigured()
174
- );
161
+ return !this.useOldSidebar && isOpenSearchConfigured();
175
162
  }
176
163
 
177
- /** Show the legacy (keyword) sidebar when requested, or when OpenSearch is disabled or not configured. */
164
+ /** Show the legacy (keyword) sidebar when requested, or when OpenSearch isn't configured. */
178
165
  protected get showOldSidebar(): boolean {
179
166
  return !this.showOpenSearchSidebar;
180
167
  }
@@ -1,15 +1,7 @@
1
1
  @import "dxHelpers/text";
2
2
 
3
- h1,
4
- h2,
5
- h3,
6
- h4 {
7
- font-weight: var(--dx-g-font-weight-heading, var(--dx-g-font-demi));
8
- }
9
-
10
3
  h1 {
11
- margin: var(--dx-g-space-above-h1, var(--dx-g-spacing-2xl)) 0
12
- var(--dx-g-space-below-h1, var(--dx-g-spacing-md)) 0;
4
+ margin: var(--dx-g-spacing-2xl) 0 var(--dx-g-spacing-md) 0;
13
5
  }
14
6
 
15
7
  h1 doc-heading-content {
@@ -17,8 +9,7 @@ h1 doc-heading-content {
17
9
  }
18
10
 
19
11
  h2 {
20
- margin: var(--dx-g-space-above-h2, var(--dx-g-spacing-2xl)) 0
21
- var(--dx-g-space-below-h2, var(--dx-g-spacing-md)) 0;
12
+ margin: var(--dx-g-spacing-2xl) 0 var(--dx-g-spacing-md) 0;
22
13
  }
23
14
 
24
15
  h2 doc-heading-content {
@@ -26,8 +17,7 @@ h2 doc-heading-content {
26
17
  }
27
18
 
28
19
  h3 {
29
- margin: var(--dx-g-space-above-h3, var(--dx-g-spacing-xl)) 0
30
- var(--dx-g-space-below-h3, var(--dx-g-spacing-md)) 0;
20
+ margin: var(--dx-g-spacing-xl) 0 var(--dx-g-spacing-md) 0;
31
21
  }
32
22
 
33
23
  h3 doc-heading-content {
@@ -35,8 +25,7 @@ h3 doc-heading-content {
35
25
  }
36
26
 
37
27
  h4 {
38
- margin: var(--dx-g-space-above-h4, var(--dx-g-spacing-lg)) 0
39
- var(--dx-g-space-below-h4, var(--dx-g-spacing-sm)) 0;
28
+ margin: var(--dx-g-spacing-lg) 0 var(--dx-g-spacing-sm) 0;
40
29
  }
41
30
 
42
31
  h4 doc-heading-content {
@@ -2,7 +2,6 @@
2
2
  <doc-content-layout
3
3
  lwc:if={displayContent}
4
4
  lwc:ref="docContentLayout"
5
- enable-open-search
6
5
  sidebar-header={docTitle}
7
6
  sidebar-content={sidebarContent}
8
7
  sidebar-value={sidebarValue}
@@ -44,7 +44,7 @@ doc-breadcrumbs {
44
44
  gap: var(--dx-g-spacing-xs, 8px);
45
45
  margin-bottom: var(--dx-g-spacing-lg, 16px);
46
46
  color: var(--dx-g-gray-30, #3e3e3c);
47
- font-size: var(--dx-g-font-size-body-3, 14px);
47
+ font-size: var(--dx-g-font-size-sm, 14px);
48
48
  }
49
49
 
50
50
  .read svg {
@@ -1,5 +1,4 @@
1
1
  :host {
2
- /* Deprecated: nothing reads it. Removed under plan 3.3. */
3
2
  --dx-status-icon-color: var(--dx-g-gray-10);
4
3
  --doc-status-vertical-padding: var(--dx-g-spacing-md);
5
4
  }