@salesforcedevs/dw-components 1.1.2 → 1.2.4
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 +2 -2
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +0 -5
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.html +3 -3
- package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +0 -1
- package/src/modules/dw/contentArchive/contentArchive.ts +8 -3
- package/src/modules/dw/contentArchive/utils.ts +1 -1
- package/src/modules/dw/podcastSubscription/podcastSubscription.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"@types/lodash.orderby": "^4.6.7",
|
|
23
23
|
"@types/lodash.uniqby": "^4.7.7"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "66a0421aca28936a5556a9311aa14b8f175fb02c"
|
|
26
26
|
}
|
|
@@ -83,11 +83,6 @@ dx-section:first-of-type {
|
|
|
83
83
|
margin: 50px auto;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
dx-type-badge.platform {
|
|
87
|
-
--dx-c-type-badge-color: var(--dx-g-green-vibrant-40);
|
|
88
|
-
--dx-c-type-badge-background: var(--dx-g-green-vibrant-90);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
86
|
@media screen and (max-width: 1024px) {
|
|
92
87
|
.code-samples-feature {
|
|
93
88
|
--dx-c-feature-description-font-size: 14px;
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
>
|
|
103
103
|
<div class="badge-link-container">
|
|
104
104
|
<div class="badge-container">
|
|
105
|
-
<dx-
|
|
105
|
+
<dx-metadata-badge
|
|
106
106
|
value={item.product}
|
|
107
|
-
|
|
108
|
-
></dx-
|
|
107
|
+
size="small"
|
|
108
|
+
></dx-metadata-badge>
|
|
109
109
|
</div>
|
|
110
110
|
<div class="external-link-container">
|
|
111
111
|
<dx-button
|
|
@@ -363,7 +363,11 @@ export default class ContentArchive extends LightningElement {
|
|
|
363
363
|
this.categoryList = categories;
|
|
364
364
|
this.filtersLoading = false;
|
|
365
365
|
|
|
366
|
-
|
|
366
|
+
// note... this is super hacky... but necessary in order to both
|
|
367
|
+
// 1. actually filter the content
|
|
368
|
+
// 2. update the filter checkboxes to show that we filtered the content
|
|
369
|
+
this.updateAllFiltersFromUrl();
|
|
370
|
+
requestAnimationFrame(() => this.updateCheckedStatus());
|
|
367
371
|
}
|
|
368
372
|
}
|
|
369
373
|
|
|
@@ -465,8 +469,9 @@ export default class ContentArchive extends LightningElement {
|
|
|
465
469
|
this.mobileMatchMedia.addEventListener("change", this.onMobileChange);
|
|
466
470
|
|
|
467
471
|
if (this.posts.length === 0) {
|
|
468
|
-
this.fetchArchiveFilterList()
|
|
469
|
-
|
|
472
|
+
this.fetchArchiveFilterList().then(() => {
|
|
473
|
+
this.fetchPostsByCardType();
|
|
474
|
+
});
|
|
470
475
|
}
|
|
471
476
|
}
|
|
472
477
|
|
|
@@ -60,7 +60,7 @@ function normalizePosts(posts: Array<ArchivePost>, contentType: string) {
|
|
|
60
60
|
id: post.id,
|
|
61
61
|
title: post.title.rendered,
|
|
62
62
|
date: post.date,
|
|
63
|
-
contentType: post.sitename,
|
|
63
|
+
contentType: post.sitename.toLowerCase(),
|
|
64
64
|
href: post.link,
|
|
65
65
|
...(contentType === "expanded" && {
|
|
66
66
|
excerpt: post.excerpt,
|
|
@@ -21,7 +21,7 @@ export default class PodcastSubscription extends LightningElement {
|
|
|
21
21
|
|
|
22
22
|
secondaryLinks = [
|
|
23
23
|
{
|
|
24
|
-
href: "https://
|
|
24
|
+
href: "https://www.stitcher.com/show/salesforce-developer-podcast",
|
|
25
25
|
text: "Stitcher"
|
|
26
26
|
},
|
|
27
27
|
{
|