cozy-ui-plus 6.1.1 → 7.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 +20 -0
- package/dist/FilePicker/FilePickerBody.js +4 -4
- package/dist/FilePicker/index.js +1 -1
- package/dist/UploadQueue/index.js +3 -1
- package/dist/src/UploadQueue/index.d.ts +2 -0
- package/package.json +4 -3
- package/src/FilePicker/FilePickerBody.jsx +2 -2
- package/src/FilePicker/index.jsx +1 -1
- package/src/UploadQueue/index.jsx +3 -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.1.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@7.0.0...cozy-ui-plus@7.1.0) (2026-04-22)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **cozy-ui-plus:** Add 'unreadable' UploadQueue error status ([e4c7872](https://github.com/cozy/cozy-libs/commit/e4c7872a088d56882bfb8b5f692d749f73f52d23))
|
|
11
|
+
|
|
12
|
+
# [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)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **cozy-ui-plus:** Wrong import for FilePicker ([6c20b4a](https://github.com/cozy/cozy-libs/commit/6c20b4a117e8b08b604f3318b7f00f43f0137fdc))
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **cozy-ui-plus:** Set cozy-interapp in peerDep ([27bd85c](https://github.com/cozy/cozy-libs/commit/27bd85c09a08f3632be2391e6964e74c9518bcbd))
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
- **cozy-ui-plus:** You need cozy-interapp >= 0.17.1
|
|
25
|
+
|
|
6
26
|
## [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)
|
|
7
27
|
|
|
8
28
|
### Bug Fixes
|
|
@@ -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
|
|
|
@@ -135,8 +135,9 @@ var FAILED = 'failed';
|
|
|
135
135
|
var CONFLICT = 'conflict';
|
|
136
136
|
var QUOTA = 'quota';
|
|
137
137
|
var NETWORK = 'network';
|
|
138
|
+
var UNREADABLE = 'unreadable';
|
|
138
139
|
var DONE_STATUSES = [CREATED, UPDATED];
|
|
139
|
-
var ERROR_STATUSES = [CONFLICT, NETWORK, QUOTA, FAILED];
|
|
140
|
+
var ERROR_STATUSES = [CONFLICT, NETWORK, QUOTA, FAILED, UNREADABLE];
|
|
140
141
|
var uploadStatus = {
|
|
141
142
|
CANCEL: CANCEL,
|
|
142
143
|
PENDING: PENDING,
|
|
@@ -147,6 +148,7 @@ var uploadStatus = {
|
|
|
147
148
|
CONFLICT: CONFLICT,
|
|
148
149
|
QUOTA: QUOTA,
|
|
149
150
|
NETWORK: NETWORK,
|
|
151
|
+
UNREADABLE: UNREADABLE,
|
|
150
152
|
DONE_STATUSES: DONE_STATUSES,
|
|
151
153
|
ERROR_STATUSES: ERROR_STATUSES
|
|
152
154
|
};
|
|
@@ -8,6 +8,7 @@ export namespace uploadStatus {
|
|
|
8
8
|
export { CONFLICT };
|
|
9
9
|
export { QUOTA };
|
|
10
10
|
export { NETWORK };
|
|
11
|
+
export { UNREADABLE };
|
|
11
12
|
export { DONE_STATUSES };
|
|
12
13
|
export { ERROR_STATUSES };
|
|
13
14
|
}
|
|
@@ -37,6 +38,7 @@ declare const FAILED: "failed";
|
|
|
37
38
|
declare const CONFLICT: "conflict";
|
|
38
39
|
declare const QUOTA: "quota";
|
|
39
40
|
declare const NETWORK: "network";
|
|
41
|
+
declare const UNREADABLE: "unreadable";
|
|
40
42
|
declare const DONE_STATUSES: string[];
|
|
41
43
|
declare const ERROR_STATUSES: string[];
|
|
42
44
|
import React from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui-plus",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.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": "54d377d08003a9d2eb2bd96f9eeb87d27637d841"
|
|
77
78
|
}
|
|
@@ -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: {
|
|
@@ -33,8 +33,9 @@ const FAILED = 'failed'
|
|
|
33
33
|
const CONFLICT = 'conflict'
|
|
34
34
|
const QUOTA = 'quota'
|
|
35
35
|
const NETWORK = 'network'
|
|
36
|
+
const UNREADABLE = 'unreadable'
|
|
36
37
|
const DONE_STATUSES = [CREATED, UPDATED]
|
|
37
|
-
const ERROR_STATUSES = [CONFLICT, NETWORK, QUOTA, FAILED]
|
|
38
|
+
const ERROR_STATUSES = [CONFLICT, NETWORK, QUOTA, FAILED, UNREADABLE]
|
|
38
39
|
|
|
39
40
|
export const uploadStatus = {
|
|
40
41
|
CANCEL,
|
|
@@ -46,6 +47,7 @@ export const uploadStatus = {
|
|
|
46
47
|
CONFLICT,
|
|
47
48
|
QUOTA,
|
|
48
49
|
NETWORK,
|
|
50
|
+
UNREADABLE,
|
|
49
51
|
DONE_STATUSES,
|
|
50
52
|
ERROR_STATUSES
|
|
51
53
|
}
|