@bonniernews/dn-design-system-web 3.0.0-alpha.56 → 3.0.0-alpha.57

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
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 3.0.0-alpha.57 (2023-05-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** remove targetId as teaser property ([#812](https://github.com/BonnierNews/dn-design-system/issues/812)) ([1633ac9](https://github.com/BonnierNews/dn-design-system/commit/1633ac9ce9f99ef145ccd6bbee05abe0aefc5814))
12
+
13
+
14
+
6
15
  ## 3.0.0-alpha.56 (2023-05-10)
7
16
 
8
17
 
@@ -12,7 +12,6 @@
12
12
  |:--- | :--- | :--- | :--- | :--- | :--- |
13
13
  |title | String | yes | | | Heading of the teaser |
14
14
  |targetLink | String | yes | | | Target URL for the teaser |
15
- |targetId | String | no | | | Target article ID |
16
15
  |variant | String | no | "default" or "podd" | "default" | |
17
16
  |areaType | String | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
18
17
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
@@ -42,7 +42,6 @@
42
42
 
43
43
  <a href="{{ params.targetLink }}"
44
44
  class="{{ classes }}"
45
- {% if params.targetId %} data-id="{{ params.targetId }}" {% endif %}
46
45
  {{- attributes | safe }}>
47
46
 
48
47
  {% if params.mediaHtml %}
@@ -24,7 +24,6 @@ The worldMap has to be set by the parent page as a CSS variable. This is done in
24
24
  |:--- | :--- | :--- | :--- | :--- | :--- |
25
25
  |title | String | yes | | | Heading of the teaser |
26
26
  |targetLink | String | yes | | | Target URL for the teaser |
27
- |targetId | String | no | | | Target article ID |
28
27
  |areaType | String | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
29
28
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
30
29
  |text | String | no | | | Teaser subtext |
@@ -22,7 +22,6 @@
22
22
 
23
23
  <a href="{{ params.targetLink }}"
24
24
  class="{{ classes }}"
25
- {% if params.targetId %} data-id="{{ params.targetId }}" {% endif %}
26
25
  {{- attributes | safe }}>
27
26
 
28
27
  {% if params.mediaHtml %}
@@ -13,7 +13,6 @@
13
13
  |teasersHtml | HTML String | yes | | | HTML teaser output |
14
14
  |vignetteText | String | yes | | | Heading of the teaser |
15
15
  |vignetteTargetUrl | String | no | | | Target URL for the teaser |
16
- |vignetteTargetId | String | no | | | Target article ID |
17
16
  |areaType | String | no | "bauta" or "bautaxl" | | The area where the column is rendered |
18
17
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
19
18
  |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
@@ -33,7 +32,6 @@ These are copy paste friendly examples to quickliy get started using a component
33
32
  teasersHtml: "",
34
33
  areaType: "bauta",
35
34
  vignetteText: "Svensk politik",
36
- vignetteTargetId: "dn.tag.svensk-politik",
37
35
  vignetteTargetUrl: "/om/svensk-politik/"
38
36
  })}}
39
37
  ```
@@ -24,7 +24,6 @@
24
24
  {%- if params.vignetteTargetUrl %}
25
25
  <a href="{{ params.vignetteTargetUrl }}"
26
26
  class="{{ componentClassName + '__vignette'}}"
27
- {% if params.vignetteTargetId %} data-id="{{ params.vignetteTargetId }}" {% endif %}
28
27
  {{- attributes | safe }}>
29
28
  <span>{{ params.vignetteText }}</span>
30
29
  {{ Icon({ icon: "arrow_forward", attributes: {"aria-hidden": true} }) }}
@@ -12,7 +12,6 @@
12
12
  |:--- | :--- | :--- | :--- | :--- | :--- |
13
13
  |title | String | yes | | | Heading of the teaser |
14
14
  |targetLink | String | yes | | | Target URL for the teaser |
15
- |targetId | String | no | | | Target article ID |
16
15
  |~variant~ | String | no | "default" or "podd" | "default" | Not implemented |
17
16
  |areaType | String | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
18
17
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
@@ -39,7 +38,6 @@ These are copy paste friendly examples to quickliy get started using a component
39
38
  {{ TeaserSplit({
40
39
  title: "Sju miljoner i humanitärt stöd till Turkiet och Syrien",
41
40
  targetLink: "#",
42
- targetId: "test.123",
43
41
  text: "Tält och temporära nödboenden samt ledningsresurser för att koordinera räddningsarbetet."
44
42
  })}}
45
43
  ```
@@ -28,7 +28,6 @@
28
28
 
29
29
  <a href="{{ params.targetLink }}"
30
30
  class="{{ classes }}"
31
- {% if params.targetId %} data-id="{{ params.targetId }}" {% endif %}
32
31
  {{- attributes | safe }}>
33
32
 
34
33
  {% if params.mediaHtml %}
@@ -12,7 +12,6 @@
12
12
  |:--- | :--- | :--- | :--- | :--- | :--- |
13
13
  |title | String | yes | | | Heading of the teaser |
14
14
  |targetLink | String | yes | | | Target URL for the teaser |
15
- |targetId | String | no | | | Target article ID |
16
15
  |variant | String | no | "default" or "podd" | "default" | |
17
16
  |areaType | String | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
18
17
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
@@ -32,7 +32,6 @@
32
32
 
33
33
  <a href="{{ params.targetLink }}"
34
34
  class="{{ classes }}"
35
- {% if params.targetId %} data-id="{{ params.targetId }}" {% endif %}
36
35
  {{- attributes | safe }}>
37
36
 
38
37
  {% if params.isLocked and not params.mediaHtml and params.isItalicHeadline %}
@@ -14,7 +14,6 @@ It's quite common to include a dot in the title string, like "• This is a titl
14
14
  |:--- | :--- | :--- | :--- | :--- | :--- |
15
15
  |title | String | yes | | | Heading of the teaser |
16
16
  |targetLink | String | yes | | | Target URL for the teaser |
17
- |targetId | String | no | | | Target article ID |
18
17
  |text | String | no | | | Teaser subtext |
19
18
  |areaType | String | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
20
19
  |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
@@ -14,7 +14,6 @@
14
14
 
15
15
  <a href="{{ params.targetLink }}"
16
16
  class="{{ classes }}"
17
- {% if params.targetId %} data-id="{{ params.targetId }}" {% endif %}
18
17
  {{- attributes | safe }}>
19
18
 
20
19
  <div class="{{ componentClassName + '__content'}}">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "3.0.0-alpha.56",
3
+ "version": "3.0.0-alpha.57",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.js",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",