cozy-viewer 23.2.0 → 23.3.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,16 @@
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
+ ## [23.3.1](https://github.com/cozy/cozy-libs/compare/cozy-viewer@23.3.0...cozy-viewer@23.3.1) (2025-09-04)
7
+
8
+ **Note:** Version bump only for package cozy-viewer
9
+
10
+ # [23.3.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@23.2.0...cozy-viewer@23.3.0) (2025-09-03)
11
+
12
+ ### Features
13
+
14
+ - Update withFileUrl to be used in shared drive :sparkles: ([d6e86ee](https://github.com/cozy/cozy-libs/commit/d6e86ee5881fe733a2b7b5ddfe1408df0a39b260))
15
+
6
16
  # [23.2.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@23.1.5...cozy-viewer@23.2.0) (2025-09-01)
7
17
 
8
18
  ### Features
@@ -155,7 +155,8 @@ var Toolbar = function Toolbar(_ref) {
155
155
  encryptedUrl: url
156
156
  }).action([file], {
157
157
  client: client,
158
- webviewIntent: webviewIntent
158
+ webviewIntent: webviewIntent,
159
+ driveId: file.driveId
159
160
  });
160
161
  }
161
162
  })), ToolbarButtons);
@@ -185,7 +185,9 @@ var withFileUrl = function withFileUrl(BaseComponent) {
185
185
  }, {
186
186
  key: "getDownloadLink",
187
187
  value: function getDownloadLink(file) {
188
- return this.context.client.collection('io.cozy.files').getDownloadLinkById(file._id, file.name);
188
+ return this.context.client.collection('io.cozy.files', {
189
+ driveId: file.driveId
190
+ }).getDownloadLinkById(file._id, file.name);
189
191
  }
190
192
  }, {
191
193
  key: "clearTimeout",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-viewer",
3
- "version": "23.2.0",
3
+ "version": "23.3.1",
4
4
  "description": "Cozy-Viewer provides a component to show files in a viewer.",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -31,10 +31,10 @@
31
31
  "babel-preset-cozy-app": "^2.8.1",
32
32
  "cozy-client": "^57.0.0",
33
33
  "cozy-device-helper": "2.0.0",
34
- "cozy-harvest-lib": "^32.5.0",
34
+ "cozy-harvest-lib": "^32.5.2",
35
35
  "cozy-intent": "^2.30.0",
36
36
  "cozy-logger": "^1.17.0",
37
- "cozy-sharing": "^25.7.2",
37
+ "cozy-sharing": "^26.0.0",
38
38
  "cozy-ui": "^126.0.0",
39
39
  "identity-obj-proxy": "3.0.0",
40
40
  "jest": "26.6.3",
@@ -64,5 +64,5 @@
64
64
  "react": ">=16.12.0",
65
65
  "react-dom": ">=16.12.0"
66
66
  },
67
- "gitHead": "110b201fa4ddf5c89dfa634b88b6e495b410e90f"
67
+ "gitHead": "0f3d2c236ac73a6d1154634d80d0f00edba5b827"
68
68
  }
@@ -112,7 +112,8 @@ const Toolbar = ({
112
112
  onClick={() =>
113
113
  download({ encryptedUrl: url }).action([file], {
114
114
  client,
115
- webviewIntent
115
+ webviewIntent,
116
+ driveId: file.driveId
116
117
  })
117
118
  }
118
119
  />
@@ -65,7 +65,7 @@ const withFileUrl = BaseComponent =>
65
65
 
66
66
  getDownloadLink(file) {
67
67
  return this.context.client
68
- .collection('io.cozy.files')
68
+ .collection('io.cozy.files', { driveId: file.driveId })
69
69
  .getDownloadLinkById(file._id, file.name)
70
70
  }
71
71