@openeuropa/bcl-featured-media 0.4230.202512021730 → 0.4360.202601141610

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.
@@ -38,7 +38,7 @@
38
38
  - "embedded_media"
39
39
  #}
40
40
 
41
- {% set _title = title|default('') %}
41
+ {%- set _title = title|default('') %}
42
42
  {% set _title_tag = title_tag|default('h2') %}
43
43
  {% set _title_link = title_link|default({}) %}
44
44
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -60,34 +60,34 @@
60
60
  {% set _tracks = tracks|default([]) %}
61
61
  {% set _embedded_media = embedded_media|default('') %}
62
62
 
63
- {% set _classes = 'bcl-featured-item' %}
63
+ {%- set _classes = 'bcl-featured-item' %}
64
64
  {% set _col_classes = 'col-12 col-md-6' %}
65
65
 
66
- {% if _wrapper_classes is not empty %}
67
- {% set _classes = _classes ~ ' ' ~ wrapper_classes %}
66
+ {%- if _wrapper_classes is not empty %}
67
+ {%- set _classes = _classes ~ ' ' ~ wrapper_classes %}
68
68
  {% endif %}
69
69
 
70
- {% if attributes is empty %}
71
- {% set attributes = create_attribute() %}
70
+ {%- if attributes is empty %}
71
+ {%- set attributes = create_attribute() %}
72
72
  {% endif %}
73
73
 
74
- {% set attributes = attributes.addClass(["rounded", "overflow-hidden"]) %}
74
+ {%- set attributes = attributes.addClass(["rounded", "overflow-hidden"]) %}
75
75
 
76
- {% if _image is not empty %}
77
- {% set attributes = attributes.addClass(["d-inline-flex", "flex-wrap"]) %}
78
- {% if _content_classes is not empty %}
79
- {% set _content_classes = _content_classes ~ ' flex-1 w-min-content' %}
80
- {% else %}
81
- {% set _content_classes = 'flex-1 w-min-content' %}
82
- {% endif %}
76
+ {%- if _image is not empty %}
77
+ {%- set attributes = attributes.addClass(["d-inline-flex", "flex-wrap"]) %}
78
+ {%- if _content_classes is not empty %}
79
+ {%- set _content_classes = _content_classes ~ ' flex-1 w-min-content' %}
80
+ {%- else %}
81
+ {%- set _content_classes = 'flex-1 w-min-content' %}
82
+ {%- endif %}
83
83
  {% endif %}
84
84
 
85
- {% if _with_text or _force_wrapper %}
85
+ {%- if _with_text or _force_wrapper -%}
86
86
  <div class="{{ _classes }}">
87
- {% endif %}
88
- {% if _with_text %}
87
+ {%- endif %}
88
+ {% if _with_text -%}
89
89
  <div class="row">
90
- {% endif %}
90
+ {%- endif %}
91
91
 
92
92
  {%- if _title is not empty -%}
93
93
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -98,7 +98,7 @@
98
98
  } only %}
99
99
  {%- endif -%}
100
100
 
101
- {% if _with_text %}
101
+ {% if _with_text -%}
102
102
  <div class="{{ _col_classes }} order-{{ _alignment == "right" ? '1' : '2' }}">
103
103
  {%- if _description_title is not empty -%}
104
104
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -110,45 +110,45 @@
110
110
  {{- _description|default('') -}}
111
111
 
112
112
  {% if _read_more is not empty %}
113
- {% include '@oe-bcl/bcl-link/link.html.twig' with _read_more only %}
114
- {% endif %}
115
- </div>
113
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _read_more only %}
114
+ {%- endif -%}
115
+ </div>{# -#}
116
116
  <div class="{{ _col_classes }} order-{{ _alignment == "right" ? '2 mt-4 mt-md-0' : '1' }}">
117
- {% endif %}
117
+ {%- endif -%}
118
118
 
119
119
  <figure
120
120
  {{ attributes }}
121
121
  >
122
- {% if _embedded_media is not empty %}
123
- {% set _video_classes = "ratio ratio-" ~ _ratio %}
122
+ {%- if _embedded_media is not empty %}
123
+ {%- set _video_classes = "ratio ratio-" ~ _ratio -%}
124
124
  <div class="{{ _video_classes }}">
125
125
  {%- block embedded_media _embedded_media -%}
126
126
  </div>
127
- {% elseif _sources is not empty and _sources is iterable %}
127
+ {%- elseif _sources is not empty and _sources is iterable -%}
128
128
  <video
129
129
  controls
130
130
  poster="{{ _poster_image }}"
131
131
  class="w-100 d-block"
132
132
  >
133
- {% for source in _sources %}
133
+ {%- for source in _sources -%}
134
134
  <source type="{{ source.type }}" src="{{ source.src }}" />
135
- {% endfor %}
136
- {% if _tracks is not empty and _tracks is iterable %}
137
- {% for track in _tracks %}
135
+ {%- endfor %}
136
+ {%- if _tracks is not empty and _tracks is iterable %}
137
+ {%- for track in _tracks -%}
138
138
  <track
139
139
  kind="{{ track.kind }}"
140
140
  label="{{ track.label }}"
141
141
  src="{{ track.src }}"
142
142
  srclang="{{ track.src_lang }}"
143
143
  />
144
- {% endfor %}
145
- {% endif %}
144
+ {%- endfor %}
145
+ {%- endif -%}
146
146
  </video>
147
- {% else %}
148
- {{ _image }}
149
- {% endif %}
147
+ {%- else %}
148
+ {{- _image }}
149
+ {%- endif %}
150
150
 
151
- {% if _content is not empty %}
151
+ {%- if _content is not empty -%}
152
152
  <figcaption
153
153
  {% if _content_classes is not empty %}
154
154
  class="{{ _content_classes }}"
@@ -156,14 +156,13 @@
156
156
  >
157
157
  {{- _content -}}
158
158
  </figcaption>
159
- {% endif %}
159
+ {%- endif -%}
160
160
  </figure>
161
161
 
162
- {% if _with_text %}
163
- </div>
162
+ {%- if _with_text -%}
163
+ </div>{# -#}
164
164
  </div>
165
- {% endif %}
166
- {% if _with_text or _force_wrapper %}
165
+ {%- endif %}
166
+ {% if _with_text or _force_wrapper -%}
167
167
  </div>
168
- {% endif %}
169
-
168
+ {%- endif -%}
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@openeuropa/bcl-featured-media",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.4230.202512021730",
5
+ "version": "0.4360.202601141610",
6
6
  "description": "OE - BCL featured media",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@openeuropa/bcl-heading": "^0.4230.202512021730",
12
- "@openeuropa/bcl-link": "^0.4230.202512021730"
11
+ "@openeuropa/bcl-heading": "^0.4360.202601141610",
12
+ "@openeuropa/bcl-link": "^0.4360.202601141610"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -25,5 +25,5 @@
25
25
  "design-system",
26
26
  "twig"
27
27
  ],
28
- "gitHead": "19735e328b2b53ccefbcc6829e2aaf149a2c438c"
28
+ "gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
29
29
  }