cozy-ui 72.1.0 → 73.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
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [73.0.0](https://github.com/cozy/cozy-ui/compare/v72.1.0...v73.0.0) (2022-08-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Upgrade cozy-client to 33.0.0 ([e449adc](https://github.com/cozy/cozy-ui/commit/e449adc)), closes [cozy/cozy-client#1227](https://github.com/cozy/cozy-client/issues/1227)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* You need to update `cozy-client` to `>33.0.0`.
|
|
12
|
+
|
|
1
13
|
# [72.1.0](https://github.com/cozy/cozy-ui/compare/v72.0.0...v72.1.0) (2022-08-25)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "73.0.0",
|
|
4
4
|
"description": "Cozy apps UI SDK",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -71,14 +71,15 @@
|
|
|
71
71
|
"@babel/helper-define-map": "7.16.7",
|
|
72
72
|
"@babel/helper-regex": "7.10.5",
|
|
73
73
|
"@cozy/codemods": "^1.9.0",
|
|
74
|
+
"@cozy/minilog": "^1.0.0",
|
|
74
75
|
"@semantic-release/changelog": "5.0.1",
|
|
75
76
|
"@semantic-release/git": "7.0.18",
|
|
76
77
|
"@semantic-release/npm": "9.0.1",
|
|
77
78
|
"@svgr/cli": "^5.4.0",
|
|
78
79
|
"@testing-library/jest-dom": "^5.14.1",
|
|
79
|
-
"@testing-library/user-event": "^14.4.2",
|
|
80
80
|
"@testing-library/react": "11.2.7",
|
|
81
81
|
"@testing-library/react-hooks": "^3.2.1",
|
|
82
|
+
"@testing-library/user-event": "^14.4.2",
|
|
82
83
|
"argos-cli": "^0.3.3",
|
|
83
84
|
"autoprefixer-stylus": "1.0.0",
|
|
84
85
|
"babel-loader": "8.2.4",
|
|
@@ -87,13 +88,15 @@
|
|
|
87
88
|
"babel-preset-cozy-app": "2.0.2",
|
|
88
89
|
"browserslist-config-cozy": "0.4.0",
|
|
89
90
|
"copyfiles": "2.4.1",
|
|
90
|
-
"cozy-client": "
|
|
91
|
+
"cozy-client": "^33.0.0",
|
|
91
92
|
"cozy-device-helper": "2.0.0",
|
|
92
93
|
"cozy-doctypes": "^1.69.0",
|
|
94
|
+
"cozy-flags": "^2.10.1",
|
|
93
95
|
"cozy-harvest-lib": "^6.7.3",
|
|
94
96
|
"cozy-intent": "1.16.1",
|
|
97
|
+
"cozy-logger": "^1.9.0",
|
|
95
98
|
"cozy-sharing": "^3.10.0",
|
|
96
|
-
"cozy-stack-client": "
|
|
99
|
+
"cozy-stack-client": "^33.0.0",
|
|
97
100
|
"css-loader": "0.28.11",
|
|
98
101
|
"cssnano": "4.1.11",
|
|
99
102
|
"cssnano-preset-advanced": "4.0.8",
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
"rooks": "^5.11.2"
|
|
176
179
|
},
|
|
177
180
|
"peerDependencies": {
|
|
178
|
-
"cozy-client": ">=
|
|
181
|
+
"cozy-client": ">=33.0.0",
|
|
179
182
|
"cozy-device-helper": "^2.0.0",
|
|
180
183
|
"cozy-doctypes": "^1.69.0",
|
|
181
184
|
"cozy-harvest-lib": "^6.7.3",
|
|
@@ -33,7 +33,7 @@ const ForwardButton = ({ file }) => {
|
|
|
33
33
|
}
|
|
34
34
|
} else {
|
|
35
35
|
try {
|
|
36
|
-
const isFlatDomain = capabilities?.
|
|
36
|
+
const isFlatDomain = capabilities?.flat_subdomains
|
|
37
37
|
const url = await getSharingLink(client, [file.id], isFlatDomain)
|
|
38
38
|
const shareData = {
|
|
39
39
|
title: t('Viewer.share.title', { name: file.name }),
|
|
@@ -28,8 +28,7 @@ var ForwardButton = function ForwardButton(_ref) {
|
|
|
28
28
|
|
|
29
29
|
var onFileOpen = /*#__PURE__*/function () {
|
|
30
30
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
|
|
31
|
-
var
|
|
32
|
-
|
|
31
|
+
var isFlatDomain, url, shareData;
|
|
33
32
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
34
33
|
while (1) {
|
|
35
34
|
switch (_context.prev = _context.next) {
|
|
@@ -60,7 +59,7 @@ var ForwardButton = function ForwardButton(_ref) {
|
|
|
60
59
|
|
|
61
60
|
case 11:
|
|
62
61
|
_context.prev = 11;
|
|
63
|
-
isFlatDomain = capabilities === null || capabilities === void 0 ? void 0 :
|
|
62
|
+
isFlatDomain = capabilities === null || capabilities === void 0 ? void 0 : capabilities.flat_subdomains;
|
|
64
63
|
_context.next = 15;
|
|
65
64
|
return getSharingLink(client, [file.id], isFlatDomain);
|
|
66
65
|
|