@salesforcedevs/dw-components 1.30.1-node22-2 → 1.30.1-node22-3
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 +28 -33
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.html +2 -0
- package/src/modules/dw/contentArchive/contentArchive.css +1 -1
- package/src/modules/dw/contentArchive/contentArchive.html +2 -2
- package/src/modules/dw/docsGrid/docsGrid.ts +38 -4
- package/src/modules/dw/eventsList/eventsList.css +4 -4
- package/src/modules/dw/podcastSubscription/podcastSubscription.css +2 -2
- package/src/modules/dw/podcastSubscription/podcastSubscription.ts +3 -3
- package/src/modules/dw/podcastsPromo/podcastsPromo.html +1 -1
- package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.html +2 -2
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,34 +1,29 @@
|
|
|
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
|
-
"@types/setimmediate": "1.0.4",
|
|
31
|
-
"setimmediate": "1.0.5"
|
|
32
|
-
},
|
|
33
|
-
"gitHead": "db460ac1fb9b1f752d0c129dfe19012c8a085867"
|
|
34
|
-
}
|
|
2
|
+
"name": "@salesforcedevs/dw-components",
|
|
3
|
+
"version": "1.30.1-node22-3",
|
|
4
|
+
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "22.x"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@types/youtube-player": "5.5.11",
|
|
14
|
+
"classnames": "2.5.1",
|
|
15
|
+
"lodash.clonedeep": "4.5.0",
|
|
16
|
+
"lodash.orderby": "4.6.0",
|
|
17
|
+
"lodash.uniqby": "4.7.0",
|
|
18
|
+
"query-string": "7.1.3",
|
|
19
|
+
"youtube-player": "5.6.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/classnames": "2.3.1",
|
|
23
|
+
"@types/lodash.clonedeep": "4.5.9",
|
|
24
|
+
"@types/lodash.orderby": "4.6.9",
|
|
25
|
+
"@types/lodash.uniqby": "4.7.9",
|
|
26
|
+
"@types/setimmediate": "1.0.4",
|
|
27
|
+
"setimmediate": "1.0.5"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
{featuredCodeSample.ctaOne.text}
|
|
33
33
|
</dx-button>
|
|
34
34
|
<dx-button
|
|
35
|
+
lwc:if={featuredCodeSample.ctaTwo}
|
|
35
36
|
target={target}
|
|
36
37
|
variant="secondary"
|
|
37
38
|
size="large"
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
{item.ctaOne.text}
|
|
85
86
|
</dx-button>
|
|
86
87
|
<dx-button
|
|
88
|
+
lwc:if={item.ctaTwo}
|
|
87
89
|
target={target}
|
|
88
90
|
variant="secondary"
|
|
89
91
|
size="large"
|
|
@@ -101,7 +101,7 @@ button:active {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.empty-state-container {
|
|
104
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
104
|
+
background-image: url("https://developer.salesforce.com/ns-assets/no-results-combined.svg");
|
|
105
105
|
background-repeat: no-repeat;
|
|
106
106
|
background-position: center;
|
|
107
107
|
background-size: contain;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<dx-modal-drawer open={modalOpen} onclickclose={toggleModal}>
|
|
12
12
|
<img
|
|
13
13
|
if:true={filtersLoading}
|
|
14
|
-
src="https://developer.salesforce.com/ns-assets/
|
|
14
|
+
src="https://developer.salesforce.com/ns-assets/sidebar-loading.svg"
|
|
15
15
|
alt="loading"
|
|
16
16
|
class="modal-loading"
|
|
17
17
|
/>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<template if:false={isMobile}>
|
|
67
67
|
<img
|
|
68
68
|
if:true={filtersLoading}
|
|
69
|
-
src="https://developer.salesforce.com/ns-assets/
|
|
69
|
+
src="https://developer.salesforce.com/ns-assets/sidebar-loading.svg"
|
|
70
70
|
alt="loading"
|
|
71
71
|
/>
|
|
72
72
|
<template if:false={filtersLoading}>
|
|
@@ -49,6 +49,7 @@ export default class DocsGrid extends LightningElement {
|
|
|
49
49
|
private _apiDocs?: any[] = [];
|
|
50
50
|
private _languageList?: any[] = [];
|
|
51
51
|
private _productFiltersList?: any[] = [];
|
|
52
|
+
private _availableServices: any[] = [];
|
|
52
53
|
private matchDesktop!: MediaQueryList;
|
|
53
54
|
private matchMobile!: MediaQueryList;
|
|
54
55
|
private matchMobileSmall!: MediaQueryList;
|
|
@@ -140,7 +141,39 @@ export default class DocsGrid extends LightningElement {
|
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
set otherDocs(value: any) {
|
|
144
|
+
this.applyOtherDocs(value);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
private applyOtherDocs(value: any): void {
|
|
148
|
+
const previousFilterValues = this.productFiltersList.map(
|
|
149
|
+
(filter) => filter.value
|
|
150
|
+
);
|
|
151
|
+
const previouslySelected = this.selectedProductFilters || [];
|
|
152
|
+
const previouslySelectedSet = new Set(previouslySelected);
|
|
153
|
+
const hadAllFiltersSelected =
|
|
154
|
+
!!previousFilterValues.length &&
|
|
155
|
+
previousFilterValues.every((filterValue) =>
|
|
156
|
+
previouslySelectedSet.has(filterValue)
|
|
157
|
+
);
|
|
158
|
+
|
|
143
159
|
this._otherDocs = this.transformOtherDocs(value);
|
|
160
|
+
|
|
161
|
+
// Rebuild product filters after other docs updates so SSG and
|
|
162
|
+
// non-SSG flows use the same setter-based filter refresh path.
|
|
163
|
+
if (this._availableServices.length) {
|
|
164
|
+
this.productFiltersList = this._availableServices;
|
|
165
|
+
|
|
166
|
+
if (hadAllFiltersSelected) {
|
|
167
|
+
this.selectedProductFilters = this.productFiltersList.map(
|
|
168
|
+
(filter) => filter.value
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Recompute visible cards/counts once transformed other docs are merged.
|
|
174
|
+
if (this.dataRetrieved) {
|
|
175
|
+
this.calculatePagination(this.page.toString(), true);
|
|
176
|
+
}
|
|
144
177
|
}
|
|
145
178
|
|
|
146
179
|
private transformOtherDocs(value: any): any[] {
|
|
@@ -177,16 +210,16 @@ export default class DocsGrid extends LightningElement {
|
|
|
177
210
|
|
|
178
211
|
if (response.ok) {
|
|
179
212
|
const data = await response.json();
|
|
180
|
-
this.
|
|
213
|
+
this.applyOtherDocs(data);
|
|
181
214
|
} else {
|
|
182
215
|
console.error(
|
|
183
216
|
`Failed to fetch sitemetadata: ${response.status}`
|
|
184
217
|
);
|
|
185
|
-
this.
|
|
218
|
+
this.applyOtherDocs([]);
|
|
186
219
|
}
|
|
187
220
|
} catch (error) {
|
|
188
221
|
console.error("Error fetching sitemetadata:", error);
|
|
189
|
-
this.
|
|
222
|
+
this.applyOtherDocs([]);
|
|
190
223
|
} finally {
|
|
191
224
|
this._isFetchingOtherDocs = false;
|
|
192
225
|
}
|
|
@@ -393,7 +426,8 @@ export default class DocsGrid extends LightningElement {
|
|
|
393
426
|
}
|
|
394
427
|
|
|
395
428
|
if (json.available_services) {
|
|
396
|
-
this.
|
|
429
|
+
this._availableServices = json.available_services;
|
|
430
|
+
this.productFiltersList = this._availableServices;
|
|
397
431
|
|
|
398
432
|
if (!this.selectedProductFilters!.length) {
|
|
399
433
|
this.selectedProductFilters =
|
|
@@ -23,7 +23,7 @@ dx-section.events-action-bar::part(container) {
|
|
|
23
23
|
|
|
24
24
|
dx-section.upcoming-events::part(container)::before {
|
|
25
25
|
content: "";
|
|
26
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
26
|
+
background-image: url("https://developer.salesforce.com/ns-assets/events-cloud1.svg");
|
|
27
27
|
width: 146px;
|
|
28
28
|
height: 106px;
|
|
29
29
|
position: absolute;
|
|
@@ -34,7 +34,7 @@ dx-section.upcoming-events::part(container)::before {
|
|
|
34
34
|
|
|
35
35
|
dx-section.upcoming-events::part(container)::after {
|
|
36
36
|
content: "";
|
|
37
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
37
|
+
background-image: url("https://developer.salesforce.com/ns-assets/events-cloud2.svg");
|
|
38
38
|
width: 152px;
|
|
39
39
|
height: 111px;
|
|
40
40
|
position: absolute;
|
|
@@ -45,7 +45,7 @@ dx-section.upcoming-events::part(container)::after {
|
|
|
45
45
|
|
|
46
46
|
dx-section.past-events::part(container)::before {
|
|
47
47
|
content: "";
|
|
48
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
48
|
+
background-image: url("https://developer.salesforce.com/ns-assets/events-gradient-elipse.svg");
|
|
49
49
|
width: 2991px;
|
|
50
50
|
height: 839px;
|
|
51
51
|
position: absolute;
|
|
@@ -56,7 +56,7 @@ dx-section.past-events::part(container)::before {
|
|
|
56
56
|
|
|
57
57
|
dx-section:not(:nth-child(2)).past-events::part(container)::after {
|
|
58
58
|
content: "";
|
|
59
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
59
|
+
background-image: url("https://developer.salesforce.com/ns-assets/events-cloud3.svg");
|
|
60
60
|
width: 655px;
|
|
61
61
|
height: 270px;
|
|
62
62
|
position: absolute;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
@media screen and (max-width: 768px) {
|
|
15
15
|
.container {
|
|
16
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
16
|
+
background-image: url("https://developer.salesforce.com/ns-assets/podcast-subscription-clouds-small.svg");
|
|
17
17
|
background-size: auto 200px;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
@media screen and (min-width: 768px) {
|
|
49
49
|
.container {
|
|
50
|
-
background-image: url("https://developer.salesforce.com/ns-assets/
|
|
50
|
+
background-image: url("https://developer.salesforce.com/ns-assets/podcast-subscription-clouds.svg");
|
|
51
51
|
min-height: 230px;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -5,15 +5,15 @@ export default class PodcastSubscription extends LightningElement {
|
|
|
5
5
|
{
|
|
6
6
|
href: "https://podcasts.apple.com/us/podcast/salesforce-developer-podcast/id1482325260",
|
|
7
7
|
imgAlt: "Listen on Apple Podcasts",
|
|
8
|
-
imgSrc: "https://developer.salesforce.com/ns-assets/
|
|
8
|
+
imgSrc: "https://developer.salesforce.com/ns-assets/podcasts-subscription-apple.svg"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
href: "https://www.google.com/podcasts?feed=aHR0cHM6Ly9zYWxlc2ZvcmNlZGV2cG9kY2FzdC5saWJzeW4uY29tL3Jzcw%3D%3D",
|
|
12
12
|
imgAlt: "Listen on Google Podcasts",
|
|
13
|
-
imgSrc: "https://developer.salesforce.com/ns-assets/
|
|
13
|
+
imgSrc: "https://developer.salesforce.com/ns-assets/podcasts-subscription-google.svg"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
imgSrc: "https://developer.salesforce.com/ns-assets/
|
|
16
|
+
imgSrc: "https://developer.salesforce.com/ns-assets/podcasts-subscription-spotify.svg",
|
|
17
17
|
imgAlt: "Listen on Spotify",
|
|
18
18
|
href: "https://open.spotify.com/show/75y378cB3FM6RQ8MGUDJ5M"
|
|
19
19
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="info-container">
|
|
15
15
|
<a href="/podcast" class="info-link">
|
|
16
16
|
<img
|
|
17
|
-
src="https://developer.salesforce.com/ns-assets/
|
|
17
|
+
src="https://developer.salesforce.com/ns-assets/podcast-bear-background.png"
|
|
18
18
|
loading="lazy"
|
|
19
19
|
alt="Developer Podcast"
|
|
20
20
|
style="width: 100%"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div if:true={isLoggedIn}>
|
|
11
11
|
<div class="login-container logged-in">
|
|
12
12
|
<img
|
|
13
|
-
src="https://developer.salesforce.com/ns-assets/
|
|
13
|
+
src="https://developer.salesforce.com/ns-assets/login-widget-bg.png"
|
|
14
14
|
class="header-img"
|
|
15
15
|
alt="Light blue background image showing line-drawn hills and trees"
|
|
16
16
|
/>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</span>
|
|
115
115
|
<img
|
|
116
116
|
class="login-link-img"
|
|
117
|
-
src="https://developer.salesforce.com/ns-assets/
|
|
117
|
+
src="https://developer.salesforce.com/ns-assets/salesforce-cloud.svg"
|
|
118
118
|
alt="Salesforce logo"
|
|
119
119
|
/>
|
|
120
120
|
<dx-icon
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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.
|