@bonniernews/dn-design-system-web 32.7.46 → 32.7.47

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.7.47](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@32.7.46...@bonniernews/dn-design-system-web@32.7.47) (2025-08-15)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **web:** clean upp njk in storybook ([#1864](https://github.com/BonnierNews/dn-design-system/issues/1864)) ([d477efd](https://github.com/BonnierNews/dn-design-system/commit/d477efd6de8d9a304d916f609558ac75aa20f11d))
13
+
7
14
  ## [32.7.46](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@32.7.45...@bonniernews/dn-design-system-web@32.7.46) (2025-08-12)
8
15
 
9
16
 
@@ -17,7 +17,7 @@
17
17
  listItemType: 'byline',
18
18
  title: params.authorName,
19
19
  subtitle: subtitle,
20
- mediaHtml: params.bylineImage,
20
+ mediaHtml: params.bylineImage | safe if params.bylineImage,
21
21
  trailingIcon: 'arrow_forward' if useArrowIcon,
22
22
  toggleText: 'Följ' if useFollowButton,
23
23
  toggleSelectedText: 'Följer' if useFollowButton,
@@ -5,6 +5,8 @@ export { dsListItem, dsListItemAll };
5
5
  function dsListItem(listElements = []) {
6
6
  if (!listElements.length) return;
7
7
  listElements.forEach((listEl) => {
8
+ if (listEl.classList.contains('ds-list-item--js-handled')) return;
9
+ listEl.classList.add('ds-list-item--js-handled');
8
10
  if (listEl.classList.contains('ds-list-item--toggle')) {
9
11
  dsListItemToggle(listEl);
10
12
  } else if (listEl.classList.contains('ds-list-item--accordion')) {
@@ -14,10 +14,10 @@
14
14
  <span class="{{ componentClassName + '__icon-left'}}">{{- iconLeftSvg | safe -}}</span>
15
15
  {% endif %}
16
16
  {% if params.listItemType == 'image' %}
17
- <div class="{{ componentClassName + '__image'}}">{{ params.mediaHtml }}</div>
17
+ <div class="{{ componentClassName + '__image'}}">{{ params.mediaHtml | safe }}</div>
18
18
  {% endif %}
19
19
  {% if params.listItemType == 'byline' and params.mediaHtml %}
20
- <div class="{{ componentClassName + '__portrait'}}">{{ params.mediaHtml }}</div>
20
+ <div class="{{ componentClassName + '__portrait'}}">{{ params.mediaHtml | safe }}</div>
21
21
  {% endif %}
22
22
  {% if params.title %}
23
23
  {% set titleClasses = [componentClassName + '__title', componentClassName + '__title--' + (params.fontWeight or 'regular')] | join(" ") %}
@@ -19,7 +19,7 @@
19
19
  componentClassName + '__media--rounded'
20
20
  ] | join(" ") %}
21
21
  <div class="{{ mediaClass }}">
22
- {{ params.mediaHtml }}
22
+ {{ params.mediaHtml | safe }}
23
23
  </div>
24
24
  {% endif %}
25
25
 
@@ -33,7 +33,7 @@
33
33
  componentClassName + '__media--square-image' if params.isSquareImage
34
34
  ] | join(" ") %}
35
35
  <div class="{{ mediaClass }}">
36
- {{ params.mediaHtml }}
36
+ {{ params.mediaHtml | safe }}
37
37
  </div>
38
38
  {% endif %}
39
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "32.7.46",
3
+ "version": "32.7.47",
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",