cozy-sharing 30.0.3 → 30.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 +8 -0
- package/dist/components/Recipient/LinkRecipient.js +9 -4
- package/dist/components/ShareRestrictionModal/BoxEditingRights.js +2 -1
- package/locales/fr.json +3 -3
- package/package.json +2 -2
- package/src/components/Recipient/LinkRecipient.jsx +7 -4
- package/src/components/ShareRestrictionModal/BoxEditingRights.jsx +25 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
# [30.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@30.0.3...cozy-sharing@30.1.0) (2026-04-02)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Hide read write modification in link edition modal ([cc29e55](https://github.com/cozy/cozy-libs/commit/cc29e55f9950c2ed6afae751ff8c87592c44f2c6))
|
|
11
|
+
- Update link sharing french translation ([05bb544](https://github.com/cozy/cozy-libs/commit/05bb544dab03c900030738a9cf589bb4c2868575))
|
|
12
|
+
- Update link sharing look ([f6e66d0](https://github.com/cozy/cozy-libs/commit/f6e66d0ae4d426b8be19ca4dafb2a39c3e1f2df0))
|
|
13
|
+
|
|
6
14
|
## [30.0.3](https://github.com/cozy/cozy-libs/compare/cozy-sharing@30.0.2...cozy-sharing@30.0.3) (2026-04-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package cozy-sharing
|
|
@@ -3,9 +3,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
6
|
-
import
|
|
6
|
+
import Button from 'cozy-ui/transpiled/react/Button';
|
|
7
7
|
import Fade from 'cozy-ui/transpiled/react/Fade';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
|
+
import Gear from 'cozy-ui/transpiled/react/Icons/Gear';
|
|
9
10
|
import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link';
|
|
10
11
|
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
11
12
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
@@ -69,11 +70,15 @@ var LinkRecipient = function LinkRecipient(props) {
|
|
|
69
70
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
70
71
|
icon: LinkIcon
|
|
71
72
|
}))), /*#__PURE__*/React.createElement(ListItemText, {
|
|
72
|
-
primary: /*#__PURE__*/React.createElement(
|
|
73
|
-
|
|
73
|
+
primary: /*#__PURE__*/React.createElement(Button, {
|
|
74
|
+
variant: "ghost",
|
|
74
75
|
onClick: function onClick() {
|
|
75
76
|
return setOpenShareRestrictionModal(true);
|
|
76
|
-
}
|
|
77
|
+
},
|
|
78
|
+
endIcon: /*#__PURE__*/React.createElement(Icon, {
|
|
79
|
+
icon: Gear
|
|
80
|
+
}),
|
|
81
|
+
className: "u-p-0"
|
|
77
82
|
}, textPrimary),
|
|
78
83
|
secondary: textSecondary
|
|
79
84
|
}), RightPart, openShareRestrictionModal && /*#__PURE__*/React.createElement(ShareRestrictionModal, {
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import React, { useReducer, useRef } from 'react';
|
|
4
4
|
import { useClient } from 'cozy-client';
|
|
5
5
|
import { isDirectory as isDir } from 'cozy-client/dist/models/file';
|
|
6
|
+
import flag from 'cozy-flags';
|
|
6
7
|
import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu';
|
|
7
8
|
import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions';
|
|
8
9
|
import Box from 'cozy-ui/transpiled/react/Box';
|
|
@@ -49,7 +50,7 @@ export var BoxEditingRights = function BoxEditingRights(_ref) {
|
|
|
49
50
|
});
|
|
50
51
|
var textPrimary = editingRights === 'readOnly' ? t('BoxEditingRights.readOnlyTitle') : t('BoxEditingRights.editTitle');
|
|
51
52
|
var textSecondary = editingRights === 'readOnly' ? t('Share.permissionLink.readDescription') : t('Share.permissionLink.writeDescription');
|
|
52
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !flag('drive.federated-shared-folder.enabled') && /*#__PURE__*/React.createElement(Box, {
|
|
53
54
|
borderRadius: "0.5rem",
|
|
54
55
|
border: "1px solid var(--borderMainColor)",
|
|
55
56
|
ref: buttonRef
|
package/locales/fr.json
CHANGED
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"locked-type-folder": "Bientôt : vous pourrez changer la permission donnée sur le dossier.",
|
|
26
26
|
"recipients": {
|
|
27
27
|
"you": "Vous",
|
|
28
|
-
"anyoneWithTheLink": "
|
|
29
|
-
"linkWithPassword": "
|
|
28
|
+
"anyoneWithTheLink": "Tous les utilisateurs qui ont le lien",
|
|
29
|
+
"linkWithPassword": "Tous les utilisateurs avec le mot de passe",
|
|
30
30
|
"expires": "Jusqu'au %{date}",
|
|
31
31
|
"accessCount": "%{count} personnes y ont accès"
|
|
32
32
|
},
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"close": "Fermer"
|
|
70
70
|
},
|
|
71
71
|
"permissionLink": {
|
|
72
|
-
"title": "Autoriser
|
|
72
|
+
"title": "Autoriser tous les utilisateurs qui ont le lien à :",
|
|
73
73
|
"seeFile": "Consulter le fichier",
|
|
74
74
|
"modifyFile": "Modifier le fichier",
|
|
75
75
|
"seeFolder": "Consulter le dossier",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "30.0
|
|
3
|
+
"version": "30.1.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"sideEffects": [
|
|
85
85
|
"*.css"
|
|
86
86
|
],
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "82240602517325e92898c05e92de97b887667f55"
|
|
88
88
|
}
|
|
@@ -2,9 +2,10 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React, { useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
5
|
-
import
|
|
5
|
+
import Button from 'cozy-ui/transpiled/react/Button'
|
|
6
6
|
import Fade from 'cozy-ui/transpiled/react/Fade'
|
|
7
7
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
8
|
+
import Gear from 'cozy-ui/transpiled/react/Icons/Gear'
|
|
8
9
|
import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link'
|
|
9
10
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
10
11
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
@@ -68,12 +69,14 @@ const LinkRecipient = props => {
|
|
|
68
69
|
</ListItemIcon>
|
|
69
70
|
<ListItemText
|
|
70
71
|
primary={
|
|
71
|
-
<
|
|
72
|
-
|
|
72
|
+
<Button
|
|
73
|
+
variant="ghost"
|
|
73
74
|
onClick={() => setOpenShareRestrictionModal(true)}
|
|
75
|
+
endIcon={<Icon icon={Gear} />}
|
|
76
|
+
className="u-p-0"
|
|
74
77
|
>
|
|
75
78
|
{textPrimary}
|
|
76
|
-
</
|
|
79
|
+
</Button>
|
|
77
80
|
}
|
|
78
81
|
secondary={textSecondary}
|
|
79
82
|
/>
|
|
@@ -3,6 +3,7 @@ import React, { useReducer, useRef } from 'react'
|
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
5
|
import { isDirectory as isDir } from 'cozy-client/dist/models/file'
|
|
6
|
+
import flag from 'cozy-flags'
|
|
6
7
|
import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
|
|
7
8
|
import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
|
|
8
9
|
import Box from 'cozy-ui/transpiled/react/Box'
|
|
@@ -52,28 +53,30 @@ export const BoxEditingRights = ({ file, editingRights, setEditingRights }) => {
|
|
|
52
53
|
|
|
53
54
|
return (
|
|
54
55
|
<>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
56
|
+
{!flag('drive.federated-shared-folder.enabled') && (
|
|
57
|
+
<Box
|
|
58
|
+
borderRadius="0.5rem"
|
|
59
|
+
border="1px solid var(--borderMainColor)"
|
|
60
|
+
ref={buttonRef}
|
|
61
|
+
>
|
|
62
|
+
<List className="u-p-0">
|
|
63
|
+
<ListItem
|
|
64
|
+
button
|
|
65
|
+
size="large"
|
|
66
|
+
ellipsis={false}
|
|
67
|
+
onClick={toggleMenuDisplayed}
|
|
68
|
+
>
|
|
69
|
+
<ListItemIcon>
|
|
70
|
+
<Icon icon={PeopleIcon} />
|
|
71
|
+
</ListItemIcon>
|
|
72
|
+
<ListItemText primary={textPrimary} secondary={textSecondary} />
|
|
73
|
+
<ListItemIcon className="u-mr-half">
|
|
74
|
+
<Icon icon={BottomIcon} />
|
|
75
|
+
</ListItemIcon>
|
|
76
|
+
</ListItem>
|
|
77
|
+
</List>
|
|
78
|
+
</Box>
|
|
79
|
+
)}
|
|
77
80
|
|
|
78
81
|
<ActionsMenu
|
|
79
82
|
ref={buttonRef}
|