yet-another-react-lightbox 3.32.1 → 3.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,19 @@
1
+ <div align="center">
2
+
3
+ <img alt="" src=".github/assets/logo.webp" width="180" height="180" />
4
+
1
5
  # Yet Another React Lightbox
2
6
 
7
+ [![NPM Version](https://img.shields.io/npm/v/yet-another-react-lightbox.svg?color=blue)](https://www.npmjs.com/package/yet-another-react-lightbox)
8
+ [![Bundle Size](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fregistry.npmjs.org%2Fyet-another-react-lightbox%2Flatest&query=%24.bundleSize&label=bundle%20size&color=blue&cacheSeconds=3600)](https://github.com/igordanchenko/yet-another-react-lightbox/blob/main/.size-limit.json)
9
+ [![License MIT](https://img.shields.io/npm/l/yet-another-react-lightbox.svg?color=blue)](https://github.com/igordanchenko/yet-another-react-lightbox/blob/main/LICENSE)
10
+
3
11
  Modern React lightbox component. Performant, easy to use, customizable, and
4
12
  extendable.
5
13
 
6
- ## Overview
14
+ </div>
7
15
 
8
- [![NPM Version](https://img.shields.io/npm/v/yet-another-react-lightbox.svg?color=blue)](https://www.npmjs.com/package/yet-another-react-lightbox)
9
- [![Bundle Size](https://img.shields.io/bundlephobia/minzip/yet-another-react-lightbox.svg?color=blue)](https://bundlephobia.com/package/yet-another-react-lightbox)
10
- [![License MIT](https://img.shields.io/npm/l/yet-another-react-lightbox.svg?color=blue)](https://github.com/igordanchenko/yet-another-react-lightbox/blob/main/LICENSE)
16
+ ## Overview
11
17
 
12
18
  - **Built for React:** works with React 19, 18, 17, and 16.8.0+
13
19
  - **UX:** supports keyboard, mouse, touchpad, and touchscreen navigation
package/dist/index.js CHANGED
@@ -662,11 +662,11 @@ function useThrottle(callback, delay) {
662
662
  const delayCallback = useDelay();
663
663
  const executeCallback = useEventCallback((...args) => {
664
664
  lastCallbackTime.current = Date.now();
665
- callback(args);
665
+ callback(...args);
666
666
  });
667
667
  return React.useCallback((...args) => {
668
668
  delayCallback(() => {
669
- executeCallback(args);
669
+ executeCallback(...args);
670
670
  }, delay - (Date.now() - lastCallbackTime.current));
671
671
  }, [delay, executeCallback, delayCallback]);
672
672
  }
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "yet-another-react-lightbox",
3
- "version": "3.32.1",
3
+ "version": "3.32.2",
4
4
  "description": "Modern React lightbox component",
5
+ "repository": "github:igordanchenko/yet-another-react-lightbox",
6
+ "homepage": "https://yet-another-react-lightbox.com",
7
+ "bugs": "https://github.com/igordanchenko/yet-another-react-lightbox/issues",
8
+ "funding": "https://github.com/sponsors/igordanchenko",
5
9
  "author": "Igor Danchenko",
6
10
  "license": "MIT",
7
11
  "type": "module",
@@ -114,13 +118,6 @@
114
118
  "sideEffects": [
115
119
  "*.css"
116
120
  ],
117
- "homepage": "https://yet-another-react-lightbox.com",
118
- "funding": "https://github.com/sponsors/igordanchenko",
119
- "bugs": "https://github.com/igordanchenko/yet-another-react-lightbox/issues",
120
- "repository": {
121
- "type": "git",
122
- "url": "git+https://github.com/igordanchenko/yet-another-react-lightbox.git"
123
- },
124
121
  "engines": {
125
122
  "node": ">=14"
126
123
  },
@@ -146,5 +143,6 @@
146
143
  "react lightbox",
147
144
  "react image lightbox",
148
145
  "react photo lightbox"
149
- ]
146
+ ],
147
+ "bundleSize": "10.6 kB"
150
148
  }