cozy-sharing 27.2.0 → 28.0.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/.storybook/preview.jsx +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/OpenSharingLinkButton.js +1 -1
- package/dist/OpenSharingLinkFabButton.js +1 -1
- package/dist/ShareButton.js +1 -1
- package/dist/ShareButton.spec.js +1 -1
- package/dist/components/ConfirmTrustedRecipientsDialog.js +1 -1
- package/dist/components/ContactSuggestion.js +1 -1
- package/dist/components/CozyPassFingerprintDialogContent.js +1 -1
- package/dist/components/Recipient/GroupRecipient.js +1 -1
- package/dist/components/Recipient/GroupRecipientDetail.js +1 -1
- package/dist/components/Recipient/GroupRecipientDetailWithAccess.js +1 -1
- package/dist/components/Recipient/GroupRecipientDetailWithoutAccess.js +1 -1
- package/dist/components/Recipient/GroupRecipientPermissions.js +4 -1
- package/dist/components/Recipient/LinkRecipient.js +1 -1
- package/dist/components/Recipient/LinkRecipientLite.js +1 -1
- package/dist/components/Recipient/LinkRecipientPermissions.js +1 -1
- package/dist/components/Recipient/MemberRecipient.js +1 -1
- package/dist/components/Recipient/MemberRecipientLite.js +1 -1
- package/dist/components/Recipient/MemberRecipientPermissions.js +2 -1
- package/dist/components/Recipient/MemberRecipientStatus.js +1 -1
- package/dist/components/Recipient/RecipientConfirm.js +1 -1
- package/dist/components/ShareByEmail.js +1 -1
- package/dist/components/ShareByLink.js +1 -1
- package/dist/components/ShareDialogCozyToCozy.js +1 -1
- package/dist/components/ShareDialogOnlyByLink.js +1 -1
- package/dist/components/ShareDialogTwoStepsConfirmationContainer.js +1 -1
- package/dist/components/ShareModal/SharingDetailsModal.js +1 -1
- package/dist/components/ShareRecipientsLimitModal.js +1 -1
- package/dist/components/ShareRestrictionModal/BoxDate.js +1 -1
- package/dist/components/ShareRestrictionModal/BoxEditingRights.js +4 -1
- package/dist/components/ShareRestrictionModal/BoxPassword.js +1 -1
- package/dist/components/ShareRestrictionModal/ShareRestrictionContentModal.js +1 -1
- package/dist/components/ShareRestrictionModal/ShareRestrictionModal.js +1 -1
- package/dist/components/SharedDrive/DumbSharedDriveModal.js +1 -1
- package/dist/components/SharedDrive/SharedDriveEditModal.js +1 -1
- package/dist/components/SharedDrive/SharedDriveModal.js +1 -1
- package/dist/components/SharedDrive/SharedDriveRecipient.js +1 -1
- package/dist/components/SharedDrive/SharedDriveRecipientPermissions.js +4 -1
- package/dist/components/SharedDrive/SharedDriveRecipientStatus.js +1 -1
- package/dist/components/SharedStatus.js +1 -1
- package/dist/components/SharingBanner/components/PublicBanner.js +1 -1
- package/dist/components/SharingBanner/components/PublicBanner.spec.js +2 -2
- package/dist/components/SharingBanner/hooks/useSharingInfos.js +1 -1
- package/dist/components/SharingBanner/test/AppLike.js +1 -1
- package/dist/components/WhoHasAccess.js +1 -1
- package/dist/hoc/withLocales.js +2 -2
- package/package.json +9 -7
- package/src/OpenSharingLinkButton.jsx +1 -1
- package/src/OpenSharingLinkFabButton.jsx +1 -1
- package/src/ShareButton.jsx +1 -2
- package/src/ShareButton.spec.jsx +1 -1
- package/src/components/ConfirmTrustedRecipientsDialog.jsx +1 -1
- package/src/components/ContactSuggestion.jsx +1 -1
- package/src/components/CozyPassFingerprintDialogContent.jsx +1 -1
- package/src/components/Recipient/GroupRecipient.jsx +1 -1
- package/src/components/Recipient/GroupRecipientDetail.jsx +1 -1
- package/src/components/Recipient/GroupRecipientDetailWithAccess.jsx +1 -1
- package/src/components/Recipient/GroupRecipientDetailWithoutAccess.jsx +1 -1
- package/src/components/Recipient/GroupRecipientPermissions.jsx +4 -1
- package/src/components/Recipient/LinkRecipient.jsx +1 -1
- package/src/components/Recipient/LinkRecipientLite.jsx +1 -1
- package/src/components/Recipient/LinkRecipientPermissions.jsx +1 -1
- package/src/components/Recipient/MemberRecipient.jsx +1 -1
- package/src/components/Recipient/MemberRecipientLite.jsx +1 -1
- package/src/components/Recipient/MemberRecipientPermissions.jsx +2 -1
- package/src/components/Recipient/MemberRecipientStatus.jsx +1 -1
- package/src/components/Recipient/RecipientConfirm.jsx +1 -1
- package/src/components/ShareByEmail.jsx +1 -1
- package/src/components/ShareByLink.jsx +1 -1
- package/src/components/ShareDialogCozyToCozy.jsx +1 -1
- package/src/components/ShareDialogOnlyByLink.jsx +1 -1
- package/src/components/ShareDialogTwoStepsConfirmationContainer.jsx +1 -1
- package/src/components/ShareModal/SharingDetailsModal.jsx +1 -1
- package/src/components/ShareRecipientsLimitModal.jsx +1 -1
- package/src/components/ShareRestrictionModal/BoxDate.jsx +1 -1
- package/src/components/ShareRestrictionModal/BoxEditingRights.jsx +4 -1
- package/src/components/ShareRestrictionModal/BoxPassword.jsx +1 -1
- package/src/components/ShareRestrictionModal/ShareRestrictionContentModal.jsx +1 -1
- package/src/components/ShareRestrictionModal/ShareRestrictionModal.jsx +1 -1
- package/src/components/SharedDrive/DumbSharedDriveModal.jsx +1 -1
- package/src/components/SharedDrive/SharedDriveEditModal.jsx +1 -1
- package/src/components/SharedDrive/SharedDriveModal.jsx +1 -1
- package/src/components/SharedDrive/SharedDriveRecipient.jsx +1 -1
- package/src/components/SharedDrive/SharedDriveRecipientPermissions.jsx +4 -1
- package/src/components/SharedDrive/SharedDriveRecipientStatus.jsx +1 -1
- package/src/components/SharedStatus.jsx +1 -2
- package/src/components/SharingBanner/components/PublicBanner.jsx +1 -1
- package/src/components/SharingBanner/components/PublicBanner.spec.jsx +2 -2
- package/src/components/SharingBanner/hooks/useSharingInfos.jsx +1 -1
- package/src/components/SharingBanner/test/AppLike.jsx +1 -1
- package/src/components/WhoHasAccess.jsx +1 -1
- package/src/hoc/withLocales.jsx +2 -3
- package/test/AppLike.jsx +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React, { useState } from 'react'
|
|
3
|
+
import { useI18n } from 'twake-i18n'
|
|
3
4
|
|
|
4
5
|
import { useClient } from 'cozy-client'
|
|
5
6
|
import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert'
|
|
6
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
7
7
|
|
|
8
8
|
import { DumbSharedDriveModal } from './DumbSharedDriveModal'
|
|
9
9
|
import { mergeAndDeduplicateRecipients, formatRecipients } from './helpers'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
|
+
import { useI18n } from 'twake-i18n'
|
|
3
4
|
|
|
4
5
|
import Fade from 'cozy-ui/transpiled/react/Fade'
|
|
5
6
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
@@ -7,7 +8,6 @@ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
|
7
8
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
8
9
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
9
10
|
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
10
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
11
11
|
|
|
12
12
|
import SharedDriveRecipientPermissions from './SharedDriveRecipientPermissions'
|
|
13
13
|
import SharedDriveRecipientStatus from './SharedDriveRecipientStatus'
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react'
|
|
2
|
+
import { useI18n } from 'twake-i18n'
|
|
2
3
|
|
|
4
|
+
import { useClient } from 'cozy-client'
|
|
3
5
|
import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
|
|
4
6
|
import {
|
|
5
7
|
makeActions,
|
|
6
8
|
divider
|
|
7
9
|
} from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
|
|
8
10
|
import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'
|
|
9
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
10
11
|
|
|
11
12
|
import { revokeSharedDriveMember } from '../Recipient/actions/revokeSharedDriveMember'
|
|
12
13
|
import { setReadOnlySharedPermission } from '../Recipient/actions/setReadOnlySharedPermission'
|
|
@@ -20,6 +21,7 @@ const ShareDriveRecipientPermissions = ({
|
|
|
20
21
|
}) => {
|
|
21
22
|
const { t } = useI18n()
|
|
22
23
|
const buttonRef = useRef()
|
|
24
|
+
const client = useClient()
|
|
23
25
|
const [isMenuDisplayed, setMenuDisplayed] = useState(false)
|
|
24
26
|
|
|
25
27
|
const toggleMenu = () => setMenuDisplayed(!isMenuDisplayed)
|
|
@@ -46,6 +48,7 @@ const ShareDriveRecipientPermissions = ({
|
|
|
46
48
|
],
|
|
47
49
|
{
|
|
48
50
|
t,
|
|
51
|
+
client,
|
|
49
52
|
type,
|
|
50
53
|
setType,
|
|
51
54
|
handleRevocation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useI18n } from 'twake-i18n'
|
|
2
3
|
|
|
3
4
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
4
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
5
5
|
|
|
6
6
|
const SharedDriveRecipientStatus = ({ members, email }) => {
|
|
7
7
|
const { t } = useI18n()
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import cx from 'classnames'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
|
|
4
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
3
|
+
import { useI18n } from 'twake-i18n'
|
|
5
4
|
|
|
6
5
|
import { SharingTooltip, TooltipRecipientList } from './Tooltip'
|
|
7
6
|
import LinkIcon from '../assets/icons/icon-link.svg'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import snarkdown from 'snarkdown'
|
|
4
|
+
import { useI18n } from 'twake-i18n'
|
|
4
5
|
|
|
5
6
|
import { useClient } from 'cozy-client'
|
|
6
7
|
import flag from 'cozy-flags'
|
|
7
8
|
import Banner from 'cozy-ui/transpiled/react/Banner'
|
|
8
9
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
9
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
10
10
|
|
|
11
11
|
import CozyHomeLinkIcon from './CozyHomeLinkIcon'
|
|
12
12
|
import styles from '../../../styles/publicBanner.styl'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { render } from '@testing-library/react'
|
|
2
2
|
import React from 'react'
|
|
3
|
+
import { useI18n } from 'twake-i18n'
|
|
3
4
|
|
|
4
5
|
import { useClient } from 'cozy-client'
|
|
5
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
6
6
|
|
|
7
7
|
import { SharingBannerCozyToCozy } from './PublicBanner'
|
|
8
8
|
|
|
9
|
-
jest.mock('
|
|
9
|
+
jest.mock('twake-i18n')
|
|
10
10
|
jest.mock('cozy-client')
|
|
11
11
|
|
|
12
12
|
describe('PublicBanner', () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react'
|
|
2
2
|
|
|
3
3
|
import { useClient, models } from 'cozy-client'
|
|
4
|
+
import flag from 'cozy-flags'
|
|
4
5
|
|
|
5
6
|
import logger from '../../../logger'
|
|
6
7
|
import { buildSharingsByIdQuery } from '../../../queries/queries'
|
|
7
8
|
import getQueryParameter from '../helpers/QueryParameter'
|
|
8
|
-
import flag from 'cozy-flags'
|
|
9
9
|
|
|
10
10
|
const getSharingId = permission => {
|
|
11
11
|
const sourceId = permission.data.attributes.source_id
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Provider } from 'react-redux'
|
|
3
3
|
import { createStore } from 'redux'
|
|
4
|
+
import { I18n } from 'twake-i18n'
|
|
4
5
|
|
|
5
6
|
import { CozyProvider } from 'cozy-client'
|
|
6
7
|
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
7
|
-
import { I18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
8
8
|
|
|
9
9
|
import { AcceptingSharingProvider } from './AcceptingSharingContext'
|
|
10
10
|
import FabProvider from './FabProvider'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
|
+
import { useI18n } from 'twake-i18n'
|
|
3
4
|
|
|
4
5
|
import List from 'cozy-ui/transpiled/react/List'
|
|
5
|
-
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
6
6
|
|
|
7
7
|
import LinkRecipient from './Recipient/LinkRecipient'
|
|
8
8
|
import OwnerRecipient from './Recipient/OwnerRecipient'
|
package/src/hoc/withLocales.jsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import { getI18n } from 'cozy-ui/transpiled/react/providers/I18n/helpers'
|
|
2
|
+
import { I18n, translate } from 'twake-i18n'
|
|
3
|
+
import { getI18n } from 'twake-i18n'
|
|
5
4
|
|
|
6
5
|
const locales = {
|
|
7
6
|
en: require(`../../locales/en.json`),
|
package/test/AppLike.jsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { I18n } from 'twake-i18n'
|
|
2
3
|
|
|
3
4
|
import { CozyProvider, createMockClient } from 'cozy-client'
|
|
4
5
|
import AlertProvider from 'cozy-ui/transpiled/react/providers/Alert'
|
|
5
6
|
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
6
|
-
import { I18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
7
7
|
import CozyTheme from 'cozy-ui-plus/dist/providers/CozyTheme'
|
|
8
8
|
|
|
9
9
|
import langEn from '../locales/en.json'
|