@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.1.2",
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": "34a340a8f39c4a4a39e72f9e391de592bd8f108d"
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-type-badge
105
+ <dx-metadata-badge
106
106
  value={item.product}
107
- class={item.product}
108
- ></dx-type-badge>
107
+ size="small"
108
+ ></dx-metadata-badge>
109
109
  </div>
110
110
  <div class="external-link-container">
111
111
  <dx-button
@@ -123,7 +123,6 @@ export default class CodeSamplesGrid extends LightningElement {
123
123
 
124
124
  @api
125
125
  set samples(value: string) {
126
- console.log(value);
127
126
  const jsonSamples = toJson(value) || [];
128
127
  this._samplesList = jsonSamples.map((sample, i) => ({
129
128
  id: i,
@@ -363,7 +363,11 @@ export default class ContentArchive extends LightningElement {
363
363
  this.categoryList = categories;
364
364
  this.filtersLoading = false;
365
365
 
366
- requestAnimationFrame(() => this.updateAllFiltersFromUrl());
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
- this.fetchPostsByCardType();
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://app.stitcher.com/browse/feed/470480/details",
24
+ href: "https://www.stitcher.com/show/salesforce-developer-podcast",
25
25
  text: "Stitcher"
26
26
  },
27
27
  {