@mgonza02/goal-image-gallery 1.0.6 → 1.0.7

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/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to the GoalImageGallery project will be documented in this f
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.7] - 2025-07-14
9
+ ### 🧹 Bug fix
10
+ - Fixed an issue with clipboard support detection in the `use-image-gallery` hook.
11
+ - Updated the `GoalImageGallery` component to ensure clipboard support is correctly passed as a prop.
12
+ - Removed unused clipboard support prop from the component to avoid confusion.
13
+ - Ensured consistent handling of clipboard support across all components.
14
+
15
+
16
+
17
+
8
18
  ## [1.0.6] - 2025-07-11
9
19
 
10
20
  ### 🧹 Optimization & Cleanup
@@ -378,7 +378,7 @@ const GoalImageGallery = _ref => {
378
378
  allowDownload: allowDownload,
379
379
  showImageInfo: showImageInfo,
380
380
  loading: loading,
381
- clipboardSupported: clipboardSupported,
381
+ clipboardSupported: !!clipboardSupported,
382
382
  getImageUrl: getImageUrl,
383
383
  noImageUrl: noImageUrl,
384
384
  onImageClick: handleOpenImage,
@@ -185,7 +185,7 @@ export const useImageZoom = (getImageUrl, imageList) => {
185
185
  export const useClipboard = (updatable, selectingImage, onPasteImage) => {
186
186
  const [clipboardSupported, setClipboardSupported] = useState(false);
187
187
  useEffect(() => {
188
- setClipboardSupported(navigator.clipboard);
188
+ setClipboardSupported(!!navigator.clipboard);
189
189
  }, []);
190
190
  useEffect(() => {
191
191
  const handlePaste = async event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgonza02/goal-image-gallery",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Advanced, accessible, and highly customizable React image gallery component with multi-method upload, responsive design, and extensive TypeScript support",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",