vasuzex 2.1.11 → 2.1.13
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.
|
@@ -63,8 +63,10 @@ export function EnhancedPhotoManager({
|
|
|
63
63
|
description,
|
|
64
64
|
emptyStateText = "No photos uploaded yet",
|
|
65
65
|
maxFiles = 20,
|
|
66
|
+
maxFileSize = 5 * 1024 * 1024, // 5MB default
|
|
66
67
|
gridCols = "grid-cols-2 sm:grid-cols-3 md:grid-cols-4",
|
|
67
68
|
components = {},
|
|
69
|
+
dropzoneProps = {},
|
|
68
70
|
}) {
|
|
69
71
|
const {
|
|
70
72
|
photos = [],
|
|
@@ -210,6 +212,8 @@ export function EnhancedPhotoManager({
|
|
|
210
212
|
onFilesSelected={handleFilesSelected}
|
|
211
213
|
disabled={loading}
|
|
212
214
|
maxFiles={maxFiles - sortedPhotos.length}
|
|
215
|
+
maxSize={dropzoneProps.maxSize || maxFileSize}
|
|
216
|
+
{...dropzoneProps}
|
|
213
217
|
/>
|
|
214
218
|
)}
|
|
215
219
|
|
|
@@ -299,6 +303,8 @@ EnhancedPhotoManager.propTypes = {
|
|
|
299
303
|
emptyStateText: PropTypes.string,
|
|
300
304
|
/** Maximum number of photos */
|
|
301
305
|
maxFiles: PropTypes.number,
|
|
306
|
+
/** Maximum file size in bytes (default 5MB) */
|
|
307
|
+
maxFileSize: PropTypes.number,
|
|
302
308
|
/** Grid columns CSS classes */
|
|
303
309
|
gridCols: PropTypes.string,
|
|
304
310
|
/** Custom components */
|
|
@@ -308,6 +314,8 @@ EnhancedPhotoManager.propTypes = {
|
|
|
308
314
|
UploadProgressCard: PropTypes.elementType,
|
|
309
315
|
TrashIcon: PropTypes.elementType,
|
|
310
316
|
}),
|
|
317
|
+
/** Additional props to pass to UploadDropZone */
|
|
318
|
+
dropzoneProps: PropTypes.object,
|
|
311
319
|
};
|
|
312
320
|
|
|
313
321
|
export default EnhancedPhotoManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasuzex",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
4
4
|
"description": "Laravel-inspired framework for Node.js monorepos - V2 with optimized dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./framework/index.js",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"express": "^5.2.1",
|
|
107
107
|
"express-rate-limit": "^8.2.1",
|
|
108
108
|
"fs-extra": "^11.3.2",
|
|
109
|
-
"guruorm": "^2.0.
|
|
109
|
+
"guruorm": "^2.0.16",
|
|
110
110
|
"helmet": "^8.1.0",
|
|
111
111
|
"inquirer": "^9.3.8",
|
|
112
112
|
"ip2location-nodejs": "^9.7.0",
|