@cubone/react-file-manager 1.9.0 → 1.9.1

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/README.md CHANGED
@@ -90,7 +90,7 @@ type File = {
90
90
  | Name | Type | Description |
91
91
  | ------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
92
92
  | `acceptedFileTypes` | string | A comma-separated list of allowed file extensions for uploading files. (e.g.,`.txt, .png, .pdf`). |
93
- | `enableFilePreview` | boolean | A boolean flag indicating whether to use the default file previewer in the file manager. |
93
+ | `enableFilePreview` | boolean | A boolean flag indicating whether to use the default file previewer in the file manager `default: true`. |
94
94
  | `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`. |
95
95
  | `fileUploadConfig` | { url: string; headers?: { [key: string]: string } } | Configuration object for file uploads. It includes the upload URL (`url`) and an optional `headers` object for setting custom HTTP headers in the upload request. The `headers` object can accept any standard or custom headers required by the server. Example: `{ url: "https://example.com/fileupload", headers: { Authorization: "Bearer" + TOKEN, "X-Custom-Header": "value" } }` |
96
96
  | `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. |
@@ -124,10 +124,12 @@ type File = {
124
124
  | Download | `CTRL + D` |
125
125
  | Delete | `DEL` |
126
126
  | Select All Files | `CTRL + A` |
127
- | Jump to First File in the List | `Home` |
128
- | Jump to Last File in the List | `End` |
127
+ | Select Multiple Files | `CTRL + Click` |
128
+ | Select Range of Files | `Shift + Click` |
129
129
  | Switch to List Layout | `CTRL + Shift + 1` |
130
130
  | Switch to Grid Layout | `CTRL + Shift + 2` |
131
+ | Jump to First File in the List | `Home` |
132
+ | Jump to Last File in the List | `End` |
131
133
  | Refresh File List | `F5` |
132
134
  | Clear Selection | `Esc` |
133
135