Skip to content

Releases: pedropalau/react-bnb-gallery

react-bnb-gallery@2.2.0

02 Mar 16:15
b6b15cb

Choose a tag to compare

Minor Changes

  • Prepare 2.2.0 with styling and migration improvements while preserving 2.x compatibility:

    • Keep backgroundColor deprecated, but restore it as a compatibility alias for overlay color in 2.x.
    • Add and document stable gallery-* CSS hooks and is-* state classes.
    • Expand token-based theming guidance around the --rbg-* contract.
    • Document a clearer 2.x -> 3.0.0 deprecation and migration path.

react-bnb-gallery@2.1.5

26 Feb 20:01
cf49571

Choose a tag to compare

Patch Changes

  • ebea33c: Add support for ReactNode values in GalleryPhoto.caption and GalleryPhoto.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.

react-bnb-gallery@2.1.4

26 Feb 19:48
e1edac6

Choose a tag to compare

Patch Changes

  • 3465f6a: Fix Firefox click handling for the active gallery image by ensuring the active photo button consistently occupies the full photo area, restoring reliable activePhotoPressed callback behavior when clicking the image.

react-bnb-gallery@2.1.3

26 Feb 19:33
25695e2

Choose a tag to compare

Patch Changes

  • a048fa7: Add GalleryPhoto.alt and GalleryPhoto.thumbnailAlt to support explicit accessible image text for main and thumbnail images. Keep backward-compatible fallback behavior (caption remains default; thumbnail falls back to alt then caption).

react-bnb-gallery@2.1.2

26 Feb 19:19
5edf72c

Choose a tag to compare

Patch Changes

  • Fix wrap boundary 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.

react-bnb-gallery@2.1.0

26 Feb 16:42
fd4b354

Choose a tag to compare

Minor Changes

  • 6fd8b74: Prepare the 2.1.0 release train with the post-2.0.0 modernization work:

    • TypeScript migration finalized with strict typing and generated declarations.
    • Runtime propTypes and airbnb-prop-types validation 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.x adoption.

react-bnb-gallery@2.0.0

25 Feb 04:39
e59bd8c

Choose a tag to compare

Major Changes

  • bbbe07c: ## 2.0.0

    Breaking changes

    • React peer support is now ^18.0.0 || ^19.0.0.
    • React 17 and older are no longer supported.

    What changed

    • 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.

    Migration notes

    • Upgrade your application to React 18+ before adopting react-bnb-gallery@2.0.0.
    • Reinstall dependencies with pnpm if your local setup still reflects legacy lockfile/package-manager state.

v1.4.4

13 Jul 13:41

Choose a tag to compare

Fix build issue

v1.4.3

13 Jul 05:05

Choose a tag to compare

Update dependencies

v1.2.6

13 Jul 03:06

Choose a tag to compare

Update dependencies and make some enhancements