@ilo-org/twig 0.2.21 → 0.2.22

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,9 +1,9 @@
1
1
 
2
- > @ilo-org/twig@0.2.21 build:lib /home/runner/work/designsystem/designsystem/packages/twig
2
+ > @ilo-org/twig@0.2.22 build:lib /home/runner/work/designsystem/designsystem/packages/twig
3
3
  > node importprefix.js && node importsvgs.js && pnpm output
4
4
 
5
5
  theme prefix added
6
6
 
7
- > @ilo-org/twig@0.2.21 output /home/runner/work/designsystem/designsystem/packages/twig
7
+ > @ilo-org/twig@0.2.22 output /home/runner/work/designsystem/designsystem/packages/twig
8
8
  > node outputtwigs.js
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ilo-org/twig
2
2
 
3
+ ## 0.2.22
4
+
5
+ ### Patch Changes
6
+
7
+ - 31f3c3790: Added a block to wrap the image on the Hero component. That allows Drupal to include responsive images.
8
+
3
9
  ## 0.2.21
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "main": "",
@@ -9,15 +9,17 @@
9
9
  prefix: prefix,
10
10
  } only %}
11
11
  {% endif %}
12
- {% if not image %}
13
- {% else %}
14
- {% include "@components/image/image.twig" with {
15
- alt: image.alt,
16
- prefix: prefix,
17
- url: image.url,
18
- ishero: "true"
19
- } only %}
20
- {% endif %}
12
+ {% block hero_image %}
13
+ {% if not image %}
14
+ {% else %}
15
+ {% include "@components/image/image.twig" with {
16
+ alt: image.alt,
17
+ prefix: prefix,
18
+ url: image.url,
19
+ ishero: "true"
20
+ } only %}
21
+ {% endif %}
22
+ {% endblock %}
21
23
  {% include "@components/herocard/herocard.twig" with {
22
24
  alignment: herocard.alignment,
23
25
  eyebrow: herocard.eyebrow,