@salesforcedevs/docs-components 0.64.2-reference-attributes-1 → 0.65.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": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
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": "1c5bd3f00f0ac08aaa480c3d0ccd8a870b4c4035"
|
|
28
28
|
}
|
|
@@ -363,6 +363,21 @@ export default class AmfReference extends LightningElement {
|
|
|
363
363
|
return parentReferenceIndex !== -1;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
+
/**
|
|
367
|
+
* Expands the children of Markdown-based References.
|
|
368
|
+
*/
|
|
369
|
+
private expandChildrenForMarkdownReferences(
|
|
370
|
+
children: ParsedMarkdownTopic[]
|
|
371
|
+
): void {
|
|
372
|
+
if (!children) {
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
for (const childNode of children) {
|
|
376
|
+
childNode.isExpanded = true;
|
|
377
|
+
this.expandChildrenForMarkdownReferences(childNode.children);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
366
381
|
/**
|
|
367
382
|
* Populates reference Items from amfConfigList and assigns it to navigation for sidebar
|
|
368
383
|
*/
|
|
@@ -383,6 +398,15 @@ export default class AmfReference extends LightningElement {
|
|
|
383
398
|
}
|
|
384
399
|
isChildrenLoading = true;
|
|
385
400
|
} else {
|
|
401
|
+
const isExpandChildrenEnabled = this.isExpandChildrenEnabled(
|
|
402
|
+
amfConfig.id
|
|
403
|
+
);
|
|
404
|
+
// check whether we should expand all the child nodes, this is required for Coveo to crawl.
|
|
405
|
+
if (isExpandChildrenEnabled) {
|
|
406
|
+
this.expandChildrenForMarkdownReferences(
|
|
407
|
+
amfConfig.topic.children
|
|
408
|
+
);
|
|
409
|
+
}
|
|
386
410
|
navItemChildren = amfConfig.topic.children;
|
|
387
411
|
}
|
|
388
412
|
// store nav items for each spec in order
|
|
@@ -78,8 +78,8 @@ api-security-documentation {
|
|
|
78
78
|
--arc-font-h3-margin: var(--amf-h8-margin);
|
|
79
79
|
|
|
80
80
|
/* p */
|
|
81
|
-
--arc-font-body1-font-size: var(--dx-g-text-
|
|
82
|
-
--arc-font-body1-line-height: var(--dx-g-spacing-
|
|
81
|
+
--arc-font-body1-font-size: var(--dx-g-text-base);
|
|
82
|
+
--arc-font-body1-line-height: var(--dx-g-spacing-lg);
|
|
83
83
|
|
|
84
84
|
/* code */
|
|
85
85
|
--arc-font-code-family: var(--dx-g-font-mono);
|
|
@@ -133,14 +133,33 @@ api-security-documentation {
|
|
|
133
133
|
/* api */
|
|
134
134
|
--api-parameters-document-title-border: 0;
|
|
135
135
|
--api-body-document-title-border: 0;
|
|
136
|
-
--api-type-document-
|
|
136
|
+
--api-type-document-property-parent-color: rgb(112, 110, 107);
|
|
137
|
+
--api-type-document-property-title-font-family: var(--dx-g-font-sans);
|
|
138
|
+
--api-type-document-property-title-font-size: var(--dx-g-text-base);
|
|
139
|
+
--api-type-document-property-title-font-weight: var(--dx-g-font-bold);
|
|
140
|
+
--api-type-document-property-title-color: var(--dx-g-blue-vibrant-20);
|
|
141
|
+
--api-type-document-type-font-family: var(--dx-g-font-mono);
|
|
142
|
+
--api-type-document-type-background-color: var(--dx-g-gray-95);
|
|
143
|
+
--api-type-document-type-color: rgb(24, 24, 24);
|
|
144
|
+
--api-type-document-type-attribute-color: rgb(24, 24, 24);
|
|
145
|
+
--api-type-document-trait-font-family: var(--dx-g-font-mono);
|
|
146
|
+
--api-type-document-trait-color: rgb(24, 24, 24);
|
|
147
|
+
--api-type-document-trait-padding: 0 var(--dx-g-spacing-xs);
|
|
148
|
+
--api-type-document-trait-data-type-padding: 0 var(--dx-g-spacing-xs);
|
|
149
|
+
--api-type-document-trait-font-size: var(--dx-g-text-sm);
|
|
150
|
+
--api-type-document-trait-border-radius: var(--dx-g-spacing-xs);
|
|
151
|
+
--api-type-document-trait-background-color: var(--dx-g-gray-95);
|
|
137
152
|
--api-type-document-union-button-active-background-color: transparent;
|
|
138
153
|
--api-type-document-union-button-active-color: var(--dx-g-blue-vibrant-20);
|
|
139
154
|
--api-type-document-union-button-background-color: transparent;
|
|
140
155
|
--api-type-document-union-button-color: var(--dx-g-blue-vibrant-50);
|
|
141
156
|
--api-type-document-media-button-border-color: transparent;
|
|
142
157
|
--property-shape-document-padding: 24px 0;
|
|
143
|
-
--property-shape-document-title-font-family: var(--dx-g-font-
|
|
158
|
+
--property-shape-document-title-font-family: var(--dx-g-font-sans);
|
|
159
|
+
--property-shape-document-title-font-size: var(--dx-g-text-base);
|
|
160
|
+
--property-shape-document-title-font-weight: var(--dx-g-font-bold);
|
|
161
|
+
--property-shape-document-title-line-height: 20px;
|
|
162
|
+
--property-shape-document-title-margin: 8px 0 8px 0;
|
|
144
163
|
--property-shape-document-object-color: var(--dx-g-blue-vibrant-90);
|
|
145
164
|
--property-shape-document-array-color: var(--dx-g-blue-vibrant-90);
|
|
146
165
|
--property-shape-document-union-color: var(--dx-g-blue-vibrant-90);
|