cozy-ui 127.15.0 → 127.16.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 +7 -0
- package/package.json +1 -1
- package/react/ActionsMenu/Actions/download.js +8 -2
- package/react/FileImageLoader/index.jsx +1 -1
- package/transpiled/react/ActionsMenu/Actions/download.d.ts +2 -1
- package/transpiled/react/ActionsMenu/Actions/download.js +4 -2
- package/transpiled/react/FileImageLoader/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [127.16.0](https://github.com/cozy/cozy-ui/compare/v127.15.0...v127.16.0) (2025-08-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Update FileImageLoader to be used in shared drive :sparkles: ([cb4db8f](https://github.com/cozy/cozy-ui/commit/cb4db8f))
|
|
7
|
+
|
|
1
8
|
# [127.15.0](https://github.com/cozy/cozy-ui/compare/v127.14.0...v127.15.0) (2025-08-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -36,7 +36,13 @@ export const download = ({ encryptedUrl }) => {
|
|
|
36
36
|
icon,
|
|
37
37
|
label,
|
|
38
38
|
Component: makeComponent(label, icon),
|
|
39
|
-
action: (docs, { client, webviewIntent }) =>
|
|
40
|
-
downloadFile({
|
|
39
|
+
action: (docs, { client, webviewIntent, driveId }) =>
|
|
40
|
+
downloadFile({
|
|
41
|
+
client,
|
|
42
|
+
file: docs[0],
|
|
43
|
+
url: encryptedUrl,
|
|
44
|
+
webviewIntent,
|
|
45
|
+
driveId
|
|
46
|
+
})
|
|
41
47
|
}
|
|
42
48
|
}
|
|
@@ -142,7 +142,7 @@ export class FileImageLoader extends Component {
|
|
|
142
142
|
throw new Error('No pdf files fallback')
|
|
143
143
|
}
|
|
144
144
|
const src = await client
|
|
145
|
-
.collection('io.cozy.files')
|
|
145
|
+
.collection('io.cozy.files', { driveId: file.driveId })
|
|
146
146
|
.getDownloadLinkById(this.getFileId(file), file.name)
|
|
147
147
|
await checkImageSource(src)
|
|
148
148
|
if (this._mounted) {
|
|
@@ -5,9 +5,10 @@ export function download({ encryptedUrl }: {
|
|
|
5
5
|
icon: typeof DownloadIcon;
|
|
6
6
|
label: any;
|
|
7
7
|
Component: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
8
|
-
action: (docs: any, { client, webviewIntent }: {
|
|
8
|
+
action: (docs: any, { client, webviewIntent, driveId }: {
|
|
9
9
|
client: any;
|
|
10
10
|
webviewIntent: any;
|
|
11
|
+
driveId: any;
|
|
11
12
|
}) => any;
|
|
12
13
|
};
|
|
13
14
|
import DownloadIcon from "../../Icons/Download";
|
|
@@ -37,12 +37,14 @@ export var download = function download(_ref) {
|
|
|
37
37
|
Component: makeComponent(label, icon),
|
|
38
38
|
action: function action(docs, _ref2) {
|
|
39
39
|
var client = _ref2.client,
|
|
40
|
-
webviewIntent = _ref2.webviewIntent
|
|
40
|
+
webviewIntent = _ref2.webviewIntent,
|
|
41
|
+
driveId = _ref2.driveId;
|
|
41
42
|
return downloadFile({
|
|
42
43
|
client: client,
|
|
43
44
|
file: docs[0],
|
|
44
45
|
url: encryptedUrl,
|
|
45
|
-
webviewIntent: webviewIntent
|
|
46
|
+
webviewIntent: webviewIntent,
|
|
47
|
+
driveId: driveId
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
50
|
};
|
|
@@ -294,7 +294,9 @@ export var FileImageLoader = /*#__PURE__*/function (_Component) {
|
|
|
294
294
|
|
|
295
295
|
case 5:
|
|
296
296
|
_context4.next = 7;
|
|
297
|
-
return client.collection('io.cozy.files'
|
|
297
|
+
return client.collection('io.cozy.files', {
|
|
298
|
+
driveId: file.driveId
|
|
299
|
+
}).getDownloadLinkById(this.getFileId(file), file.name);
|
|
298
300
|
|
|
299
301
|
case 7:
|
|
300
302
|
src = _context4.sent;
|