UNPKG

smart-dropzone-react

Version:

🚀 A production-ready React dropzone component with smart defaults, drag & drop reordering, chunked uploads, resume functionality, and comprehensive provider support (Cloudinary, AWS S3, Supabase)

2 lines • 742 B
'use strict';var chunkBYLIBOAU_cjs=require('./chunk-BYLIBOAU.cjs');var s=class{constructor(e,r={}){chunkBYLIBOAU_cjs.a(this,"name");chunkBYLIBOAU_cjs.a(this,"config");this.name=e,this.config=r;}getName(){return this.name}getConfig(){return {...this.config}}async cleanup(){}},i=class{static register(e,r){this.providers.set(e,r);}static create(e,r){let o=this.providers.get(e);if(!o)throw new Error(`Provider '${e}' not found. Available providers: ${Array.from(this.providers.keys()).join(", ")}`);return new o(r)}static getAvailableProviders(){return Array.from(this.providers.keys())}};chunkBYLIBOAU_cjs.a(i,"providers",new Map);exports.a=s;exports.b=i;//# sourceMappingURL=chunk-734ONACG.cjs.map //# sourceMappingURL=chunk-734ONACG.cjs.map