@salesforcedevs/docs-components 0.54.5 → 0.55.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.55.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": "4605730d0e1fbcfb0535d2b97424dc61678cd918"
|
|
28
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
|
-
import { Breadcrumb,
|
|
2
|
+
import { Breadcrumb, OptionWithLink } from "typings/custom";
|
|
3
3
|
import { toJson } from "dxUtils/normalizers";
|
|
4
4
|
|
|
5
5
|
type BreadcrumbConfig = {
|
|
@@ -62,7 +62,7 @@ export default class Breadcrumbs extends LightningElement {
|
|
|
62
62
|
private get renderDropdown(): boolean {
|
|
63
63
|
return this.hasInternalBreadcrumbs && !!this.dropdownOptionAmount;
|
|
64
64
|
}
|
|
65
|
-
private get dropdownOptions():
|
|
65
|
+
private get dropdownOptions(): OptionWithLink[] {
|
|
66
66
|
return this.breadcrumbs!.slice(1, this.dropdownOptionAmount! + 1).map(
|
|
67
67
|
(link) => ({
|
|
68
68
|
id: link.href!,
|
|
@@ -66,31 +66,47 @@ td > img.content-image:first-child:last-child[alt="No"] {
|
|
|
66
66
|
|
|
67
67
|
h1 {
|
|
68
68
|
font-family: var(--dx-g-font-display);
|
|
69
|
-
font-size:
|
|
69
|
+
font-size: var(--dx-g-text-4xl);
|
|
70
70
|
|
|
71
71
|
/* not registered */
|
|
72
72
|
color: var(--dx-g-blue-vibrant-20);
|
|
73
73
|
letter-spacing: -0.4px;
|
|
74
|
-
line-height:
|
|
74
|
+
line-height: 56px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
h2 {
|
|
78
78
|
font-family: var(--dx-g-font-display);
|
|
79
|
-
font-size: var(--dx-g-text-
|
|
79
|
+
font-size: var(--dx-g-text-3xl);
|
|
80
80
|
color: var(--dx-g-blue-vibrant-20);
|
|
81
81
|
letter-spacing: -0.1px;
|
|
82
|
-
line-height: var(--dx-g-spacing-
|
|
82
|
+
line-height: var(--dx-g-spacing-3xl);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
h3 {
|
|
86
86
|
font-family: var(--dx-g-font-display);
|
|
87
|
-
font-size:
|
|
87
|
+
font-size: 32px;
|
|
88
88
|
color: var(--dx-g-blue-vibrant-20);
|
|
89
89
|
letter-spacing: -0.1px;
|
|
90
|
-
line-height: var(--dx-g-spacing-
|
|
90
|
+
line-height: var(--dx-g-spacing-2xl);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
h4 {
|
|
94
|
+
font-family: var(--dx-g-font-display);
|
|
95
|
+
font-size: var(--dx-g-text-xl);
|
|
96
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
97
|
+
letter-spacing: 0;
|
|
98
|
+
line-height: var(--dx-g-spacing-xl);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
h5 {
|
|
102
|
+
font-family: var(--dx-g-font-display);
|
|
103
|
+
font-size: var(--dx-g-text-lg);
|
|
104
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
105
|
+
letter-spacing: 0;
|
|
106
|
+
line-height: 28px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h6 {
|
|
94
110
|
font-family: var(--dx-g-font-display);
|
|
95
111
|
font-size: var(--dx-g-text-base);
|
|
96
112
|
color: var(--dx-g-blue-vibrant-20);
|
|
@@ -116,6 +132,12 @@ p,
|
|
|
116
132
|
margin-bottom: var(--dx-g-spacing-md);
|
|
117
133
|
}
|
|
118
134
|
|
|
135
|
+
dd > p,
|
|
136
|
+
dd > .p {
|
|
137
|
+
margin-top: 0;
|
|
138
|
+
margin-bottom: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
119
141
|
.li {
|
|
120
142
|
font-family: var(--dx-g-font-sans);
|
|
121
143
|
font-size: var(--dx-g-text-base);
|
|
@@ -175,7 +197,8 @@ a,
|
|
|
175
197
|
margin-right: var(--dx-g-spacing-lg);
|
|
176
198
|
}
|
|
177
199
|
|
|
178
|
-
.codeph
|
|
200
|
+
.codeph,
|
|
201
|
+
.filepath {
|
|
179
202
|
font-family: var(--dx-g-font-mono);
|
|
180
203
|
font-size: var(--dx-g-text-sm);
|
|
181
204
|
line-height: var(--dx-g-text-lg);
|
|
@@ -239,6 +262,7 @@ dd {
|
|
|
239
262
|
letter-spacing: 0;
|
|
240
263
|
line-height: var(--dx-g-spacing-lg);
|
|
241
264
|
margin-left: var(--dx-g-spacing-smd);
|
|
265
|
+
margin-bottom: var(--dx-g-spacing-md);
|
|
242
266
|
}
|
|
243
267
|
|
|
244
268
|
li {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import type {
|
|
3
|
+
import type { OptionWithNested, OptionWithLink } from "typings/custom";
|
|
4
4
|
import { HeaderBase } from "dxBaseElements/headerBase";
|
|
5
5
|
import { toJson } from "dxUtils/normalizers";
|
|
6
6
|
import get from "lodash.get";
|
|
@@ -43,8 +43,8 @@ export default class Header extends HeaderBase {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
private _language: string | null = null;
|
|
46
|
-
private _languages!:
|
|
47
|
-
private _scopedNavItems!:
|
|
46
|
+
private _languages!: OptionWithLink[];
|
|
47
|
+
private _scopedNavItems!: OptionWithNested[];
|
|
48
48
|
private smallMobile = false;
|
|
49
49
|
private smallMobileMatchMedia!: MediaQueryList;
|
|
50
50
|
private tablet = false;
|
|
@@ -404,7 +404,11 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
404
404
|
this.addMetatags();
|
|
405
405
|
|
|
406
406
|
if (!this.pageReference.hash) {
|
|
407
|
-
|
|
407
|
+
document.querySelector("main")?.scrollIntoView({
|
|
408
|
+
behavior: "smooth",
|
|
409
|
+
block: "start",
|
|
410
|
+
inline: "nearest"
|
|
411
|
+
});
|
|
408
412
|
}
|
|
409
413
|
}
|
|
410
414
|
this.setState({
|