hr-design-system-handlebars 1.114.152 → 1.114.153

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
@@ -1,3 +1,16 @@
1
+ # v1.114.153 (Tue Jul 15 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - DPE-3711: prevent endless loading spinner for hero image in gallery [#1294](https://github.com/mumprod/hr-design-system-handlebars/pull/1294) (saad.elbaciri@hr.de [@selbaciri](https://github.com/selbaciri))
6
+
7
+ #### Authors: 2
8
+
9
+ - Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
10
+ - selbaciri (saad.elbaciri@hr.de)
11
+
12
+ ---
13
+
1
14
  # v1.114.152 (Tue Jul 15 2025)
2
15
 
3
16
  #### 🐛 Bug Fix
@@ -3891,7 +3891,7 @@ article #commentList {
3891
3891
  border-bottom-color: var(--color-secondary-ds);
3892
3892
  }
3893
3893
  .counter-reset {
3894
- counter-reset: cnt1752581940439;
3894
+ counter-reset: cnt1752583911054;
3895
3895
  }
3896
3896
  .animate-delay-100 {
3897
3897
  --tw-animate-delay: 100ms;
@@ -4352,7 +4352,7 @@ html { scroll-behavior: smooth; }
4352
4352
  --tw-ring-color: rgba(255, 255, 255, 0.5);
4353
4353
  }
4354
4354
  .-ordered {
4355
- counter-increment: cnt1752581940439 1;
4355
+ counter-increment: cnt1752583911054 1;
4356
4356
  }
4357
4357
  .-ordered::before {
4358
4358
  position: absolute;
@@ -4370,7 +4370,7 @@ html { scroll-behavior: smooth; }
4370
4370
  --tw-text-opacity: 1;
4371
4371
  color: rgba(0, 0, 0, 1);
4372
4372
  color: rgba(0, 0, 0, var(--tw-text-opacity));
4373
- content: counter(cnt1752581940439);
4373
+ content: counter(cnt1752583911054);
4374
4374
  }
4375
4375
  /*! ****************************/
4376
4376
  /*! DataPolicy stuff */
@@ -32,7 +32,17 @@ export default function gallerySlider(gallerySelector) {
32
32
  this.captions = [...galleryContainer.querySelectorAll('.js-gallery-slider-caption')];
33
33
  this.captions.forEach((caption, index) => caption.setAttribute('x-show', `currentSlideIndex === ${index + 1}`));
34
34
  }
35
- this.handleImageLoad(this.slides[0].querySelector('.js-gallery-image'));
35
+
36
+ this.slides.forEach(slide => {
37
+ const img = slide.querySelector('.js-gallery-image');
38
+ if (img) {
39
+ if (img.complete && img.naturalHeight !== 0) {
40
+ this.handleImageLoad(img);
41
+ } else {
42
+ img.onload = () => this.handleImageLoad(img);
43
+ }
44
+ }
45
+ });
36
46
 
37
47
  },
38
48
  handleTouchStart(event) {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "1.114.152",
9
+ "version": "1.114.153",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -32,7 +32,17 @@ export default function gallerySlider(gallerySelector) {
32
32
  this.captions = [...galleryContainer.querySelectorAll('.js-gallery-slider-caption')];
33
33
  this.captions.forEach((caption, index) => caption.setAttribute('x-show', `currentSlideIndex === ${index + 1}`));
34
34
  }
35
- this.handleImageLoad(this.slides[0].querySelector('.js-gallery-image'));
35
+
36
+ this.slides.forEach(slide => {
37
+ const img = slide.querySelector('.js-gallery-image');
38
+ if (img) {
39
+ if (img.complete && img.naturalHeight !== 0) {
40
+ this.handleImageLoad(img);
41
+ } else {
42
+ img.onload = () => this.handleImageLoad(img);
43
+ }
44
+ }
45
+ });
36
46
 
37
47
  },
38
48
  handleTouchStart(event) {