cozy-viewer 5.0.0 → 5.1.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 CHANGED
@@ -3,6 +3,17 @@
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
+ # [5.1.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@5.0.0...cozy-viewer@5.1.0) (2024-11-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **Viewer:** Add header in location action on mobile ([b512315](https://github.com/cozy/cozy-libs/commit/b5123157d802040241d3803443af2594cf03775d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [5.0.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@4.0.0...cozy-viewer@5.0.0) (2024-11-27)
7
18
 
8
19
 
@@ -19,6 +19,8 @@ var _ActionsMenu = _interopRequireDefault(require("cozy-ui/transpiled/react/Acti
19
19
 
20
20
  var _Actions = require("cozy-ui/transpiled/react/ActionsMenu/Actions");
21
21
 
22
+ var _ActionsMenuMobileHeader = _interopRequireDefault(require("cozy-ui/transpiled/react/ActionsMenu/ActionsMenuMobileHeader"));
23
+
22
24
  var _Icon = _interopRequireDefault(require("cozy-ui/transpiled/react/Icon"));
23
25
 
24
26
  var _IconButton = _interopRequireDefault(require("cozy-ui/transpiled/react/IconButton"));
@@ -118,7 +120,13 @@ var Informations = function Informations(_ref) {
118
120
  onClose: function onClose() {
119
121
  return setShowMenu(false);
120
122
  }
121
- }), /*#__PURE__*/_react.default.createElement(_ListItem.default, null, /*#__PURE__*/_react.default.createElement(_ListItemIcon.default, null, /*#__PURE__*/_react.default.createElement(_Icon.default, {
123
+ }, /*#__PURE__*/_react.default.createElement(_ActionsMenuMobileHeader.default, null, /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
124
+ primary: t('Viewer.panel.informations.location'),
125
+ primaryTypographyProps: {
126
+ align: 'center',
127
+ variant: 'h6'
128
+ }
129
+ }))), /*#__PURE__*/_react.default.createElement(_ListItem.default, null, /*#__PURE__*/_react.default.createElement(_ListItemIcon.default, null, /*#__PURE__*/_react.default.createElement(_Icon.default, {
122
130
  icon: _Calendar.default
123
131
  })), /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
124
132
  primary: creation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-viewer",
3
- "version": "5.0.0",
3
+ "version": "5.1.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.8.2",
30
+ "cozy-harvest-lib": "^30.8.3",
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": "65fc17fd76d5cbf63e3fa5c9b9c874edf5a6639c"
63
+ "gitHead": "47d422f3e552e810b645c228056d2980de4e52fa"
64
64
  }
@@ -7,6 +7,7 @@ import {
7
7
  makeActions,
8
8
  viewInDrive
9
9
  } from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
10
+ import ActionsMenuMobileHeader from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuMobileHeader'
10
11
  import Icon from 'cozy-ui/transpiled/react/Icon'
11
12
  import IconButton from 'cozy-ui/transpiled/react/IconButton'
12
13
  import CalendarIcon from 'cozy-ui/transpiled/react/Icons/Calendar'
@@ -86,7 +87,14 @@ const Informations = ({ file, t }) => {
86
87
  }}
87
88
  autoClose
88
89
  onClose={() => setShowMenu(false)}
89
- />
90
+ >
91
+ <ActionsMenuMobileHeader>
92
+ <ListItemText
93
+ primary={t('Viewer.panel.informations.location')}
94
+ primaryTypographyProps={{ align: 'center', variant: 'h6' }}
95
+ />
96
+ </ActionsMenuMobileHeader>
97
+ </ActionsMenu>
90
98
  )}
91
99
  <ListItem>
92
100
  <ListItemIcon>