cozy-ui-plus 10.0.0 → 11.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [11.0.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@10.0.0...cozy-ui-plus@11.0.0) (2026-07-08)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **cozy-ui-plus:** Replace Avatar by MemberAvatar in ContactIdentity ([1c6c2c1](https://github.com/cozy/cozy-libs/commit/1c6c2c1d8689738d5aa8d983e5c8298cc7c8c7ea))
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
- **cozy-ui-plus:** You must have `"cozy-sharing": ">=36.4.0"` when using `cozy-ui-plus > ContactIdentity` component
|
|
15
|
+
|
|
6
16
|
# [10.0.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@9.0.0...cozy-ui-plus@10.0.0) (2026-06-25)
|
|
7
17
|
|
|
8
18
|
### Features
|
|
@@ -15,9 +15,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var _Avatar = _interopRequireDefault(require("cozy-ui/transpiled/react/Avatar"));
|
|
18
|
+
var _MemberAvatar = require("cozy-sharing/dist/components/Avatar/MemberAvatar");
|
|
21
19
|
|
|
22
20
|
var _Table = require("cozy-ui/transpiled/react/deprecated/Table");
|
|
23
21
|
|
|
@@ -55,13 +53,14 @@ var ContactIdentity = function ContactIdentity(_ref) {
|
|
|
55
53
|
var contact = _ref.contact,
|
|
56
54
|
disable = _ref.disable;
|
|
57
55
|
var isMyself = !!contact.me;
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_MemberAvatar.MemberAvatar, {
|
|
57
|
+
recipient: contact,
|
|
59
58
|
className: (0, _classnames.default)({
|
|
60
59
|
'u-o-60': disable
|
|
61
60
|
}),
|
|
62
61
|
display: "inline",
|
|
63
62
|
size: "s"
|
|
64
|
-
}
|
|
63
|
+
}), /*#__PURE__*/_react.default.createElement(_ContactName.default, {
|
|
65
64
|
contact: contact,
|
|
66
65
|
disable: disable
|
|
67
66
|
}), isMyself && /*#__PURE__*/_react.default.createElement(MyselfMarker, null));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui-plus",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Cozy-ui-plus is an extension of cozy-ui and provides components based on cozy-client",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"cozy-intent": "^2.31.1",
|
|
39
39
|
"cozy-interapp": "^0.17.1",
|
|
40
40
|
"cozy-logger": "^1.18.1",
|
|
41
|
+
"cozy-sharing": "^36.4.1",
|
|
41
42
|
"cozy-stack-client": "^60.21.1",
|
|
42
43
|
"cozy-ui": "^138.1.0",
|
|
43
44
|
"jest": "30.3.0",
|
|
@@ -71,10 +72,11 @@
|
|
|
71
72
|
"cozy-intent": ">=2.30.0",
|
|
72
73
|
"cozy-interapp": ">=0.17.1",
|
|
73
74
|
"cozy-logger": ">=1.17.0",
|
|
75
|
+
"cozy-sharing": ">=36.4.0",
|
|
74
76
|
"cozy-ui": ">=138.1.0",
|
|
75
77
|
"react": "^16 || ^17 || ^18",
|
|
76
78
|
"react-dom": "^16 || ^17 || ^18",
|
|
77
79
|
"twake-i18n": ">=0.3.0"
|
|
78
80
|
},
|
|
79
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "a093f7a4c39543044dad5fb08b234c651f655518"
|
|
80
82
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { render, screen } from '@testing-library/react'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
+
import { CozyProvider, createMockClient } from 'cozy-client'
|
|
4
5
|
import logger from 'cozy-logger'
|
|
5
6
|
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
6
7
|
|
|
@@ -14,10 +15,15 @@ const makeContact = attrs => ({
|
|
|
14
15
|
...attrs
|
|
15
16
|
})
|
|
16
17
|
|
|
18
|
+
const client = createMockClient({})
|
|
19
|
+
client.options = { uri: 'http://cozy.example.com' }
|
|
20
|
+
|
|
17
21
|
const setup = ({ contact }) => {
|
|
18
22
|
render(
|
|
19
23
|
<BreakpointsProvider>
|
|
20
|
-
<
|
|
24
|
+
<CozyProvider client={client}>
|
|
25
|
+
<ContactRow contact={contact} />
|
|
26
|
+
</CozyProvider>
|
|
21
27
|
</BreakpointsProvider>
|
|
22
28
|
)
|
|
23
29
|
}
|
|
@@ -2,8 +2,7 @@ import cx from 'classnames'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
5
|
+
import { MemberAvatar } from 'cozy-sharing/dist/components/Avatar/MemberAvatar'
|
|
7
6
|
import { TableCell } from 'cozy-ui/transpiled/react/deprecated/Table'
|
|
8
7
|
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
9
8
|
|
|
@@ -23,9 +22,12 @@ const ContactIdentity = ({ contact, disable }) => {
|
|
|
23
22
|
|
|
24
23
|
return (
|
|
25
24
|
<>
|
|
26
|
-
<
|
|
27
|
-
{
|
|
28
|
-
|
|
25
|
+
<MemberAvatar
|
|
26
|
+
recipient={contact}
|
|
27
|
+
className={cx({ 'u-o-60': disable })}
|
|
28
|
+
display="inline"
|
|
29
|
+
size="s"
|
|
30
|
+
/>
|
|
29
31
|
<ContactName contact={contact} disable={disable} />
|
|
30
32
|
{isMyself && <MyselfMarker />}
|
|
31
33
|
</>
|