cozy-sharing 7.0.0 → 7.0.1
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 +8 -0
- package/dist/ConfirmTrustedRecipientsDialog.js +1 -1
- package/dist/RefreshableSharings.spec.js +2 -2
- package/dist/ShareButton.js +1 -1
- package/dist/ShareButton.spec.js +1 -1
- package/dist/ShareButtonWithRecipients.js +3 -3
- package/dist/ShareModal.js +2 -2
- 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/SharingBanner/components/PublicBanner.js +1 -1
- package/dist/SharingBanner/components/PublicBanner.spec.js +3 -3
- package/dist/SharingBanner/components/SharingBanner.js +1 -1
- package/dist/SharingBanner/hooks/useSharingInfos.js +1 -1
- package/dist/SharingBanner/hooks/useSharingInfos.spec.js +1 -1
- package/dist/SharingBanner/index.js +3 -3
- package/dist/SharingBanner/test/AppLike.js +6 -6
- package/dist/SharingDetailsModal.js +8 -8
- package/dist/SharingOwnerAvatar.js +1 -1
- package/dist/SharingProvider.js +2 -2
- package/dist/SharingProvider.spec.js +4 -4
- package/dist/components/ContactSuggestion.js +4 -4
- package/dist/components/ContactSuggestion.spec.js +2 -2
- package/dist/components/CozyPassFingerprintDialogContent.js +4 -4
- package/dist/components/CozyPassFingerprintDialogContent.spec.js +2 -2
- package/dist/components/EditLinkPermissionDialog.js +5 -5
- package/dist/components/EditLinkPermissionDialog.spec.js +2 -2
- package/dist/components/EditableSharingModal.js +3 -3
- package/dist/components/EditableSharingModal.spec.js +4 -4
- package/dist/components/Recipient/AvatarPlusX.js +2 -2
- package/dist/components/Recipient/Identity.js +2 -2
- package/dist/components/Recipient/LinkRecipient.js +8 -8
- package/dist/components/Recipient/LinkRecipientPermissions.js +5 -5
- package/dist/components/Recipient/OwnerIdentity.js +1 -1
- package/dist/components/Recipient/OwnerRecipient.js +2 -2
- package/dist/components/Recipient/Recipient.js +6 -6
- package/dist/components/Recipient/Recipient.spec.js +2 -2
- package/dist/components/Recipient/RecipientConfirm.js +2 -2
- package/dist/components/Recipient/RecipientPermissions.js +5 -5
- package/dist/components/Recipient/RecipientPlusX.js +2 -2
- package/dist/components/Recipient/RecipientStatus.js +3 -3
- package/dist/components/Recipient/RecipientWithoutStatus.js +1 -1
- package/dist/components/Recipient/RecipientsAvatars.js +2 -2
- package/dist/components/Recipient/RecipientsAvatars.spec.js +1 -1
- package/dist/components/ShareAutosuggest.js +5 -5
- package/dist/components/ShareAutosuggest.spec.js +1 -1
- package/dist/components/ShareButton.js +3 -3
- package/dist/components/ShareByEmail.js +6 -6
- package/dist/components/ShareByEmail.spec.js +2 -2
- package/dist/components/ShareByLink.js +7 -7
- package/dist/components/ShareDialogCozyToCozy.js +3 -3
- package/dist/components/ShareDialogCozyToCozy.spec.js +3 -3
- package/dist/components/ShareDialogOnlyByLink.js +1 -1
- package/dist/components/ShareDialogTwoStepsConfirmationContainer.js +1 -1
- package/dist/components/ShareDialogTwoStepsConfirmationContainer.spec.js +3 -3
- package/dist/components/ShareModal.js +2 -2
- package/dist/components/ShareModal.spec.js +2 -2
- package/dist/components/ShareRecipientsInput.js +2 -2
- package/dist/components/ShareRecipientsInput.spec.js +1 -1
- package/dist/components/SharedBadge.js +3 -3
- package/dist/components/SharedDocuments.js +2 -2
- package/dist/components/SharedStatus.js +2 -2
- package/dist/components/SharedStatus.spec.js +1 -1
- package/dist/components/Sharesubmit.js +1 -1
- package/dist/components/Sharetypeselect.js +5 -5
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/WhoHasAccess.js +5 -5
- package/dist/components/WhoHasAccessLight.js +2 -2
- package/dist/helpers/sharings.js +1 -1
- package/dist/helpers/successMessage.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/preprocess.js +1 -0
- package/src/ConfirmTrustedRecipientsDialog.jsx +1 -1
- package/src/RefreshableSharings.spec.jsx +2 -2
- package/src/ShareButton.jsx +2 -2
- package/src/ShareButton.spec.jsx +2 -1
- package/src/ShareButtonWithRecipients.jsx +5 -3
- package/src/ShareModal.jsx +2 -2
- 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/SharingBanner/components/PublicBanner.jsx +1 -2
- package/src/SharingBanner/components/PublicBanner.spec.jsx +5 -3
- package/src/SharingBanner/components/SharingBanner.jsx +1 -1
- package/src/SharingBanner/hooks/useSharingInfos.jsx +1 -1
- package/src/SharingBanner/hooks/useSharingInfos.spec.js +1 -1
- package/src/SharingBanner/index.jsx +3 -3
- package/src/SharingBanner/test/AppLike.jsx +7 -7
- package/src/SharingDetailsModal.jsx +3 -3
- package/src/SharingOwnerAvatar.jsx +1 -1
- package/src/SharingProvider.jsx +9 -9
- package/src/SharingProvider.spec.jsx +5 -5
- package/src/components/ConfirmTrustedRecipientsDialog.jsx +1 -1
- package/src/components/ContactSuggestion.jsx +4 -4
- package/src/components/ContactSuggestion.spec.jsx +2 -2
- package/src/components/CozyPassFingerprintDialogContent.jsx +4 -5
- package/src/components/CozyPassFingerprintDialogContent.spec.jsx +2 -2
- package/src/components/EditLinkPermissionDialog.jsx +5 -5
- package/src/components/EditLinkPermissionDialog.spec.jsx +3 -2
- package/src/components/EditableSharingModal.jsx +4 -3
- package/src/components/EditableSharingModal.spec.jsx +4 -4
- package/src/components/Recipient/AvatarPlusX.jsx +2 -2
- package/src/components/Recipient/Identity.jsx +2 -2
- package/src/components/Recipient/LinkRecipient.jsx +8 -8
- package/src/components/Recipient/LinkRecipientPermissions.jsx +5 -6
- package/src/components/Recipient/OwnerIdentity.jsx +1 -1
- package/src/components/Recipient/OwnerRecipient.jsx +2 -2
- package/src/components/Recipient/Recipient.jsx +6 -6
- package/src/components/Recipient/Recipient.spec.jsx +4 -2
- package/src/components/Recipient/RecipientAvatar.jsx +1 -1
- package/src/components/Recipient/RecipientConfirm.jsx +2 -2
- package/src/components/Recipient/RecipientPermissions.jsx +6 -6
- package/src/components/Recipient/RecipientPlusX.jsx +2 -2
- package/src/components/Recipient/RecipientStatus.jsx +3 -3
- package/src/components/Recipient/RecipientWithoutStatus.jsx +1 -1
- package/src/components/Recipient/RecipientsAvatars.jsx +3 -3
- package/src/components/Recipient/RecipientsAvatars.spec.jsx +2 -1
- package/src/components/ShareAutosuggest.jsx +5 -6
- package/src/components/ShareAutosuggest.spec.jsx +1 -1
- package/src/components/ShareButton.jsx +4 -4
- package/src/components/ShareByEmail.jsx +6 -7
- package/src/components/ShareByEmail.spec.jsx +3 -2
- package/src/components/ShareByLink.jsx +8 -7
- package/src/components/ShareDialogCozyToCozy.jsx +4 -5
- package/src/components/ShareDialogCozyToCozy.spec.jsx +5 -3
- package/src/components/ShareDialogOnlyByLink.jsx +2 -1
- package/src/components/ShareDialogTwoStepsConfirmationContainer.jsx +2 -1
- package/src/components/ShareDialogTwoStepsConfirmationContainer.spec.jsx +5 -3
- package/src/components/ShareModal.jsx +3 -3
- package/src/components/ShareModal.spec.js +4 -2
- package/src/components/ShareRecipientsInput.jsx +2 -2
- package/src/components/ShareRecipientsInput.spec.jsx +1 -1
- package/src/components/SharedBadge.jsx +4 -3
- package/src/components/SharedDocuments.jsx +3 -2
- package/src/components/SharedStatus.jsx +4 -3
- package/src/components/SharedStatus.spec.js +2 -1
- package/src/components/Sharesubmit.jsx +2 -1
- package/src/components/Sharetypeselect.jsx +5 -7
- package/src/components/Tooltip.jsx +2 -1
- package/src/components/WhoHasAccess.jsx +6 -5
- package/src/components/WhoHasAccessLight.jsx +3 -3
- package/src/components/useFetchDocumentPath.jsx +1 -0
- package/src/helpers/permissions.js +1 -0
- package/src/helpers/sharings.js +1 -2
- package/src/helpers/successMessage.js +2 -1
- package/src/index.jsx +1 -1
- package/src/state.spec.js +0 -1
- package/src/withLocales.jsx +1 -0
- package/test/AppLike.jsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [7.0.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@7.0.0...cozy-sharing@7.0.1) (2023-03-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-sharing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [7.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@6.0.6...cozy-sharing@7.0.0) (2023-03-16)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["document"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { default as DumbConfirmTrustedRecipientsDialog } from './components/ConfirmTrustedRecipientsDialog';
|
|
5
6
|
import SharingContext from './context';
|
|
6
7
|
import withLocales from './withLocales';
|
|
7
|
-
import { default as DumbConfirmTrustedRecipientsDialog } from './components/ConfirmTrustedRecipientsDialog';
|
|
8
8
|
export var ConfirmTrustedRecipientsDialog = withLocales(function (_ref) {
|
|
9
9
|
var document = _ref.document,
|
|
10
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { mount } from 'enzyme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { createMockClient } from 'cozy-client';
|
|
4
|
-
import AppLike from '../test/AppLike';
|
|
5
4
|
import { RefreshableSharings } from './RefreshableSharings';
|
|
6
5
|
import { SharingProvider } from './SharingProvider';
|
|
6
|
+
import AppLike from '../test/AppLike';
|
|
7
7
|
|
|
8
8
|
var DumbComponent = function DumbComponent() {
|
|
9
9
|
return /*#__PURE__*/React.createElement("div", null, "test ");
|
package/dist/ShareButton.js
CHANGED
|
@@ -9,9 +9,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
9
9
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
12
|
+
import { default as DumbShareButton, SharedByMeButton, SharedWithMeButton } from './components/ShareButton';
|
|
12
13
|
import SharingContext from './context';
|
|
13
14
|
import withLocales from './withLocales';
|
|
14
|
-
import { default as DumbShareButton, SharedByMeButton, SharedWithMeButton } from './components/ShareButton';
|
|
15
15
|
export var ShareButton = withLocales(function (_ref) {
|
|
16
16
|
var docId = _ref.docId,
|
|
17
17
|
useShortLabel = _ref.useShortLabel,
|
package/dist/ShareButton.spec.js
CHANGED
|
@@ -2,12 +2,12 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["docId", "onClick"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import Grid from 'cozy-ui/transpiled/react/MuiCozyTheme/Grid';
|
|
6
|
+
import Skeleton from 'cozy-ui/transpiled/react/Skeleton';
|
|
7
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
5
8
|
import { ShareButton } from './ShareButton';
|
|
6
9
|
import { SharedRecipients } from './SharedRecipients';
|
|
7
|
-
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
8
10
|
import SharingContext from './context';
|
|
9
|
-
import Grid from 'cozy-ui/transpiled/react/MuiCozyTheme/Grid';
|
|
10
|
-
import Skeleton from 'cozy-ui/transpiled/react/Skeleton';
|
|
11
11
|
export var ShareButtonWithRecipients = function ShareButtonWithRecipients(_ref) {
|
|
12
12
|
var docId = _ref.docId,
|
|
13
13
|
onClick = _ref.onClick,
|
package/dist/ShareModal.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["document"];
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import omit from 'lodash/omit';
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { useLocation } from 'react-router';
|
|
7
|
+
import { SharingDetailsModal } from './SharingDetailsModal';
|
|
7
8
|
import EditableSharingModal from './components/EditableSharingModal';
|
|
8
9
|
import SharingContext from './context';
|
|
9
10
|
import withLocales from './withLocales';
|
|
10
|
-
import { SharingDetailsModal } from './SharingDetailsModal';
|
|
11
11
|
|
|
12
12
|
var SharingModal = function SharingModal(_ref) {
|
|
13
13
|
var document = _ref.document,
|
package/dist/SharedBadge.js
CHANGED
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["docId"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { default as DumbSharedBadge } from './components/SharedBadge';
|
|
5
6
|
import SharingContext from './context';
|
|
6
7
|
import withLocales from './withLocales';
|
|
7
|
-
import { default as DumbSharedBadge } from './components/SharedBadge';
|
|
8
8
|
export var SharedBadge = withLocales(function (_ref) {
|
|
9
9
|
var docId = _ref.docId,
|
|
10
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
package/dist/SharedRecipients.js
CHANGED
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["docId", "onClick"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import RecipientsAvatars from './components/Recipient/RecipientsAvatars';
|
|
5
6
|
import SharingContext from './context';
|
|
6
7
|
import withLocales from './withLocales';
|
|
7
|
-
import RecipientsAvatars from './components/Recipient/RecipientsAvatars';
|
|
8
8
|
export var SharedRecipients = withLocales(function (_ref) {
|
|
9
9
|
var docId = _ref.docId,
|
|
10
10
|
onClick = _ref.onClick,
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["docId"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { default as RecipientsList } from './components/WhoHasAccessLight';
|
|
5
6
|
import SharingContext from './context';
|
|
6
7
|
import withLocales from './withLocales';
|
|
7
|
-
import { default as RecipientsList } from './components/WhoHasAccessLight';
|
|
8
8
|
export var SharedRecipientsList = withLocales(function (_ref) {
|
|
9
9
|
var docId = _ref.docId,
|
|
10
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
package/dist/SharedStatus.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import RecipientsAvatars from './components/Recipient/RecipientsAvatars';
|
|
2
3
|
import SharingContext from './context';
|
|
3
4
|
import withLocales from './withLocales';
|
|
4
|
-
import RecipientsAvatars from './components/Recipient/RecipientsAvatars';
|
|
5
5
|
export var SharedStatus = withLocales(function (_ref) {
|
|
6
6
|
var docId = _ref.docId,
|
|
7
7
|
className = _ref.className,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { render } from '@testing-library/react';
|
|
3
|
-
import
|
|
4
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
2
|
+
import React from 'react';
|
|
5
3
|
import { useClient } from 'cozy-client';
|
|
4
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
|
+
import { SharingBannerCozyToCozy } from './PublicBanner';
|
|
6
6
|
jest.mock('cozy-ui/transpiled/react/I18n');
|
|
7
7
|
jest.mock('cozy-client');
|
|
8
8
|
describe('PublicBanner', function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { useState, useCallback } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import React, { useState, useCallback } from 'react';
|
|
4
4
|
import { SharingBannerByLink, SharingBannerCozyToCozy } from './PublicBanner';
|
|
5
5
|
export var SharingBanner = function SharingBanner(_ref) {
|
|
6
6
|
var sharingInfos = _ref.sharingInfos;
|
|
@@ -3,9 +3,9 @@ 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 getQueryParameter from '../helpers/QueryParameter';
|
|
7
6
|
import logger from '../../logger';
|
|
8
7
|
import { buildSharingsByIdQuery } from '../../queries/queries';
|
|
8
|
+
import getQueryParameter from '../helpers/QueryParameter';
|
|
9
9
|
|
|
10
10
|
var getSharingId = function getSharingId(permission) {
|
|
11
11
|
var sourceId = permission.data.attributes.source_id;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { renderHook, act } from '@testing-library/react-hooks';
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import { createMockClient } from 'cozy-client';
|
|
6
6
|
import { useSharingInfos } from './useSharingInfos';
|
|
7
7
|
import AppLike from '../test/AppLike';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
4
|
-
import { useSharingInfos } from './hooks/useSharingInfos';
|
|
2
|
+
import React from 'react';
|
|
5
3
|
import { SharingBanner } from './components/SharingBanner';
|
|
4
|
+
import { useSharingInfos } from './hooks/useSharingInfos';
|
|
5
|
+
import withLocales from '../withLocales';
|
|
6
6
|
|
|
7
7
|
var Plugin = function Plugin(_ref) {
|
|
8
8
|
var previewPath = _ref.previewPath;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CozyProvider } from 'cozy-client';
|
|
3
2
|
import { Provider } from 'react-redux';
|
|
4
3
|
import { createStore } from 'redux';
|
|
4
|
+
import { CozyProvider } from 'cozy-client';
|
|
5
5
|
import { I18n } from 'cozy-ui/transpiled/react/I18n';
|
|
6
|
-
import SharingContext from '../../context';
|
|
7
|
-
import langEn from '../../../locales/en.json';
|
|
8
|
-
import { ThumbnailSizeContextProvider } from './ThumbnailSizeContext';
|
|
9
6
|
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
10
|
-
import { ModalContext } from './ModalContext';
|
|
11
|
-
import { RouterContext } from './RouterContext';
|
|
12
7
|
import { AcceptingSharingProvider } from './AcceptingSharingContext';
|
|
13
8
|
import FabProvider from './FabProvider';
|
|
9
|
+
import { ModalContext } from './ModalContext';
|
|
10
|
+
import { RouterContext } from './RouterContext';
|
|
11
|
+
import { ThumbnailSizeContextProvider } from './ThumbnailSizeContext';
|
|
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,3 +1,11 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Dialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
4
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
|
+
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
6
|
+
import OwnerIdentity from './components/Recipient/OwnerIdentity';
|
|
7
|
+
import WhoHasAccess from './components/WhoHasAccess';
|
|
8
|
+
import { getDisplayName } from './models';
|
|
1
9
|
var styles = {
|
|
2
10
|
"share-modal-content": "share__share-modal-content___XTtaK",
|
|
3
11
|
"coz-form": "share__coz-form___33NYF",
|
|
@@ -25,14 +33,6 @@ var styles = {
|
|
|
25
33
|
"spin": "share__spin___1P7nU",
|
|
26
34
|
"shake": "share__shake___1EeCI"
|
|
27
35
|
};
|
|
28
|
-
import React from 'react';
|
|
29
|
-
import PropTypes from 'prop-types';
|
|
30
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
31
|
-
import { Dialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
32
|
-
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
33
|
-
import OwnerIdentity from './components/Recipient/OwnerIdentity';
|
|
34
|
-
import WhoHasAccess from './components/WhoHasAccess';
|
|
35
|
-
import { getDisplayName } from './models';
|
|
36
36
|
export var SharingDetailsModal = function SharingDetailsModal(_ref) {
|
|
37
37
|
var onClose = _ref.onClose,
|
|
38
38
|
sharingType = _ref.sharingType,
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["docId"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import RecipientAvatar from './components/Recipient/RecipientAvatar';
|
|
5
6
|
import SharingContext from './context';
|
|
6
7
|
import withLocales from './withLocales';
|
|
7
|
-
import RecipientAvatar from './components/Recipient/RecipientAvatar';
|
|
8
8
|
export var SharingOwnerAvatar = withLocales(function (_ref) {
|
|
9
9
|
var docId = _ref.docId,
|
|
10
10
|
rest = _objectWithoutProperties(_ref, _excluded);
|
package/dist/SharingProvider.js
CHANGED
|
@@ -21,12 +21,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
22
|
import { withClient } from 'cozy-client';
|
|
23
23
|
import SharingContext from './context';
|
|
24
|
-
import reducer, { receiveSharings, addSharing, updateSharing, addSharingLink, updateSharingLink, revokeSharingLink, revokeRecipient, revokeSelf, receivePaths, isOwner as _isOwner, canReshare as _canReshare, getOwner as _getOwner, getRecipients as _getRecipients, getSharingById, getSharingDocIds, getSharingForSelf as _getSharingForSelf, getSharingType as _getSharingType, getSharingLink as _getSharingLink, getSharedDocIdsBySharings, getDocumentSharing, getDocumentPermissions as _getDocumentPermissions, hasSharedParent as _hasSharedParent, hasSharedChild as _hasSharedChild } from './state';
|
|
25
24
|
import { fetchNextPermissions } from './fetchNextPermissions';
|
|
26
25
|
import { fetchFilesPaths } from './helpers/files';
|
|
27
|
-
import { SynchronousJobQueue } from './helpers/synchronousJobQueue';
|
|
28
26
|
import { getSharingObject, createSharingInStore, updateSharingInStore } from './helpers/sharings';
|
|
27
|
+
import { SynchronousJobQueue } from './helpers/synchronousJobQueue';
|
|
29
28
|
import { fetchApps } from './queries/queries';
|
|
29
|
+
import reducer, { receiveSharings, addSharing, updateSharing, addSharingLink, updateSharingLink, revokeSharingLink, revokeRecipient, revokeSelf, receivePaths, isOwner as _isOwner, canReshare as _canReshare, getOwner as _getOwner, getRecipients as _getRecipients, getSharingById, getSharingDocIds, getSharingForSelf as _getSharingForSelf, getSharingType as _getSharingType, getSharingLink as _getSharingLink, getSharedDocIdsBySharings, getDocumentSharing, getDocumentPermissions as _getDocumentPermissions, hasSharedParent as _hasSharedParent, hasSharedChild as _hasSharedChild } from './state';
|
|
30
30
|
var SHARING_DOCTYPE = 'io.cozy.sharings';
|
|
31
31
|
var PERMISSION_DOCTYPE = 'io.cozy.permissions';
|
|
32
32
|
export var SharingProvider = /*#__PURE__*/function (_Component) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { mount } from 'enzyme';
|
|
5
3
|
import { act } from '@testing-library/react';
|
|
4
|
+
import { mount } from 'enzyme';
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { createMockClient } from 'cozy-client';
|
|
7
|
-
import SharingContext from './context';
|
|
8
7
|
import { SharingProvider } from './SharingProvider';
|
|
9
|
-
import
|
|
8
|
+
import SharingContext from './context';
|
|
10
9
|
import { receiveSharings } from './state';
|
|
10
|
+
import AppLike from '../test/AppLike';
|
|
11
11
|
|
|
12
12
|
var AppWrapper = function AppWrapper(_ref) {
|
|
13
13
|
var children = _ref.children,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
1
|
import get from 'lodash/get';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { models } from 'cozy-client';
|
|
5
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
6
5
|
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
6
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
7
|
+
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
7
8
|
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
8
9
|
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
9
|
-
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
10
10
|
import { Contact, Group, getDisplayName, getInitials } from '../models';
|
|
11
11
|
var ContactModel = models.contact;
|
|
12
12
|
export var ContactSuggestion = function ContactSuggestion(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { mount } from 'enzyme';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import { ContactSuggestion } from './ContactSuggestion';
|
|
4
|
+
import AppLike from '../../test/AppLike';
|
|
5
5
|
|
|
6
6
|
var WrappingComponent = function WrappingComponent(_ref) {
|
|
7
7
|
var children = _ref.children;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import cx from 'classnames';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import snarkdown from 'snarkdown';
|
|
5
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
3
6
|
import Paper from 'cozy-ui/transpiled/react/Paper';
|
|
4
7
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
5
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
6
|
-
import snarkdown from 'snarkdown';
|
|
7
|
-
import cx from 'classnames';
|
|
8
8
|
var styles = {
|
|
9
9
|
"cozy-pass-fingerprint-modal__fingerprint": "CozyPassFingerprintDialogContent__cozy-pass-fingerprint-modal__fingerprint___2O7dO"
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { render } from '@testing-library/react';
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import { createMockClient } from 'cozy-client';
|
|
6
|
-
import AppLike from '../../test/AppLike';
|
|
7
6
|
import { CozyPassFingerprintDialogContent } from './CozyPassFingerprintDialogContent';
|
|
7
|
+
import AppLike from '../../test/AppLike';
|
|
8
8
|
describe('CozyPassFingerprintDialogContent', function () {
|
|
9
9
|
var client = createMockClient({});
|
|
10
10
|
client.options = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
|
-
import {
|
|
5
|
-
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
3
|
+
import React, { useState } from 'react';
|
|
6
4
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
7
|
-
import
|
|
8
|
-
import RadioGroup from 'cozy-ui/transpiled/react/RadioGroup';
|
|
5
|
+
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
9
6
|
import FormControlLabel from 'cozy-ui/transpiled/react/FormControlLabel';
|
|
7
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
8
|
+
import RadioGroup from 'cozy-ui/transpiled/react/RadioGroup';
|
|
9
|
+
import Radio from 'cozy-ui/transpiled/react/Radios';
|
|
10
10
|
|
|
11
11
|
var EditLinkPermissionDialog = function EditLinkPermissionDialog(_ref) {
|
|
12
12
|
var open = _ref.open,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { createMockClient } from 'cozy-client';
|
|
5
|
-
import AppLike from '../../test/AppLike';
|
|
6
5
|
import EditLinkPermissionDialog from './EditLinkPermissionDialog';
|
|
6
|
+
import AppLike from '../../test/AppLike';
|
|
7
7
|
describe('EditLinkPermissionDialog', function () {
|
|
8
8
|
var client = createMockClient({});
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["document"];
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { useClient, useQueryAll } from 'cozy-client';
|
|
7
|
-
import { Contact } from '../models';
|
|
8
|
-
import SharingContext from '../context';
|
|
9
7
|
import { default as DumbShareModal } from './ShareModal';
|
|
10
8
|
import { useFetchDocumentPath } from './useFetchDocumentPath';
|
|
9
|
+
import SharingContext from '../context';
|
|
10
|
+
import { Contact } from '../models';
|
|
11
11
|
import { buildContactsQuery, buildGroupsQuery } from '../queries/queries';
|
|
12
12
|
export var EditableSharingModal = function EditableSharingModal(_ref) {
|
|
13
13
|
var document = _ref.document,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { mount } from 'enzyme';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { createMockClient } from 'cozy-client';
|
|
4
4
|
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
5
|
-
import
|
|
5
|
+
import { EditableSharingModal } from './EditableSharingModal';
|
|
6
6
|
import { default as DumbShareModal } from './ShareModal';
|
|
7
|
+
import { useFetchDocumentPath } from './useFetchDocumentPath';
|
|
8
|
+
import AppLike from '../../test/AppLike';
|
|
7
9
|
import { SharingProvider } from '../SharingProvider';
|
|
8
10
|
import { receivePaths } from '../state';
|
|
9
|
-
import { useFetchDocumentPath } from './useFetchDocumentPath';
|
|
10
|
-
import { EditableSharingModal } from './EditableSharingModal';
|
|
11
11
|
jest.mock('./useFetchDocumentPath', function () {
|
|
12
12
|
return {
|
|
13
13
|
useFetchDocumentPath: jest.fn()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
1
|
import uniqueId from 'lodash/uniqueId';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
5
5
|
import { SharingTooltip, TooltipRecipientList } from '../Tooltip';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
1
|
import classNames from 'classnames';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
var styles = {
|
|
5
5
|
"CozyTheme--inverted": "recipient__CozyTheme--inverted___2Hb9c",
|
|
6
6
|
"CozyTheme--normal": "recipient__CozyTheme--normal___3WdEw",
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Circle from 'cozy-ui/transpiled/react/Circle';
|
|
5
|
+
import Fade from 'cozy-ui/transpiled/react/Fade';
|
|
4
6
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
|
-
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
6
|
-
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
7
|
-
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
8
7
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
8
|
import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link';
|
|
10
|
-
import
|
|
9
|
+
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
10
|
+
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
11
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
11
12
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
12
|
-
import Fade from 'cozy-ui/transpiled/react/Fade';
|
|
13
|
-
import { FADE_IN_DURATION } from '../../helpers/recipients';
|
|
14
|
-
import RecipientConfirm from './RecipientConfirm';
|
|
15
13
|
import LinkRecipientPermissions from './LinkRecipientPermissions';
|
|
14
|
+
import RecipientConfirm from './RecipientConfirm';
|
|
16
15
|
var styles = {
|
|
17
16
|
"CozyTheme--inverted": "recipient__CozyTheme--inverted___2Hb9c",
|
|
18
17
|
"CozyTheme--normal": "recipient__CozyTheme--normal___3WdEw",
|
|
@@ -32,6 +31,7 @@ var styles = {
|
|
|
32
31
|
"spin": "recipient__spin___3_Uja",
|
|
33
32
|
"shake": "recipient__shake___TrWC0"
|
|
34
33
|
};
|
|
34
|
+
import { FADE_IN_DURATION } from '../../helpers/recipients';
|
|
35
35
|
|
|
36
36
|
var LinkRecipient = function LinkRecipient(props) {
|
|
37
37
|
var _useI18n = useI18n(),
|
|
@@ -2,16 +2,16 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import React, { useState, useRef } from 'react';
|
|
5
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
6
|
-
import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton';
|
|
7
5
|
import ActionMenu, { ActionMenuItem, ActionMenuRadio } from 'cozy-ui/transpiled/react/ActionMenu';
|
|
8
|
-
import
|
|
6
|
+
import Alerter from 'cozy-ui/transpiled/react/Alerter';
|
|
7
|
+
import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton';
|
|
8
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
9
9
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
10
10
|
import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
|
|
11
|
-
import Alerter from 'cozy-ui/transpiled/react/Alerter';
|
|
12
11
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
13
|
-
import
|
|
12
|
+
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
14
13
|
import { isOnlyReadOnlyLinkAllowed } from '../../helpers/link';
|
|
14
|
+
import { checkIsReadOnlyPermissions } from '../../helpers/permissions';
|
|
15
15
|
import logger from '../../logger';
|
|
16
16
|
|
|
17
17
|
var LinkRecipientPermissions = function LinkRecipientPermissions(_ref) {
|
|
@@ -2,6 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
var _excluded = ["url", "size"];
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
5
|
+
import Identity from './Identity';
|
|
5
6
|
var styles = {
|
|
6
7
|
"CozyTheme--inverted": "recipient__CozyTheme--inverted___2Hb9c",
|
|
7
8
|
"CozyTheme--normal": "recipient__CozyTheme--normal___3WdEw",
|
|
@@ -22,7 +23,6 @@ var styles = {
|
|
|
22
23
|
"shake": "recipient__shake___TrWC0"
|
|
23
24
|
};
|
|
24
25
|
import { getDisplayName, getInitials } from '../../models';
|
|
25
|
-
import Identity from './Identity';
|
|
26
26
|
|
|
27
27
|
var OwnerIdentity = function OwnerIdentity(_ref) {
|
|
28
28
|
var url = _ref.url,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import OwnerRecipientDefault from './OwnerRecipientDefault';
|
|
4
|
+
import Recipient from './Recipient';
|
|
5
5
|
|
|
6
6
|
var OwnerRecipient = function OwnerRecipient(_ref) {
|
|
7
7
|
var recipients = _ref.recipients;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["instance", "isOwner", "status", "recipientConfirmationData", "verifyRecipient", "fadeIn"];
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { useClient } from 'cozy-client';
|
|
7
|
+
import Fade from 'cozy-ui/transpiled/react/Fade';
|
|
7
8
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
9
|
+
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
8
10
|
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
9
11
|
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
10
|
-
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
11
12
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
12
|
-
import
|
|
13
|
-
import { FADE_IN_DURATION } from '../../helpers/recipients';
|
|
14
|
-
import { getDisplayName } from '../../models';
|
|
13
|
+
import RecipientAvatar from './RecipientAvatar';
|
|
15
14
|
import RecipientConfirm from './RecipientConfirm';
|
|
16
15
|
import RecipientPermissions from './RecipientPermissions';
|
|
17
|
-
import RecipientAvatar from './RecipientAvatar';
|
|
18
16
|
import RecipientStatus from './RecipientStatus';
|
|
17
|
+
import { FADE_IN_DURATION } from '../../helpers/recipients';
|
|
18
|
+
import { getDisplayName } from '../../models';
|
|
19
19
|
var DEFAULT_DISPLAY_NAME = 'Share.contacts.defaultDisplayName';
|
|
20
20
|
|
|
21
21
|
var Recipient = function Recipient(props) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { render, fireEvent } from '@testing-library/react';
|
|
3
4
|
import React from 'react';
|
|
5
|
+
import { createMockClient } from 'cozy-client';
|
|
4
6
|
import Recipient from './Recipient';
|
|
5
7
|
import AppLike from '../../../test/AppLike';
|
|
6
|
-
import { createMockClient } from 'cozy-client';
|
|
7
|
-
import { render, fireEvent } from '@testing-library/react';
|
|
8
8
|
describe('Recipient component', function () {
|
|
9
9
|
var client = createMockClient({});
|
|
10
10
|
client.options = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import Button from 'cozy-ui/transpiled/react/Button';
|
|
4
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
5
5
|
var modalStyles = {
|
|
6
6
|
"share-modal-content": "share__share-modal-content___XTtaK",
|
|
7
7
|
"coz-form": "share__coz-form___33NYF",
|
|
@@ -3,15 +3,15 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import React, { useState, useRef, useCallback } from 'react';
|
|
5
5
|
import { useClient } from 'cozy-client';
|
|
6
|
-
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
7
|
-
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
8
|
-
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
9
|
-
import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton';
|
|
10
6
|
import ActionMenu, { ActionMenuItem } from 'cozy-ui/transpiled/react/ActionMenu';
|
|
7
|
+
import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton';
|
|
8
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
11
9
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
10
|
+
import EyeIcon from 'cozy-ui/transpiled/react/Icons/Eye';
|
|
12
11
|
import RenameIcon from 'cozy-ui/transpiled/react/Icons/Rename';
|
|
13
12
|
import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
|
|
14
|
-
import
|
|
13
|
+
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
14
|
+
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
15
15
|
|
|
16
16
|
var RecipientPermissions = function RecipientPermissions(_ref) {
|
|
17
17
|
var isOwner = _ref.isOwner,
|