@bonniernews/dn-design-system-web 32.0.0 → 32.1.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [32.1.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@32.0.0...@bonniernews/dn-design-system-web@32.1.0) (2025-04-29)
8
+
9
+
10
+ ### Features
11
+
12
+ * **web:** render playicon if teaser presentation contains playknapp ([#1712](https://github.com/BonnierNews/dn-design-system/issues/1712)) ([65cd318](https://github.com/BonnierNews/dn-design-system/commit/65cd31837e30c47c6a19000e828a69722c3b9fed))
13
+
7
14
  ## [32.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@31.4.3...@bonniernews/dn-design-system-web@32.0.0) (2025-04-28)
8
15
 
9
16
 
@@ -13,7 +13,7 @@
13
13
  |listTitle | String | yes | | | List title |
14
14
  |listLink | Object | no | | | Ex. { text: "Alla nyheter", url: "#" } |
15
15
  |flexible | bool | no | true, false | false | |
16
- |teasers | Array | yes | | | Array with teaser objects. Ex. [ { title: 'Malmö var det enda rimliga valet för Eurovision', targetLink: '#', highlight: 'Hanna Fahl:', publicationTime: 'I GÅR 12:28', sectionName: 'Kultur', attributes: { "data-test": "list-item-test-data" } } ] |
16
+ |teasers | Array | yes | | | Array with teaser objects. Ex. [ { title: 'Malmö var det enda rimliga valet för Eurovision', targetLink: '#', highlight: 'Hanna Fahl:', publicationTime: 'I GÅR 12:28', sectionName: 'Kultur', attributes: { "data-test": "list-item-test-data" }, showPlayButton: false } ] |
17
17
  |~areaType~ | String | no | "right" or "bauta" or "bautaxl" | | Not implemented |
18
18
  |theme | String | no | nyheter, kultur | (empty) | The theme-class to apply to _all_ teasers in the list. |
19
19
  |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
@@ -76,7 +76,7 @@
76
76
  {% if teaser.mediaHtml %}
77
77
  <div class="ds-teaser-list-vertical__item-img">
78
78
  {{ teaser.mediaHtml | safe }}
79
- {% if teaser.video %}
79
+ {% if teaser.showPlayButton %}
80
80
  {{ IconUse({ icon: 'play_arrow-filled', classNames: "ds-teaser-list-vertical__item-video-icon" }) -}}
81
81
  {% endif %}
82
82
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "32.0.0",
3
+ "version": "32.1.0",
4
4
  "description": "DN design system for web.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",