cozy-sharing 37.5.0 → 37.5.1
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
|
+
## [37.5.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.5.0...cozy-sharing@37.5.1) (2026-08-25)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **sharing:** Restore allLoaded gate for federated modal routing ([fcb492a](https://github.com/cozy/cozy-libs/commit/fcb492a3d09110beb0cd3a9e524d3547bdaafa21))
|
|
11
|
+
|
|
6
12
|
# [37.5.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@37.4.0...cozy-sharing@37.5.0) (2026-08-25)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -30,7 +30,8 @@ export var ShareModal = withLocales(function (props) {
|
|
|
30
30
|
canReshare = _useSharingContext.canReshare,
|
|
31
31
|
documentType = _useSharingContext.documentType,
|
|
32
32
|
getRecipients = _useSharingContext.getRecipients,
|
|
33
|
-
revokeSelf = _useSharingContext.revokeSelf
|
|
33
|
+
revokeSelf = _useSharingContext.revokeSelf,
|
|
34
|
+
allLoaded = _useSharingContext.allLoaded;
|
|
34
35
|
|
|
35
36
|
var handleRevokeSelf = /*#__PURE__*/function () {
|
|
36
37
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(document) {
|
|
@@ -60,7 +61,7 @@ export var ShareModal = withLocales(function (props) {
|
|
|
60
61
|
if (isEditable) {
|
|
61
62
|
var isFederatedMode = flag('drive.federated-shared-folder.enabled');
|
|
62
63
|
|
|
63
|
-
if (isFederatedMode &&
|
|
64
|
+
if (isFederatedMode && allLoaded) {
|
|
64
65
|
return /*#__PURE__*/React.createElement(FederatedFolderModal, _extends({
|
|
65
66
|
document: document,
|
|
66
67
|
onRevokeSuccess: onRevokeSuccess
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "37.5.
|
|
3
|
+
"version": "37.5.1",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"cozy-intent": "^2.31.1",
|
|
60
60
|
"cozy-minilog": "^3.10.1",
|
|
61
61
|
"cozy-ui": "^140.5.0",
|
|
62
|
-
"cozy-ui-plus": "^12.3.
|
|
62
|
+
"cozy-ui-plus": "^12.3.10",
|
|
63
63
|
"jest": "30.3.0",
|
|
64
64
|
"jest-environment-jsdom": "30.3.0",
|
|
65
65
|
"react": "16.12.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"sideEffects": [
|
|
86
86
|
"*.css"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "1f5ca5edaf02675c51870c3d525eef0112781453"
|
|
89
89
|
}
|
|
@@ -23,7 +23,8 @@ export const ShareModal = withLocales(props => {
|
|
|
23
23
|
canReshare,
|
|
24
24
|
documentType,
|
|
25
25
|
getRecipients,
|
|
26
|
-
revokeSelf
|
|
26
|
+
revokeSelf,
|
|
27
|
+
allLoaded
|
|
27
28
|
} = useSharingContext()
|
|
28
29
|
|
|
29
30
|
const handleRevokeSelf = async document => {
|
|
@@ -36,7 +37,7 @@ export const ShareModal = withLocales(props => {
|
|
|
36
37
|
|
|
37
38
|
if (isEditable) {
|
|
38
39
|
const isFederatedMode = flag('drive.federated-shared-folder.enabled')
|
|
39
|
-
if (isFederatedMode &&
|
|
40
|
+
if (isFederatedMode && allLoaded) {
|
|
40
41
|
return (
|
|
41
42
|
<FederatedFolderModal
|
|
42
43
|
document={document}
|