@scaleflex/widget-core 0.1.2 → 0.2.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/CHANGELOG.md +11 -0
- package/README.md +9 -0
- package/lib/defaultLocale.js +9 -0
- package/lib/index.js +7 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.1.2...v0.2.0) (2025-08-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* implement the recursive remote upload for 3rd parties [FRA-1343] ([4db5cba](https://code.scaleflex.cloud/scaleflex/widget/commits/4db5cba125d155b1d1ab6cdbc68c28ae07d78f4c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.1.2](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.1.1...v0.1.2) (2025-07-30)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @scaleflex/widget-core
|
package/README.md
CHANGED
|
@@ -485,6 +485,15 @@ Upload restrictions:
|
|
|
485
485
|
| **`minNumberOfFiles`** | `number` \| `null` | `null` | minimum number of files before upload can star |
|
|
486
486
|
| **`allowedFileTypes`** | `array` \| `null` | `null` | accepted file types or extensions, eg. `['image/*', 'image/jpeg', '.jpg']` |
|
|
487
487
|
|
|
488
|
+
Folder import restrictions (for 3rd party providers/remote upload):
|
|
489
|
+
|
|
490
|
+
| Property | Type | Default | Description |
|
|
491
|
+
| -------------------------------- | ------------------ | ------------- | ------------------------------------------------------------------------ |
|
|
492
|
+
| **`remoteMaxFolderImportCount`** | `number` \| `null` | `500` | remote upload maximum number of files to import from folders |
|
|
493
|
+
| **`remoteMaxFolderImportSize`** | `number` \| `null` | `10737418240` | remote upload maximum total size of files to import from folders (bytes) |
|
|
494
|
+
| **`remoteMaxFolderDepth`** | `number` \| `null` | `5` | remote upload maximum folder depth level for recursive folder imports |
|
|
495
|
+
| **`remoteMaxFolderCount`** | `number` \| `null` | `100` | remote upload maximum number of folders that can be selected for upload |
|
|
496
|
+
|
|
488
497
|
Upload restrictions can also be governed in the backend by the [Security Template](#securitytemplateid) configured.
|
|
489
498
|
|
|
490
499
|
Download restrictions:
|
package/lib/defaultLocale.js
CHANGED
|
@@ -37,6 +37,15 @@ export default {
|
|
|
37
37
|
0: 'Added %{smart_count} file from %{folder}',
|
|
38
38
|
1: 'Added %{smart_count} files from %{folder}'
|
|
39
39
|
},
|
|
40
|
+
remoteUploadTooManyFilesSelectedError: 'Too many files selected. Please speak to Scaleflex Support if you would like to import more than %{limit} files',
|
|
41
|
+
remoteUploadTotalFileSizeTooBigError: 'Total file size is too big. Please speak to Scaleflex Support if you would like to import more than %{limit}',
|
|
42
|
+
remoteUploadPathTooLongError: 'Path to files is too long. Please select the folder or files directly or speak to Scaleflex Support if you would like to replicate a folder structure deeper than %{limit} levels',
|
|
43
|
+
remoteUploadTooManyFoldersSelectedError: 'Too many folders selected for upload. Please reduce the number of folders selected or speak to Scaleflex Support if you would like to import more than %{limit} folders',
|
|
44
|
+
remoteUploadFolderImportProgressMessage: 'Processing...',
|
|
45
|
+
remoteUploadFolderImportProgressFoldersLabel: 'Folders',
|
|
46
|
+
remoteUploadFolderImportProgressFilesLabel: 'Files',
|
|
47
|
+
remoteUploadFolderImportProgressCancelButton: 'Cancel',
|
|
48
|
+
remoteUploadIncludeSubFoldersCheckbox: 'Include subfolders',
|
|
40
49
|
explorerServiceUnknownBackendError: 'Unknown error while communicating with server, try again later',
|
|
41
50
|
foldersViewNameLabel: 'Name',
|
|
42
51
|
listViewTableColHeaderSize: 'Assets',
|
package/lib/index.js
CHANGED
|
@@ -190,7 +190,13 @@ var Filerobot = /*#__PURE__*/function () {
|
|
|
190
190
|
minNumberOfFiles: null,
|
|
191
191
|
allowedFileTypes: null,
|
|
192
192
|
maxItemsSizeForCompression: null,
|
|
193
|
-
hideRestrictionsInformer: false
|
|
193
|
+
hideRestrictionsInformer: false,
|
|
194
|
+
// Folder import restrictions in remote uploads (GoogleDrive...etc.)
|
|
195
|
+
remoteMaxFolderImportCount: 500,
|
|
196
|
+
remoteMaxFolderImportSize: 10737418240,
|
|
197
|
+
// 10 GB in bytes
|
|
198
|
+
remoteMaxFolderDepth: 5,
|
|
199
|
+
remoteMaxFolderCount: 100
|
|
194
200
|
},
|
|
195
201
|
onBeforeFileAdded: function onBeforeFileAdded(currentFile, files) {
|
|
196
202
|
return currentFile;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/widget-core",
|
|
3
3
|
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, Box, One Drive, S3 and more.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"style": "dist/style.min.css",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@reduxjs/toolkit": "^1.9.5",
|
|
19
19
|
"@scaleflex/icons": "^3.0.0-beta.11",
|
|
20
20
|
"@scaleflex/ui": "^3.0.0-beta.11",
|
|
21
|
-
"@scaleflex/widget-utils": "^0.
|
|
21
|
+
"@scaleflex/widget-utils": "^0.2.0",
|
|
22
22
|
"@transloadit/prettier-bytes": "0.1.0",
|
|
23
23
|
"cuid": "^3.0.0",
|
|
24
24
|
"lodash.throttle": "^4.1.1",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"react": ">=19.0.0",
|
|
35
35
|
"react-dom": ">=19.0.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "26ec7e315c676a2b2060361f58082fc275a2d7bf"
|
|
38
38
|
}
|