cozy-viewer 23.4.0 → 23.4.2

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.4.2](https://github.com/cozy/cozy-libs/compare/cozy-viewer@23.4.1...cozy-viewer@23.4.2) (2025-09-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Set correct link to open shared drive from toolbar :bug: ([e188e26](https://github.com/cozy/cozy-libs/commit/e188e26d04808c573da2f199d85c93b80c445da2))
11
+
12
+ ## [23.4.1](https://github.com/cozy/cozy-libs/compare/cozy-viewer@23.4.0...cozy-viewer@23.4.1) (2025-09-15)
13
+
14
+ **Note:** Version bump only for package cozy-viewer
15
+
6
16
  # [23.4.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@23.3.2...cozy-viewer@23.4.0) (2025-09-09)
7
17
 
8
18
  ### Features
@@ -57,7 +57,7 @@ var ToolbarFilePath = function ToolbarFilePath() {
57
57
 
58
58
  if (fileWithPath) {
59
59
  var appSlug = 'drive';
60
- var nativePath = "/folder/".concat(fileWithPath.dir_id);
60
+ var nativePath = fileWithPath.driveId ? "/shareddrive/".concat(fileWithPath.driveId, "/").concat(fileWithPath.dir_id) : "/folder/".concat(fileWithPath.dir_id);
61
61
  var path = (0, _helpers.removeFilenameFromPath)(fileWithPath.path);
62
62
  var link = (0, _helpers.makeWebLink)({
63
63
  client: client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-viewer",
3
- "version": "23.4.0",
3
+ "version": "23.4.2",
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": "^33.1.0",
34
+ "cozy-harvest-lib": "^33.1.2",
35
35
  "cozy-intent": "^2.30.0",
36
36
  "cozy-logger": "^1.17.0",
37
- "cozy-sharing": "^26.1.0",
37
+ "cozy-sharing": "^26.1.1",
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": "05e31c76e8d895aae3317c87137820cf9d3eb4f3"
67
+ "gitHead": "cfc81dd73c292a6d112f4e869ff921a876bdffba"
68
68
  }
@@ -38,7 +38,9 @@ const ToolbarFilePath = () => {
38
38
 
39
39
  if (fileWithPath) {
40
40
  const appSlug = 'drive'
41
- const nativePath = `/folder/${fileWithPath.dir_id}`
41
+ const nativePath = fileWithPath.driveId
42
+ ? `/shareddrive/${fileWithPath.driveId}/${fileWithPath.dir_id}`
43
+ : `/folder/${fileWithPath.dir_id}`
42
44
  const path = removeFilenameFromPath(fileWithPath.path)
43
45
  const link = makeWebLink({ client, path: nativePath, slug: appSlug })
44
46