@synerise/ds-file-uploader 1.3.8 → 1.3.9
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 +4 -0
- package/README.md +20 -13
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
## [1.3.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-file-uploader@1.3.8...@synerise/ds-file-uploader@1.3.9) (2026-03-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-file-uploader
|
|
9
|
+
|
|
6
10
|
## [1.3.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-file-uploader@1.3.7...@synerise/ds-file-uploader@1.3.8) (2026-03-09)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-file-uploader
|
package/README.md
CHANGED
|
@@ -27,7 +27,6 @@ import FileUploader from '@synerise/ds-file-uploader'
|
|
|
27
27
|
buttonLabel: 'Upload a new file',
|
|
28
28
|
buttonDescription: 'or drag one here',
|
|
29
29
|
size: 'Size:',
|
|
30
|
-
uploading: 'Uploading...',
|
|
31
30
|
}}
|
|
32
31
|
onUpload={files => processFiles(files)}
|
|
33
32
|
/>
|
|
@@ -43,18 +42,19 @@ import FileUploader from '@synerise/ds-file-uploader'
|
|
|
43
42
|
| Property | Description | Type | Default |
|
|
44
43
|
| ----------- | -------------------------------------------------------------------------------- | ----------------------------------------- | -------- |
|
|
45
44
|
| mode | uploader operation mode | `single` / `multi-medium` / `multi-large` | `single` |
|
|
46
|
-
|
|
|
45
|
+
| filesAmount | uploader maximum files number | number | - |
|
|
47
46
|
| description | description shown with uploader | string | - |
|
|
48
47
|
| disabled | whether the uploader should be disabled | boolean | - |
|
|
49
|
-
| removable | whether or not files should be removable | boolean |
|
|
48
|
+
| removable | whether or not files should be removable | boolean | `true` |
|
|
50
49
|
| label | label shown on top of the uploader | string | - |
|
|
51
|
-
|
|
|
50
|
+
| tooltip | display a tooltip near the label (label value is required for tooltip to appear) | string | - |
|
|
52
51
|
| error | display general error | string | - |
|
|
52
|
+
| retry | when true and a file has an error, shows a retry button that re-opens the dialog | boolean | - |
|
|
53
53
|
| texts | texts to display | FileUploaderTexts | - |
|
|
54
|
-
| files | uploaded files | ExtendedFile[] |
|
|
54
|
+
| files | uploaded files | ExtendedFile[] | `[]` |
|
|
55
55
|
| accept | accepted mime types to upload | string[] | - |
|
|
56
|
-
| onRemove | event fired when a file is removed | (file:
|
|
57
|
-
| onUpload | event fired when
|
|
56
|
+
| onRemove | event fired when a file is removed | (file: FileWithContent, index: number) => void | - |
|
|
57
|
+
| onUpload | event fired when files are selected or dropped | (files: FileWithContent[]) => void | - |
|
|
58
58
|
|
|
59
59
|
## ExtendedFile
|
|
60
60
|
|
|
@@ -74,9 +74,16 @@ import FileUploader from '@synerise/ds-file-uploader'
|
|
|
74
74
|
|
|
75
75
|
## FileUploaderTexts
|
|
76
76
|
|
|
77
|
-
| Property | Description
|
|
78
|
-
| ----------------- |
|
|
79
|
-
| buttonLabel | upload button label
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
77
|
+
| Property | Description | Type | Default |
|
|
78
|
+
| ----------------- | -------------------------------------------------------- | ------------------------ | ------- |
|
|
79
|
+
| buttonLabel | upload button label (compact drop zone) | string / React.ReactNode | - |
|
|
80
|
+
| buttonLabelLarge | upload label (multi-large mode, no files uploaded yet) | string / React.ReactNode | - |
|
|
81
|
+
| buttonDescription | upload button description (multi-large mode) | string / React.ReactNode | - |
|
|
82
|
+
| size | file size label prefix | string / React.ReactNode | - |
|
|
83
|
+
| removeTooltip | tooltip text on the remove icon | string / React.ReactNode | - |
|
|
84
|
+
| cancelText | popconfirm cancel button label | string / React.ReactNode | - |
|
|
85
|
+
| okText | popconfirm confirm button label | string / React.ReactNode | - |
|
|
86
|
+
| removeConfirmTitle| popconfirm title | string / React.ReactNode | - |
|
|
87
|
+
| fileWeight | label for file weight during upload | string / React.ReactNode | - |
|
|
88
|
+
| retryLabel | label on the retry button | string / React.ReactNode | - |
|
|
89
|
+
| percent | current upload percentage (passed to ProgressBar) | number | - |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-file-uploader",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "FileUploader UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.5.
|
|
39
|
-
"@synerise/ds-icon": "^1.
|
|
40
|
-
"@synerise/ds-loader": "^1.0.
|
|
41
|
-
"@synerise/ds-popconfirm": "^1.3.
|
|
42
|
-
"@synerise/ds-progress-bar": "^1.
|
|
43
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
44
|
-
"@synerise/ds-typography": "^1.1.
|
|
45
|
-
"@synerise/ds-utils": "^1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.17",
|
|
39
|
+
"@synerise/ds-icon": "^1.15.0",
|
|
40
|
+
"@synerise/ds-loader": "^1.0.13",
|
|
41
|
+
"@synerise/ds-popconfirm": "^1.3.9",
|
|
42
|
+
"@synerise/ds-progress-bar": "^1.2.0",
|
|
43
|
+
"@synerise/ds-tooltip": "^1.4.9",
|
|
44
|
+
"@synerise/ds-typography": "^1.1.12",
|
|
45
|
+
"@synerise/ds-utils": "^1.7.0",
|
|
46
46
|
"filesize.js": "^2.0.0",
|
|
47
47
|
"react-dropzone": "^10.2.1"
|
|
48
48
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
53
53
|
"styled-components": "^5.3.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
|
|
56
56
|
}
|