@jfvilas/react-file-manager 1.0.0
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/LICENSE +21 -0
- package/README.md +241 -0
- package/package.json +72 -0
- package/src/index.js +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Saifullah Zubair
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<p>
|
|
12
|
+
An open-source React.js package for easy integration of a file manager into applications. It provides a user-friendly interface for managing files and folders, including viewing, uploading, and deleting, with full UI and backend integration.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
## ✨ Features
|
|
16
|
+
|
|
17
|
+
- **File & Folder Management**: View, upload, download, delete, copy, move, create, and rename files
|
|
18
|
+
or folders seamlessly.
|
|
19
|
+
- **Grid & List View**: Switch between grid and list views to browse files in your preferred layout.
|
|
20
|
+
- **Navigation**: Use the breadcrumb trail and sidebar navigation pane for quick directory
|
|
21
|
+
traversal.
|
|
22
|
+
- **Toolbar & Context Menu**: Access all common actions (upload, download, delete, copy, move,
|
|
23
|
+
rename, etc.) via the toolbar or right-click for the same options in the context menu.
|
|
24
|
+
- **Multi-Selection**: Select multiple files and folders at once to perform bulk actions like
|
|
25
|
+
delete, copy, move, or download.
|
|
26
|
+
- **Keyboard Shortcuts**: Quickly perform file operations like copy, paste, delete, and more using
|
|
27
|
+
intuitive keyboard shortcuts.
|
|
28
|
+
- **Drag-and-Drop**: Move selected files and folders by dragging them to the desired directory,
|
|
29
|
+
making file organization effortless.
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
## 🚀 Installation
|
|
34
|
+
|
|
35
|
+
To install `React File Manager`, use the following command:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm i @cubone/react-file-manager
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 💻 Usage
|
|
42
|
+
|
|
43
|
+
Here’s a basic example of how to use the File Manager Component in your React application:
|
|
44
|
+
|
|
45
|
+
```jsx
|
|
46
|
+
import { useState } from "react";
|
|
47
|
+
import { FileManager } from "@cubone/react-file-manager";
|
|
48
|
+
import "@cubone/react-file-manager/dist/style.css";
|
|
49
|
+
|
|
50
|
+
function App() {
|
|
51
|
+
const [files, setFiles] = useState([
|
|
52
|
+
{
|
|
53
|
+
name: "Documents",
|
|
54
|
+
isDirectory: true, // Folder
|
|
55
|
+
path: "/Documents", // Located in Root directory
|
|
56
|
+
updatedAt: "2024-09-09T10:30:00Z", // Last updated time
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "Pictures",
|
|
60
|
+
isDirectory: true,
|
|
61
|
+
path: "/Pictures", // Located in Root directory as well
|
|
62
|
+
updatedAt: "2024-09-09T11:00:00Z",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "Pic.png",
|
|
66
|
+
isDirectory: false, // File
|
|
67
|
+
path: "/Pictures/Pic.png", // Located inside the "Pictures" folder
|
|
68
|
+
updatedAt: "2024-09-08T16:45:00Z",
|
|
69
|
+
size: 2048, // File size in bytes (example: 2 KB)
|
|
70
|
+
},
|
|
71
|
+
]);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<>
|
|
75
|
+
<FileManager files={files} />
|
|
76
|
+
</>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export default App;
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## 📂 File Structure
|
|
84
|
+
|
|
85
|
+
The `files` prop accepts an array of objects, where each object represents a file or folder. You can
|
|
86
|
+
customize the structure to meet your application needs. Each file or folder object follows the
|
|
87
|
+
structure detailed below:
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
type File = {
|
|
91
|
+
name: string;
|
|
92
|
+
isDirectory: boolean;
|
|
93
|
+
path: string;
|
|
94
|
+
updatedAt?: string; // Optional: Last update timestamp in ISO 8601 format
|
|
95
|
+
size?: number; // Optional: File size in bytes (only applicable for files)
|
|
96
|
+
};
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## ⚙️ Props
|
|
100
|
+
|
|
101
|
+
| Name | Type | Description |
|
|
102
|
+
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
103
|
+
| `acceptedFileTypes` | string | (Optional) A comma-separated list of allowed file extensions for uploading specific file types (e.g., `.txt, .png, .pdf`). If omitted, all file types are accepted. |
|
|
104
|
+
| `className` | string | CSS class names to apply to the FileManager root element. |
|
|
105
|
+
| `collapsibleNav` | boolean | Enables a collapsible navigation pane on the left side. When `true`, a toggle will be shown to expand or collapse the navigation pane. `default: false`. |
|
|
106
|
+
| `defaultNavExpanded` | boolean | Sets the default expanded (`true`) or collapsed (`false`) state of the navigation pane when `collapsibleNav` is enabled. This only affects the initial render. `default: true`. |
|
|
107
|
+
| `enableFilePreview` | boolean | A boolean flag indicating whether to use the default file previewer in the file manager `default: true`. |
|
|
108
|
+
| `filePreviewPath` | string | The base URL for file previews e.g.`https://example.com`, file path will be appended automatically to it i.e. `https://example.com/yourFilePath`. |
|
|
109
|
+
| `filePreviewComponent` | (file: [File](#-file-structure)) => React.ReactNode | (Optional) A callback function that provides a custom file preview. It receives the selected file as its argument and must return a valid React node, JSX element, or HTML. Use this prop to override the default file preview behavior. Example: [Custom Preview Usage](#custom-file-preview). |
|
|
110
|
+
| `fileUploadConfig` | { url: string; method?: "POST" \| "PUT"; headers?: { [key: string]: string } } | Configuration object for file uploads. It includes the upload URL (`url`), an optional HTTP method (`method`, default is `"POST"`), and an optional `headers` object for setting custom HTTP headers in the upload request. The `method` property allows only `"POST"` or `"PUT"` values. The `headers` object can accept any standard or custom headers required by the server. Example: `{ url: "https://example.com/fileupload", method: "PUT", headers: { Authorization: "Bearer " + TOKEN, "X-Custom-Header": "value" } }` |
|
|
111
|
+
| `files` | Array<[File](#-file-structure)> | An array of file and folder objects representing the current directory structure. Each object includes `name`, `isDirectory`, and `path` properties. |
|
|
112
|
+
| `fontFamily` | string | The font family to be used throughout the component. Accepts any valid CSS font family (e.g., `'Arial, sans-serif'`, `'Roboto'`). You can customize the font styling to match your application's theme. `default: 'Nunito Sans, sans-serif'`. |
|
|
113
|
+
| `formatDate` | (date: string \| Date) => string | (Optional) A custom function used to format file and folder modification dates. If omitted, the component falls back to its built-in formatter from `utils/formatDate`. Useful for adapting the date display to different locales or formats.
|
|
114
|
+
| `height` | string \| number | The height of the component `default: 600px`. Can be a string (e.g., `'100%'`, `'10rem'`) or a number (in pixels). |
|
|
115
|
+
| `initialPath` | string | The path of the directory to be loaded initially e.g. `/Documents`. This should be the path of a folder which is included in `files` array. Default value is `""` |
|
|
116
|
+
| `isLoading` | boolean | A boolean state indicating whether the application is currently performing an operation, such as creating, renaming, or deleting a file/folder. Displays a loading state if set `true`. |
|
|
117
|
+
| `language` | string | A language code used for translations (e.g., `"en-US"`, `"fr-FR"`, `"tr-TR"`). Defaults to `"en-US"` for English. Allows the user to set the desired translation language manually. <br><br>**Available languages:** <br> 🇸🇦 `ar-SA` (Arabic, Saudi Arabia) <br> 🇩🇪 `de-DE` (German, Germany) <br> 🇺🇸 `en-US` (English, United States) <br> 🇪🇸 `es-ES` (Spanish, Spain) <br> 🇫🇷 `fr-FR` (French, France) <br> 🇮🇱 `he-IL` (Hebrew, Israel) <br> 🇮🇳 `hi-IN` (Hindi, India) <br> 🇮🇹 `it-IT` (Italian, Italy) <br> 🇯🇵 `ja-JP` (Japanese, Japan) <br> 🇰🇷 `ko-KR` (Korean, South Korea) <br> 🇧🇷 `pt-BR` (Portuguese, Brazil) <br> 🇵🇹 `pt-PT` (Portuguese, Portugal) <br> 🇷🇺 `ru-RU` (Russian, Russia) <br> 🇹🇷 `tr-TR` (Turkish, Turkey) <br> 🇺🇦 `uk-UA` (Ukrainian, Ukraine) <br> 🇵🇰 `ur-UR` (Urdu, Pakistan) <br> 🇻🇳 `vi-VN` (Vietnamese, Vietnam) <br> 🇨🇳 `zh-CN` (Chinese, Simplified) <br> 🇵🇱 `pl-PL` (Polish, Poland) |
|
|
118
|
+
| `layout` | "list" \| "grid" | Specifies the default layout style for the file manager. Can be either "list" or "grid". Default value is "grid". |
|
|
119
|
+
| `maxFileSize` | number | For limiting the maximum upload file size in bytes. |
|
|
120
|
+
| `onCopy` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback function triggered when one or more files or folders are copied providing copied files as an argument. Use this function to perform custom actions on copy event. |
|
|
121
|
+
| `onCut` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback function triggered when one or more files or folders are cut, providing the cut files as an argument. Use this function to perform custom actions on the cut event. |
|
|
122
|
+
| `onCreateFolder` | (name: string, parentFolder: [File](#-file-structure)) => void | A callback function triggered when a new folder is created. Use this function to update the files state to include the new folder under the specified parent folder using create folder API call to your server. |
|
|
123
|
+
| `onDelete` | (files: Array<[File](#-file-structure)>) => void | A callback function is triggered when one or more files or folders are deleted. |
|
|
124
|
+
| `onDownload` | (files: Array<[File](#-file-structure)>) => void | A callback function triggered when one or more files or folders are downloaded. |
|
|
125
|
+
| `onError` | (error: { type: string, message: string }, file: [File](#-file-structure)) => void | A callback function triggered whenever there is an error in the file manager. Where error is an object containing `type` ("upload", etc.) and a descriptive error `message`. |
|
|
126
|
+
| `onFileOpen` | (file: [File](#-file-structure)) => void | A callback function triggered when a file or folder is opened. |
|
|
127
|
+
| `onFolderChange` | (path: string) => void | A callback function triggered when the active folder changes. Receives the full path of the current folder as a string parameter. Useful for tracking the active folder path. |
|
|
128
|
+
| `onFileUploaded` | (response: { [key: string]: any }) => void | A callback function triggered after a file is successfully uploaded. Provides JSON `response` holding uploaded file details, use it to extract the uploaded file details and add it to the `files` state e.g. `setFiles((prev) => [...prev, JSON.parse(response)]);` |
|
|
129
|
+
| `onFileUploading` | (file: [File](#-file-structure), parentFolder: [File](#-file-structure)) => { [key: string]: any } | A callback function triggered during the file upload process. You can also return an object with key-value pairs that will be appended to the `FormData` along with the file being uploaded. The object can contain any number of valid properties. |
|
|
130
|
+
| `onLayoutChange` | (layout: "list" \| "grid") => void | A callback function triggered when the layout of the file manager is changed. |
|
|
131
|
+
| `onPaste` | (files: Array<[File](#-file-structure)>, destinationFolder: [File](#-file-structure), operationType: "copy" \| "move") => void | A callback function triggered when when one or more files or folders are pasted into a new location. Depending on `operationType`, use this to either copy or move the `sourceItem` to the `destinationFolder`, updating the files state accordingly. |
|
|
132
|
+
| `onRefresh` | () => void | A callback function triggered when the file manager is refreshed. Use this to refresh the `files` state to reflect any changes or updates. |
|
|
133
|
+
| `onRename` | (file: [File](#-file-structure), newName: string) => void | A callback function triggered when a file or folder is renamed. |
|
|
134
|
+
| `onSelectionChange` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback triggered whenever a file or folder is **selected or deselected**. The function receives the updated array of selected files or folders, allowing you to handle selection-related actions such as displaying file details, enabling toolbar actions, or updating the UI. |
|
|
135
|
+
| `onSelect`⚠️(deprecated) | (files: Array<[File](#-file-structure)>) => void | (Optional) Legacy callback triggered only when a file or folder is **selected**. This prop is deprecated and will be removed in the next major release. Please migrate to `onSelectionChange`. |
|
|
136
|
+
| `permissions` | { create?: boolean; upload?: boolean; move?: boolean; copy?: boolean; rename?: boolean; download?: boolean; delete?: boolean; } | An object that controls the availability of specific file management actions. Setting an action to `false` hides it from the toolbar, context menu, and any relevant UI. All actions default to `true` if not specified. This is useful for implementing role-based access control or restricting certain operations. Example: `{ create: false, delete: false }` disables folder creation and file deletion. |
|
|
137
|
+
| `primaryColor` | string | The primary color for the component's theme. Accepts any valid CSS color format (e.g., `'blue'`, `'#E97451'`, `'rgb(52, 152, 219)'`). This color will be applied to buttons, highlights, and other key elements. `default: #6155b4`. |
|
|
138
|
+
| `style` | object | Inline styles applied to the FileManager root element. |
|
|
139
|
+
| `width` | string \| number | The width of the component `default: 100%`. Can be a string (e.g., `'100%'`, `'10rem'`) or a number (in pixels). |
|
|
140
|
+
|
|
141
|
+
## ⌨️ Keyboard Shortcuts
|
|
142
|
+
|
|
143
|
+
| **Action** | **Shortcut** |
|
|
144
|
+
| ------------------------------ | ------------------ |
|
|
145
|
+
| New Folder | `Alt + Shift + N` |
|
|
146
|
+
| Upload Files | `CTRL + U` |
|
|
147
|
+
| Cut | `CTRL + X` |
|
|
148
|
+
| Copy | `CTRL + C` |
|
|
149
|
+
| Paste | `CTRL + V` |
|
|
150
|
+
| Rename | `F2` |
|
|
151
|
+
| Download | `CTRL + D` |
|
|
152
|
+
| Delete | `DEL` |
|
|
153
|
+
| Select All Files | `CTRL + A` |
|
|
154
|
+
| Select Multiple Files | `CTRL + Click` |
|
|
155
|
+
| Select Range of Files | `Shift + Click` |
|
|
156
|
+
| Switch to List Layout | `CTRL + Shift + 1` |
|
|
157
|
+
| Switch to Grid Layout | `CTRL + Shift + 2` |
|
|
158
|
+
| Jump to First File in the List | `Home` |
|
|
159
|
+
| Jump to Last File in the List | `End` |
|
|
160
|
+
| Refresh File List | `F5` |
|
|
161
|
+
| Clear Selection | `Esc` |
|
|
162
|
+
|
|
163
|
+
## 🛡️ Permissions
|
|
164
|
+
|
|
165
|
+
Control file management actions using the `permissions` prop (optional). Actions default to `true`
|
|
166
|
+
if not specified.
|
|
167
|
+
|
|
168
|
+
```jsx
|
|
169
|
+
<FileManager
|
|
170
|
+
// Other props...
|
|
171
|
+
permissions={{
|
|
172
|
+
create: false, // Disable "Create Folder"
|
|
173
|
+
delete: false, // Disable "Delete"
|
|
174
|
+
download: true, // Enable "Download"
|
|
175
|
+
copy: true,
|
|
176
|
+
move: true,
|
|
177
|
+
rename: true,
|
|
178
|
+
upload: true,
|
|
179
|
+
}}
|
|
180
|
+
/>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## </> Custom File Preview
|
|
184
|
+
|
|
185
|
+
The `FileManager` component allows you to provide a custom file preview by passing the
|
|
186
|
+
`filePreviewComponent` prop. This is an optional callback function that receives the selected file
|
|
187
|
+
as an argument and must return a valid React node, JSX element, or HTML.
|
|
188
|
+
|
|
189
|
+
### Usage Example
|
|
190
|
+
|
|
191
|
+
```jsx
|
|
192
|
+
const CustomImagePreviewer = ({ file }) => {
|
|
193
|
+
return <img src={`${file.path}`} alt={file.name} />;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
<FileManager
|
|
197
|
+
// Other props...
|
|
198
|
+
filePreviewComponent={(file) => <CustomImagePreviewer file={file} />}
|
|
199
|
+
/>;
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## 🧭 Handling Current Path
|
|
203
|
+
|
|
204
|
+
By default, the file manager starts in the root directory (`""`). You can override this by passing
|
|
205
|
+
an `initialPath` prop. For example, to start in `/Documents`:
|
|
206
|
+
|
|
207
|
+
```jsx
|
|
208
|
+
<FileManager initialPath="/Documents" />
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Controlled usage with `currentPath`
|
|
212
|
+
|
|
213
|
+
If you want to **track and control** the current folder, you can pair `initialPath` with the
|
|
214
|
+
`onFolderChange` callback. A common pattern is to keep the path in React state:
|
|
215
|
+
|
|
216
|
+
```jsx
|
|
217
|
+
import { useState } from "react";
|
|
218
|
+
|
|
219
|
+
function App() {
|
|
220
|
+
const [currentPath, setCurrentPath] = useState("/Documents");
|
|
221
|
+
|
|
222
|
+
return (
|
|
223
|
+
<FileManager
|
|
224
|
+
// other props...
|
|
225
|
+
initialPath={currentPath}
|
|
226
|
+
onFolderChange={setCurrentPath}
|
|
227
|
+
/>
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Important notes
|
|
233
|
+
|
|
234
|
+
- `initialPath` is applied **only once** when the `files` state is first set.
|
|
235
|
+
- After that, folder changes are driven by `onFolderChange`.
|
|
236
|
+
- If you want to keep the path in sync with user navigation, use a controlled state (as shown
|
|
237
|
+
above).
|
|
238
|
+
|
|
239
|
+
## ©️ License
|
|
240
|
+
|
|
241
|
+
React File Manager is [MIT Licensed](LICENSE).
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jfvilas/react-file-manager",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/react-file-manager.es.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
|
|
19
|
+
"preview": "vite preview",
|
|
20
|
+
"semantic-release": "semantic-release"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"i18next": "^25.0.0",
|
|
24
|
+
"react-collapsed": "^4.2.0",
|
|
25
|
+
"react-icons": "^5.4.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/react": "^18.3.3",
|
|
29
|
+
"@types/react-dom": "^18.3.0",
|
|
30
|
+
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
31
|
+
"axios": "^1.7.7",
|
|
32
|
+
"eslint": "^8.57.0",
|
|
33
|
+
"eslint-plugin-react": "^7.34.2",
|
|
34
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
35
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
|
36
|
+
"react": "^18.3.1",
|
|
37
|
+
"react-dom": "^18.3.1",
|
|
38
|
+
"sass": "^1.77.6",
|
|
39
|
+
"semantic-release": "^24.1.0",
|
|
40
|
+
"vite": "^6.3.6"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=18",
|
|
44
|
+
"react-dom": ">=18"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"react": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"react-dom": {
|
|
51
|
+
"optional": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"description": "React File Manager is an open-source, user-friendly component designed to easily manage files and folders within applications. With smooth drag-and-drop functionality, responsive design, and efficient navigation, it simplifies file handling in any React project.",
|
|
55
|
+
"main": "src/index.js",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/Saifullah-dev/react-file-manager.git"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"react",
|
|
62
|
+
"file-manager",
|
|
63
|
+
"component",
|
|
64
|
+
"react-file explorer"
|
|
65
|
+
],
|
|
66
|
+
"author": "Saifullah Zubair",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "https://github.com/Saifullah-dev/react-file-manager/issues"
|
|
70
|
+
},
|
|
71
|
+
"homepage": "https://github.com/Saifullah-dev/react-file-manager#readme"
|
|
72
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FileManager } from "./FileManager/FileManager";
|