All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.0.2 (2024-07-19)
- docs: add more obvious info about photoswipe and react-photoswipe-gallery versions compatibility (9e73348)
3.0.1 (2023-12-20)
- prevent unnecessary removal of ref in strict mode (32f446b)
3.0.0 (2023-12-05)
-
item: move set call from effect to ref callback (a5f7aa2). This feature improves performance and stops creating warnings since there is no more useLayoutEffect. Also improves typings, so you no longer need to manually cast ref type. This is small breaking change, but not hard to deal with.
-
make Item ref always required (64464e7). In previous version you could omit setting ref from Item to node if there was only one Item to render. This realease drops this possibility, so you no longer need to think if you should or should not set ref to node.
3.0.0-alpha.0 (2023-11-22)
2.2.7 (2023-04-03)
- change useEffect to useLayoutEffect in Item component (ed17490)
2.2.6 (2023-02-12)
- remove useless null checks (af4ce1e)
2.2.5 (2023-02-09)
- remove null from ItemRef type (fc40996)
2.2.4 (2023-02-09)
- fix ts errors based on null checks (bdf6012)
- enable strictNullChecks in tsconfig (b537d9a)
2.2.3 (2023-01-31)
- fix browser back/forward navigation with enabled hash navigation (31d815b)
- ci: fix various GH Actions issues (047b3fb)
- test: add jest-environment-jsdom; fix config (3404d90)
- changelog: remove redundant entries (e65c384)
2.2.2 (2022-09-26)
2.2.1 (2022-05-14)
- custom-content: reset portal if slideData has no content, and on
close
(#837) (031dfcf) - storybook: adjust color scheme (68ab0ac)
2.2.0 (2022-05-10)
- types: use vendor photoswipe types (6faed81)
- prop-types: add missing prop (6af1e8c)
2.1.0 (2022-04-26)
- yarn: remove redundant packageExtensions (818b0a3)
2.0.4 (2022-04-16)
- esm: patch import statements in tsc output (067a032)
2.0.3 (2022-04-16)
- package: set
type: 'module'
(7f74c25)
- ci: set node version to v16 for workflows (b50be06)
2.0.2 (2022-04-16)
- build: set TSC target to
ES6
to match PhotoSwipe v5 (30909b7)
2.0.1 (2022-04-15)
- package: exclude
src/storybook
from build (0a3068e)
2.0.0 (2022-04-15)
- drop PhotoSwipe v4 support (#592)
- remove prop
title
(Item component) (#592) - remove BaseGallery, CustomGallery, DefaultLayout (#592)
- add PhotoSwipe v5 support (#592)
- add new props for Item component:
originalSrcset
,alt
,caption
,cropped
(#592) - add new props for Gallery component:
onBeforeOpen
,withCaption
,withDownloadButton
,plugins
(#592) - add PhotoSwipe plugins support (#592)
- implement hash navigation (there is no built-in hash navigation in photoswipe v5) (#592)
- types: declare gallery's
children
explicitly; add type for ref; add event type (cc940bb)
1.3.10 (2022-04-01)
1.3.9 (2022-04-01)
- package: fix range for the
photoswipe
peer dependency (2f2de65) - changelog: fix changelog format (4911eae)
1.3.8 (2022-03-07)
- package: change
repository
field format (e1efbbf)
1.3.7 (2022-03-06)
- husky: migrate husky configuration (0be4a3f)
- ci: env vars for publish script (8dbce8b)
- test: update ts-jest, add env docblock (ad120c1)
- ci: add gh deployment (31b7b76)
- ci: use destination_dir on deploy (34b127b)
- cs: fix prettier issues (dc9f4e4)
- lint-config: disable react/function-component-definition rule (c14e15e)
- yarn: set defaultSemverRangePrefix to respect dependencies pinning (821dfd9)
1.3.6 (2021-04-12)
1.3.5 (2021-04-10)
- Bump dependencies (1e39524)
- bump storybook; use builder: webpack5 (f127302)
- update lockfile, gitignore (4cd6b45)
1.3.4 (2020-12-25)
1.3.3 (2020-12-24)
- migrate to yarn berry (b9224ba)
1.3.2 (2020-12-24)
- hash navigation if items added in different render (84cebdc)
- test: define photoswipeArgsMock return type (b0cc02b)
1.3.1 (2020-10-06)
- add some missing hooks dependencies (839c5e5)
1.3.0 (2020-07-21)
- configure types for standard-version (c607941)
- migrate from conventional-changelog-cli to standard-version (7b90786)
- upgrade storybook (da580de)
- chore: stop using angular preset for conventional-changelog (dc51c55)
- docs(readme): fix missing empty cell (21206fd)
- improvement: implement hash navigation (bde7d7e), closes #19
1.0.1 (2020-04-25)
- allow override all photoswipe options (0a21905)
- remove check for current ref type in getThumbBoundsFn (66165ef)
- improvement: separate Gallery and CustomGallery (edd4bed), closes #16
- improvement: throw if no ref, allow single-item without ref (6dd48e9), closes #13 #12
- improvement(stories): add story without images (1025158), closes #14
- improvement(storybook): add story with example from photoswipe.com (3111463)
- docs: add inline comments (c0ff9e9)
- docs(readme): add codecov badge (40eb561)
- docs(readme): add npmjs badge (04c12e2)
- docs(readme): update readme (3a9441a), closes #8
- ci: deploy storybook to gh-pages (036fa4e)
- ci: publish based on new release (462c9aa)
- ci: run tests on push, upload coverage report to codecov (cb6eb7c)
- fix: change approach to determine the order of items (5acf951)
- fix: remove unneeded git add from lint-staged config (8914f38)
- fix(item-api): add missing html prop for Item from PhotoswipeItem (59522c6), closes #17
- test: add test case with stateful item (69a7ff6)
- test: configure Jest, write some test cases (a989e7f), closes #7
- refactor: slightly change API, disable strictNullChecks (554ea30)
- chore: add commitlint, commitizen (e2d4741)
- chore: add conventional-changelog (770e713), closes #11
- chore: move readme (ebc40f4)
- chore: move readme (133a51e)
- chore: rewrite with TypeScript, remove babel (52432b9)
- feat: add ability to reuse existing layout (closes #9) (e20240d), closes #9
- feat(dx): add Storybook (48590b7)
- initial implementation (e756c21)
- root (3bc6218)
- Update package.json (6f8e9d9)