cozy-viewer 12.0.3 → 13.0.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,33 @@
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
+ ## [13.0.1](https://github.com/cozy/cozy-libs/compare/cozy-viewer@13.0.0...cozy-viewer@13.0.1) (2025-01-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Viewer:** Sharing panel is no longer shown on public pages ([c434b12](https://github.com/cozy/cozy-libs/commit/c434b1289dc0b64e59dbfd1113aa484e9e742100))
12
+
13
+
14
+
15
+
16
+
17
+ # [13.0.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@12.0.3...cozy-viewer@13.0.0) (2025-01-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * **Viewer:** Upgrade packages ([3a49402](https://github.com/cozy/cozy-libs/commit/3a494027fef759dd871126b4dfa3e34b7b6d00e8))
23
+
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ * **Viewer:** You must have `cozy-harvest-lib >= 32.2.5`
28
+
29
+
30
+
31
+
32
+
6
33
  ## [12.0.3](https://github.com/cozy/cozy-libs/compare/cozy-viewer@12.0.2...cozy-viewer@12.0.3) (2025-01-08)
7
34
 
8
35
  **Note:** Version bump only for package cozy-viewer
@@ -63,7 +63,7 @@ var getPanelBlocksSpecs = exports.getPanelBlocksSpecs = function getPanelBlocksS
63
63
  },
64
64
  sharing: {
65
65
  condition: function condition() {
66
- return true;
66
+ return !isPublic;
67
67
  },
68
68
  component: _Sharing.default
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-viewer",
3
- "version": "12.0.3",
3
+ "version": "13.0.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",
@@ -27,7 +27,7 @@
27
27
  "babel-preset-cozy-app": "^2.8.1",
28
28
  "cozy-client": "^52.1.0",
29
29
  "cozy-device-helper": "2.0.0",
30
- "cozy-harvest-lib": "^32.2.5",
30
+ "cozy-harvest-lib": "^32.2.7",
31
31
  "cozy-intent": "^2.29.1",
32
32
  "cozy-logger": "^1.16.1",
33
33
  "cozy-sharing": "^19.0.0",
@@ -51,7 +51,7 @@
51
51
  "peerDependencies": {
52
52
  "cozy-client": ">=52.1.0",
53
53
  "cozy-device-helper": ">=2.0.0",
54
- "cozy-harvest-lib": ">=31.0.5",
54
+ "cozy-harvest-lib": ">=32.2.5",
55
55
  "cozy-intent": ">=2.29.1",
56
56
  "cozy-logger": ">=1.9.0",
57
57
  "cozy-sharing": ">=16.11.0",
@@ -59,5 +59,5 @@
59
59
  "react": ">=16.12.0",
60
60
  "react-dom": ">=16.12.0"
61
61
  },
62
- "gitHead": "8bae95b4826e237b45b5fc668f078f9c9d56ff06"
62
+ "gitHead": "c80133d0cba0b877ac8a2b238f4c53310cf6932b"
63
63
  }
@@ -39,7 +39,7 @@ export const getPanelBlocksSpecs = (isPublic = false) => ({
39
39
  component: Informations
40
40
  },
41
41
  sharing: {
42
- condition: () => true,
42
+ condition: () => !isPublic,
43
43
  component: Sharing
44
44
  }
45
45
  })