cozy-ui 81.0.0 → 81.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 +7 -0
- package/package.json +1 -1
- package/react/ActionMenu/index.spec.jsx +1 -1
- package/react/Alerter/alerter.spec.js +1 -1
- package/react/AppLinker/index.deprecated.spec.jsx +1 -1
- package/react/AppLinker/index.spec.jsx +1 -1
- package/react/AppLinker/native.js +1 -1
- package/react/AppTile/AppTile.spec.jsx +1 -1
- package/react/Avatar/index.jsx +1 -0
- package/react/Banner/index.spec.jsx +1 -1
- package/react/CipherIcon/index.spec.jsx +1 -1
- package/react/ContactsList/Contacts/ContactCozy.jsx +4 -1
- package/react/ContactsList/Contacts/ContactEmail.jsx +4 -1
- package/react/ContactsList/Contacts/ContactIdentity.jsx +1 -0
- package/react/ContactsList/Contacts/ContactName.jsx +1 -0
- package/react/ContactsList/Contacts/ContactPhone.jsx +4 -1
- package/react/ContactsList/__snapshots__/ContactRow.spec.js.snap +6 -0
- package/react/ContactsListModal/index.jsx +1 -1
- package/react/DateMonthPicker/index.spec.jsx +1 -1
- package/react/Field/index.spec.js +1 -1
- package/react/FileInput/index.spec.jsx +1 -1
- package/react/FilePicker/FilePickerHeader.jsx +1 -1
- package/react/I18n/withLocales.jsx +1 -1
- package/react/Input/index.spec.jsx +1 -1
- package/react/Modal/index.spec.jsx +1 -1
- package/react/PieChart/index.spec.jsx +1 -1
- package/react/Popup/index.spec.jsx +1 -1
- package/react/PushClientButton/index.spec.jsx +1 -1
- package/react/Radio/index.spec.jsx +1 -1
- package/react/SquareAppIcon/SquareAppIcon.spec.js +1 -1
- package/react/UploadQueue/index.spec.jsx +1 -1
- package/react/ViewStack/example.jsx +1 -1
- package/react/ViewStack/index.spec.jsx +1 -1
- package/react/Viewer/Viewer.jsx +1 -1
- package/react/Viewer/ViewerExposer.js +1 -1
- package/react/Viewer/components/ViewerControls.jsx +1 -1
- package/react/__snapshots__/examples.spec.jsx.snap +795 -795
- package/react/hooks/useConfirmExit/index.spec.js +1 -1
- package/transpiled/react/AppLinker/native.js +1 -1
- package/transpiled/react/Avatar/index.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactCozy.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactEmail.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactIdentity.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactName.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactPhone.js +2 -0
- package/transpiled/react/ContactsListModal/index.js +1 -1
- package/transpiled/react/FilePicker/FilePickerHeader.js +1 -1
- package/transpiled/react/ViewStack/example.js +1 -1
- package/transpiled/react/Viewer/Viewer.js +1 -1
- package/transpiled/react/Viewer/ViewerExposer.js +1 -1
- package/transpiled/react/Viewer/components/ViewerControls.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [81.1.0](https://github.com/cozy/cozy-ui/compare/v81.0.0...v81.1.0) (2023-02-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Use bare directories instead of index files in specifiers ([00dd09e](https://github.com/cozy/cozy-ui/commit/00dd09e))
|
|
7
|
+
|
|
1
8
|
# [81.0.0](https://github.com/cozy/cozy-ui/compare/v80.3.0...v81.0.0) (2023-02-13)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import Icon from '../Icon'
|
|
|
10
10
|
import FileIcon from '../Icons/File'
|
|
11
11
|
import WarningIcon from '../Icons/Warning'
|
|
12
12
|
|
|
13
|
-
import ActionMenu, { ActionMenuItem, ActionMenuRadio } from '
|
|
13
|
+
import ActionMenu, { ActionMenuItem, ActionMenuRadio } from '.'
|
|
14
14
|
|
|
15
15
|
describe('ActionMenu', () => {
|
|
16
16
|
fixPopperTesting()
|
package/react/Avatar/index.jsx
CHANGED
|
@@ -55,6 +55,7 @@ export const Avatar = ({
|
|
|
55
55
|
const IconToRender = Icon.isProperIcon(icon) ? <Icon icon={icon} /> : icon
|
|
56
56
|
return (
|
|
57
57
|
<div
|
|
58
|
+
data-testid="Avatar" // used by a test in cozy-contacts
|
|
58
59
|
className={cx(
|
|
59
60
|
styles['c-avatar'],
|
|
60
61
|
text ? styles['c-avatar--text'] : '',
|
|
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
|
|
|
5
5
|
import styles from '../styles.styl'
|
|
6
6
|
|
|
7
7
|
const ContactCozy = ({ cozyUrl }) => (
|
|
8
|
-
<TableCell
|
|
8
|
+
<TableCell
|
|
9
|
+
data-testid="ContactCozy" // used by a test in cozy-contacts
|
|
10
|
+
className={`${styles['contact-cozyurl']} u-ellipsis`}
|
|
11
|
+
>
|
|
9
12
|
{cozyUrl}
|
|
10
13
|
</TableCell>
|
|
11
14
|
)
|
|
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
|
|
|
5
5
|
import styles from '../styles.styl'
|
|
6
6
|
|
|
7
7
|
const ContactEmail = ({ email }) => (
|
|
8
|
-
<TableCell
|
|
8
|
+
<TableCell
|
|
9
|
+
data-testid="ContactEmail" // used by a test in cozy-contacts
|
|
10
|
+
className={`${styles['contact-email']} u-ellipsis`}
|
|
11
|
+
>
|
|
9
12
|
{email}
|
|
10
13
|
</TableCell>
|
|
11
14
|
)
|
|
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
|
|
|
5
5
|
import styles from '../styles.styl'
|
|
6
6
|
|
|
7
7
|
const ContactPhone = ({ phone }) => (
|
|
8
|
-
<TableCell
|
|
8
|
+
<TableCell
|
|
9
|
+
data-testid="ContactPhone" // used by a test in cozy-contacts
|
|
10
|
+
className={`${styles['contact-phone']} u-ellipsis`}
|
|
11
|
+
>
|
|
9
12
|
{phone}
|
|
10
13
|
</TableCell>
|
|
11
14
|
)
|
|
@@ -9,9 +9,11 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
9
9
|
>
|
|
10
10
|
<div
|
|
11
11
|
className="styles__TableCell___yJCq7 styles__contact-identity___mL3IJ u-flex u-flex-items-center u-ellipsis"
|
|
12
|
+
data-testid="ContactIdentity"
|
|
12
13
|
>
|
|
13
14
|
<div
|
|
14
15
|
className="styles__c-avatar___PpDI- styles__c-avatar--text___2dvna"
|
|
16
|
+
data-testid="Avatar"
|
|
15
17
|
style={
|
|
16
18
|
Object {
|
|
17
19
|
"--circleSize": "32px",
|
|
@@ -28,6 +30,7 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
28
30
|
</div>
|
|
29
31
|
<p
|
|
30
32
|
className="MuiTypography-root u-ml-1 MuiTypography-body1 MuiTypography-colorTextPrimary MuiTypography-noWrap MuiTypography-gutterBottom MuiTypography-displayInline"
|
|
33
|
+
data-testid="ContactName"
|
|
31
34
|
>
|
|
32
35
|
<span
|
|
33
36
|
className=""
|
|
@@ -45,16 +48,19 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
45
48
|
</div>
|
|
46
49
|
<div
|
|
47
50
|
className="styles__TableCell___yJCq7 styles__contact-email___3n3q2 u-ellipsis"
|
|
51
|
+
data-testid="ContactEmail"
|
|
48
52
|
>
|
|
49
53
|
johndoe@localhost
|
|
50
54
|
</div>
|
|
51
55
|
<div
|
|
52
56
|
className="styles__TableCell___yJCq7 styles__contact-phone___1sA_m u-ellipsis"
|
|
57
|
+
data-testid="ContactPhone"
|
|
53
58
|
>
|
|
54
59
|
0123456789
|
|
55
60
|
</div>
|
|
56
61
|
<div
|
|
57
62
|
className="styles__TableCell___yJCq7 styles__contact-cozyurl___3kBp5 u-ellipsis"
|
|
63
|
+
data-testid="ContactCozy"
|
|
58
64
|
>
|
|
59
65
|
http://johndoe.mycozy.cloud
|
|
60
66
|
</div>
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useCozyDialog
|
|
14
14
|
} from '../CozyDialogs'
|
|
15
15
|
import useRealtime from '../hooks/useRealtime'
|
|
16
|
-
import useEventListener from '../hooks/useEventListener
|
|
16
|
+
import useEventListener from '../hooks/useEventListener'
|
|
17
17
|
import useBreakpoints from '../hooks/useBreakpoints'
|
|
18
18
|
import Button from '../Buttons'
|
|
19
19
|
import PlusIcon from '../Icons/Plus'
|
|
@@ -12,7 +12,7 @@ import Previous from '../Icons/Previous'
|
|
|
12
12
|
|
|
13
13
|
import FilePickerBreadcrumb from './FilePickerBreadcrumb'
|
|
14
14
|
import { buildCurrentFolderQuery } from './queries'
|
|
15
|
-
import { ROOT_DIR_ID } from '
|
|
15
|
+
import { ROOT_DIR_ID } from '.'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @param {IOCozyFolder} displayedFolder - An io.cozy.files folder
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { act } from 'react-dom/test-utils'
|
|
3
3
|
import { useState } from 'react'
|
|
4
4
|
import { mount } from 'enzyme'
|
|
5
|
-
import Modal, { BODY_CLASS } from '
|
|
5
|
+
import Modal, { BODY_CLASS } from '.'
|
|
6
6
|
import { BreakpointsProvider } from '../hooks/useBreakpoints'
|
|
7
7
|
|
|
8
8
|
describe('Modal', () => {
|
|
@@ -8,7 +8,7 @@ import CozyClient, { CozyProvider } from 'cozy-client'
|
|
|
8
8
|
import Icon from '../Icon'
|
|
9
9
|
import CozyIcon from '../Icons/Cozy'
|
|
10
10
|
import MuiCozyTheme from '../MuiCozyTheme'
|
|
11
|
-
import SquareAppIcon from '
|
|
11
|
+
import SquareAppIcon from '.'
|
|
12
12
|
|
|
13
13
|
const appMock = {
|
|
14
14
|
slug: 'test',
|
|
@@ -2,7 +2,7 @@ import { mount } from 'enzyme'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { act } from 'react-dom/test-utils'
|
|
4
4
|
import { Slide } from './example'
|
|
5
|
-
import ViewStack from '
|
|
5
|
+
import ViewStack from '.'
|
|
6
6
|
import Button from '../Button'
|
|
7
7
|
import SwipeableViews from 'react-swipeable-views'
|
|
8
8
|
|
package/react/Viewer/Viewer.jsx
CHANGED
|
@@ -5,7 +5,7 @@ import { FileDoctype } from '../proptypes'
|
|
|
5
5
|
|
|
6
6
|
import ViewerControls from './components/ViewerControls'
|
|
7
7
|
import ViewerByFile from './components/ViewerByFile'
|
|
8
|
-
import { toolbarPropsPropType } from '
|
|
8
|
+
import { toolbarPropsPropType } from '.'
|
|
9
9
|
|
|
10
10
|
const KEY_CODE_LEFT = 37
|
|
11
11
|
const KEY_CODE_RIGHT = 39
|
|
@@ -8,7 +8,7 @@ import { withStyles } from '../../styles'
|
|
|
8
8
|
import withBreakpoints from '../../helpers/withBreakpoints'
|
|
9
9
|
|
|
10
10
|
import { isValidForPanel } from '../helpers'
|
|
11
|
-
import { toolbarPropsPropType } from '
|
|
11
|
+
import { toolbarPropsPropType } from '..'
|
|
12
12
|
import { infoWidth } from './InformationPanel'
|
|
13
13
|
import Toolbar from './Toolbar'
|
|
14
14
|
import Navigation from './Navigation'
|