fix(deps): update dependency photoswipe to v5
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| photoswipe (source) | ^4.1.3 -> ^5.3.3 |
Release Notes
dimsemenov/Photoswipe
v5.3.3
- Fix unhandled rejection "EncodingError: The source image cannot be decoded" (by Tw1N88)
- Fix typo in attribute name (by Tw1N88)
- Fix Cannot read properties of undefined (reading 'applyCurrentZoomPan') (by Tw1N88)
- Fix (types) change types of children & gallery options according to docs (by Schleuse)
5.3.2
5.3.1
5.3.0
- Adjust zoomed-in class behaviour to reflect toggleZoom method, https://github.com/dimsemenov/PhotoSwipe/issues/1946
- Remove placeholder after image is loaded
- Allow PhotoSwipeBase for lazyLoadData method
- Append image only after it's fully loaded in Safari
- Set sizes before srcset
- Size of content is now calculated before it's appended to DOM
- Allow PhotoSwipeBase type for loader
- Replace innerHTML to preserve Trusted Types
- Allow filtering of size when slide deactivates
v5.3.2
v5.3.0
v5.2.8
v5.2.7
v5.2.6
v5.2.5
v5.2.4
v5.2.2
Major update that changes initialization method!
What's new
Code quality and rewrite in ES6 The script is now distributed as an ES module and does not require a build step to use.
Simpler initialization and dynamic import support PhotoSwipe now supports dynamic import and does not block page rendering.
<script type="module">
import Lightbox from './photoswipe-lightbox.esm.js';
const lightbox = new Lightbox({
gallery: '#my-gallery',
children: 'a',
pswpModule: () => import('./photoswipe.esm.js')
});
lightbox.init();
</script>
Animation and gesture engine update Improved performance of most animations, touch gestures should feel more fluid now. The initial opening or closing transition can be run from cropped thumbnails.
Single CSS file and no external assets Using CSS variables, default icons are dynamically generated and tiny.
Built-in responsive images support PhotoSwipe also dynamically loads larger images as the user zooms via srcset.
Open images in zoomed state It's now much easier to control the zoom level.
Removed features from the core Some built-in features were removed in v5, either because they are using outdated technology or just rarely used. Some of them are or will be replaced by a plugin. These include:
- History API (#hash-based navigation is outdated)
- Social sharing (unreliable URL, lack of Opengraph support)
- Fullscreen button (rarely used, double fullscreen). Related example in docs →
- Caption (accessibility problems). Refer to the caption section of docs.
- Inline gallery support (v5 is mainly designed to be used as a dialog).
v5.2.1
Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
https://github.com/ecomplus/storefront/pull/763#issuecomment-1201742280
Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x releases. But if you manually upgrade to 5.x then Renovate will re-enable minor and patch updates automatically.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.