cozy-sharing 37.5.4 → 37.6.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 +11 -0
- package/README.md +3 -2
- package/dist/SharingProvider.js +270 -196
- package/dist/SharingProvider.spec.js +34 -4
- package/dist/components/FederatedFolder/FederatedFolderModal.js +61 -82
- package/dist/components/FederatedFolder/FederatedFolderModal.spec.js +19 -8
- package/dist/components/ShareDialogCozyToCozy.js +21 -108
- package/dist/components/ShareModal/EditableSharingModal.js +44 -8
- package/dist/components/ShareModal/ShareModal.js +2 -2
- package/dist/components/ShareModal.js +2 -2
- package/dist/components/SharingContent.js +92 -0
- package/dist/helpers/effectiveRecipients.js +40 -0
- package/dist/helpers/effectiveRecipients.spec.js +134 -0
- package/dist/state.js +68 -1
- package/dist/state.spec.js +2 -1
- package/package.json +3 -3
- package/src/SharingProvider.jsx +61 -1
- package/src/SharingProvider.spec.jsx +28 -2
- package/src/components/FederatedFolder/FederatedFolderModal.jsx +50 -65
- package/src/components/FederatedFolder/FederatedFolderModal.spec.jsx +16 -8
- package/src/components/ShareDialogCozyToCozy.jsx +1 -87
- package/src/components/ShareModal/EditableSharingModal.jsx +61 -8
- package/src/components/ShareModal/ShareModal.jsx +2 -2
- package/src/components/ShareModal.jsx +2 -2
- package/src/components/SharingContent.jsx +94 -0
- package/src/helpers/effectiveRecipients.js +34 -0
- package/src/helpers/effectiveRecipients.spec.js +125 -0
- package/src/state.js +52 -1
- package/src/state.spec.js +2 -1
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
|
+
# [37.6.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.5.5...cozy-sharing@37.6.0) (2026-09-07)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **cozy-sharing:** Add tools to get and manager effective recipients ([d1bacbf](https://github.com/cozy/cozy-libs/commit/d1bacbf2d13cefd1863677d13a420964796a3d03))
|
|
11
|
+
- **cozy-sharing:** Show effective recipients in share modals ([e4f36aa](https://github.com/cozy/cozy-libs/commit/e4f36aa619762b5dfb2d64d3acdec38c011553b1))
|
|
12
|
+
|
|
13
|
+
## [37.5.5](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.5.4...cozy-sharing@37.5.5) (2026-09-01)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package cozy-sharing
|
|
16
|
+
|
|
6
17
|
## [37.5.4](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.5.3...cozy-sharing@37.5.4) (2026-08-31)
|
|
7
18
|
|
|
8
19
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -171,7 +171,8 @@ Link and email sharing can coexist on the same resource. The recipient's permiss
|
|
|
171
171
|
| Condition | Rule | Source |
|
|
172
172
|
|-----------|------|--------|
|
|
173
173
|
| Who can share | Owner or Editor (`canReshare`) | `SharingProvider.jsx` |
|
|
174
|
-
|
|
|
174
|
+
| Nested sharing | When `drive.federated-shared-folder.enabled` is on, the `hasSharedParent` / `hasSharedChild` gates are removed so a folder can be shared by email even inside a shared parent or containing a shared child. When the flag is off, the gates remain active (behavior unchanged). | `ShareModal.jsx`, `FederatedFolderModal.jsx` |
|
|
175
|
+
| Effective recipients | When `drive.federated-shared-folder.enabled` is on, the Share modal shows the combined list of direct and inherited recipients via `client.collection('io.cozy.sharings').fetchEffectiveRecipients(fileId, { driveId })`, stored in the SharingProvider redux store. All recipients are rendered with the same actions (revoke, RO/RW). When the flag is off, recipients come from the store's direct sharings as before. | `SharingProvider.jsx`, `helpers/effectiveRecipients.js`, `EditableSharingModal.jsx`, `FederatedFolderModal.jsx` |
|
|
175
176
|
| Recipients limit | Default 100; overridable via `sharing.recipients-limit` flag | `helpers/recipients.js:33` |
|
|
176
177
|
| Recipient display mode | `sharing.show-recipient-groups` flag: `true` = groups as units, `false` = spread group members | `ShareByEmail.jsx:31` |
|
|
177
178
|
| Read-only sharing | If the existing sharing is read-only, only the `readOnly` option is offered | `ShareByEmail.jsx:46-57` |
|
|
@@ -186,7 +187,7 @@ Link and email sharing can coexist on the same resource. The recipient's permiss
|
|
|
186
187
|
| `canLeave` | `false` for org shared drives | `state.js:335` |
|
|
187
188
|
| `canReshare` | `!org_drive && !read_only` for drives; `open_sharing && !read_only` for folders | `state.js:342` |
|
|
188
189
|
| Federated folder modal | Enabled by `drive.federated-shared-folder.enabled` flag and `document.driveId` | `ShareModal.jsx:39` |
|
|
189
|
-
| Email sharing in federated folder | Disabled for files inside a
|
|
190
|
+
| Email sharing in federated folder | Disabled for files inside a shared drive (has `driveId` but is not the root) | `FederatedFolderModal.jsx` |
|
|
190
191
|
| Link sharing in federated folder | Uses `getFederatedShareLink` which resolves the owner's instance URL | `FederatedFolderModal.jsx:108-110` |
|
|
191
192
|
| Member view inside shared drive | Subfolder members see link management only (no member cross/perm). Root members with `canReshare` see full member management; read-only root members see link management only. | `FederatedFolderModal.jsx:118-133`, `SharingDetailsModal.jsx:38-39` |
|
|
192
193
|
|