@salesforcedevs/dx-components 1.40.7-remediation.1 → 1.40.7-scroll-1
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 +47 -46
- package/src/modules/dx/button/button.css +1 -4
- package/src/modules/dx/cardEvent/cardEvent.css +1 -1
- package/src/modules/dx/cardTitle/cardTitle.css +1 -4
- package/src/modules/dx/codeBlock/codeBlock.css +9 -9
- package/src/modules/dx/codeBlock/codeBlock.ts +6 -0
- package/src/modules/dx/filterMenu/filterMenu.css +1 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.css +1 -1
- package/src/modules/dx/searchHybrid/searchHybrid.html +1 -1
- package/src/modules/dx/searchHybrid/searchHybrid.ts +4 -0
- package/src/modules/dx/section/section.css +3 -4
- package/src/modules/dx/sectionBanner/sectionBanner.css +1 -1
- package/src/modules/dx/sidebar/sidebar.css +1 -1
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +1 -1
- package/src/modules/dxBaseElements/headerBase/headerBase.ts +6 -1
- package/src/modules/dxHelpers/text/text.css +18 -18
package/package.json
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
2
|
+
"name": "@salesforcedevs/dx-components",
|
|
3
|
+
"version": "1.40.7-scroll-1",
|
|
4
|
+
"description": "DX Lightning web components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "22.x"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@coveo/headless": "3.22.2",
|
|
14
|
+
"@floating-ui/dom": "1.5.1",
|
|
15
|
+
"@optimizely/optimizely-sdk": "5.3.0",
|
|
16
|
+
"@shikijs/colorized-brackets": "^3.12.2",
|
|
17
|
+
"@types/throttle-debounce": "5.0.2",
|
|
18
|
+
"@vimeo/player": "2.22.0",
|
|
19
|
+
"classnames": "2.5.1",
|
|
20
|
+
"composed-offset-position": "0.0.4",
|
|
21
|
+
"coveo-search-ui": "2.10113.0",
|
|
22
|
+
"debounce": "1.2.1",
|
|
23
|
+
"js-cookie": "3.0.5",
|
|
24
|
+
"lodash.defaults": "4.2.0",
|
|
25
|
+
"lodash.get": "4.4.2",
|
|
26
|
+
"lodash.kebabcase": "4.1.1",
|
|
27
|
+
"memoize-one": "6.0.0",
|
|
28
|
+
"microtip": "0.2.2",
|
|
29
|
+
"shiki": "^3.12.2",
|
|
30
|
+
"throttle-debounce": "5.0.0",
|
|
31
|
+
"uuid": "9.0.1"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/classnames": "2.3.1",
|
|
35
|
+
"@types/debounce": "1.2.4",
|
|
36
|
+
"@types/js-cookie": "3.0.6",
|
|
37
|
+
"@types/lodash.defaults": "4.2.9",
|
|
38
|
+
"@types/lodash.get": "4.4.9",
|
|
39
|
+
"@types/lodash.kebabcase": "4.1.9",
|
|
40
|
+
"@types/luxon": "3.4.2",
|
|
41
|
+
"@types/uuid": "8.3.4",
|
|
42
|
+
"@types/vimeo__player": "2.18.3",
|
|
43
|
+
"eventsourcemock": "2.0.0",
|
|
44
|
+
"luxon": "3.4.4",
|
|
45
|
+
"msw": "^2.12.4"
|
|
46
|
+
},
|
|
47
|
+
"stableVersion": "1.40.7"
|
|
48
|
+
}
|
|
@@ -60,10 +60,7 @@
|
|
|
60
60
|
display: inline;
|
|
61
61
|
vertical-align: var(--dx-c-button-icon-vertical-align, unset);
|
|
62
62
|
|
|
63
|
-
--dx-c-icon-color: var(
|
|
64
|
-
--dx-c-button-color-icon,
|
|
65
|
-
var(--dx-g-button-icon-color, currentcolor)
|
|
66
|
-
);
|
|
63
|
+
--dx-c-icon-color: var(--dx-g-button-icon-color, currentcolor);
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
.button.variant_inline dx-icon,
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
@import "dxHelpers/text";
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
|
-
--dx-c-card-title-color: var(
|
|
6
|
-
--dx-c-text-heading-color-text,
|
|
7
|
-
var(--dx-g-text-heading-color)
|
|
8
|
-
);
|
|
5
|
+
--dx-c-card-title-color: var(--dx-g-text-heading-color);
|
|
9
6
|
--dx-c-card-title-font-size: var(--dx-g-text-xl);
|
|
10
7
|
--dx-c-card-title-line-height: 28px;
|
|
11
8
|
--dx-c-card-title-letter-spacing: -0.1px;
|
|
@@ -30,12 +30,12 @@ pre {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.dx-theme-dark .header-text {
|
|
33
|
-
color:
|
|
33
|
+
color: white;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.header-text-icon {
|
|
37
37
|
margin-right: var(--dx-g-spacing-sm);
|
|
38
|
-
background-color:
|
|
38
|
+
background-color: white;
|
|
39
39
|
border-radius: 50%;
|
|
40
40
|
height: 24px;
|
|
41
41
|
width: 24px;
|
|
@@ -96,7 +96,7 @@ div.dx-theme-light {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.dx-theme-dark .dx-code-block-heading {
|
|
99
|
-
color:
|
|
99
|
+
color: white !important;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.toolbar-item {
|
|
@@ -109,19 +109,19 @@ div.dx-theme-light {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.dx-theme-dark .btn {
|
|
112
|
-
--dx-c-button-primary-color:
|
|
112
|
+
--dx-c-button-primary-color: #fff;
|
|
113
113
|
--dx-c-button-primary-color-hover: var(--dx-g-blue-natural-10);
|
|
114
114
|
--dx-c-button-secondary-color-hover: var(--dx-g-blue-vibrant-30);
|
|
115
|
-
--dx-c-button-custom-color:
|
|
116
|
-
--dx-c-button-custom-color-hover:
|
|
115
|
+
--dx-c-button-custom-color: #fff;
|
|
116
|
+
--dx-c-button-custom-color-hover: #fff;
|
|
117
117
|
--dx-c-button-custom-background-hover: var(--dx-g-blue-natural-10);
|
|
118
|
-
--dx-c-button-inline-color:
|
|
118
|
+
--dx-c-button-inline-color: #fff;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.dx-theme-light .btn {
|
|
122
122
|
--dx-c-button-primary-color: var(--dx-g-blue-vibrant-20);
|
|
123
123
|
--dx-c-button-primary-color-hover: var(--dx-g-gray-60);
|
|
124
|
-
--dx-c-button-secondary-color-hover:
|
|
124
|
+
--dx-c-button-secondary-color-hover: #dddbda;
|
|
125
125
|
--dx-c-button-custom-color: var(--dx-g-blue-vibrant-20);
|
|
126
126
|
--dx-c-button-custom-color-hover: var(--dx-g-blue-vibrant-20);
|
|
127
127
|
--dx-c-button-custom-background-hover: var(--dx-g-gray-60);
|
|
@@ -177,7 +177,7 @@ pre[class*="shiki"] {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
dx-button {
|
|
180
|
-
--dx-
|
|
180
|
+
--dx-g-button-icon-color: var(--dx-g-cloud-blue-vibrant-50);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.code-block-loader {
|
|
@@ -87,6 +87,12 @@ export default class CodeBlock extends LightningElement {
|
|
|
87
87
|
this._codeBlock = value.trim();
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/** True once the highlighted code has been rendered into the DOM. */
|
|
91
|
+
@api
|
|
92
|
+
get rendered(): boolean {
|
|
93
|
+
return this._codeBlockRendered;
|
|
94
|
+
}
|
|
95
|
+
|
|
90
96
|
@api
|
|
91
97
|
get showLoadingIndicator() {
|
|
92
98
|
return this._showLoadingIndicator;
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
decodeHtmlEntities,
|
|
9
9
|
highlightedSnippetHtml,
|
|
10
10
|
isSortOption,
|
|
11
|
+
resultHref,
|
|
11
12
|
SORT_OPTIONS,
|
|
12
13
|
type SearchResult,
|
|
13
14
|
type SortOption
|
|
@@ -30,6 +31,8 @@ const SORT_LABELS: Record<SortOption, string> = {
|
|
|
30
31
|
interface DisplayResult {
|
|
31
32
|
key: string;
|
|
32
33
|
url: string;
|
|
34
|
+
// Matched-section link; falls back to the page url.
|
|
35
|
+
href: string;
|
|
33
36
|
title: string;
|
|
34
37
|
description: string | null;
|
|
35
38
|
hasDescription: boolean;
|
|
@@ -167,6 +170,7 @@ export default class SearchHybrid extends LightningElement {
|
|
|
167
170
|
return {
|
|
168
171
|
key: `${r.url}-${i}`,
|
|
169
172
|
url: r.url,
|
|
173
|
+
href: resultHref(r),
|
|
170
174
|
title: decodeHtmlEntities(r.title),
|
|
171
175
|
description,
|
|
172
176
|
hasDescription: description !== null,
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.section-dark {
|
|
33
|
-
--dx-
|
|
34
|
-
--dx-
|
|
35
|
-
--dx-
|
|
36
|
-
--dx-c-text-label-color-text: var(--dx-g-blue-vibrant-90);
|
|
33
|
+
--dx-g-text-heading-color: white;
|
|
34
|
+
--dx-g-text-body-color: var(--dx-g-blue-vibrant-90);
|
|
35
|
+
--dx-g-text-label-color: var(--dx-g-blue-vibrant-90);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.section.graphic-top:not(.graphic-overlap) {
|
|
@@ -155,7 +155,12 @@ export abstract class HeaderBase extends LightningElement {
|
|
|
155
155
|
setTimeout(() => {
|
|
156
156
|
const id = hash.replace("#", "");
|
|
157
157
|
const element = document.getElementById(id);
|
|
158
|
-
|
|
158
|
+
// doc-heading targets are scrolled by doc-content-layout once the page has rendered
|
|
159
|
+
if (
|
|
160
|
+
element &&
|
|
161
|
+
element.tagName !== "DOC-HEADING" &&
|
|
162
|
+
element.scrollIntoView
|
|
163
|
+
) {
|
|
159
164
|
element.scrollIntoView();
|
|
160
165
|
}
|
|
161
166
|
}, 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* WES Display 1 */
|
|
2
2
|
.dx-text-display-1 {
|
|
3
|
-
color: var(--dx-
|
|
3
|
+
color: var(--dx-g-text-heading-color);
|
|
4
4
|
font-family: var(--dx-g-font-display);
|
|
5
5
|
font-size: var(--dx-g-text-6xl);
|
|
6
6
|
letter-spacing: -1.8px;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
/* NO WES EQUIVALENT */
|
|
11
11
|
.dx-text-display-1b {
|
|
12
|
-
color: var(--dx-
|
|
12
|
+
color: var(--dx-g-text-heading-color);
|
|
13
13
|
font-family: var(--dx-g-font-display);
|
|
14
14
|
font-size: 64px;
|
|
15
15
|
letter-spacing: -1.4px;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* WES Display 2 */
|
|
20
20
|
.dx-text-display-2 {
|
|
21
|
-
color: var(--dx-
|
|
21
|
+
color: var(--dx-g-text-heading-color);
|
|
22
22
|
font-family: var(--dx-g-font-display);
|
|
23
23
|
font-size: var(--dx-g-text-5xl);
|
|
24
24
|
letter-spacing: -1.2px;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
/* WES Display 3 */
|
|
29
29
|
.dx-text-display-3 {
|
|
30
|
-
color: var(--dx-
|
|
30
|
+
color: var(--dx-g-text-heading-color);
|
|
31
31
|
font-family: var(--dx-g-font-display);
|
|
32
32
|
font-size: var(--dx-g-text-4xl);
|
|
33
33
|
letter-spacing: -1px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
/* WES Display 4 */
|
|
38
38
|
.dx-text-display-4 {
|
|
39
|
-
color: var(--dx-
|
|
39
|
+
color: var(--dx-g-text-heading-color);
|
|
40
40
|
font-family: var(--dx-g-font-display);
|
|
41
41
|
font-size: var(--dx-g-text-3xl);
|
|
42
42
|
letter-spacing: -0.8px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
/* Display 5 */
|
|
47
47
|
.dx-text-display-5 {
|
|
48
|
-
color: var(--dx-
|
|
48
|
+
color: var(--dx-g-text-heading-color);
|
|
49
49
|
font-family: var(--dx-g-font-display);
|
|
50
50
|
font-size: var(--dx-g-text-2xl);
|
|
51
51
|
letter-spacing: -0.4px;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
/* Display 6 */
|
|
56
56
|
.dx-text-display-6 {
|
|
57
|
-
color: var(--dx-
|
|
57
|
+
color: var(--dx-g-text-heading-color);
|
|
58
58
|
font-family: var(--dx-g-font-display);
|
|
59
59
|
font-size: var(--dx-g-text-xl);
|
|
60
60
|
letter-spacing: -0.4px;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
/* Display 7 */
|
|
65
65
|
.dx-text-display-7 {
|
|
66
|
-
color: var(--dx-
|
|
66
|
+
color: var(--dx-g-text-heading-color);
|
|
67
67
|
font-family: var(--dx-g-font-display);
|
|
68
68
|
font-size: var(--dx-g-text-lg);
|
|
69
69
|
letter-spacing: -0.4px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
/* Display 8 */
|
|
74
74
|
.dx-text-display-8 {
|
|
75
|
-
color: var(--dx-
|
|
75
|
+
color: var(--dx-g-text-heading-color);
|
|
76
76
|
font-family: var(--dx-g-font-display);
|
|
77
77
|
font-size: var(--dx-g-text-base);
|
|
78
78
|
letter-spacing: -0.5px;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
/* Body 1 */
|
|
83
83
|
.dx-text-body-1 {
|
|
84
|
-
color: var(--dx-
|
|
84
|
+
color: var(--dx-g-text-body-color);
|
|
85
85
|
font-family: var(--dx-g-font-sans);
|
|
86
86
|
font-size: var(--dx-g-text-lg);
|
|
87
87
|
letter-spacing: 0;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
/* Body 2 */
|
|
92
92
|
.dx-text-body-2 {
|
|
93
|
-
color: var(--dx-
|
|
93
|
+
color: var(--dx-g-text-body-color);
|
|
94
94
|
font-family: var(--dx-g-font-sans);
|
|
95
95
|
font-size: var(--dx-g-text-base);
|
|
96
96
|
letter-spacing: 0;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
|
|
100
100
|
/* Body 3 */
|
|
101
101
|
.dx-text-body-3 {
|
|
102
|
-
color: var(--dx-
|
|
102
|
+
color: var(--dx-g-text-body-color);
|
|
103
103
|
font-family: var(--dx-g-font-sans);
|
|
104
104
|
font-size: var(--dx-g-text-sm);
|
|
105
105
|
letter-spacing: 0;
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
|
|
109
109
|
/* Body Caption */
|
|
110
110
|
.dx-text-body-4 {
|
|
111
|
-
color: var(--dx-
|
|
111
|
+
color: var(--dx-g-text-body-color);
|
|
112
112
|
font-family: var(--dx-g-font-sans);
|
|
113
113
|
font-size: var(--dx-g-text-xs);
|
|
114
114
|
letter-spacing: 0;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.dx-text-label-1 {
|
|
135
|
-
color: var(--dx-
|
|
135
|
+
color: var(--dx-g-text-heading-color);
|
|
136
136
|
font-family: var(--dx-g-font-display);
|
|
137
137
|
font-size: var(--dx-g-text-sm);
|
|
138
138
|
letter-spacing: 0.7px;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.dx-text-label-1-dark {
|
|
145
|
-
color: var(--dx-
|
|
145
|
+
color: var(--dx-g-text-label-color);
|
|
146
146
|
font-family: var(--dx-g-font-display);
|
|
147
147
|
font-size: var(--dx-g-text-sm);
|
|
148
148
|
letter-spacing: 0.7px;
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.dx-text-label-2 {
|
|
155
|
-
color: var(--dx-
|
|
155
|
+
color: var(--dx-g-text-heading-color);
|
|
156
156
|
font-family: var(--dx-g-font-display);
|
|
157
157
|
font-size: var(--dx-g-text-xs);
|
|
158
158
|
letter-spacing: 0.7px;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.dx-text-label-3 {
|
|
164
|
-
color: var(--dx-
|
|
164
|
+
color: var(--dx-g-text-label-color);
|
|
165
165
|
font-family: var(--dx-g-font-display);
|
|
166
166
|
font-size: var(--dx-g-text-xs);
|
|
167
167
|
font-weight: var(--dx-g-font-demi);
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.dx-text-label-4 {
|
|
174
|
-
color: var(--dx-
|
|
174
|
+
color: var(--dx-g-text-label-color);
|
|
175
175
|
font-family: var(--dx-g-font-display);
|
|
176
176
|
font-size: var(--dx-g-text-base);
|
|
177
177
|
font-weight: var(--dx-g-font-demi);
|