cozy-viewer 2.7.0 → 2.9.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 +22 -0
- package/dist/Panel/getPanelBlocks.js +1 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/package.json +3 -3
- package/src/Panel/getPanelBlocks.jsx +1 -5
- package/src/index.jsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
# [2.9.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@2.8.0...cozy-viewer@2.9.0) (2024-11-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **cozy-viewer:** Exposing the components used by apps at the root ([4a1d9e5](https://github.com/cozy/cozy-libs/commit/4a1d9e5690287bc280edadc2b6e412bc19acd46f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.8.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@2.7.0...cozy-viewer@2.8.0) (2024-11-18)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* Revert to adding filter condition to display konnectorBlock ([87896f9](https://github.com/cozy/cozy-libs/commit/87896f94be7e715dc86002a76ecd59b1046996e6))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [2.7.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@2.6.2...cozy-viewer@2.7.0) (2024-11-18)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -44,12 +44,7 @@ var getPanelBlocksSpecs = function getPanelBlocksSpecs() {
|
|
|
44
44
|
},
|
|
45
45
|
konnector: {
|
|
46
46
|
condition: function condition(file) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return isFromKonnector(file) && !isPublic && // When doc has been edited from mespapiers, we don't want to display the konnector block
|
|
50
|
-
!((_file$cozyMetadata = file.cozyMetadata) !== null && _file$cozyMetadata !== void 0 && (_file$cozyMetadata$up = _file$cozyMetadata.updatedByApps) !== null && _file$cozyMetadata$up !== void 0 && _file$cozyMetadata$up.find(function (app) {
|
|
51
|
-
return app.slug === 'mespapiers';
|
|
52
|
-
}));
|
|
47
|
+
return isFromKonnector(file) && !isPublic;
|
|
53
48
|
},
|
|
54
49
|
component: _KonnectorBlock.default
|
|
55
50
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export { default as ToolbarButtons } from "./components/ToolbarButtons";
|
|
|
6
6
|
export { default as FooterActionButtons } from "./Footer/FooterActionButtons";
|
|
7
7
|
export { default as ForwardButton } from "./Footer/ForwardButton";
|
|
8
8
|
export { default as ForwardOrDownloadButton } from "./Footer/ForwardOrDownloadButton";
|
|
9
|
+
export { default as SharingButton } from "./Footer/Sharing";
|
|
9
10
|
export default ViewerContainer;
|
|
10
11
|
import ViewerContainer from "./ViewerContainer";
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,12 @@ Object.defineProperty(exports, "ForwardOrDownloadButton", {
|
|
|
23
23
|
return _ForwardOrDownloadButton.default;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
+
Object.defineProperty(exports, "SharingButton", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _Sharing.default;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
26
32
|
Object.defineProperty(exports, "ToolbarButtons", {
|
|
27
33
|
enumerable: true,
|
|
28
34
|
get: function get() {
|
|
@@ -71,5 +77,7 @@ var _ForwardButton = _interopRequireDefault(require("./Footer/ForwardButton"));
|
|
|
71
77
|
|
|
72
78
|
var _ForwardOrDownloadButton = _interopRequireDefault(require("./Footer/ForwardOrDownloadButton"));
|
|
73
79
|
|
|
80
|
+
var _Sharing = _interopRequireDefault(require("./Footer/Sharing"));
|
|
81
|
+
|
|
74
82
|
var _default = _ViewerContainer.default;
|
|
75
83
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-viewer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
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": "50.0.0",
|
|
29
29
|
"cozy-device-helper": "2.0.0",
|
|
30
|
-
"cozy-harvest-lib": "^30.6.
|
|
30
|
+
"cozy-harvest-lib": "^30.6.5",
|
|
31
31
|
"cozy-intent": "^2.29.1",
|
|
32
32
|
"cozy-logger": "^1.16.1",
|
|
33
33
|
"cozy-sharing": "14.1.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": ">=16.12.0",
|
|
61
61
|
"react-dom": ">=16.12.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "ea3c2bce5be7248299384e3fe6a4fcd6f6adc9ea"
|
|
64
64
|
}
|
|
@@ -27,11 +27,7 @@ export const getPanelBlocksSpecs = (isPublic = false) => ({
|
|
|
27
27
|
component: Qualification
|
|
28
28
|
},
|
|
29
29
|
konnector: {
|
|
30
|
-
condition: file =>
|
|
31
|
-
isFromKonnector(file) &&
|
|
32
|
-
!isPublic &&
|
|
33
|
-
// When doc has been edited from mespapiers, we don't want to display the konnector block
|
|
34
|
-
!file.cozyMetadata?.updatedByApps?.find(app => app.slug === 'mespapiers'),
|
|
30
|
+
condition: file => isFromKonnector(file) && !isPublic,
|
|
35
31
|
component: KonnectorBlock
|
|
36
32
|
},
|
|
37
33
|
certifications: {
|
package/src/index.jsx
CHANGED
|
@@ -8,5 +8,6 @@ export { default as ToolbarButtons } from './components/ToolbarButtons'
|
|
|
8
8
|
export { default as FooterActionButtons } from './Footer/FooterActionButtons'
|
|
9
9
|
export { default as ForwardButton } from './Footer/ForwardButton'
|
|
10
10
|
export { default as ForwardOrDownloadButton } from './Footer/ForwardOrDownloadButton'
|
|
11
|
+
export { default as SharingButton } from './Footer/Sharing'
|
|
11
12
|
|
|
12
13
|
export default ViewerContainer
|