@salesforcedevs/dw-components 1.3.324-alpha → 1.3.324-alpha3

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.324-alpha",
3
+ "version": "1.3.324-alpha3",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -26,19 +26,19 @@
26
26
  icon-symbol="new_window"
27
27
  variant="primary"
28
28
  size="large"
29
- href={featuredCodeSample.githubLink}
29
+ href={featuredCodeSample.ctaOne.link}
30
30
  onclick={handleReadItClick}
31
31
  >
32
- Explore on GitHub
32
+ {featuredCodeSample.ctaOne.text}
33
33
  </dx-button>
34
34
  <dx-button
35
35
  target={target}
36
36
  variant="secondary"
37
37
  size="large"
38
- href={featuredCodeSample.trailheadLink}
38
+ href={featuredCodeSample.ctaTwo.link}
39
39
  onclick={handleReadItClick}
40
40
  >
41
- Learn on Trailhead
41
+ {featuredCodeSample.ctaTwo.text}
42
42
  </dx-button>
43
43
  </div>
44
44
  </div>
@@ -50,7 +50,7 @@
50
50
  />
51
51
  </div>
52
52
  </dx-section>
53
- <dx-section title="Explore the Apps">
53
+ <dx-section header="Explore Salesforce code examples and sample apps.">
54
54
  <dx-grid columns={tileColumns} if:false={showEmptyState}>
55
55
  <dx-card-docs
56
56
  for:each={samples}
@@ -78,19 +78,19 @@
78
78
  icon-symbol="new_window"
79
79
  variant="primary"
80
80
  size="large"
81
- href={item.githubLink}
81
+ href={item.ctaOne.link}
82
82
  onclick={handleReadItClick}
83
83
  >
84
- Explore on GitHub
84
+ {item.ctaOne.text}
85
85
  </dx-button>
86
86
  <dx-button
87
87
  target={target}
88
88
  variant="secondary"
89
89
  size="large"
90
- href={item.trailheadLink}
90
+ href={item.ctaTwo.link}
91
91
  onclick={handleReadItClick}
92
92
  >
93
- Learn on Trailhead
93
+ {item.ctaTwo.text}
94
94
  </dx-button>
95
95
  </div>
96
96
  </div>
@@ -37,7 +37,9 @@ export default class CodeSamplesGrid extends LightningElement {
37
37
  trailheadLink: sample.trailheadLink,
38
38
  img: sample.img,
39
39
  tags: sample.tags,
40
- target: this.target
40
+ target: this.target,
41
+ ctaOne: sample.ctaOne,
42
+ ctaTwo: sample.ctaTwo
41
43
  }));
42
44
  }
43
45