cozy-sharing 10.1.4 → 10.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 (142) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/ConfirmTrustedRecipientsDialog.js +1 -1
  3. package/dist/ShareButton.js +1 -1
  4. package/dist/ShareButton.spec.js +1 -1
  5. package/dist/SharedBadge.js +1 -1
  6. package/dist/SharedRecipients.js +1 -1
  7. package/dist/SharedRecipientsList.js +1 -1
  8. package/dist/SharedStatus.js +1 -1
  9. package/dist/SharingOwnerAvatar.js +1 -1
  10. package/dist/SharingProvider.js +18 -7
  11. package/dist/components/CozyPassFingerprintDialogContent.js +1 -1
  12. package/dist/components/Recipient/Identity.js +17 -17
  13. package/dist/components/Recipient/LinkRecipient.js +18 -18
  14. package/dist/components/Recipient/OwnerIdentity.js +18 -18
  15. package/dist/components/Recipient/OwnerRecipientDefault.js +2 -2
  16. package/dist/components/Recipient/RecipientConfirm.js +25 -25
  17. package/dist/components/Recipient/RecipientList.js +36 -0
  18. package/dist/components/Recipient/RecipientPlusX.js +18 -18
  19. package/dist/components/Recipient/RecipientStatus.js +17 -17
  20. package/dist/components/Recipient/RecipientWithoutStatus.js +18 -18
  21. package/dist/components/Recipient/RecipientsAvatars.js +18 -18
  22. package/dist/components/ShareAutosuggest.js +16 -16
  23. package/dist/components/ShareButton.js +2 -2
  24. package/dist/components/ShareByEmail.js +26 -26
  25. package/dist/components/ShareByLink.js +75 -50
  26. package/dist/components/ShareDialogCozyToCozy.js +25 -25
  27. package/dist/components/{EditableSharingModal.js → ShareModal/EditableSharingModal.js} +5 -5
  28. package/dist/components/{EditableSharingModal.spec.js → ShareModal/EditableSharingModal.spec.js} +6 -6
  29. package/dist/components/ShareModal/ShareModal.js +43 -0
  30. package/dist/{SharingDetailsModal.js → components/ShareModal/SharingDetailsModal.js} +28 -28
  31. package/dist/components/SharedBadge.js +6 -6
  32. package/dist/components/SharedStatus.js +4 -4
  33. package/dist/components/Sharetypeselect.js +25 -25
  34. package/dist/{SharingBanner → components/SharingBanner}/components/PublicBanner.js +1 -1
  35. package/dist/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.js +2 -2
  36. package/dist/{SharingBanner → components/SharingBanner}/index.js +1 -1
  37. package/dist/{SharingBanner → components/SharingBanner}/test/AppLike.js +2 -2
  38. package/dist/components/Tooltip.js +19 -8
  39. package/dist/components/WhoHasAccess.js +10 -20
  40. package/dist/components/WhoHasAccessLight.js +19 -1
  41. package/dist/{withLocales.js → hoc/withLocales.js} +2 -2
  42. package/dist/index.js +5 -5
  43. package/dist/{SharingBanner/components → styles}/publicBanner.styl +5 -5
  44. package/dist/stylesheet.css +340 -340
  45. package/docs/share-modal-architecture.md +44 -0
  46. package/package.json +2 -3
  47. package/src/ConfirmTrustedRecipientsDialog.jsx +1 -1
  48. package/src/ShareButton.jsx +1 -1
  49. package/src/ShareButton.spec.jsx +1 -1
  50. package/src/SharedBadge.jsx +1 -1
  51. package/src/SharedRecipients.jsx +1 -1
  52. package/src/SharedRecipientsList.jsx +1 -1
  53. package/src/SharedStatus.jsx +1 -1
  54. package/src/SharingOwnerAvatar.jsx +1 -1
  55. package/src/assets/icons/icon-arrow-down.svg +3 -0
  56. package/src/assets/icons/icon-calendar-16.svg +8 -0
  57. package/src/assets/icons/icon-check-blue.svg +59 -0
  58. package/src/assets/icons/icon-cross-bold.svg +5 -0
  59. package/src/assets/icons/icon-link.svg +14 -0
  60. package/src/assets/icons/icon-pen-16.svg +3 -0
  61. package/src/components/CozyPassFingerprintDialogContent.jsx +1 -1
  62. package/src/components/Recipient/Identity.jsx +1 -1
  63. package/src/components/Recipient/LinkRecipient.jsx +1 -1
  64. package/src/components/Recipient/OwnerIdentity.jsx +1 -1
  65. package/src/components/Recipient/RecipientConfirm.jsx +1 -1
  66. package/src/components/Recipient/RecipientList.jsx +45 -0
  67. package/src/components/Recipient/RecipientPlusX.jsx +1 -1
  68. package/src/components/Recipient/RecipientStatus.jsx +1 -1
  69. package/src/components/Recipient/RecipientWithoutStatus.jsx +1 -1
  70. package/src/components/Recipient/RecipientsAvatars.jsx +1 -1
  71. package/src/components/ShareAutosuggest.jsx +1 -1
  72. package/src/components/ShareButton.jsx +1 -1
  73. package/src/components/ShareByEmail.jsx +1 -1
  74. package/src/components/ShareByLink.jsx +12 -10
  75. package/src/components/ShareDialogCozyToCozy.jsx +1 -1
  76. package/src/components/{EditableSharingModal.jsx → ShareModal/EditableSharingModal.jsx} +5 -5
  77. package/src/components/{EditableSharingModal.spec.jsx → ShareModal/EditableSharingModal.spec.jsx} +6 -6
  78. package/src/components/ShareModal/ShareModal.jsx +45 -0
  79. package/src/{SharingDetailsModal.jsx → components/ShareModal/SharingDetailsModal.jsx} +4 -4
  80. package/src/components/SharedBadge.jsx +1 -1
  81. package/src/components/SharedStatus.jsx +2 -2
  82. package/src/components/Sharetypeselect.jsx +1 -1
  83. package/src/{SharingBanner → components/SharingBanner}/components/PublicBanner.jsx +1 -1
  84. package/src/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.jsx +2 -2
  85. package/src/{SharingBanner → components/SharingBanner}/index.jsx +1 -1
  86. package/src/{SharingBanner → components/SharingBanner}/test/AppLike.jsx +2 -2
  87. package/src/components/Tooltip.jsx +1 -1
  88. package/src/components/WhoHasAccess.jsx +11 -29
  89. package/src/components/WhoHasAccessLight.jsx +1 -1
  90. package/src/{withLocales.jsx → hoc/withLocales.jsx} +2 -2
  91. package/src/index.jsx +6 -5
  92. package/src/{SharingBanner/components → styles}/publicBanner.styl +5 -5
  93. package/dist/ShareModal.js +0 -50
  94. package/src/ShareModal.jsx +0 -51
  95. /package/{assets → dist/assets}/icons/icon-arrow-down.svg +0 -0
  96. /package/{assets → dist/assets}/icons/icon-calendar-16.svg +0 -0
  97. /package/{assets → dist/assets}/icons/icon-check-blue.svg +0 -0
  98. /package/{assets → dist/assets}/icons/icon-cross-bold.svg +0 -0
  99. /package/{assets → dist/assets}/icons/icon-link.svg +0 -0
  100. /package/{assets → dist/assets}/icons/icon-pen-16.svg +0 -0
  101. /package/dist/{SharingBanner → components/SharingBanner}/components/CozyHomeLinkIcon.js +0 -0
  102. /package/dist/{SharingBanner → components/SharingBanner}/components/PublicBanner.spec.js +0 -0
  103. /package/dist/{SharingBanner → components/SharingBanner}/components/SharingBanner.js +0 -0
  104. /package/dist/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.js +0 -0
  105. /package/dist/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.spec.js +0 -0
  106. /package/dist/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.spec.js +0 -0
  107. /package/dist/{SharingBanner → components/SharingBanner}/test/AcceptingSharingContext.js +0 -0
  108. /package/dist/{SharingBanner → components/SharingBanner}/test/FabProvider.js +0 -0
  109. /package/dist/{SharingBanner → components/SharingBanner}/test/ModalContext.js +0 -0
  110. /package/dist/{SharingBanner → components/SharingBanner}/test/RouterContext.js +0 -0
  111. /package/dist/{SharingBanner → components/SharingBanner}/test/ThumbnailSizeContext.js +0 -0
  112. /package/dist/{components → hooks}/useFetchDocumentPath.js +0 -0
  113. /package/dist/{components → styles}/CozyPassFingerprintDialogContent.styl +0 -0
  114. /package/dist/{components → styles}/actionmenu.styl +0 -0
  115. /package/dist/{components → styles}/autosuggest.styl +0 -0
  116. /package/dist/{components → styles}/badge.styl +0 -0
  117. /package/dist/{components → styles}/button.styl +0 -0
  118. /package/dist/{components/Recipient → styles}/recipient.styl +0 -0
  119. /package/dist/{share.styl → styles/share.styl} +0 -0
  120. /package/dist/{components → styles}/status.styl +0 -0
  121. /package/dist/{components → styles}/tooltip.styl +0 -0
  122. /package/src/{SharingBanner → components/SharingBanner}/components/CozyHomeLinkIcon.jsx +0 -0
  123. /package/src/{SharingBanner → components/SharingBanner}/components/PublicBanner.spec.jsx +0 -0
  124. /package/src/{SharingBanner → components/SharingBanner}/components/SharingBanner.jsx +0 -0
  125. /package/src/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.js +0 -0
  126. /package/src/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.spec.js +0 -0
  127. /package/src/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.spec.js +0 -0
  128. /package/src/{SharingBanner → components/SharingBanner}/test/AcceptingSharingContext.jsx +0 -0
  129. /package/src/{SharingBanner → components/SharingBanner}/test/FabProvider.jsx +0 -0
  130. /package/src/{SharingBanner → components/SharingBanner}/test/ModalContext.jsx +0 -0
  131. /package/src/{SharingBanner → components/SharingBanner}/test/RouterContext.jsx +0 -0
  132. /package/src/{SharingBanner → components/SharingBanner}/test/ThumbnailSizeContext.jsx +0 -0
  133. /package/src/{components → hooks}/useFetchDocumentPath.jsx +0 -0
  134. /package/src/{components → styles}/CozyPassFingerprintDialogContent.styl +0 -0
  135. /package/src/{components → styles}/actionmenu.styl +0 -0
  136. /package/src/{components → styles}/autosuggest.styl +0 -0
  137. /package/src/{components → styles}/badge.styl +0 -0
  138. /package/src/{components → styles}/button.styl +0 -0
  139. /package/src/{components/Recipient → styles}/recipient.styl +0 -0
  140. /package/src/{share.styl → styles/share.styl} +0 -0
  141. /package/src/{components → styles}/status.styl +0 -0
  142. /package/src/{components → styles}/tooltip.styl +0 -0
@@ -14,31 +14,31 @@ import SelectBox, { components } from 'cozy-ui/transpiled/react/SelectBox';
14
14
  import palette from 'cozy-ui/transpiled/react/palette';
15
15
  import logger from '../logger';
16
16
  var styles = {
17
- "share-modal-content": "share__share-modal-content___XTtaK",
18
- "coz-form": "share__coz-form___33NYF",
19
- "coz-form-group": "share__coz-form-group___1PLAZ",
20
- "coz-form-desc": "share__coz-form-desc___-pmK5",
21
- "coz-form-label": "share__coz-form-label___31jb0",
22
- "coz-form-label--error": "share__coz-form-label--error___2EXCl",
23
- "coz-form-errors": "share__coz-form-errors___1rk2R",
24
- "coz-form-controls": "share__coz-form-controls___39Uwg",
25
- "coz-form-controls--full": "share__coz-form-controls--full___1YpNp",
26
- "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___3JXzz",
27
- "error": "share__error___6Ycal",
28
- "CozyTheme--inverted": "share__CozyTheme--inverted___2pLD2",
29
- "CozyTheme--normal": "share__CozyTheme--normal___qSFyr",
30
- "share-byemail-onlybylink": "share__share-byemail-onlybylink___C_7b_",
31
- "aligned-dropdown-button": "share__aligned-dropdown-button___CeTDs",
32
- "share-type-control": "share__share-type-control___KcpDf",
33
- "select-wrapper": "share__select-wrapper___3FfiH",
34
- "select-option": "share__select-option___13o6b",
35
- "select-option-label": "share__select-option-label___Zj_RU",
36
- "select-option-desc": "share__select-option-desc___6uaQq",
37
- "share-details-created": "share__share-details-created___13BO0",
38
- "share-details-perm": "share__share-details-perm___23_VF",
39
- "share-details-perm-desc": "share__share-details-perm-desc___tqfXx",
40
- "spin": "share__spin___1P7nU",
41
- "shake": "share__shake___1EeCI"
17
+ "share-modal-content": "share__share-modal-content___1iqEq",
18
+ "coz-form": "share__coz-form___1ICST",
19
+ "coz-form-group": "share__coz-form-group___VsQp7",
20
+ "coz-form-desc": "share__coz-form-desc___2mYN4",
21
+ "coz-form-label": "share__coz-form-label___bogBw",
22
+ "coz-form-label--error": "share__coz-form-label--error___3YPkf",
23
+ "coz-form-errors": "share__coz-form-errors___2xYRz",
24
+ "coz-form-controls": "share__coz-form-controls___H8kGc",
25
+ "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
26
+ "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
27
+ "error": "share__error___pwqPO",
28
+ "CozyTheme--inverted": "share__CozyTheme--inverted___oxix3",
29
+ "CozyTheme--normal": "share__CozyTheme--normal___2PCy8",
30
+ "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
31
+ "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
32
+ "share-type-control": "share__share-type-control___1YoRr",
33
+ "select-wrapper": "share__select-wrapper___3XBKC",
34
+ "select-option": "share__select-option___3Jp8_",
35
+ "select-option-label": "share__select-option-label___1BWz_",
36
+ "select-option-desc": "share__select-option-desc___3jOnr",
37
+ "share-details-created": "share__share-details-created___z3nvO",
38
+ "share-details-perm": "share__share-details-perm___3HjxK",
39
+ "share-details-perm-desc": "share__share-details-perm-desc___3HyHu",
40
+ "spin": "share__spin___hhtoM",
41
+ "shake": "share__shake___2au1o"
42
42
  };
43
43
 
44
44
  var DropdownIndicator = function DropdownIndicator(props) {
@@ -7,7 +7,7 @@ import Button, { ButtonLink } from 'cozy-ui/transpiled/react/deprecated/Button';
7
7
  import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
8
8
  import CozyHomeLinkIcon from './CozyHomeLinkIcon';
9
9
  var styles = {
10
- "bannermarkdown": "publicBanner__bannermarkdown___1EMSa"
10
+ "bannermarkdown": "publicBanner__bannermarkdown___1dR1E"
11
11
  };
12
12
  var HOME_LINK_HREF = 'https://manager.cozycloud.cc/cozy/create';
13
13
 
@@ -3,8 +3,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import { useState, useEffect } from 'react';
5
5
  import { useClient, models } from 'cozy-client';
6
- import logger from '../../logger';
7
- import { buildSharingsByIdQuery } from '../../queries/queries';
6
+ import logger from '../../../logger';
7
+ import { buildSharingsByIdQuery } from '../../../queries/queries';
8
8
  import getQueryParameter from '../helpers/QueryParameter';
9
9
 
10
10
  var getSharingId = function getSharingId(permission) {
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
3
  import { SharingBanner } from './components/SharingBanner';
4
4
  import { useSharingInfos } from './hooks/useSharingInfos';
5
- import withLocales from '../withLocales';
5
+ import withLocales from '../../hoc/withLocales';
6
6
 
7
7
  var Plugin = function Plugin(_ref) {
8
8
  var previewPath = _ref.previewPath;
@@ -9,8 +9,8 @@ import FabProvider from './FabProvider';
9
9
  import { ModalContext } from './ModalContext';
10
10
  import { RouterContext } from './RouterContext';
11
11
  import { ThumbnailSizeContextProvider } from './ThumbnailSizeContext';
12
- import langEn from '../../../locales/en.json';
13
- import SharingContext from '../../context';
12
+ import langEn from '../../../../locales/en.json';
13
+ import SharingContext from '../../../context';
14
14
  var mockStore = createStore(function () {
15
15
  return {
16
16
  mobile: {
@@ -1,21 +1,34 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  import _extends from "@babel/runtime/helpers/extends";
8
8
 
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
+ function _callSuper(_this, derived, args) {
10
+ function isNativeReflectConstruct() {
11
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
12
+ if (Reflect.construct.sham) return false;
13
+ if (typeof Proxy === "function") return true;
14
+
15
+ try {
16
+ return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
17
+ } catch (e) {
18
+ return false;
19
+ }
20
+ }
10
21
 
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
22
+ derived = _getPrototypeOf(derived);
23
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
24
+ }
12
25
 
13
26
  import PropTypes from 'prop-types';
14
27
  import React from 'react';
15
28
  import ReactTooltip from 'react-tooltip';
16
29
  var styles = {
17
- "shared-tooltip": "tooltip__shared-tooltip___33CoC",
18
- "shared-tooltip-list": "tooltip__shared-tooltip-list___3gFkD"
30
+ "shared-tooltip": "tooltip__shared-tooltip___7Dys3",
31
+ "shared-tooltip-list": "tooltip__shared-tooltip-list___jD5hi"
19
32
  };
20
33
  export var SharingTooltip = function SharingTooltip(props) {
21
34
  return /*#__PURE__*/React.createElement(ReactTooltip, _extends({
@@ -28,12 +41,10 @@ export var SharingTooltip = function SharingTooltip(props) {
28
41
  export var TooltipRecipientList = /*#__PURE__*/function (_React$Component) {
29
42
  _inherits(TooltipRecipientList, _React$Component);
30
43
 
31
- var _super = _createSuper(TooltipRecipientList);
32
-
33
44
  function TooltipRecipientList() {
34
45
  _classCallCheck(this, TooltipRecipientList);
35
46
 
36
- return _super.apply(this, arguments);
47
+ return _callSuper(this, TooltipRecipientList, arguments);
37
48
  }
38
49
 
39
50
  _createClass(TooltipRecipientList, [{
@@ -1,13 +1,11 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import PropTypes from 'prop-types';
3
2
  import React from 'react';
4
3
  import List from 'cozy-ui/transpiled/react/List';
5
4
  import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
6
5
  import LinkRecipient from './Recipient/LinkRecipient';
7
6
  import OwnerRecipient from './Recipient/OwnerRecipient';
8
- import Recipient from './Recipient/Recipient';
7
+ import { RecipientList } from './Recipient/RecipientList';
9
8
  import { usePrevious } from '../helpers/hooks';
10
- import { filterAndReworkRecipients } from '../helpers/recipients';
11
9
  /**
12
10
  * Displays a warning if some contacts are waiting for confirmation of their sharing
13
11
  *
@@ -46,9 +44,7 @@ var WhoHasAccess = function WhoHasAccess(_ref2) {
46
44
  onUpdateShareLinkPermissions = _ref2.onUpdateShareLinkPermissions,
47
45
  onRevokeLink = _ref2.onRevokeLink;
48
46
  var previousLink = usePrevious(link);
49
- var previousRecipients = usePrevious(recipients);
50
47
  var linkHasBeenJustCreated = link && previousLink === null;
51
- var recipientsToDisplay = filterAndReworkRecipients(recipients, previousRecipients);
52
48
  return /*#__PURE__*/React.createElement("div", {
53
49
  className: className
54
50
  }, /*#__PURE__*/React.createElement(RecipientWaitingForConfirmationAlert, {
@@ -67,21 +63,15 @@ var WhoHasAccess = function WhoHasAccess(_ref2) {
67
63
  fadeIn: linkHasBeenJustCreated
68
64
  }), /*#__PURE__*/React.createElement(OwnerRecipient, {
69
65
  recipients: recipients
70
- }), recipientsToDisplay.map(function (recipient) {
71
- var recipientConfirmationData = recipientsToBeConfirmed.find(function (user) {
72
- return user.email === recipient.email;
73
- });
74
- return /*#__PURE__*/React.createElement(Recipient, _extends({}, recipient, {
75
- key: "key_r_".concat(recipient.index),
76
- isOwner: isOwner,
77
- document: document,
78
- documentType: documentType,
79
- onRevoke: onRevoke,
80
- onRevokeSelf: onRevokeSelf,
81
- recipientConfirmationData: recipientConfirmationData,
82
- verifyRecipient: verifyRecipient,
83
- fadeIn: recipient.hasBeenJustAdded
84
- }));
66
+ }), /*#__PURE__*/React.createElement(RecipientList, {
67
+ recipients: recipients,
68
+ recipientsToBeConfirmed: recipientsToBeConfirmed,
69
+ isOwner: isOwner,
70
+ document: document,
71
+ documentType: documentType,
72
+ onRevoke: onRevoke,
73
+ onRevokeSelf: onRevokeSelf,
74
+ verifyRecipient: verifyRecipient
85
75
  })));
86
76
  };
87
77
 
@@ -3,7 +3,25 @@ import cx from 'classnames';
3
3
  import React from 'react';
4
4
  import RecipientPlusX from './Recipient/RecipientPlusX';
5
5
  import RecipientWithoutStatus from './Recipient/RecipientWithoutStatus';
6
- var styles = {};
6
+ var styles = {
7
+ "CozyTheme--inverted": "recipient__CozyTheme--inverted___21SPM",
8
+ "CozyTheme--normal": "recipient__CozyTheme--normal___3ABO0",
9
+ "recipient": "recipient__recipient___2DmZI",
10
+ "recipients-list-light": "recipient__recipients-list-light___Vq4op",
11
+ "recipient-idents": "recipient__recipient-idents___3s7rw",
12
+ "recipient-status-icon": "recipient__recipient-status-icon___-liGw",
13
+ "recipient-user": "recipient__recipient-user___1THIU",
14
+ "recipient-details": "recipient__recipient-details___2fZfc",
15
+ "avatar": "recipient__avatar___2LnIV",
16
+ "link-recipient-icon-circle": "recipient__link-recipient-icon-circle___3ZTU-",
17
+ "recipients-avatars": "recipient__recipients-avatars___1npjD",
18
+ "--interactive": "recipient__--interactive___160Bp",
19
+ "recipients-avatars--link": "recipient__recipients-avatars--link___1qeON",
20
+ "recipients-avatars--plusX": "recipient__recipients-avatars--plusX___3-6_l",
21
+ "recipients-avatars--avatar": "recipient__recipients-avatars--avatar___-owjC",
22
+ "spin": "recipient__spin___2tYv3",
23
+ "shake": "recipient__shake___TGyPp"
24
+ };
7
25
  var MAX_DISPLAYED_RECIPIENTS = 2;
8
26
 
9
27
  var WhoHasAccessLight = function WhoHasAccessLight(_ref) {
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { I18n, translate } from 'cozy-ui/transpiled/react/providers/I18n';
3
3
  var locales = {
4
- en: require("../locales/en.json"),
5
- fr: require("../locales/fr.json")
4
+ en: require("../../locales/en.json"),
5
+ fr: require("../../locales/fr.json")
6
6
  };
7
7
  /**
8
8
  * Adds cozy-sharing translations in the React context
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import SharingProvider from './SharingProvider';
2
2
  import SharingContext from './context';
3
- import withLocales from './withLocales';
3
+ import withLocales from './hoc/withLocales';
4
4
  export default SharingProvider;
5
5
  export { SharingContext, withLocales };
6
6
  export { useSharingContext } from './hooks/useSharingContext';
7
+ export { useFetchDocumentPath } from './hooks/useFetchDocumentPath';
7
8
  export { SharedDocument } from './SharedDocument';
8
9
  export { SharedStatus } from './SharedStatus';
9
10
  export { SharedBadge } from './SharedBadge';
@@ -11,12 +12,11 @@ export { SharingOwnerAvatar } from './SharingOwnerAvatar';
11
12
  export { SharedRecipients } from './SharedRecipients';
12
13
  export { SharedRecipientsList } from './SharedRecipientsList';
13
14
  export { ShareButton } from './ShareButton';
14
- export { ShareModal } from './ShareModal';
15
+ export { ShareModal } from './components/ShareModal/ShareModal';
15
16
  export { RefreshableSharings } from './RefreshableSharings';
16
- export { useFetchDocumentPath } from './components/useFetchDocumentPath';
17
17
  export { CozyPassFingerprintDialogContent } from './components/CozyPassFingerprintDialogContent';
18
- export { SharingBannerPlugin } from './SharingBanner';
19
- export { useSharingInfos } from './SharingBanner/hooks/useSharingInfos';
18
+ export { SharingBannerPlugin } from './components/SharingBanner';
19
+ export { useSharingInfos } from './components/SharingBanner/hooks/useSharingInfos';
20
20
  export { ConfirmTrustedRecipientsDialog } from './ConfirmTrustedRecipientsDialog';
21
21
  export { ShareButtonWithRecipients } from './ShareButtonWithRecipients';
22
22
  export { DOCUMENT_TYPE } from './helpers/documentType';
@@ -6,9 +6,9 @@
6
6
  img
7
7
  @extend $avatar
8
8
  @extend $circle
9
- width rem(16)
10
- height rem(16)
11
- min-width rem(16)
12
- min-height rem(16)
9
+ width rem(16)
10
+ height rem(16)
11
+ min-width rem(16)
12
+ min-height rem(16)
13
13
  font-size rem(7)
14
- vertical-align text-bottom
14
+ vertical-align text-bottom