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.
- package/CHANGELOG.md +27 -0
- package/dist/ConfirmTrustedRecipientsDialog.js +1 -1
- package/dist/ShareButton.js +1 -1
- package/dist/ShareButton.spec.js +1 -1
- package/dist/SharedBadge.js +1 -1
- package/dist/SharedRecipients.js +1 -1
- package/dist/SharedRecipientsList.js +1 -1
- package/dist/SharedStatus.js +1 -1
- package/dist/SharingOwnerAvatar.js +1 -1
- package/dist/SharingProvider.js +18 -7
- package/dist/components/CozyPassFingerprintDialogContent.js +1 -1
- package/dist/components/Recipient/Identity.js +17 -17
- package/dist/components/Recipient/LinkRecipient.js +18 -18
- package/dist/components/Recipient/OwnerIdentity.js +18 -18
- package/dist/components/Recipient/OwnerRecipientDefault.js +2 -2
- package/dist/components/Recipient/RecipientConfirm.js +25 -25
- package/dist/components/Recipient/RecipientList.js +36 -0
- package/dist/components/Recipient/RecipientPlusX.js +18 -18
- package/dist/components/Recipient/RecipientStatus.js +17 -17
- package/dist/components/Recipient/RecipientWithoutStatus.js +18 -18
- package/dist/components/Recipient/RecipientsAvatars.js +18 -18
- package/dist/components/ShareAutosuggest.js +16 -16
- package/dist/components/ShareButton.js +2 -2
- package/dist/components/ShareByEmail.js +26 -26
- package/dist/components/ShareByLink.js +75 -50
- package/dist/components/ShareDialogCozyToCozy.js +25 -25
- package/dist/components/{EditableSharingModal.js → ShareModal/EditableSharingModal.js} +5 -5
- package/dist/components/{EditableSharingModal.spec.js → ShareModal/EditableSharingModal.spec.js} +6 -6
- package/dist/components/ShareModal/ShareModal.js +43 -0
- package/dist/{SharingDetailsModal.js → components/ShareModal/SharingDetailsModal.js} +28 -28
- package/dist/components/SharedBadge.js +6 -6
- package/dist/components/SharedStatus.js +4 -4
- package/dist/components/Sharetypeselect.js +25 -25
- package/dist/{SharingBanner → components/SharingBanner}/components/PublicBanner.js +1 -1
- package/dist/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.js +2 -2
- package/dist/{SharingBanner → components/SharingBanner}/index.js +1 -1
- package/dist/{SharingBanner → components/SharingBanner}/test/AppLike.js +2 -2
- package/dist/components/Tooltip.js +19 -8
- package/dist/components/WhoHasAccess.js +10 -20
- package/dist/components/WhoHasAccessLight.js +19 -1
- package/dist/{withLocales.js → hoc/withLocales.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/{SharingBanner/components → styles}/publicBanner.styl +5 -5
- package/dist/stylesheet.css +340 -340
- package/docs/share-modal-architecture.md +44 -0
- package/package.json +2 -3
- package/src/ConfirmTrustedRecipientsDialog.jsx +1 -1
- package/src/ShareButton.jsx +1 -1
- package/src/ShareButton.spec.jsx +1 -1
- package/src/SharedBadge.jsx +1 -1
- package/src/SharedRecipients.jsx +1 -1
- package/src/SharedRecipientsList.jsx +1 -1
- package/src/SharedStatus.jsx +1 -1
- package/src/SharingOwnerAvatar.jsx +1 -1
- package/src/assets/icons/icon-arrow-down.svg +3 -0
- package/src/assets/icons/icon-calendar-16.svg +8 -0
- package/src/assets/icons/icon-check-blue.svg +59 -0
- package/src/assets/icons/icon-cross-bold.svg +5 -0
- package/src/assets/icons/icon-link.svg +14 -0
- package/src/assets/icons/icon-pen-16.svg +3 -0
- package/src/components/CozyPassFingerprintDialogContent.jsx +1 -1
- package/src/components/Recipient/Identity.jsx +1 -1
- package/src/components/Recipient/LinkRecipient.jsx +1 -1
- package/src/components/Recipient/OwnerIdentity.jsx +1 -1
- package/src/components/Recipient/RecipientConfirm.jsx +1 -1
- package/src/components/Recipient/RecipientList.jsx +45 -0
- package/src/components/Recipient/RecipientPlusX.jsx +1 -1
- package/src/components/Recipient/RecipientStatus.jsx +1 -1
- package/src/components/Recipient/RecipientWithoutStatus.jsx +1 -1
- package/src/components/Recipient/RecipientsAvatars.jsx +1 -1
- package/src/components/ShareAutosuggest.jsx +1 -1
- package/src/components/ShareButton.jsx +1 -1
- package/src/components/ShareByEmail.jsx +1 -1
- package/src/components/ShareByLink.jsx +12 -10
- package/src/components/ShareDialogCozyToCozy.jsx +1 -1
- package/src/components/{EditableSharingModal.jsx → ShareModal/EditableSharingModal.jsx} +5 -5
- package/src/components/{EditableSharingModal.spec.jsx → ShareModal/EditableSharingModal.spec.jsx} +6 -6
- package/src/components/ShareModal/ShareModal.jsx +45 -0
- package/src/{SharingDetailsModal.jsx → components/ShareModal/SharingDetailsModal.jsx} +4 -4
- package/src/components/SharedBadge.jsx +1 -1
- package/src/components/SharedStatus.jsx +2 -2
- package/src/components/Sharetypeselect.jsx +1 -1
- package/src/{SharingBanner → components/SharingBanner}/components/PublicBanner.jsx +1 -1
- package/src/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.jsx +2 -2
- package/src/{SharingBanner → components/SharingBanner}/index.jsx +1 -1
- package/src/{SharingBanner → components/SharingBanner}/test/AppLike.jsx +2 -2
- package/src/components/Tooltip.jsx +1 -1
- package/src/components/WhoHasAccess.jsx +11 -29
- package/src/components/WhoHasAccessLight.jsx +1 -1
- package/src/{withLocales.jsx → hoc/withLocales.jsx} +2 -2
- package/src/index.jsx +6 -5
- package/src/{SharingBanner/components → styles}/publicBanner.styl +5 -5
- package/dist/ShareModal.js +0 -50
- package/src/ShareModal.jsx +0 -51
- /package/{assets → dist/assets}/icons/icon-arrow-down.svg +0 -0
- /package/{assets → dist/assets}/icons/icon-calendar-16.svg +0 -0
- /package/{assets → dist/assets}/icons/icon-check-blue.svg +0 -0
- /package/{assets → dist/assets}/icons/icon-cross-bold.svg +0 -0
- /package/{assets → dist/assets}/icons/icon-link.svg +0 -0
- /package/{assets → dist/assets}/icons/icon-pen-16.svg +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/components/CozyHomeLinkIcon.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/components/PublicBanner.spec.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/components/SharingBanner.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.spec.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.spec.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/test/AcceptingSharingContext.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/test/FabProvider.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/test/ModalContext.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/test/RouterContext.js +0 -0
- /package/dist/{SharingBanner → components/SharingBanner}/test/ThumbnailSizeContext.js +0 -0
- /package/dist/{components → hooks}/useFetchDocumentPath.js +0 -0
- /package/dist/{components → styles}/CozyPassFingerprintDialogContent.styl +0 -0
- /package/dist/{components → styles}/actionmenu.styl +0 -0
- /package/dist/{components → styles}/autosuggest.styl +0 -0
- /package/dist/{components → styles}/badge.styl +0 -0
- /package/dist/{components → styles}/button.styl +0 -0
- /package/dist/{components/Recipient → styles}/recipient.styl +0 -0
- /package/dist/{share.styl → styles/share.styl} +0 -0
- /package/dist/{components → styles}/status.styl +0 -0
- /package/dist/{components → styles}/tooltip.styl +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/components/CozyHomeLinkIcon.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/components/PublicBanner.spec.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/components/SharingBanner.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.js +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/helpers/QueryParameter.spec.js +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/hooks/useSharingInfos.spec.js +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/test/AcceptingSharingContext.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/test/FabProvider.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/test/ModalContext.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/test/RouterContext.jsx +0 -0
- /package/src/{SharingBanner → components/SharingBanner}/test/ThumbnailSizeContext.jsx +0 -0
- /package/src/{components → hooks}/useFetchDocumentPath.jsx +0 -0
- /package/src/{components → styles}/CozyPassFingerprintDialogContent.styl +0 -0
- /package/src/{components → styles}/actionmenu.styl +0 -0
- /package/src/{components → styles}/autosuggest.styl +0 -0
- /package/src/{components → styles}/badge.styl +0 -0
- /package/src/{components → styles}/button.styl +0 -0
- /package/src/{components/Recipient → styles}/recipient.styl +0 -0
- /package/src/{share.styl → styles/share.styl} +0 -0
- /package/src/{components → styles}/status.styl +0 -0
- /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-
|
|
18
|
-
"coz-form": "share__coz-
|
|
19
|
-
"coz-form-group": "share__coz-form-
|
|
20
|
-
"coz-form-desc": "share__coz-form-
|
|
21
|
-
"coz-form-label": "share__coz-form-
|
|
22
|
-
"coz-form-label--error": "share__coz-form-label--
|
|
23
|
-
"coz-form-errors": "share__coz-form-
|
|
24
|
-
"coz-form-controls": "share__coz-form-
|
|
25
|
-
"coz-form-controls--full": "share__coz-form-controls--
|
|
26
|
-
"coz-form-controls--dispatch": "share__coz-form-controls--
|
|
27
|
-
"error": "
|
|
28
|
-
"CozyTheme--inverted": "share__CozyTheme--
|
|
29
|
-
"CozyTheme--normal": "share__CozyTheme--
|
|
30
|
-
"share-byemail-onlybylink": "share__share-byemail-
|
|
31
|
-
"aligned-dropdown-button": "share__aligned-dropdown-
|
|
32
|
-
"share-type-control": "share__share-type-
|
|
33
|
-
"select-wrapper": "share__select-
|
|
34
|
-
"select-option": "share__select-
|
|
35
|
-
"select-option-label": "share__select-option-
|
|
36
|
-
"select-option-desc": "share__select-option-
|
|
37
|
-
"share-details-created": "share__share-details-
|
|
38
|
-
"share-details-perm": "share__share-details-
|
|
39
|
-
"share-details-perm-desc": "share__share-details-perm-
|
|
40
|
-
"spin": "
|
|
41
|
-
"shake": "
|
|
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": "
|
|
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 '
|
|
7
|
-
import { buildSharingsByIdQuery } from '
|
|
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 '
|
|
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 '
|
|
13
|
-
import SharingContext from '
|
|
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
|
|
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
|
-
|
|
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-
|
|
18
|
-
"shared-tooltip-list": "tooltip__shared-tooltip-
|
|
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
|
|
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
|
|
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
|
-
}),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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("
|
|
5
|
-
fr: require("
|
|
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
|