vasuzex 2.3.6 → 2.3.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.
@@ -77,6 +77,7 @@ export function EnhancedPhotoManager({
77
77
  deletePhoto,
78
78
  deleteMultiplePhotos,
79
79
  reorderPhotos,
80
+ setPrimaryPhoto,
80
81
  } = photosHook;
81
82
 
82
83
  const [selectedPhotos, setSelectedPhotos] = useState([]);
@@ -255,6 +256,7 @@ export function EnhancedPhotoManager({
255
256
  isSelected={selectedPhotos.includes(photo.id)}
256
257
  onSelect={handlePhotoSelect}
257
258
  onDelete={handlePhotoDelete}
259
+ onSetPrimary={setPrimaryPhoto || undefined}
258
260
  disabled={loading}
259
261
  />
260
262
  ))}
@@ -294,6 +296,7 @@ EnhancedPhotoManager.propTypes = {
294
296
  deletePhoto: PropTypes.func,
295
297
  deleteMultiplePhotos: PropTypes.func,
296
298
  reorderPhotos: PropTypes.func,
299
+ setPrimaryPhoto: PropTypes.func,
297
300
  }).isRequired,
298
301
  /** Section title */
299
302
  title: PropTypes.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vasuzex",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Laravel-inspired framework for Node.js monorepos - V2 with optimized dependencies",
5
5
  "type": "module",
6
6
  "main": "./framework/index.js",