cozy-sharing 4.0.2 → 4.1.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 +41 -0
- package/dist/ShareButton.js +2 -2
- package/dist/ShareButton.spec.js +1 -1
- package/dist/SharingBanner/components/PublicBanner.js +1 -1
- package/dist/SharingBanner/test/AppLike.js +1 -1
- package/dist/SharingDetailsModal.js +1 -0
- package/dist/SharingProvider.js +3 -3
- package/dist/components/ContactSuggestion.js +1 -0
- package/dist/components/ContactsAndGroupsDataLoader.js +1 -1
- package/dist/components/Identity.js +1 -0
- package/dist/components/Recipient.js +2 -0
- package/dist/components/ShareAutosuggest.js +5 -4
- package/dist/components/ShareButton.js +2 -1
- package/dist/components/ShareByEmail.js +4 -3
- package/dist/components/ShareByLink.js +4 -3
- package/dist/components/ShareDialogCozyToCozy.js +1 -0
- package/dist/components/ShareDialogCozyToCozy.spec.js +2 -2
- package/dist/components/ShareDialogTwoStepsConfirmationContainer.spec.js +2 -2
- package/dist/components/ShareRecipientsInput.js +2 -1
- package/dist/components/SharedBadge.js +1 -0
- package/dist/components/Sharesubmit.js +1 -1
- package/dist/components/Sharetypeselect.js +4 -3
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/WhoHasAccessLight.js +1 -0
- package/dist/helpers/realtime.js +2 -2
- package/dist/state.js +2 -2
- package/dist/state.spec.js +2 -2
- package/dist/stylesheet.css +1220 -235
- package/package.json +8 -8
- package/src/ShareButton.spec.jsx +1 -1
- package/src/SharingBanner/components/PublicBanner.jsx +1 -1
- package/src/SharingBanner/test/AppLike.jsx +1 -1
- package/src/components/ShareAutosuggest.jsx +1 -1
- package/src/components/ShareButton.jsx +1 -1
- package/src/components/Sharesubmit.jsx +1 -1
- package/src/components/Sharetypeselect.jsx +1 -1
- package/test/AppLike.jsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -28,25 +28,25 @@
|
|
|
28
28
|
"@cozy/minilog": "^1.0.0",
|
|
29
29
|
"classnames": "^2.2.6",
|
|
30
30
|
"copy-text-to-clipboard": "^2.1.1",
|
|
31
|
-
"cozy-device-helper": "^1.
|
|
32
|
-
"cozy-doctypes": "^1.83.
|
|
31
|
+
"cozy-device-helper": "^1.17.0",
|
|
32
|
+
"cozy-doctypes": "^1.83.5",
|
|
33
33
|
"lodash": "^4.17.19",
|
|
34
34
|
"react-autosuggest": "^9.4.3",
|
|
35
35
|
"react-tooltip": "^3.11.1",
|
|
36
36
|
"snarkdown": "^2.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "7.12
|
|
40
|
-
"@material-ui/core": "4",
|
|
39
|
+
"@babel/core": "7.16.12",
|
|
40
|
+
"@material-ui/core": "4.12.3",
|
|
41
41
|
"babel-jest": "26.6.3",
|
|
42
42
|
"babel-plugin-css-modules-transform": "^1.6.2",
|
|
43
43
|
"babel-plugin-inline-react-svg": "^1.1.0",
|
|
44
44
|
"cozy-client": "23.19.1",
|
|
45
|
-
"cozy-ui": "
|
|
45
|
+
"cozy-ui": "62.0.0",
|
|
46
46
|
"enzyme": "3.11.0",
|
|
47
47
|
"enzyme-adapter-react-16": "1.15.6",
|
|
48
48
|
"enzyme-to-json": "3.4.4",
|
|
49
|
-
"jest": "26.
|
|
49
|
+
"jest": "26.6.3",
|
|
50
50
|
"react": "^16.12.0",
|
|
51
51
|
"react-dom": "^16.12.0"
|
|
52
52
|
},
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"sideEffects": [
|
|
62
62
|
"*.css"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "3c63b047c4778b45c04582e76361ca84ebce62a3"
|
|
65
65
|
}
|
package/src/ShareButton.spec.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { render } from '@testing-library/react'
|
|
3
3
|
import { ShareButton } from './ShareButton'
|
|
4
4
|
|
|
5
|
-
jest.mock('cozy-ui/transpiled/react', () => ({
|
|
5
|
+
jest.mock('cozy-ui/transpiled/react/Button', () => ({
|
|
6
6
|
Button: props => {
|
|
7
7
|
if (props.t || props.t || props.lang) {
|
|
8
8
|
throw 'do not pass html button invalid props'
|
|
@@ -5,7 +5,7 @@ import snarkdown from 'snarkdown'
|
|
|
5
5
|
import { useClient } from 'cozy-client'
|
|
6
6
|
import Banner from 'cozy-ui/transpiled/react/Banner'
|
|
7
7
|
import Button, { ButtonLink } from 'cozy-ui/transpiled/react/Button'
|
|
8
|
-
import { useI18n } from 'cozy-ui/transpiled/react'
|
|
8
|
+
import { useI18n } from 'cozy-ui/transpiled/react/I18n'
|
|
9
9
|
|
|
10
10
|
import CozyHomeLinkIcon from './CozyHomeLinkIcon'
|
|
11
11
|
import getHomeLinkHref from './getHomeLinkHref'
|
|
@@ -3,7 +3,7 @@ import { CozyProvider } from 'cozy-client'
|
|
|
3
3
|
import { Provider } from 'react-redux'
|
|
4
4
|
import { createStore } from 'redux'
|
|
5
5
|
|
|
6
|
-
import { I18n } from 'cozy-ui/transpiled/react'
|
|
6
|
+
import { I18n } from 'cozy-ui/transpiled/react/I18n'
|
|
7
7
|
import SharingContext from '../../context'
|
|
8
8
|
|
|
9
9
|
import langEn from '../../../locales/en.json'
|
|
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import Autosuggest from 'react-autosuggest'
|
|
4
4
|
|
|
5
|
-
import { Spinner } from 'cozy-ui/transpiled/react'
|
|
5
|
+
import { Spinner } from 'cozy-ui/transpiled/react/Spinner'
|
|
6
6
|
import palette from 'cozy-ui/transpiled/react/palette'
|
|
7
7
|
|
|
8
8
|
import styles from './autosuggest.styl'
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
|
|
|
4
4
|
|
|
5
5
|
import SelectBox, { components } from 'cozy-ui/transpiled/react/SelectBox'
|
|
6
6
|
import palette from 'cozy-ui/transpiled/react/palette'
|
|
7
|
-
import
|
|
7
|
+
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
8
8
|
|
|
9
9
|
import styles from '../share.styl'
|
|
10
10
|
|
package/test/AppLike.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/hooks/useBreakpoints'
|
|
4
|
-
import { I18n } from 'cozy-ui/transpiled/react'
|
|
4
|
+
import { I18n } from 'cozy-ui/transpiled/react/I18n'
|
|
5
5
|
import { CozyProvider, createMockClient } from 'cozy-client'
|
|
6
6
|
|
|
7
7
|
import langEn from '../locales/en.json'
|