cozy-sharing 21.2.1 → 21.3.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/SharingProvider.js +4 -3
  3. package/dist/assets/illustrations/illustration-shared-drives.svg +1 -0
  4. package/dist/components/Avatar/AvatarList.js +0 -1
  5. package/dist/components/Identity/ExtraIdentity.js +0 -1
  6. package/dist/components/Identity/Identity.js +0 -1
  7. package/dist/components/Identity/MemberIdentity.js +0 -1
  8. package/dist/components/Identity/OwnerIdentity.js +0 -1
  9. package/dist/components/Recipient/GroupRecipient.js +0 -1
  10. package/dist/components/Recipient/GroupRecipientPermissions.js +0 -4
  11. package/dist/components/Recipient/LinkRecipient.js +0 -2
  12. package/dist/components/Recipient/LinkRecipientLite.js +0 -1
  13. package/dist/components/Recipient/MemberRecipient.js +0 -1
  14. package/dist/components/Recipient/MemberRecipientLite.js +3 -2
  15. package/dist/components/Recipient/MemberRecipientPermissions.js +0 -4
  16. package/dist/components/Recipient/MemberRecipientStatus.js +4 -22
  17. package/dist/components/Recipient/RecipientList.js +15 -0
  18. package/dist/components/Recipient/actions/revokeSharedDriveMember.js +41 -0
  19. package/dist/components/Recipient/actions/setReadOnlySharedPermission.js +54 -0
  20. package/dist/components/Recipient/actions/setReadWriteSharedPermission.js +54 -0
  21. package/dist/components/ShareByEmail.js +32 -19
  22. package/dist/components/ShareDialogCozyToCozy.js +0 -2
  23. package/dist/components/ShareDialogTwoStepsConfirmationContainer.js +0 -2
  24. package/dist/components/ShareModal/EditableSharingModal.js +13 -5
  25. package/dist/components/ShareModal.js +0 -3
  26. package/dist/components/ShareRestrictionModal/BoxEditingRights.js +0 -4
  27. package/dist/components/SharedDrive/SharedDriveModal.js +350 -0
  28. package/dist/components/SharedDrive/SharedDriveRecipient.js +61 -0
  29. package/dist/components/SharedDrive/SharedDriveRecipientPermissions.js +101 -0
  30. package/dist/components/SharedDrive/SharedDriveRecipientStatus.js +22 -0
  31. package/dist/components/SharedDrive/helpers.js +53 -0
  32. package/dist/components/WhoHasAccess.js +3 -1
  33. package/dist/components/WhoHasAccessLight.js +0 -1
  34. package/dist/index.js +1 -0
  35. package/dist/styles/autosuggest.styl +6 -2
  36. package/dist/styles/recipient.styl +0 -3
  37. package/dist/styles/shareddrive.styl +8 -0
  38. package/dist/stylesheet.css +20 -4
  39. package/locales/en.json +16 -0
  40. package/locales/fr.json +16 -0
  41. package/package.json +2 -2
  42. package/src/SharingProvider.jsx +4 -2
  43. package/src/assets/illustrations/illustration-shared-drives.svg +1 -0
  44. package/src/components/Recipient/GroupRecipient.jsx +1 -5
  45. package/src/components/Recipient/GroupRecipientPermissions.jsx +0 -4
  46. package/src/components/Recipient/LinkRecipient.jsx +1 -5
  47. package/src/components/Recipient/MemberRecipient.jsx +1 -1
  48. package/src/components/Recipient/MemberRecipientLite.jsx +3 -3
  49. package/src/components/Recipient/MemberRecipientPermissions.jsx +0 -4
  50. package/src/components/Recipient/MemberRecipientStatus.jsx +7 -17
  51. package/src/components/Recipient/RecipientList.jsx +18 -0
  52. package/src/components/Recipient/actions/revokeSharedDriveMember.js +41 -0
  53. package/src/components/Recipient/actions/setReadOnlySharedPermission.js +43 -0
  54. package/src/components/Recipient/actions/setReadWriteSharedPermission.js +43 -0
  55. package/src/components/ShareByEmail.jsx +33 -23
  56. package/src/components/ShareDialogCozyToCozy.jsx +0 -2
  57. package/src/components/ShareDialogTwoStepsConfirmationContainer.jsx +0 -2
  58. package/src/components/ShareModal/EditableSharingModal.jsx +14 -5
  59. package/src/components/ShareModal.jsx +0 -3
  60. package/src/components/ShareRestrictionModal/BoxEditingRights.jsx +0 -4
  61. package/src/components/SharedDrive/SharedDriveModal.jsx +196 -0
  62. package/src/components/SharedDrive/SharedDriveRecipient.jsx +62 -0
  63. package/src/components/SharedDrive/SharedDriveRecipientPermissions.jsx +77 -0
  64. package/src/components/SharedDrive/SharedDriveRecipientStatus.jsx +23 -0
  65. package/src/components/SharedDrive/helpers.js +60 -0
  66. package/src/components/WhoHasAccess.jsx +3 -1
  67. package/src/index.jsx +1 -0
  68. package/src/styles/autosuggest.styl +6 -2
  69. package/src/styles/recipient.styl +0 -3
  70. package/src/styles/shareddrive.styl +8 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
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
+ # [21.3.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.2...cozy-sharing@21.3.0) (2025-02-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add a basic new shared drive modal ([a554807](https://github.com/cozy/cozy-libs/commit/a55480749600410871b74e3284f23f5d57d71605))
12
+ * Allow to create a shared drive in the share method ([c5efffe](https://github.com/cozy/cozy-libs/commit/c5efffee257519a4e83d74a4c263395239d5fd02))
13
+ * Allow to customize autosuggest submit label ([6b619df](https://github.com/cozy/cozy-libs/commit/6b619dffc96d020e3bc031a73f3c622afdd77343))
14
+ * Allow to disable notifications on contact selection ([a62e48d](https://github.com/cozy/cozy-libs/commit/a62e48db450620bb42e9d5e568fdc861ee6a0650))
15
+ * Display notification and close modal on shared drive creation ([10bff21](https://github.com/cozy/cozy-libs/commit/10bff21516fa3159ce04e15c332044fe462636cc))
16
+ * Manage changing permissions in NewSharedDriveModal ([9aba037](https://github.com/cozy/cozy-libs/commit/9aba0371d9d3a993523a5d6968eac7c4d9d1ec3f))
17
+
18
+
19
+
20
+
21
+
22
+ ## [21.2.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.1...cozy-sharing@21.2.2) (2025-02-04)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **Sharing:** Show all share recipients in the “who has access” modal ([8669e6b](https://github.com/cozy/cozy-libs/commit/8669e6b8d8650bbd6645a9be94db403121059e70))
28
+ * **Sharing:** Show correct sharing status by user ([55f5a43](https://github.com/cozy/cozy-libs/commit/55f5a43ca5426da991ab76c7f96faa6ccae00a11))
29
+
30
+
31
+ ### Reverts
32
+
33
+ * Revert "fix(Sharing): Show correct sharing status by user" ([547a458](https://github.com/cozy/cozy-libs/commit/547a458b1dc4cb64724345c753eff153f7830a8a))
34
+
35
+
36
+
37
+
38
+
6
39
  ## [21.2.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.0...cozy-sharing@21.2.1) (2025-01-28)
7
40
 
8
41
  **Note:** Version bump only for package cozy-sharing
@@ -123,12 +123,12 @@ export var SharingProvider = /*#__PURE__*/function (_Component) {
123
123
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
124
124
  var _this2$props$previewP;
125
125
 
126
- var document, recipients, readOnlyRecipients, description, openSharing, _this2$props2, client, doctype, sharing, sharingResult, previewPath, _yield$_this2$sharing, data;
126
+ var document, recipients, readOnlyRecipients, description, openSharing, sharedDrive, _this2$props2, client, doctype, sharing, sharingResult, previewPath, _yield$_this2$sharing, data;
127
127
 
128
128
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
129
129
  while (1) switch (_context2.prev = _context2.next) {
130
130
  case 0:
131
- document = _ref2.document, recipients = _ref2.recipients, readOnlyRecipients = _ref2.readOnlyRecipients, description = _ref2.description, openSharing = _ref2.openSharing;
131
+ document = _ref2.document, recipients = _ref2.recipients, readOnlyRecipients = _ref2.readOnlyRecipients, description = _ref2.description, openSharing = _ref2.openSharing, sharedDrive = _ref2.sharedDrive;
132
132
  _this2$props2 = _this2.props, client = _this2$props2.client, doctype = _this2$props2.doctype;
133
133
  sharing = getDocumentSharing(_this2.state, document.id);
134
134
 
@@ -165,7 +165,8 @@ export var SharingProvider = /*#__PURE__*/function (_Component) {
165
165
  readOnlyRecipients: readOnlyRecipients,
166
166
  description: description,
167
167
  previewPath: previewPath,
168
- openSharing: openSharing
168
+ openSharing: openSharing,
169
+ sharedDrive: sharedDrive
169
170
  });
170
171
 
171
172
  case 13:
@@ -0,0 +1 @@
1
+ <svg width="200" height="136" viewBox="0 0 200 136" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M161 14.592c-1.888.222-7.568-.664-15.182-5.982-9.518-6.647-13.847-8.724-22.434-4.183C115 8.86 115.227 23.012 115 27" stroke="#CEBEF7" stroke-width="4" stroke-linecap="round"/><path d="M165.844 92c5.431-3.51 16.097-12.335 15.315-19.555-.977-9.025-12.708-11.281-22.81-10.78-10.101.502-17.596 4.513-28.349 1.504" stroke="#B9F6F7" stroke-width="4" stroke-linecap="round"/><path d="M23.495 72c-.329 4.729-2.425 21.765 5.479 27.308 9.88 6.928 23.668-1.244 30.831-5.203C66.97 90.146 79.072 83.217 85 85.527" stroke="#FFD799" stroke-width="4" stroke-linecap="round"/><circle cx="100" cy="64" fill="#297EF2" r="48"/><circle cx="148" cy="104" r="24" fill="#B9F6F7"/><path fill-rule="evenodd" clip-rule="evenodd" d="M148 106c-4.418 0-8-4.029-8-9 0-4.97 3.582-9 8-9s8 4.03 8 9c0 4.971-3.582 9-8 9Zm-16 10c0-2 4-8 8-8s2 2 8 2 4-2 8-2 8 6 8 8 0 4-2 4h-28c-2 0-2-2-2-4Z" fill="#38D1D3"/><circle cx="148" cy="104" r="20" stroke="#B9F6F7" stroke-width="8"/><circle cx="24" cy="65" r="24" fill="#FFD799"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24 67c-4.418 0-8-4.03-8-9s3.582-9 8-9 8 4.03 8 9-3.582 9-8 9ZM8 77c0-2 4-8 8-8s2 2 8 2 4-2 8-2 8 6 8 8 0 4-2 4H10c-2 0-2-2-2-4Z" fill="#FF9300"/><circle cx="24" cy="65" r="20" stroke="#FFD799" stroke-width="8"/><circle cx="172" cy="28" r="24" fill="#CEBEF7"/><path fill-rule="evenodd" clip-rule="evenodd" d="M172 30c-4.418 0-8-4.03-8-9s3.582-9 8-9 8 4.03 8 9-3.582 9-8 9Zm-16 10c0-2 4-8 8-8s2 2 8 2 4-2 8-2 8 6 8 8 0 4-2 4h-28c-2 0-2-2-2-4Z" fill="#855CEA"/><circle cx="172" cy="28" r="20" stroke="#CEBEF7" stroke-width="8"/><path d="M66.418 133.29a81.818 81.818 0 0 0 16.142 2.244c16.166.948 38.758.424 48.325-1.346 9.567-1.771 10.083-4.465-14.448-5.812-20.925-1.147-45.26.474-50.362 2.894-1.52.648-1.447 1.371.343 2.02Z" fill="#BBD9FD"/><path d="M80.198 64.752a6 6 0 0 1 4.686-2.252h30.232c1.823 0 3.547.828 4.685 2.252l3.213 4.015c.638.798.986 1.79.986 2.812V76H76v-4.421a4.5 4.5 0 0 1 .986-2.812l3.212-4.015ZM80.198 43.752a6 6 0 0 1 4.686-2.252h30.232c1.823 0 3.547.828 4.685 2.252l3.213 4.015c.638.798.986 1.79.986 2.811V55H76v-4.422a4.5 4.5 0 0 1 .986-2.81l3.212-4.016Z" fill="#fff"/><path d="M76 71.5a3 3 0 0 1 3-3h42a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H79a3 3 0 0 1-3-3v-12ZM76 50.5a3 3 0 0 1 3-3h42a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H79a3 3 0 0 1-3-3v-12Z" fill="#B2D3FF"/><path d="M88 77.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM88 56.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" fill="#fff"/><path d="M194.751 99.667c1.695-.06 1.635-2.667-.06-2.667-.303 0-.606 0-.909.182v-.849c-.06-.727-.544-1.333-1.331-1.333-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.211.06 0 .182.06.364.06.607.061 1.757 2.785 1.757 2.664 0 0-.182 0-.364-.061-.546.303-.121.666-.121.969-.242ZM48.112 111.445c1.212-.045 1.17-1.968-.043-1.968-.216 0-.433 0-.65.134v-.627c-.043-.537-.389-.984-.952-.984-.476 0-.995.447-.952.984v.537H45.3c-.13-.044-.217 0-.347 0-.649 0-.952.671-.952 1.164 0 .492.26.715.65.85.259.134.562.044.865.044 0 .135.043.269.043.448.044 1.297 1.992 1.297 1.905 0 0-.134 0-.269-.043-.403.216-.089.476-.089.692-.179ZM176.04 97.024c.121.424.424.788.666.97.666.424 1.695.303 2.179-.425.484-.666.545-1.757-.484-2.363-.908-.546-1.998.06-2.301 1.03-.121.242-.121.485-.06.788Z" fill="#BBD9FD"/><path d="M185.045 86.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.544-1.757-.545-2.363-.908-.546-1.998.06-2.301 1.03-.06.242-.06.545 0 .788ZM28.09 29.576c1.695-.06 1.634-2.667-.061-2.667-.303 0-.605 0-.908.182V26.243c-.06-.788-.545-1.394-1.332-1.394-.666 0-1.392.606-1.332 1.333v.727h-.303c-.181-.06-.302 0-.484 0-.908 0-1.332.91-1.332 1.576 0 .667.364.97.908 1.152.364.181.787.06 1.211.06 0 .182.06.364.06.606.061 1.758 2.785 1.758 2.664 0 0-.182 0-.364-.06-.545.303 0 .666-.06.968-.182ZM78.751 8.667C80.446 8.607 80.386 6 78.691 6c-.303 0-.606 0-.909.182v-.849C77.722 4.606 77.239 4 76.451 4c-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.21.06 0 .182.061.364.061.607.06 1.757 2.785 1.757 2.664 0 0-.182 0-.364-.06-.546.302-.121.665-.121.968-.242Z" fill="#3281EE"/><path d="M107.751 10.667c1.695-.06 1.635-2.667-.06-2.667-.303 0-.606 0-.909.182v-.849c-.06-.727-.544-1.333-1.331-1.333-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.211.06 0 .182.06.364.06.606.061 1.758 2.785 1.758 2.664 0 0-.181 0-.363-.061-.545.303-.06.666-.121.969-.242ZM21.612 7.879h-1.634v-1.03c0-2.304-3.633-2.304-3.572 0 0 .424 0 .848.06 1.272-.181 0-.847-.06-.968-.121-2.18-.727-3.148 2.727-.969 3.454.545.182 1.574.182 2.119.182v.788c0 2.303 3.632 2.303 3.572 0v-.97c.484 0 .968-.06 1.513-.06 2.18.06 2.18-3.515-.12-3.515ZM8.9 32.485c.12.424.423.788.665.97.666.424 1.695.303 2.18-.425.484-.666.544-1.757-.485-2.363-.908-.546-1.998.06-2.3 1.03-.121.242-.121.546-.06.788ZM44.04 41.024c.12.424.424.788.666.97.666.424 1.695.303 2.179-.425.484-.666.545-1.757-.484-2.363-.908-.546-1.998.06-2.3 1.03-.122.242-.122.546-.061.788ZM58.066 16.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.544-1.757-.485-2.363-.908-.546-1.998.06-2.3 1.03a.87.87 0 0 0-.061.788Z" fill="#BBD9FD"/><path d="M43.89 7.576c.12.424.423.788.666.97.666.424 1.695.302 2.179-.425.484-.667.545-1.757-.545-2.363-.908-.546-1.998.06-2.3 1.03-.06.242-.06.545 0 .788ZM84.026 28.97c.12.424.424.787.666.969.666.424 1.695.303 2.18-.424.483-.667.544-1.758-.546-2.364-.908-.545-1.997.06-2.3 1.03a1.73 1.73 0 0 0 0 .788Z" fill="#3281EE"/><path d="M20.04 107.024c.12.424.424.788.666.97.666.424 1.695.303 2.179-.425.484-.666.545-1.757-.484-2.363-.908-.546-1.998.06-2.3 1.03-.122.242-.122.546-.061.788ZM5.04 88.024c.12.424.424.788.666.97.666.424 1.695.303 2.179-.425.484-.666.545-1.757-.484-2.363-.908-.546-1.998.06-2.3 1.03-.122.242-.122.545-.061.788Z" fill="#BBD9FD"/><path d="M191.311 54.758h-1.634v-1.03c0-2.304-3.632-2.304-3.572 0 0 .423 0 .848.061 1.272-.182 0-.848-.06-.969-.121-2.179-.727-3.148 2.727-.969 3.454.545.182 1.574.182 2.119.182v.788c0 2.303 3.633 2.303 3.572 0v-.97c.484 0 .969-.06 1.513-.06 2.24.06 2.24-3.515-.121-3.515Z" fill="#3281EE"/><path d="M136.045 21.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.544-1.757-.545-2.363-.908-.546-1.998.06-2.301 1.03-.06.242-.06.485 0 .788Z" fill="#BBD9FD"/><path d="M129.045 10.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.545-1.757-.545-2.363-.908-.546-1.998.06-2.301 1.03-.06.242-.06.546 0 .788ZM46.07 26.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.544-1.757-.546-2.363-.908-.546-1.997.06-2.3 1.03-.06.242-.121.546 0 .788ZM11.751 99.667c1.695-.06 1.635-2.667-.06-2.667-.303 0-.606 0-.909.182v-.849c-.06-.727-.544-1.333-1.331-1.333-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.21.06 0 .182.061.364.061.607.06 1.757 2.785 1.757 2.664 0 0-.182 0-.364-.06-.546.363-.06.665-.121.968-.242ZM164.751 74.667c1.695-.06 1.635-2.667-.06-2.667-.303 0-.606 0-.909.182v-.849c-.06-.727-.544-1.333-1.331-1.333-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.211.06 0 .182.06.364.06.606.061 1.758 2.785 1.758 2.664 0 0-.181 0-.363-.061-.545.364-.06.666-.121.969-.242ZM153.045 56.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.545-1.757-.545-2.363-.908-.546-1.998.06-2.301 1.03-.06.242-.06.546 0 .788Z" fill="#3281EE"/><path d="M193.07 73.024c.121.424.424.788.666.97.666.424 1.695.303 2.179-.425.484-.666.545-1.757-.545-2.363-.908-.546-1.997.06-2.3 1.03-.061.242-.121.545 0 .788ZM194.751 7.667c1.695-.06 1.635-2.667-.06-2.667-.303 0-.606 0-.909.182v-.849c-.06-.727-.544-1.333-1.331-1.333-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.211.06 0 .182.06.364.06.607.061 1.757 2.785 1.757 2.664 0 0-.182 0-.364-.061-.546.303-.121.666-.182.969-.242Z" fill="#BBD9FD"/><path d="M49.751 89.667c1.695-.06 1.635-2.667-.06-2.667-.303 0-.606 0-.909.182v-.849c-.06-.727-.544-1.333-1.331-1.333-.666 0-1.393.606-1.332 1.333v.728h-.303c-.181-.061-.303 0-.484 0-.908 0-1.332.909-1.332 1.575 0 .667.363.97.908 1.152.363.182.787.06 1.21.06 0 .182.061.364.061.606.06 1.758 2.785 1.758 2.664 0 0-.181 0-.363-.06-.545.302-.121.665-.182.968-.242ZM59.045 105.024c.121.424.424.788.666.97.666.424 1.695.303 2.18-.425.484-.666.544-1.757-.545-2.363-.908-.546-1.998.06-2.3 1.03-.061.243-.061.546 0 .788Z" fill="#3281EE"/></svg>
@@ -12,7 +12,6 @@ var styles = {
12
12
  "recipient": "recipient__recipient___2DmZI",
13
13
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
14
14
  "recipient-idents": "recipient__recipient-idents___3s7rw",
15
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
16
15
  "recipient-user": "recipient__recipient-user___1THIU",
17
16
  "recipient-details": "recipient__recipient-details___2fZfc",
18
17
  "avatar": "recipient__avatar___2LnIV",
@@ -6,7 +6,6 @@ var styles = {
6
6
  "recipient": "recipient__recipient___2DmZI",
7
7
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
8
8
  "recipient-idents": "recipient__recipient-idents___3s7rw",
9
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
10
9
  "recipient-user": "recipient__recipient-user___1THIU",
11
10
  "recipient-details": "recipient__recipient-details___2fZfc",
12
11
  "avatar": "recipient__avatar___2LnIV",
@@ -5,7 +5,6 @@ var styles = {
5
5
  "recipient": "recipient__recipient___2DmZI",
6
6
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
7
7
  "recipient-idents": "recipient__recipient-idents___3s7rw",
8
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
9
8
  "recipient-user": "recipient__recipient-user___1THIU",
10
9
  "recipient-details": "recipient__recipient-details___2fZfc",
11
10
  "avatar": "recipient__avatar___2LnIV",
@@ -8,7 +8,6 @@ var styles = {
8
8
  "recipient": "recipient__recipient___2DmZI",
9
9
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
10
10
  "recipient-idents": "recipient__recipient-idents___3s7rw",
11
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
12
11
  "recipient-user": "recipient__recipient-user___1THIU",
13
12
  "recipient-details": "recipient__recipient-details___2fZfc",
14
13
  "avatar": "recipient__avatar___2LnIV",
@@ -8,7 +8,6 @@ var styles = {
8
8
  "recipient": "recipient__recipient___2DmZI",
9
9
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
10
10
  "recipient-idents": "recipient__recipient-idents___3s7rw",
11
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
12
11
  "recipient-user": "recipient__recipient-user___1THIU",
13
12
  "recipient-details": "recipient__recipient-details___2fZfc",
14
13
  "avatar": "recipient__avatar___2LnIV",
@@ -63,7 +63,6 @@ var GroupRecipient = function GroupRecipient(props) {
63
63
  size: "small"
64
64
  })), /*#__PURE__*/React.createElement(ListItemText, {
65
65
  primary: /*#__PURE__*/React.createElement(Typography, {
66
- className: "u-ellipsis",
67
66
  variant: "body1"
68
67
  }, name),
69
68
  secondary: getGroupRecipientSecondaryText({
@@ -112,10 +112,6 @@ var GroupRecipientPermissions = function GroupRecipientPermissions(_ref) {
112
112
  ref: buttonRef,
113
113
  open: isMenuDisplayed,
114
114
  actions: actions,
115
- anchorOrigin: {
116
- vertical: 'bottom',
117
- horizontal: 'right'
118
- },
119
115
  autoClose: true,
120
116
  onClose: hideMenu
121
117
  }, /*#__PURE__*/React.createElement(ActionsMenuMobileHeader, null, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(GroupAvatar, {
@@ -20,7 +20,6 @@ var styles = {
20
20
  "recipient": "recipient__recipient___2DmZI",
21
21
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
22
22
  "recipient-idents": "recipient__recipient-idents___3s7rw",
23
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
24
23
  "recipient-user": "recipient__recipient-user___1THIU",
25
24
  "recipient-details": "recipient__recipient-details___2fZfc",
26
25
  "avatar": "recipient__avatar___2LnIV",
@@ -78,7 +77,6 @@ var LinkRecipient = function LinkRecipient(props) {
78
77
  icon: LinkIcon
79
78
  }))), /*#__PURE__*/React.createElement(ListItemText, {
80
79
  primary: /*#__PURE__*/React.createElement(Typography, {
81
- className: "u-ellipsis",
82
80
  variant: "body1"
83
81
  }, textPrimary),
84
82
  secondary: textSecondary
@@ -14,7 +14,6 @@ var styles = {
14
14
  "recipient": "recipient__recipient___2DmZI",
15
15
  "recipients-list-light": "recipient__recipients-list-light___Vq4op",
16
16
  "recipient-idents": "recipient__recipient-idents___3s7rw",
17
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
18
17
  "recipient-user": "recipient__recipient-user___1THIU",
19
18
  "recipient-details": "recipient__recipient-details___2fZfc",
20
19
  "avatar": "recipient__avatar___2LnIV",
@@ -55,7 +55,6 @@ var MemberRecipient = function MemberRecipient(props) {
55
55
  recipient: props
56
56
  })), /*#__PURE__*/React.createElement(ListItemText, {
57
57
  primary: /*#__PURE__*/React.createElement(Typography, {
58
- className: "u-ellipsis",
59
58
  variant: "body1"
60
59
  }, isMe ? t('Share.recipients.you') : name),
61
60
  secondary: /*#__PURE__*/React.createElement(MemberRecipientStatus, {
@@ -26,7 +26,8 @@ var MemberRecipientLite = function MemberRecipientLite(_ref) {
26
26
  t = _useI18n.t;
27
27
 
28
28
  var client = useClient();
29
- var isMe = isOwner && recipient.status === 'owner' || recipient.instance === client.options.uri;
29
+ var recipientOwner = recipient.status === 'owner';
30
+ var isMe = isOwner && recipientOwner || recipient.instance === client.options.uri;
30
31
  return /*#__PURE__*/React.createElement(ListItem, {
31
32
  size: "small",
32
33
  ellipsis: true
@@ -46,7 +47,7 @@ var MemberRecipientLite = function MemberRecipientLite(_ref) {
46
47
  }), /*#__PURE__*/React.createElement(Typography, {
47
48
  className: "u-flex-shrink-0",
48
49
  variant: "body2"
49
- }, isMe ? t("Share.status.".concat(recipient.status)).toLowerCase() : t("Share.type.".concat((_recipient$type = recipient.type) !== null && _recipient$type !== void 0 ? _recipient$type : 'one-way')).toLowerCase()));
50
+ }, recipientOwner ? t("Share.status.".concat(recipient.status)).toLowerCase() : t("Share.type.".concat((_recipient$type = recipient.type) !== null && _recipient$type !== void 0 ? _recipient$type : 'one-way')).toLowerCase()));
50
51
  };
51
52
 
52
53
  MemberRecipientLite.propTypes = {
@@ -103,10 +103,6 @@ var MemberRecipientPermissions = function MemberRecipientPermissions(_ref) {
103
103
  ref: buttonRef,
104
104
  open: isMenuDisplayed,
105
105
  actions: actions,
106
- anchorOrigin: {
107
- vertical: 'bottom',
108
- horizontal: 'right'
109
- },
110
106
  autoClose: true,
111
107
  onClose: hideMenu
112
108
  })));
@@ -5,25 +5,7 @@ import EyeIcon from 'cozy-ui/transpiled/react/Icons/Eye';
5
5
  import PaperplaneIcon from 'cozy-ui/transpiled/react/Icons/Paperplane';
6
6
  import ToTheCloudIcon from 'cozy-ui/transpiled/react/Icons/ToTheCloud';
7
7
  import Typography from 'cozy-ui/transpiled/react/Typography';
8
- import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media';
9
8
  import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
10
- var styles = {
11
- "recipient": "recipient__recipient___2DmZI",
12
- "recipients-list-light": "recipient__recipients-list-light___Vq4op",
13
- "recipient-idents": "recipient__recipient-idents___3s7rw",
14
- "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
15
- "recipient-user": "recipient__recipient-user___1THIU",
16
- "recipient-details": "recipient__recipient-details___2fZfc",
17
- "avatar": "recipient__avatar___2LnIV",
18
- "link-recipient-icon-circle": "recipient__link-recipient-icon-circle___3ZTU-",
19
- "recipients-avatars": "recipient__recipients-avatars___1npjD",
20
- "--interactive": "recipient__--interactive___160Bp",
21
- "recipients-avatars--link": "recipient__recipients-avatars--link___1qeON",
22
- "recipients-avatars--plusX": "recipient__recipients-avatars--plusX___3-6_l",
23
- "recipients-avatars--avatar": "recipient__recipients-avatars--avatar___-owjC",
24
- "spin": "recipient__spin___2tYv3",
25
- "shake": "recipient__shake___TGyPp"
26
- };
27
9
 
28
10
  var MemberRecipientStatus = function MemberRecipientStatus(_ref) {
29
11
  var status = _ref.status,
@@ -50,15 +32,15 @@ var MemberRecipientStatus = function MemberRecipientStatus(_ref) {
50
32
  icon = status === 'seen' ? EyeIcon : PaperplaneIcon;
51
33
  }
52
34
 
53
- return /*#__PURE__*/React.createElement(Media, null, /*#__PURE__*/React.createElement(Img, {
54
- className: styles['recipient-status-icon']
35
+ return /*#__PURE__*/React.createElement("div", {
36
+ className: "u-flex u-flex-items-center"
55
37
  }, /*#__PURE__*/React.createElement(Icon, {
56
38
  icon: icon,
57
39
  size: 10
58
- })), /*#__PURE__*/React.createElement(Bd, null, /*#__PURE__*/React.createElement(Typography, _extends({
40
+ }), "\xA0", /*#__PURE__*/React.createElement(Typography, _extends({
59
41
  variant: "caption",
60
42
  color: "textSecondary"
61
- }, typographyProps), text)));
43
+ }, typographyProps), text));
62
44
  };
63
45
 
64
46
  export default MemberRecipientStatus;
@@ -4,6 +4,7 @@ import { GroupRecipient } from './GroupRecipient';
4
4
  import MemberRecipient from './MemberRecipient';
5
5
  import { usePrevious } from '../../helpers/hooks';
6
6
  import { filterAndReworkRecipients } from '../../helpers/recipients';
7
+ import SharedDriveRecipient from '../SharedDrive/SharedDriveRecipient';
7
8
 
8
9
  var RecipientList = function RecipientList(_ref) {
9
10
  var recipients = _ref.recipients,
@@ -13,13 +14,27 @@ var RecipientList = function RecipientList(_ref) {
13
14
  documentType = _ref.documentType,
14
15
  onRevoke = _ref.onRevoke,
15
16
  onRevokeSelf = _ref.onRevokeSelf,
17
+ onSetType = _ref.onSetType,
16
18
  verifyRecipient = _ref.verifyRecipient;
17
19
  var previousRecipients = usePrevious(recipients);
18
20
  var recipientsToDisplay = filterAndReworkRecipients(recipients, previousRecipients);
19
21
  return recipientsToDisplay.map(function (recipient) {
22
+ var _recipient$index;
23
+
20
24
  var recipientConfirmationData = recipientsToBeConfirmed.find(function (user) {
21
25
  return user.email === recipient.email;
22
26
  });
27
+ var isSharedDriveRecipient = recipient === null || recipient === void 0 || (_recipient$index = recipient.index) === null || _recipient$index === void 0 ? void 0 : _recipient$index.toString().startsWith('virtual-shared-drive');
28
+
29
+ if (isSharedDriveRecipient) {
30
+ return /*#__PURE__*/React.createElement(SharedDriveRecipient, _extends({}, recipient, {
31
+ key: recipient.index,
32
+ onRevoke: onRevoke,
33
+ onSetType: onSetType,
34
+ fadeIn: recipient.hasBeenJustAdded
35
+ }));
36
+ }
37
+
23
38
  var isGroupRecipient = recipient.members;
24
39
 
25
40
  if (isGroupRecipient) {
@@ -0,0 +1,41 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React, { forwardRef } from 'react';
3
+ import ActionsMenuItem from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem';
4
+ import Icon from 'cozy-ui/transpiled/react/Icon';
5
+ import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
6
+ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
7
+ import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
8
+ import Typography from 'cozy-ui/transpiled/react/Typography';
9
+
10
+ var makeComponent = function makeComponent(title) {
11
+ var Component = /*#__PURE__*/forwardRef(function (props, ref) {
12
+ return /*#__PURE__*/React.createElement(ActionsMenuItem, _extends({}, props, {
13
+ ref: ref
14
+ }), /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
15
+ icon: TrashIcon,
16
+ color: "var(--errorColor)"
17
+ })), /*#__PURE__*/React.createElement(ListItemText, {
18
+ primary: /*#__PURE__*/React.createElement(Typography, {
19
+ color: "error"
20
+ }, title)
21
+ }));
22
+ });
23
+ Component.displayName = 'RevokeSharedDriveMember';
24
+ return Component;
25
+ };
26
+
27
+ var revokeSharedDriveMember = function revokeSharedDriveMember(_ref) {
28
+ var t = _ref.t,
29
+ handleRevocation = _ref.handleRevocation;
30
+ var title = t("RevokeSharedDriveMemberItem.revoke.title");
31
+ return {
32
+ name: 'revokeSharedDriveMember',
33
+ label: title,
34
+ action: function action() {
35
+ handleRevocation();
36
+ },
37
+ Component: makeComponent(title)
38
+ };
39
+ };
40
+
41
+ export { revokeSharedDriveMember };
@@ -0,0 +1,54 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React, { forwardRef } from 'react';
3
+ import ActionsMenuItem from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem';
4
+ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
5
+ import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
6
+ import Radios from 'cozy-ui/transpiled/react/Radios';
7
+
8
+ var makeComponent = function makeComponent(_ref) {
9
+ var label = _ref.label,
10
+ type = _ref.type,
11
+ onClick = _ref.onClick;
12
+ var Component = /*#__PURE__*/forwardRef(function (props, ref) {
13
+ return /*#__PURE__*/React.createElement(ActionsMenuItem, _extends({}, props, {
14
+ ref: ref,
15
+ button: false,
16
+ onClick: onClick
17
+ }), /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Radios, {
18
+ checked: type === 'one-way'
19
+ })), /*#__PURE__*/React.createElement(ListItemText, {
20
+ primary: label
21
+ }));
22
+ });
23
+ Component.displayName = 'SetReadOnlySharedPermission';
24
+ return Component;
25
+ };
26
+ /**
27
+ * @param {function} t - translation function
28
+ * @param {string} type - current editing rights
29
+ * @param {function} setType - function to set editing rights
30
+ */
31
+
32
+
33
+ export var setReadOnlySharedPermission = function setReadOnlySharedPermission(_ref2) {
34
+ var t = _ref2.t,
35
+ type = _ref2.type,
36
+ setType = _ref2.setType;
37
+ var label = t('Share.type.one-way');
38
+
39
+ var onClick = function onClick() {
40
+ setType('one-way');
41
+ };
42
+
43
+ return {
44
+ name: 'setReadOnlySharedPermission',
45
+ label: label,
46
+ icon: null,
47
+ action: onClick,
48
+ Component: makeComponent({
49
+ label: label,
50
+ type: type,
51
+ onClick: onClick
52
+ })
53
+ };
54
+ };
@@ -0,0 +1,54 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React, { forwardRef } from 'react';
3
+ import ActionsMenuItem from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem';
4
+ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
5
+ import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
6
+ import Radios from 'cozy-ui/transpiled/react/Radios';
7
+
8
+ var makeComponent = function makeComponent(_ref) {
9
+ var label = _ref.label,
10
+ type = _ref.type,
11
+ onClick = _ref.onClick;
12
+ var Component = /*#__PURE__*/forwardRef(function (props, ref) {
13
+ return /*#__PURE__*/React.createElement(ActionsMenuItem, _extends({}, props, {
14
+ ref: ref,
15
+ button: false,
16
+ onClick: onClick
17
+ }), /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Radios, {
18
+ checked: type === 'two-way'
19
+ })), /*#__PURE__*/React.createElement(ListItemText, {
20
+ primary: label
21
+ }));
22
+ });
23
+ Component.displayName = 'SetReadWriteSharedPermission';
24
+ return Component;
25
+ };
26
+ /**
27
+ * @param {function} t - translation function
28
+ * @param {string} type - current editing rights
29
+ * @param {function} setType - function to set editing rights
30
+ */
31
+
32
+
33
+ export var setReadWriteSharedPermission = function setReadWriteSharedPermission(_ref2) {
34
+ var t = _ref2.t,
35
+ type = _ref2.type,
36
+ setType = _ref2.setType;
37
+ var label = t('Share.type.two-way');
38
+
39
+ var onClick = function onClick() {
40
+ setType('two-way');
41
+ };
42
+
43
+ return {
44
+ name: 'setReadWriteSharedPermission',
45
+ label: label,
46
+ icon: null,
47
+ action: onClick,
48
+ Component: makeComponent({
49
+ label: label,
50
+ type: type,
51
+ onClick: onClick
52
+ })
53
+ };
54
+ };
@@ -46,7 +46,10 @@ export var ShareByEmail = function ShareByEmail(_ref) {
46
46
  createContact = _ref.createContact,
47
47
  documentType = _ref.documentType,
48
48
  currentRecipients = _ref.currentRecipients,
49
- sharing = _ref.sharing;
49
+ sharing = _ref.sharing,
50
+ submitLabel = _ref.submitLabel,
51
+ _ref$showNotification = _ref.showNotifications,
52
+ showNotifications = _ref$showNotification === void 0 ? true : _ref$showNotification;
50
53
  var client = useClient();
51
54
 
52
55
  var _useI18n = useI18n(),
@@ -150,28 +153,34 @@ export var ShareByEmail = function ShareByEmail(_ref) {
150
153
  });
151
154
 
152
155
  case 16:
153
- showAlert({
154
- message: t.apply(void 0, _toConsumableArray(getSuccessMessage(recipientsBefore, contacts, documentType))),
155
- severity: 'success',
156
- variant: 'filled'
157
- });
156
+ if (showNotifications) {
157
+ showAlert({
158
+ message: t.apply(void 0, _toConsumableArray(getSuccessMessage(recipientsBefore, contacts, documentType))),
159
+ severity: 'success',
160
+ variant: 'filled'
161
+ });
162
+ }
163
+
158
164
  _context.next = 22;
159
165
  break;
160
166
 
161
167
  case 19:
162
168
  _context.prev = 19;
163
169
  _context.t0 = _context["catch"](7);
164
- showAlert({
165
- message: t.apply(void 0, _toConsumableArray(getErrorMessage({
166
- t: t,
167
- err: _context.t0,
168
- documentType: documentType,
169
- recipients: recipients,
170
- selectedOption: selectedOption
171
- }))),
172
- severity: 'error',
173
- variant: 'filled'
174
- });
170
+
171
+ if (showNotifications) {
172
+ showAlert({
173
+ message: t.apply(void 0, _toConsumableArray(getErrorMessage({
174
+ t: t,
175
+ err: _context.t0,
176
+ documentType: documentType,
177
+ recipients: recipients,
178
+ selectedOption: selectedOption
179
+ }))),
180
+ severity: 'error',
181
+ variant: 'filled'
182
+ });
183
+ }
175
184
 
176
185
  case 22:
177
186
  _context.prev = 22;
@@ -229,7 +238,7 @@ export var ShareByEmail = function ShareByEmail(_ref) {
229
238
  options: getSharingOptions(),
230
239
  onChange: onChange
231
240
  }), /*#__PURE__*/React.createElement(ShareSubmit, {
232
- label: t("".concat(documentType, ".share.shareByEmail.send")),
241
+ label: submitLabel || t("".concat(documentType, ".share.shareByEmail.send")),
233
242
  onSubmit: share,
234
243
  loading: loading,
235
244
  disabled: recipients.length === 0
@@ -248,6 +257,10 @@ ShareByEmail.propTypes = {
248
257
  onShare: PropTypes.func.isRequired,
249
258
  createContact: PropTypes.func.isRequired,
250
259
  // We can display this component without having created the sharing yet
251
- sharing: PropTypes.object
260
+ sharing: PropTypes.object,
261
+ // Customize the label of the button that submit contacts
262
+ submitLabel: PropTypes.string,
263
+ // Display success or error notifications
264
+ showNotifications: PropTypes.bool
252
265
  };
253
266
  export default ShareByEmail;
@@ -43,7 +43,6 @@ var SharingContent = function SharingContent(_ref) {
43
43
  documentType = _ref.documentType,
44
44
  hasSharedParent = _ref.hasSharedParent,
45
45
  isOwner = _ref.isOwner,
46
- needsContactsPermission = _ref.needsContactsPermission,
47
46
  onRevoke = _ref.onRevoke,
48
47
  onRevokeSelf = _ref.onRevokeSelf,
49
48
  onShare = _ref.onShare,
@@ -80,7 +79,6 @@ var SharingContent = function SharingContent(_ref) {
80
79
  currentRecipients: recipients,
81
80
  document: document,
82
81
  documentType: documentType,
83
- needsContactsPermission: needsContactsPermission,
84
82
  onShare: onShare,
85
83
  sharing: sharing,
86
84
  sharingDesc: sharingDesc
@@ -103,7 +103,6 @@ var ShareDialogTwoStepsConfirmationContainer = function ShareDialogTwoStepsConfi
103
103
  hasSharedParent = _ref4.hasSharedParent,
104
104
  isOwner = _ref4.isOwner,
105
105
  link = _ref4.link,
106
- needsContactsPermission = _ref4.needsContactsPermission,
107
106
  onClose = _ref4.onClose,
108
107
  onRevoke = _ref4.onRevoke,
109
108
  onRevokeLink = _ref4.onRevokeLink,
@@ -241,7 +240,6 @@ var ShareDialogTwoStepsConfirmationContainer = function ShareDialogTwoStepsConfi
241
240
  documentType: documentType,
242
241
  hasSharedParent: hasSharedParent,
243
242
  isOwner: isOwner,
244
- needsContactsPermission: needsContactsPermission,
245
243
  onRevoke: onRevoke,
246
244
  onRevokeSelf: onRevokeSelf,
247
245
  onShare: onShare,
@@ -28,6 +28,14 @@ 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
+
31
39
  return /*#__PURE__*/React.createElement(ShareModal, _extends({
32
40
  createContact: function createContact(contact) {
33
41
  return client.create(Contact.doctype, contact);
@@ -36,14 +44,14 @@ export var EditableSharingModal = function EditableSharingModal(_ref) {
36
44
  documentType: documentType,
37
45
  hasSharedChild: documentPath && hasSharedChild(documentPath),
38
46
  hasSharedParent: documentPath && hasSharedParent(documentPath),
39
- isOwner: isOwner(document.id),
40
- link: getSharingLink(document.id),
47
+ isOwner: _isOwner,
48
+ link: link,
41
49
  onRevoke: revoke,
42
50
  onRevokeSelf: revokeSelf,
43
51
  onShare: share,
44
- permissions: getDocumentPermissions(document.id),
45
- recipients: getRecipients(document.id),
46
- sharing: getSharingForSelf(document.id)
52
+ permissions: permissions,
53
+ recipients: recipients,
54
+ sharing: sharing
47
55
  }, rest));
48
56
  };
49
57
  EditableSharingModal.propTypes = {
@@ -11,7 +11,6 @@ export var ShareModal = function ShareModal(_ref) {
11
11
  hasSharedParent = _ref.hasSharedParent,
12
12
  isOwner = _ref.isOwner,
13
13
  link = _ref.link,
14
- needsContactsPermission = _ref.needsContactsPermission,
15
14
  onClose = _ref.onClose,
16
15
  onRevoke = _ref.onRevoke,
17
16
  onRevokeSelf = _ref.onRevokeSelf,
@@ -43,7 +42,6 @@ export var ShareModal = function ShareModal(_ref) {
43
42
  hasSharedParent: hasSharedParent,
44
43
  isOwner: isOwner,
45
44
  link: link,
46
- needsContactsPermission: needsContactsPermission,
47
45
  onClose: onClose,
48
46
  onRevoke: onRevoke,
49
47
  onRevokeSelf: onRevokeSelf,
@@ -68,7 +66,6 @@ ShareModal.propTypes = {
68
66
  hasSharedParent: PropTypes.bool,
69
67
  isOwner: PropTypes.bool,
70
68
  link: PropTypes.string,
71
- needsContactsPermission: PropTypes.bool,
72
69
  onClose: PropTypes.func.isRequired,
73
70
  onRevoke: PropTypes.func.isRequired,
74
71
  onShare: PropTypes.func.isRequired,
@@ -68,10 +68,6 @@ export var BoxEditingRights = function BoxEditingRights(_ref) {
68
68
  open: isMenuDisplayed,
69
69
  docs: [file],
70
70
  actions: actions,
71
- anchorOrigin: {
72
- vertical: 'bottom',
73
- horizontal: 'right'
74
- },
75
71
  autoClose: true,
76
72
  onClose: toggleMenuDisplayed
77
73
  }));