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