cozy-sharing 25.7.1 → 25.7.2
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,12 @@
|
|
|
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
|
+
## [25.7.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@25.7.1...cozy-sharing@25.7.2) (2025-08-19)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Resolve creating shared drive issue :bug: ([d6574ac](https://github.com/cozy/cozy-libs/commit/d6574ac7c75b4da8da1e67554df175d7031eb5b2))
|
|
11
|
+
|
|
6
12
|
## [25.7.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@25.7.0...cozy-sharing@25.7.1) (2025-07-30)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -63,16 +63,20 @@ export var SharedDriveModal = withLocales(function (_ref) {
|
|
|
63
63
|
case 0:
|
|
64
64
|
_context.prev = 0;
|
|
65
65
|
_context.next = 3;
|
|
66
|
+
return client.collection('io.cozy.files').getOrCreateSharedDrivesDirectory();
|
|
67
|
+
|
|
68
|
+
case 3:
|
|
69
|
+
_context.next = 5;
|
|
66
70
|
return client.create('io.cozy.files', {
|
|
67
71
|
name: sharedDriveName,
|
|
68
72
|
dirId: 'io.cozy.files.shared-drives-dir',
|
|
69
73
|
type: 'directory'
|
|
70
74
|
});
|
|
71
75
|
|
|
72
|
-
case
|
|
76
|
+
case 5:
|
|
73
77
|
_yield$client$create2 = _context.sent;
|
|
74
78
|
sharedDriveFolder = _yield$client$create2.data;
|
|
75
|
-
_context.next =
|
|
79
|
+
_context.next = 9;
|
|
76
80
|
return share({
|
|
77
81
|
document: sharedDriveFolder,
|
|
78
82
|
recipients: sharedDriveRecipients.recipients,
|
|
@@ -80,18 +84,18 @@ export var SharedDriveModal = withLocales(function (_ref) {
|
|
|
80
84
|
sharedDrive: true
|
|
81
85
|
});
|
|
82
86
|
|
|
83
|
-
case
|
|
87
|
+
case 9:
|
|
84
88
|
showAlert({
|
|
85
89
|
message: t('SharedDrive.sharedDriveModal.successNotification'),
|
|
86
90
|
severity: 'success',
|
|
87
91
|
variant: 'filled'
|
|
88
92
|
});
|
|
89
93
|
onClose();
|
|
90
|
-
_context.next =
|
|
94
|
+
_context.next = 16;
|
|
91
95
|
break;
|
|
92
96
|
|
|
93
|
-
case
|
|
94
|
-
_context.prev =
|
|
97
|
+
case 13:
|
|
98
|
+
_context.prev = 13;
|
|
95
99
|
_context.t0 = _context["catch"](0);
|
|
96
100
|
showAlert({
|
|
97
101
|
message: t('SharedDrive.sharedDriveModal.errorNotification'),
|
|
@@ -99,11 +103,11 @@ export var SharedDriveModal = withLocales(function (_ref) {
|
|
|
99
103
|
variant: 'filled'
|
|
100
104
|
});
|
|
101
105
|
|
|
102
|
-
case
|
|
106
|
+
case 16:
|
|
103
107
|
case "end":
|
|
104
108
|
return _context.stop();
|
|
105
109
|
}
|
|
106
|
-
}, _callee, null, [[0,
|
|
110
|
+
}, _callee, null, [[0, 13]]);
|
|
107
111
|
}));
|
|
108
112
|
|
|
109
113
|
return function onCreate() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "25.7.
|
|
3
|
+
"version": "25.7.2",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"sideEffects": [
|
|
80
80
|
"*.css"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "e65ef0b285982ef58269f766870bcb26fee91ef4"
|
|
83
83
|
}
|
|
@@ -47,6 +47,9 @@ export const SharedDriveModal = withLocales(({ onClose }) => {
|
|
|
47
47
|
|
|
48
48
|
const onCreate = async () => {
|
|
49
49
|
try {
|
|
50
|
+
await client
|
|
51
|
+
.collection('io.cozy.files')
|
|
52
|
+
.getOrCreateSharedDrivesDirectory()
|
|
50
53
|
const { data: sharedDriveFolder } = await client.create('io.cozy.files', {
|
|
51
54
|
name: sharedDriveName,
|
|
52
55
|
dirId: 'io.cozy.files.shared-drives-dir',
|