@salesforcedevs/dw-components 1.3.27 → 1.3.30

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.3.27",
3
+ "version": "1.3.30",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -20,7 +20,9 @@
20
20
  "@types/classnames": "^2.2.10",
21
21
  "@types/lodash.clonedeep": "^4.5.7",
22
22
  "@types/lodash.orderby": "^4.6.7",
23
- "@types/lodash.uniqby": "^4.7.7"
23
+ "@types/lodash.uniqby": "^4.7.7",
24
+ "@types/setimmediate": "^1.0.2",
25
+ "setimmediate": "^1.0.5"
24
26
  },
25
- "gitHead": "50fad887e4e8cabd07608a64e55d41d69ece640a"
27
+ "gitHead": "3c3228df779a7ca7a69125ef45aa05e8bff371dc"
26
28
  }
@@ -1,5 +1,13 @@
1
1
  <template>
2
- <dx-section title="Developer Podcast" part="section">
2
+ <dx-section
3
+ title="Developer Podcast"
4
+ part="section"
5
+ cta-label={ctaLabel}
6
+ cta-href={ctaHref}
7
+ cta-btn-target={ctaBtnTarget}
8
+ cta-btn-variant="inline"
9
+ cta-btn-symbol="forward"
10
+ >
3
11
  <slot name="section"></slot>
4
12
  <dx-grid columns="one">
5
13
  <dx-grid columns="two-slim-left">
@@ -26,6 +34,7 @@
26
34
  </dx-grid>
27
35
  </dx-grid>
28
36
  <dx-hr
37
+ if:false={isHomepage}
29
38
  part="hr"
30
39
  variant="link"
31
40
  href="/podcast"
@@ -1,3 +1,12 @@
1
- import { LightningElement } from "lwc";
1
+ import { LightningElement, api } from "lwc";
2
2
 
3
- export default class PodcastsPromo extends LightningElement {}
3
+ export default class PodcastsPromo extends LightningElement {
4
+ @api variant: "default" | "homepage" = "default";
5
+ @api ctaLabel: string = "";
6
+ @api ctaHref: string = "";
7
+ @api ctaBtnTarget: string = "_self";
8
+
9
+ get isHomepage() {
10
+ return this.variant === "homepage";
11
+ }
12
+ }