-
bd255cc: Remove all deprecated default exports across the package and keep only named exports.
This finalizes the deprecation path and requires consumers to update imports from default style to named imports.
-
a04110d: Fix library CSS packaging so
dist/style.cssonly ships gallery styles.Removed the unintended Tailwind import from the library stylesheet and organized rules into explicit cascade layers (
rbg-tokens,rbg-components,rbg-motion) without changing gallery behavior.
-
Prepare
2.2.0with styling and migration improvements while preserving 2.x compatibility:- Keep
backgroundColordeprecated, but restore it as a compatibility alias for overlay color in 2.x. - Add and document stable
gallery-*CSS hooks andis-*state classes. - Expand token-based theming guidance around the
--rbg-*contract. - Document a clearer 2.x -> 3.0.0 deprecation and migration path.
- Keep
- ebea33c: Add support for
ReactNodevalues inGalleryPhoto.captionandGalleryPhoto.subcaption, so consumers can render rich caption content (for example links and styled metadata). Keep accessibility fallbacks safe by using text-only caption values for image alt/thumbnail labels when explicit alt fields are not provided.
- 3465f6a: Fix Firefox click handling for the active gallery image by ensuring the active photo button consistently occupies the full photo area, restoring reliable
activePhotoPressedcallback behavior when clicking the image.
- a048fa7: Add
GalleryPhoto.altandGalleryPhoto.thumbnailAltto support explicit accessible image text for main and thumbnail images. Keep backward-compatible fallback behavior (captionremains default; thumbnail falls back toaltthencaption).
-
Fix
wrapboundary navigation semantics so:wrap={false}stops at the first/last photo.wrap={true}loops across boundaries as documented.
Also adds behavior tests for keyboard navigation at boundaries and control visibility in both wrap modes.
-
6fd8b74: Prepare the
2.1.0release train with the post-2.0.0modernization work:- TypeScript migration finalized with strict typing and generated declarations.
- Runtime
propTypesandairbnb-prop-typesvalidation removed in favor of TS-only contracts. - React surface modernization completed via hooks-based internals while keeping the public API stable.
- Fixed thumbnail strip synchronization when opening the gallery at a non-zero
activePhotoIndex. - Docs and migration guidance updated for
2.1.xadoption.
-
bbbe07c: ## 2.0.0
- React peer support is now
^18.0.0 || ^19.0.0. - React 17 and older are no longer supported.
- Modernized the library build and package exports with a Vite-based pipeline and dual ESM/CJS output.
- Hardened runtime behavior in the gallery and related utilities to address correctness issues found during modernization.
- Migrated tests to Vitest + Testing Library with behavior-focused coverage and CI gating.
- Modernized and unified docs/demo experience under a current Next.js app structure.
- Hardened release automation with Changesets-based versioning and npm provenance publishing.
- Upgrade your application to React 18+ before adopting
react-bnb-gallery@2.0.0. - Reinstall dependencies with
pnpmif your local setup still reflects legacy lockfile/package-manager state.
- React peer support is now
- [enhancement] Updates dependencies
- [enhancement] Creates actions and updates workflow
- [enhancement] Updates dependencies
- [enhancement] Integrates with GitHub Packages
- [fix] Wrong thumbnails visualization
- [enhancement] Updates dependencies
- [enhancement] Updates development dependencies
- [fix] Thumbnails list hide/show styles
- [enhancement] More improvements to the gallery styles
- [fix] Lot of wrong styles
- [enhancement] Updates images visualization
- [fix] Wrong loading spinner style
- [fix] Updates multiple dependencies
- [enhancement] Accept path-only images
- [fix] Correctly bind the
zIndexproperty
- [fix] Update typings of the package details
- [enhancement] Folder organization
- [enhancement] Update the visual of the component
- [enhancement] Updates multiple dependencies.
- [enhancement] Replace
npmwithyarn. - [enhancement]
Galleryis exported now as an individual component - [fix] All the images are loaded at the same time
- [enhancement] Using the latest version of some dependencies.
- [enhancement]
react-scriptsversion updated for the example showcase. - [fixed] Some vulnerabilities issues
- [fix] Does not work with TypeScript (#2)
- [fix] Warning
Using "external-helpers" plugin with rollup is deprecated.
- [new] Added
opacityproperty to set the opacity level. - [new] Added
backgroundColorproperty to set the background color. - [new] Added
zIndexproperty to stack order relative to other components.
- [new] Testing.
- [fix] Code style.
- [new] Allow to disable keyboard navigation by the
keyboardprop. - [fix] Better prop types validation.
- [new] Allow an array of urls instead of objects.
- [fix] Fix incorrect dynamic position offset of active thumbnails.
- [new] Keyboard support, for
LeftandRightarrows andEsckey.