cozy-sharing 26.6.1 → 26.6.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 +6 -0
- package/dist/SharingProvider.js +1 -1
- package/package.json +2 -2
- package/src/SharingProvider.jsx +2 -2
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
|
+
## [26.6.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.6.1...cozy-sharing@26.6.2) (2025-10-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Bind fetchAllSharings before state init in SharingProvider 🐛 ([df12219](https://github.com/cozy/cozy-libs/commit/df12219852b473867e37788e74b442c792060cc8))
|
|
11
|
+
|
|
6
12
|
## [26.6.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@26.6.0...cozy-sharing@26.6.1) (2025-10-15)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/dist/SharingProvider.js
CHANGED
|
@@ -585,6 +585,7 @@ export var SharingProvider = /*#__PURE__*/function (_Component) {
|
|
|
585
585
|
|
|
586
586
|
var onShared = props.onShared || function () {};
|
|
587
587
|
|
|
588
|
+
_this2.fetchAllSharings = _this2.fetchAllSharings.bind(_this2);
|
|
588
589
|
_this2.state = {
|
|
589
590
|
byDocId: {},
|
|
590
591
|
sharings: [],
|
|
@@ -648,7 +649,6 @@ export var SharingProvider = /*#__PURE__*/function (_Component) {
|
|
|
648
649
|
var _client = props.client;
|
|
649
650
|
_this2.sharingCol = _client.collection(SHARING_DOCTYPE);
|
|
650
651
|
_this2.permissionCol = _client.collection(PERMISSION_DOCTYPE);
|
|
651
|
-
_this2.fetchAllSharings = _this2.fetchAllSharings.bind(_this2);
|
|
652
652
|
return _this2;
|
|
653
653
|
}
|
|
654
654
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "26.6.
|
|
3
|
+
"version": "26.6.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": "5ae1ac7e1cae4b6cab7958798ef174ec1751fcaa"
|
|
83
83
|
}
|
package/src/SharingProvider.jsx
CHANGED
|
@@ -54,6 +54,8 @@ export class SharingProvider extends Component {
|
|
|
54
54
|
const instanceUri = props.client.getStackClient().uri
|
|
55
55
|
const documentType = props.documentType || 'Document'
|
|
56
56
|
const onShared = props.onShared || (() => {})
|
|
57
|
+
|
|
58
|
+
this.fetchAllSharings = this.fetchAllSharings.bind(this)
|
|
57
59
|
this.state = {
|
|
58
60
|
byDocId: {},
|
|
59
61
|
sharings: [],
|
|
@@ -98,8 +100,6 @@ export class SharingProvider extends Component {
|
|
|
98
100
|
const { client } = props
|
|
99
101
|
this.sharingCol = client.collection(SHARING_DOCTYPE)
|
|
100
102
|
this.permissionCol = client.collection(PERMISSION_DOCTYPE)
|
|
101
|
-
|
|
102
|
-
this.fetchAllSharings = this.fetchAllSharings.bind(this)
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
dispatch = action =>
|