cozy-sharing 25.1.0 → 25.2.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 +13 -0
- package/dist/components/ShareModal/EditableSharingModal.js +5 -13
- package/dist/components/SharingBanner/components/PublicBanner.js +1 -1
- package/locales/en.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +2 -2
- package/src/components/ShareModal/EditableSharingModal.jsx +5 -14
- package/src/components/SharingBanner/components/PublicBanner.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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
|
+
# [25.2.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@25.1.1...cozy-sharing@25.2.0) (2025-04-22)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Update help link ([6302ed2](https://github.com/cozy/cozy-libs/commit/6302ed27ef865ed8a6e3c8854931285764abcbc1))
|
|
11
|
+
- Update Twake wording in sharing banner ([ff4cb07](https://github.com/cozy/cozy-libs/commit/ff4cb07ddb52893c65af46d3d18c9b73b4de4ec7))
|
|
12
|
+
|
|
13
|
+
## [25.1.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@25.1.0...cozy-sharing@25.1.1) (2025-04-02)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **Sharing:** Don't rely anymore on parent to show file recipients ([2e9702e](https://github.com/cozy/cozy-libs/commit/2e9702e3cd2e3863b06cef8e1c497882ba34eff3))
|
|
18
|
+
|
|
6
19
|
# [25.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@25.0.0...cozy-sharing@25.1.0) (2025-03-25)
|
|
7
20
|
|
|
8
21
|
### Bug Fixes
|
|
@@ -28,14 +28,6 @@ export var EditableSharingModal = function EditableSharingModal(_ref) {
|
|
|
28
28
|
revokeSelf = _useSharingContext.revokeSelf,
|
|
29
29
|
share = _useSharingContext.share;
|
|
30
30
|
|
|
31
|
-
var shareFileRefId = hasSharedParent(document.path) ? document.dir_id : document._id;
|
|
32
|
-
var recipients = getRecipients(shareFileRefId);
|
|
33
|
-
var permissions = getDocumentPermissions(shareFileRefId);
|
|
34
|
-
var link = getSharingLink(shareFileRefId);
|
|
35
|
-
var sharing = getSharingForSelf(shareFileRefId);
|
|
36
|
-
|
|
37
|
-
var _isOwner = isOwner(shareFileRefId);
|
|
38
|
-
|
|
39
31
|
return /*#__PURE__*/React.createElement(ShareModal, _extends({
|
|
40
32
|
createContact: function createContact(contact) {
|
|
41
33
|
return client.create(Contact.doctype, contact);
|
|
@@ -44,14 +36,14 @@ export var EditableSharingModal = function EditableSharingModal(_ref) {
|
|
|
44
36
|
documentType: documentType,
|
|
45
37
|
hasSharedChild: documentPath && hasSharedChild(documentPath),
|
|
46
38
|
hasSharedParent: documentPath && hasSharedParent(documentPath),
|
|
47
|
-
isOwner:
|
|
48
|
-
link:
|
|
39
|
+
isOwner: isOwner(document._id),
|
|
40
|
+
link: getSharingLink(document._id),
|
|
49
41
|
onRevoke: revoke,
|
|
50
42
|
onRevokeSelf: revokeSelf,
|
|
51
43
|
onShare: share,
|
|
52
|
-
permissions:
|
|
53
|
-
recipients:
|
|
54
|
-
sharing:
|
|
44
|
+
permissions: getDocumentPermissions(document._id),
|
|
45
|
+
recipients: getRecipients(document._id),
|
|
46
|
+
sharing: getSharingForSelf(document._id)
|
|
55
47
|
}, rest));
|
|
56
48
|
};
|
|
57
49
|
EditableSharingModal.propTypes = {
|
|
@@ -104,7 +104,7 @@ var SharingBannerByLinkText = function SharingBannerByLinkText() {
|
|
|
104
104
|
|
|
105
105
|
var text = t('Share.banner.whats_cozy');
|
|
106
106
|
var knowMore = /*#__PURE__*/React.createElement("a", {
|
|
107
|
-
href: "https://
|
|
107
|
+
href: "https://twake.app",
|
|
108
108
|
target: "_blank",
|
|
109
109
|
className: "u-link",
|
|
110
110
|
rel: "noopener noreferrer"
|
package/locales/en.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"loadingError": "Loading error",
|
|
60
60
|
"banner": {
|
|
61
61
|
"shared_from": "The items below are displayed from  **%{name}**'s Cozy. You can add a link to this share in your Cozy",
|
|
62
|
-
"whats_cozy": "
|
|
62
|
+
"whats_cozy": "Twake is a secure digital home for all your data, hosted in France - ",
|
|
63
63
|
"know_more": "More information",
|
|
64
64
|
"sync_to_mine": "Synchronise |||| Synchronise in my Cozy",
|
|
65
65
|
"add_to_mine": "Add |||| Add to my Cozy",
|
package/locales/fr.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"loadingError": "Erreur de chargement",
|
|
60
60
|
"banner": {
|
|
61
61
|
"shared_from": "Les éléments ci-dessous sont affichés depuis le Cozy de  **%{name}**. Vous pouvez ajouter un lien vers ce partage dans votre Cozy.",
|
|
62
|
-
"whats_cozy": "
|
|
62
|
+
"whats_cozy": "Twake est un domicile numérique sécurisé pour toutes vos données, hébergé en France - ",
|
|
63
63
|
"know_more": "En savoir plus",
|
|
64
64
|
"sync_to_mine": "Synchroniser |||| Synchroniser dans mon Cozy",
|
|
65
65
|
"add_to_mine": "Ajouter |||| Ajouter à mon Cozy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.2.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"sideEffects": [
|
|
80
80
|
"*.css"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "c7916744854d9a55265bf9e5aa21cbb6e0e90a38"
|
|
83
83
|
}
|
|
@@ -26,15 +26,6 @@ export const EditableSharingModal = ({ document, ...rest }) => {
|
|
|
26
26
|
share
|
|
27
27
|
} = useSharingContext()
|
|
28
28
|
|
|
29
|
-
const shareFileRefId = hasSharedParent(document.path)
|
|
30
|
-
? document.dir_id
|
|
31
|
-
: document._id
|
|
32
|
-
const recipients = getRecipients(shareFileRefId)
|
|
33
|
-
const permissions = getDocumentPermissions(shareFileRefId)
|
|
34
|
-
const link = getSharingLink(shareFileRefId)
|
|
35
|
-
const sharing = getSharingForSelf(shareFileRefId)
|
|
36
|
-
const _isOwner = isOwner(shareFileRefId)
|
|
37
|
-
|
|
38
29
|
return (
|
|
39
30
|
<ShareModal
|
|
40
31
|
createContact={contact => client.create(Contact.doctype, contact)}
|
|
@@ -42,14 +33,14 @@ export const EditableSharingModal = ({ document, ...rest }) => {
|
|
|
42
33
|
documentType={documentType}
|
|
43
34
|
hasSharedChild={documentPath && hasSharedChild(documentPath)}
|
|
44
35
|
hasSharedParent={documentPath && hasSharedParent(documentPath)}
|
|
45
|
-
isOwner={
|
|
46
|
-
link={
|
|
36
|
+
isOwner={isOwner(document._id)}
|
|
37
|
+
link={getSharingLink(document._id)}
|
|
47
38
|
onRevoke={revoke}
|
|
48
39
|
onRevokeSelf={revokeSelf}
|
|
49
40
|
onShare={share}
|
|
50
|
-
permissions={
|
|
51
|
-
recipients={
|
|
52
|
-
sharing={
|
|
41
|
+
permissions={getDocumentPermissions(document._id)}
|
|
42
|
+
recipients={getRecipients(document._id)}
|
|
43
|
+
sharing={getSharingForSelf(document._id)}
|
|
53
44
|
{...rest}
|
|
54
45
|
/>
|
|
55
46
|
)
|