intershop-pwa icon indicating copy to clipboard operation
intershop-pwa copied to clipboard

feat: migration to swiper 11

Open tbouliere-datasolution opened this issue 11 months ago • 0 comments

PR Type

[ ] Bugfix [x ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no API changes) [ ] Build-related changes [ ] CI-related changes [ ] Documentation content changes [ ] Application / infrastructure changes [ ] Other:

What Is the Current Behavior?

Swiper library version not up to date

What Is the New Behavior?

Swiper has been set to 11. A new angular component ish-swiper has been introduce to wrap swiper web-elements. Previous css has been migrate to css variable or css style injected to the shadow dom.

There was an improvement made in this commit (https://github.com/intershop/intershop-pwa/commit/cbe90723ca2097841542e436c6dba5f30cbb9313) to lazily fetch product. As this used a swiper function that no longer exists, a ish-lazy-item genetic component was introduced. This makes it possible to perform the same optimization with an intersectionObserver and an ng-template

Does this PR Introduce a Breaking Change?

[x ] Yes [ ] No

Other Information

tbouliere-datasolution avatar Mar 22 '24 16:03 tbouliere-datasolution