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.
Files changed (37) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/ShareButton.js +2 -2
  3. package/dist/ShareButton.spec.js +1 -1
  4. package/dist/SharingBanner/components/PublicBanner.js +1 -1
  5. package/dist/SharingBanner/test/AppLike.js +1 -1
  6. package/dist/SharingDetailsModal.js +1 -0
  7. package/dist/SharingProvider.js +3 -3
  8. package/dist/components/ContactSuggestion.js +1 -0
  9. package/dist/components/ContactsAndGroupsDataLoader.js +1 -1
  10. package/dist/components/Identity.js +1 -0
  11. package/dist/components/Recipient.js +2 -0
  12. package/dist/components/ShareAutosuggest.js +5 -4
  13. package/dist/components/ShareButton.js +2 -1
  14. package/dist/components/ShareByEmail.js +4 -3
  15. package/dist/components/ShareByLink.js +4 -3
  16. package/dist/components/ShareDialogCozyToCozy.js +1 -0
  17. package/dist/components/ShareDialogCozyToCozy.spec.js +2 -2
  18. package/dist/components/ShareDialogTwoStepsConfirmationContainer.spec.js +2 -2
  19. package/dist/components/ShareRecipientsInput.js +2 -1
  20. package/dist/components/SharedBadge.js +1 -0
  21. package/dist/components/Sharesubmit.js +1 -1
  22. package/dist/components/Sharetypeselect.js +4 -3
  23. package/dist/components/Tooltip.js +1 -1
  24. package/dist/components/WhoHasAccessLight.js +1 -0
  25. package/dist/helpers/realtime.js +2 -2
  26. package/dist/state.js +2 -2
  27. package/dist/state.spec.js +2 -2
  28. package/dist/stylesheet.css +1220 -235
  29. package/package.json +8 -8
  30. package/src/ShareButton.spec.jsx +1 -1
  31. package/src/SharingBanner/components/PublicBanner.jsx +1 -1
  32. package/src/SharingBanner/test/AppLike.jsx +1 -1
  33. package/src/components/ShareAutosuggest.jsx +1 -1
  34. package/src/components/ShareButton.jsx +1 -1
  35. package/src/components/Sharesubmit.jsx +1 -1
  36. package/src/components/Sharetypeselect.jsx +1 -1
  37. 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.2",
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.16.1",
32
- "cozy-doctypes": "^1.83.3",
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.3",
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": "54.0.0",
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.2.2",
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": "bee23139882151ec2e55d817755fbfbb5798d4b2"
64
+ "gitHead": "3c63b047c4778b45c04582e76361ca84ebce62a3"
65
65
  }
@@ -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'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import classNames from 'classnames'
3
- import { Button } from 'cozy-ui/transpiled/react'
3
+ import { Button } from 'cozy-ui/transpiled/react/Button'
4
4
 
5
5
  import styles from './button.styl'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
- import { Button } from 'cozy-ui/transpiled/react'
3
+ import { Button } from 'cozy-ui/transpiled/react/Button'
4
4
 
5
5
  const ShareSubmit = props => (
6
6
  <Button
@@ -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 { Icon } from 'cozy-ui/transpiled/react'
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'