cozy-viewer 13.2.4 → 13.2.5
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 +11 -0
- package/dist/Panel/Qualification.js +4 -5
- package/package.json +3 -3
- package/src/Panel/Qualification.jsx +5 -5
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
|
+
## [13.2.5](https://github.com/cozy/cozy-libs/compare/cozy-viewer@13.2.4...cozy-viewer@13.2.5) (2025-01-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **Viewer:** Now Qualification panel is editable on write share ([ce63d47](https://github.com/cozy/cozy-libs/commit/ce63d47a3cc11c55cb1d3790188ce4a88f91f09a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [13.2.4](https://github.com/cozy/cozy-libs/compare/cozy-viewer@13.2.3...cozy-viewer@13.2.4) (2025-01-20)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package cozy-viewer
|
|
@@ -59,7 +59,6 @@ var ComponentFromMetadataQualificationType = {
|
|
|
59
59
|
|
|
60
60
|
var Qualification = function Qualification(_ref) {
|
|
61
61
|
var file = _ref.file,
|
|
62
|
-
isPublic = _ref.isPublic,
|
|
63
62
|
isReadOnly = _ref.isReadOnly;
|
|
64
63
|
var _file$metadata = file.metadata,
|
|
65
64
|
metadata = _file$metadata === void 0 ? {} : _file$metadata;
|
|
@@ -116,13 +115,13 @@ var Qualification = function Qualification(_ref) {
|
|
|
116
115
|
file: file
|
|
117
116
|
}), (0, _qualification.hasSupportedQualification)(file) ? /*#__PURE__*/_react.default.createElement(_QualificationListItemQualification.default, {
|
|
118
117
|
file: file,
|
|
119
|
-
isReadOnly:
|
|
118
|
+
isReadOnly: isReadOnly,
|
|
120
119
|
onClick: function onClick() {
|
|
121
120
|
return setShowQualifModal(true);
|
|
122
121
|
}
|
|
123
122
|
}) : /*#__PURE__*/_react.default.createElement(_QualificationListItemQualificationEmpty.default, {
|
|
124
123
|
file: file,
|
|
125
|
-
isReadOnly:
|
|
124
|
+
isReadOnly: isReadOnly,
|
|
126
125
|
onClick: function onClick() {
|
|
127
126
|
return setShowQualifModal(true);
|
|
128
127
|
}
|
|
@@ -140,7 +139,7 @@ var Qualification = function Qualification(_ref) {
|
|
|
140
139
|
key: idx
|
|
141
140
|
}, /*#__PURE__*/_react.default.createElement(QualificationListItemComp, {
|
|
142
141
|
file: file,
|
|
143
|
-
isReadOnly:
|
|
142
|
+
isReadOnly: isReadOnly,
|
|
144
143
|
ref: actionBtnRef.current[idx],
|
|
145
144
|
formattedMetadataQualification: meta,
|
|
146
145
|
toggleActionsMenu: function toggleActionsMenu(val) {
|
|
@@ -154,7 +153,7 @@ var Qualification = function Qualification(_ref) {
|
|
|
154
153
|
ref: actionBtnRef.current[optionFile.id],
|
|
155
154
|
file: file,
|
|
156
155
|
optionFile: optionFile,
|
|
157
|
-
isReadOnly:
|
|
156
|
+
isReadOnly: isReadOnly,
|
|
158
157
|
onClose: hideActionsMenu
|
|
159
158
|
})));
|
|
160
159
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-viewer",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.5",
|
|
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.
|
|
30
|
+
"cozy-harvest-lib": "^32.2.15",
|
|
31
31
|
"cozy-intent": "^2.29.1",
|
|
32
32
|
"cozy-logger": "^1.16.1",
|
|
33
33
|
"cozy-sharing": "^19.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react": ">=16.12.0",
|
|
60
60
|
"react-dom": ">=16.12.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "4d064f99c200851e05c30f4b729ad74fdc85566d"
|
|
63
63
|
}
|
|
@@ -34,7 +34,7 @@ const ComponentFromMetadataQualificationType = {
|
|
|
34
34
|
bills: QualificationListItemInformation
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const Qualification = ({ file,
|
|
37
|
+
const Qualification = ({ file, isReadOnly }) => {
|
|
38
38
|
const { metadata = {} } = file
|
|
39
39
|
const actionBtnRef = useRef([])
|
|
40
40
|
const [showQualifModal, setShowQualifModal] = useState(false)
|
|
@@ -75,13 +75,13 @@ const Qualification = ({ file, isPublic, isReadOnly }) => {
|
|
|
75
75
|
{hasSupportedQualification(file) ? (
|
|
76
76
|
<QualificationListItemQualification
|
|
77
77
|
file={file}
|
|
78
|
-
isReadOnly={
|
|
78
|
+
isReadOnly={isReadOnly}
|
|
79
79
|
onClick={() => setShowQualifModal(true)}
|
|
80
80
|
/>
|
|
81
81
|
) : (
|
|
82
82
|
<QualificationListItemQualificationEmpty
|
|
83
83
|
file={file}
|
|
84
|
-
isReadOnly={
|
|
84
|
+
isReadOnly={isReadOnly}
|
|
85
85
|
onClick={() => setShowQualifModal(true)}
|
|
86
86
|
/>
|
|
87
87
|
)}
|
|
@@ -109,7 +109,7 @@ const Qualification = ({ file, isPublic, isReadOnly }) => {
|
|
|
109
109
|
<Fragment key={idx}>
|
|
110
110
|
<QualificationListItemComp
|
|
111
111
|
file={file}
|
|
112
|
-
isReadOnly={
|
|
112
|
+
isReadOnly={isReadOnly}
|
|
113
113
|
ref={actionBtnRef.current[idx]}
|
|
114
114
|
formattedMetadataQualification={meta}
|
|
115
115
|
toggleActionsMenu={val => toggleActionsMenu(idx, name, val)}
|
|
@@ -123,7 +123,7 @@ const Qualification = ({ file, isPublic, isReadOnly }) => {
|
|
|
123
123
|
ref={actionBtnRef.current[optionFile.id]}
|
|
124
124
|
file={file}
|
|
125
125
|
optionFile={optionFile}
|
|
126
|
-
isReadOnly={
|
|
126
|
+
isReadOnly={isReadOnly}
|
|
127
127
|
onClose={hideActionsMenu}
|
|
128
128
|
/>
|
|
129
129
|
)}
|