@scaleflex/widget-core 0.1.2 → 0.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.1](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.2.0...v0.2.1) (2025-08-06)
7
+
8
+ **Note:** Version bump only for package @scaleflex/widget-core
9
+
10
+
11
+
12
+
13
+
14
+ # [0.2.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.1.2...v0.2.0) (2025-08-05)
15
+
16
+
17
+ ### Features
18
+
19
+ * implement the recursive remote upload for 3rd parties [FRA-1343] ([4db5cba](https://code.scaleflex.cloud/scaleflex/widget/commits/4db5cba125d155b1d1ab6cdbc68c28ae07d78f4c))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.1.2](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.1.1...v0.1.2) (2025-07-30)
7
26
 
8
27
  **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:
@@ -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.1.2",
4
+ "version": "0.2.1",
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.1.2",
21
+ "@scaleflex/widget-utils": "^0.2.1",
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": "de62b98bdb3e1dcbb4adaba9f0b4661b1bf1564e"
37
+ "gitHead": "a195e3fe116e2bec65550e5390ae71496eec0d90"
38
38
  }