cozy-sharing 8.0.0 → 8.0.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 +11 -0
- package/dist/SharingProvider.js +1 -1
- package/package.json +2 -2
- package/src/SharingProvider.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [8.0.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@8.0.0...cozy-sharing@8.0.1) (2023-07-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **sharing:** Use `.fetchQueryAndGetFromState` instead `.query` ([95d8f2d](https://github.com/cozy/cozy-libs/commit/95d8f2d43ccdd20a26f1f27d1060cace5f3f60a8)), closes [cozy/cozy-client#931](https://github.com/cozy/cozy-client/issues/931)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 8.0.0 (2023-07-05)
|
|
7
18
|
|
|
8
19
|
|
package/dist/SharingProvider.js
CHANGED
|
@@ -594,7 +594,7 @@ export var SharingProvider = /*#__PURE__*/function (_Component) {
|
|
|
594
594
|
case 0:
|
|
595
595
|
_this$props5 = this.props, doctype = _this$props5.doctype, client = _this$props5.client;
|
|
596
596
|
_context12.next = 3;
|
|
597
|
-
return Promise.all([this.sharingCol.findByDoctype(doctype), this.permissionCol.findLinksByDoctype(doctype), client.
|
|
597
|
+
return Promise.all([this.sharingCol.findByDoctype(doctype), this.permissionCol.findLinksByDoctype(doctype), client.fetchQueryAndGetFromState(fetchApps())]);
|
|
598
598
|
|
|
599
599
|
case 3:
|
|
600
600
|
_yield$Promise$all = _context12.sent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"sideEffects": [
|
|
62
62
|
"*.css"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "c76e5865434a3bb2051f9a28a9cb76e3e5cf1b1e"
|
|
65
65
|
}
|
package/src/SharingProvider.jsx
CHANGED
|
@@ -171,7 +171,7 @@ export class SharingProvider extends Component {
|
|
|
171
171
|
const [sharings, permissions, apps] = await Promise.all([
|
|
172
172
|
this.sharingCol.findByDoctype(doctype),
|
|
173
173
|
this.permissionCol.findLinksByDoctype(doctype),
|
|
174
|
-
client.
|
|
174
|
+
client.fetchQueryAndGetFromState(fetchApps())
|
|
175
175
|
])
|
|
176
176
|
this.dispatch(
|
|
177
177
|
receiveSharings({
|