cozy-ui-plus 6.1.0 → 7.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 +20 -0
- package/dist/Contacts/AddModal/ContactForm/helpers.js +2 -1
- package/dist/FilePicker/FilePickerBody.js +4 -4
- package/dist/FilePicker/index.js +1 -1
- package/package.json +4 -3
- package/src/Contacts/AddModal/ContactForm/helpers.js +2 -0
- package/src/FilePicker/FilePickerBody.jsx +2 -2
- package/src/FilePicker/index.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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
|
+
# [7.0.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@6.1.1...cozy-ui-plus@7.0.0) (2026-04-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **cozy-ui-plus:** Wrong import for FilePicker ([6c20b4a](https://github.com/cozy/cozy-libs/commit/6c20b4a117e8b08b604f3318b7f00f43f0137fdc))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **cozy-ui-plus:** Set cozy-interapp in peerDep ([27bd85c](https://github.com/cozy/cozy-libs/commit/27bd85c09a08f3632be2391e6964e74c9518bcbd))
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
- **cozy-ui-plus:** You need cozy-interapp >= 0.17.1
|
|
19
|
+
|
|
20
|
+
## [6.1.1](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@6.1.0...cozy-ui-plus@6.1.1) (2026-04-02)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
- Now getRelatedContactRelationships handle null arg ([d3677ba](https://github.com/cozy/cozy-libs/commit/d3677ba6cfd496db48ebe00fac401746fb6680c9))
|
|
25
|
+
|
|
6
26
|
# [6.1.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@6.0.0...cozy-ui-plus@6.1.0) (2026-04-02)
|
|
7
27
|
|
|
8
28
|
### Bug Fixes
|
|
@@ -256,7 +256,8 @@ var createAddress = function createAddress(_ref2) {
|
|
|
256
256
|
exports.createAddress = createAddress;
|
|
257
257
|
|
|
258
258
|
var getRelatedContactRelationships = function getRelatedContactRelationships(relatedContact) {
|
|
259
|
-
// Tips filter Boolean to remove undefined value from array when relatedContact is empty (see contactToFormValues)
|
|
259
|
+
if (!relatedContact) return {}; // Tips filter Boolean to remove undefined value from array when relatedContact is empty (see contactToFormValues)
|
|
260
|
+
|
|
260
261
|
var data = relatedContact.filter(Boolean).reduce(function (acc, curr) {
|
|
261
262
|
var relationType = curr.relatedContactLabel ? JSON.parse(curr.relatedContactLabel).type : 'related';
|
|
262
263
|
var existingIndex = acc.findIndex(function (item) {
|
|
@@ -17,14 +17,14 @@ var _cozyClient = require("cozy-client");
|
|
|
17
17
|
|
|
18
18
|
var _List = _interopRequireDefault(require("cozy-ui/transpiled/react/List"));
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var _queries = require("./queries");
|
|
20
|
+
var _LoadMore = _interopRequireDefault(require("cozy-ui/transpiled/react/LoadMore"));
|
|
23
21
|
|
|
24
|
-
var
|
|
22
|
+
var _FilePickerBodyItem = _interopRequireDefault(require("./FilePickerBodyItem"));
|
|
25
23
|
|
|
26
24
|
var _helpers = require("./helpers");
|
|
27
25
|
|
|
26
|
+
var _queries = require("./queries");
|
|
27
|
+
|
|
28
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
29
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/dist/FilePicker/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var _FilePickerFooter = _interopRequireDefault(require("./FilePickerFooter"));
|
|
|
25
25
|
|
|
26
26
|
var _FilePickerHeader = _interopRequireDefault(require("./FilePickerHeader"));
|
|
27
27
|
|
|
28
|
-
var _helpers = require("
|
|
28
|
+
var _helpers = require("./helpers");
|
|
29
29
|
|
|
30
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui-plus",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.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",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"cozy-client": "^60.21.3",
|
|
36
36
|
"cozy-device-helper": "2.0.0",
|
|
37
37
|
"cozy-intent": "^2.31.1",
|
|
38
|
+
"cozy-interapp": "^0.17.1",
|
|
38
39
|
"cozy-logger": "^1.18.1",
|
|
39
40
|
"cozy-stack-client": "^60.21.1",
|
|
40
41
|
"cozy-ui": "^138.1.0",
|
|
@@ -52,7 +53,6 @@
|
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
55
|
"classnames": "^2.5.1",
|
|
55
|
-
"cozy-interapp": "^0.5.4",
|
|
56
56
|
"filesize": "8.0.7",
|
|
57
57
|
"final-form": "4.20.9",
|
|
58
58
|
"final-form-arrays": "3.1.0",
|
|
@@ -67,11 +67,12 @@
|
|
|
67
67
|
"cozy-client": ">=60.21.3",
|
|
68
68
|
"cozy-device-helper": ">=2.0.0",
|
|
69
69
|
"cozy-intent": ">=2.30.0",
|
|
70
|
+
"cozy-interapp": ">=0.17.1",
|
|
70
71
|
"cozy-logger": ">=1.17.0",
|
|
71
72
|
"cozy-ui": ">=138.1.0",
|
|
72
73
|
"react": "^16 || ^17 || ^18",
|
|
73
74
|
"react-dom": "^16 || ^17 || ^18",
|
|
74
75
|
"twake-i18n": ">=0.3.0"
|
|
75
76
|
},
|
|
76
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "f19da18da889a4164b25cfa3479f597bfe7e6047"
|
|
77
78
|
}
|
|
@@ -210,6 +210,8 @@ export const createAddress = ({ address, oldContact, t }) => {
|
|
|
210
210
|
* @returns {Record<string, { data: { _id: string, _type: string }[] }>} - The related contacts relationships
|
|
211
211
|
*/
|
|
212
212
|
export const getRelatedContactRelationships = relatedContact => {
|
|
213
|
+
if (!relatedContact) return {}
|
|
214
|
+
|
|
213
215
|
// Tips filter Boolean to remove undefined value from array when relatedContact is empty (see contactToFormValues)
|
|
214
216
|
const data = relatedContact.filter(Boolean).reduce((acc, curr) => {
|
|
215
217
|
const relationType = curr.relatedContactLabel
|
|
@@ -3,11 +3,11 @@ import React, { useCallback } from 'react'
|
|
|
3
3
|
|
|
4
4
|
import { models, useQuery } from 'cozy-client'
|
|
5
5
|
import List from 'cozy-ui/transpiled/react/List'
|
|
6
|
+
import LoadMore from 'cozy-ui/transpiled/react/LoadMore'
|
|
6
7
|
|
|
7
8
|
import FilePickerBodyItem from './FilePickerBodyItem'
|
|
8
|
-
import { buildContentFolderQuery } from './queries'
|
|
9
|
-
import LoadMore from '../LoadMore'
|
|
10
9
|
import { isValidFile } from './helpers'
|
|
10
|
+
import { buildContentFolderQuery } from './queries'
|
|
11
11
|
|
|
12
12
|
const {
|
|
13
13
|
file: { isDirectory }
|
package/src/FilePicker/index.jsx
CHANGED
|
@@ -8,7 +8,7 @@ import { makeStyles } from 'cozy-ui/transpiled/react/styles'
|
|
|
8
8
|
import FilePickerBody from './FilePickerBody'
|
|
9
9
|
import FilePickerFooter from './FilePickerFooter'
|
|
10
10
|
import FilePickerHeader from './FilePickerHeader'
|
|
11
|
-
import { getCompliantTypes } from '
|
|
11
|
+
import { getCompliantTypes } from './helpers'
|
|
12
12
|
|
|
13
13
|
const useStyles = makeStyles(() => ({
|
|
14
14
|
paper: {
|