cozy-sharing 22.0.0 → 23.1.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 +83 -240
- package/dist/components/Avatar/AvatarList.js +1 -1
- package/dist/components/Avatar/ExtraAvatar.js +1 -1
- package/dist/components/Avatar/GroupAvatar.js +1 -1
- package/dist/components/Avatar/MemberAvatar.js +12 -9
- package/dist/components/ContactSuggestion.js +1 -1
- package/dist/components/Identity/MemberIdentity.js +1 -1
- package/dist/components/Identity/OwnerIdentity.js +1 -1
- package/dist/components/Recipient/GroupRecipientDetailWithAccess.js +1 -1
- package/dist/components/Recipient/GroupRecipientDetailWithoutAccess.js +1 -1
- package/dist/components/ShareAutosuggest.js +1 -1
- package/dist/components/__snapshots__/SharedStatus.spec.js.snap +94 -0
- package/package.json +9 -8
- package/src/components/Avatar/AvatarList.jsx +1 -1
- package/src/components/Avatar/ExtraAvatar.jsx +1 -1
- package/src/components/Avatar/GroupAvatar.jsx +1 -1
- package/src/components/Avatar/MemberAvatar.jsx +10 -11
- package/src/components/ContactSuggestion.jsx +1 -1
- package/src/components/Identity/MemberIdentity.jsx +1 -1
- package/src/components/Identity/OwnerIdentity.jsx +1 -1
- package/src/components/Recipient/GroupRecipientDetailWithAccess.jsx +1 -1
- package/src/components/Recipient/GroupRecipientDetailWithoutAccess.jsx +1 -1
- package/src/components/ShareAutosuggest.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,107 +3,91 @@
|
|
|
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
|
-
# [
|
|
7
|
-
|
|
6
|
+
# [23.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.0.0...cozy-sharing@23.1.0) (2025-03-11)
|
|
8
7
|
|
|
9
8
|
### Features
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### BREAKING CHANGES
|
|
15
|
-
|
|
16
|
-
* You must have `cozy-client >=57.0.0`
|
|
10
|
+
- Add @babel/cli in devDep for some packages ([89e3a41](https://github.com/cozy/cozy-libs/commit/89e3a4156ba5867c9c20642d14e63b14bf992217))
|
|
17
11
|
|
|
12
|
+
# [23.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@22.0.0...cozy-sharing@23.0.0) (2025-03-11)
|
|
18
13
|
|
|
14
|
+
### Features
|
|
19
15
|
|
|
16
|
+
- **Sharing:** Remove image avatar from stack ([904efbc](https://github.com/cozy/cozy-libs/commit/904efbca5855fef7d3cd23ffcbefd64810cdec26))
|
|
17
|
+
- **Sharing:** Upgrade cozy-ui 116.0.0 to 119.0.1 ([393ce80](https://github.com/cozy/cozy-libs/commit/393ce806fe726355b165c7130653bb33b2c371cc))
|
|
20
18
|
|
|
19
|
+
### BREAKING CHANGES
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
- **Sharing:** You must have `cozy-ui >= 119.0.1`
|
|
23
22
|
|
|
23
|
+
# [22.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.3.0...cozy-sharing@22.0.0) (2025-02-26)
|
|
24
24
|
|
|
25
25
|
### Features
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
* Allow to create a shared drive in the share method ([c5efffe](https://github.com/cozy/cozy-libs/commit/c5efffee257519a4e83d74a4c263395239d5fd02))
|
|
29
|
-
* Allow to customize autosuggest submit label ([6b619df](https://github.com/cozy/cozy-libs/commit/6b619dffc96d020e3bc031a73f3c622afdd77343))
|
|
30
|
-
* Allow to disable notifications on contact selection ([a62e48d](https://github.com/cozy/cozy-libs/commit/a62e48db450620bb42e9d5e568fdc861ee6a0650))
|
|
31
|
-
* Display notification and close modal on shared drive creation ([10bff21](https://github.com/cozy/cozy-libs/commit/10bff21516fa3159ce04e15c332044fe462636cc))
|
|
32
|
-
* Manage changing permissions in NewSharedDriveModal ([9aba037](https://github.com/cozy/cozy-libs/commit/9aba0371d9d3a993523a5d6968eac7c4d9d1ec3f))
|
|
27
|
+
- Upgrade cozy-client ([ccc4ece](https://github.com/cozy/cozy-libs/commit/ccc4ece2ae51fc6d0f4d207dc7023db0cf4942c1))
|
|
33
28
|
|
|
29
|
+
### BREAKING CHANGES
|
|
34
30
|
|
|
31
|
+
- You must have `cozy-client >=57.0.0`
|
|
35
32
|
|
|
33
|
+
# [21.3.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.2...cozy-sharing@21.3.0) (2025-02-26)
|
|
36
34
|
|
|
35
|
+
### Features
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
- Add a basic new shared drive modal ([a554807](https://github.com/cozy/cozy-libs/commit/a55480749600410871b74e3284f23f5d57d71605))
|
|
38
|
+
- Allow to create a shared drive in the share method ([c5efffe](https://github.com/cozy/cozy-libs/commit/c5efffee257519a4e83d74a4c263395239d5fd02))
|
|
39
|
+
- Allow to customize autosuggest submit label ([6b619df](https://github.com/cozy/cozy-libs/commit/6b619dffc96d020e3bc031a73f3c622afdd77343))
|
|
40
|
+
- Allow to disable notifications on contact selection ([a62e48d](https://github.com/cozy/cozy-libs/commit/a62e48db450620bb42e9d5e568fdc861ee6a0650))
|
|
41
|
+
- Display notification and close modal on shared drive creation ([10bff21](https://github.com/cozy/cozy-libs/commit/10bff21516fa3159ce04e15c332044fe462636cc))
|
|
42
|
+
- Manage changing permissions in NewSharedDriveModal ([9aba037](https://github.com/cozy/cozy-libs/commit/9aba0371d9d3a993523a5d6968eac7c4d9d1ec3f))
|
|
39
43
|
|
|
44
|
+
## [21.2.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.1...cozy-sharing@21.2.2) (2025-02-04)
|
|
40
45
|
|
|
41
46
|
### Bug Fixes
|
|
42
47
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
- **Sharing:** Show all share recipients in the “who has access” modal ([8669e6b](https://github.com/cozy/cozy-libs/commit/8669e6b8d8650bbd6645a9be94db403121059e70))
|
|
49
|
+
- **Sharing:** Show correct sharing status by user ([55f5a43](https://github.com/cozy/cozy-libs/commit/55f5a43ca5426da991ab76c7f96faa6ccae00a11))
|
|
46
50
|
|
|
47
51
|
### Reverts
|
|
48
52
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
- Revert "fix(Sharing): Show correct sharing status by user" ([547a458](https://github.com/cozy/cozy-libs/commit/547a458b1dc4cb64724345c753eff153f7830a8a))
|
|
54
54
|
|
|
55
55
|
## [21.2.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.0...cozy-sharing@21.2.1) (2025-01-28)
|
|
56
56
|
|
|
57
57
|
**Note:** Version bump only for package cozy-sharing
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
59
|
# [21.2.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.1.0...cozy-sharing@21.2.0) (2025-01-23)
|
|
64
60
|
|
|
65
|
-
|
|
66
61
|
### Features
|
|
67
62
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
- Remove unused forwardFile ([dbc6aa8](https://github.com/cozy/cozy-libs/commit/dbc6aa8b5e642cdc0b7b626ff9ec91713ffdc7c1))
|
|
73
64
|
|
|
74
65
|
# [21.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.0.0...cozy-sharing@21.1.0) (2025-01-23)
|
|
75
66
|
|
|
76
|
-
|
|
77
67
|
### Bug Fixes
|
|
78
68
|
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
- **sharing:** Fix SharingBannerCozyToCozy propTypes ([1c28e60](https://github.com/cozy/cozy-libs/commit/1c28e60acc2352f75433b67d23ddb2d25b276183))
|
|
81
70
|
|
|
82
71
|
### Features
|
|
83
72
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
73
|
+
- **sharing:** Rename prop of createCozySharingLink action ([cbfb7c9](https://github.com/cozy/cozy-libs/commit/cbfb7c9f179f7396841257f5ad09be7f61ad725d))
|
|
89
74
|
|
|
90
75
|
# [21.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@20.0.0...cozy-sharing@21.0.0) (2025-01-23)
|
|
91
76
|
|
|
92
|
-
|
|
93
77
|
### Features
|
|
94
78
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
79
|
+
- **sharing:** Add new links to `useSharingInfos` ([e9e51f7](https://github.com/cozy/cozy-libs/commit/e9e51f773698ea72af5aca218c65b597c4f918c7))
|
|
80
|
+
- **sharing:** Replace `openSharingLink` with 3 new actions ([9150b33](https://github.com/cozy/cozy-libs/commit/9150b33f7ef3cd55b986dffedd768f00408674dd))
|
|
81
|
+
- **sharing:** Update PublicBanner with new addSharingLink ([3be70fe](https://github.com/cozy/cozy-libs/commit/3be70fef1780806584cba1f07daaf0ebcd9596c7))
|
|
99
82
|
|
|
100
83
|
### BREAKING CHANGES
|
|
101
84
|
|
|
102
|
-
|
|
103
|
-
Replace the `openSharingLink` action with the desired
|
|
104
|
-
action with its link option
|
|
85
|
+
- **sharing:** We now need 3 separate actions to Cozy to Cozy sharing.
|
|
86
|
+
Replace the `openSharingLink` action with the desired
|
|
87
|
+
action with its link option
|
|
105
88
|
|
|
106
89
|
Example:
|
|
90
|
+
|
|
107
91
|
```
|
|
108
92
|
import {
|
|
109
93
|
addToCozySharingLink,
|
|
@@ -125,345 +109,204 @@ const actions = makeActions(
|
|
|
125
109
|
)
|
|
126
110
|
```
|
|
127
111
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
112
|
# [20.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@19.0.0...cozy-sharing@20.0.0) (2025-01-22)
|
|
133
113
|
|
|
134
|
-
|
|
135
114
|
### Bug Fixes
|
|
136
115
|
|
|
137
|
-
|
|
138
|
-
|
|
116
|
+
- **sharing:** Dispatch correct value ([4f2d17c](https://github.com/cozy/cozy-libs/commit/4f2d17cec7ce51fae97c825e3bb605c204dff330))
|
|
139
117
|
|
|
140
118
|
### Features
|
|
141
119
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
120
|
+
- **sharing:** Auto focus password input ([614da3c](https://github.com/cozy/cozy-libs/commit/614da3cceae6f207ced87ae0bc81886224c83a24))
|
|
121
|
+
- **sharing:** Change ShareRestrictionModal validity ([00fb730](https://github.com/cozy/cozy-libs/commit/00fb730160e7f80ea57f6ebf7f47afadff9c0945))
|
|
122
|
+
- **sharing:** Improve BoxPassword ([7e39d7f](https://github.com/cozy/cozy-libs/commit/7e39d7fe16c021c9902a905f7dbdba92b2787eaf))
|
|
123
|
+
- **sharing:** Improve ShareDialogOnlyByLink UX ([4287e74](https://github.com/cozy/cozy-libs/commit/4287e74dc32aa7541e861939c4405a20426640e6))
|
|
124
|
+
- **sharing:** Rework logic of ShareRestrictionModal ([e33df9f](https://github.com/cozy/cozy-libs/commit/e33df9f5bb737dab6db738b435d2d0492698c8e9))
|
|
125
|
+
- **sharing:** Upgrade cozy-client to 53.0.0 ([fd6294f](https://github.com/cozy/cozy-libs/commit/fd6294f0870499a928795a73f099f3885e090a0a))
|
|
149
126
|
|
|
150
127
|
### BREAKING CHANGES
|
|
151
128
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
129
|
+
- **sharing:** You must have `cozy-client >= 53.0.0`
|
|
157
130
|
|
|
158
131
|
# [19.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@18.0.0...cozy-sharing@19.0.0) (2025-01-08)
|
|
159
132
|
|
|
160
|
-
|
|
161
133
|
### Bug Fixes
|
|
162
134
|
|
|
163
|
-
|
|
164
|
-
|
|
135
|
+
- **sharing:** Update propTypes ([0474d9c](https://github.com/cozy/cozy-libs/commit/0474d9c46344b1f7abf65fc6e419a25aef33d2ed))
|
|
165
136
|
|
|
166
137
|
### Features
|
|
167
138
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
139
|
+
- **sharing:** Add 3 actions to use the new action menu ([1af8fa7](https://github.com/cozy/cozy-libs/commit/1af8fa7dbffad63d117149d14e09399e9d71a8a6))
|
|
140
|
+
- **sharing:** Add missing devDeps ([5221b40](https://github.com/cozy/cozy-libs/commit/5221b40397935538e95dcec82c939fb22196c991))
|
|
141
|
+
- **sharing:** Add needed packages ([36a2b67](https://github.com/cozy/cozy-libs/commit/36a2b6771275a35b3ab484b22a18b6d9c7b61496))
|
|
142
|
+
- **sharing:** Add ShareRestrictionModal component ([df5ed28](https://github.com/cozy/cozy-libs/commit/df5ed28c7c7f5dbb339bf26d563e8ffd825a686f))
|
|
143
|
+
- **sharing:** Add the 3 boxes of the new link-sharing modal ([a297d20](https://github.com/cozy/cozy-libs/commit/a297d20c46966c82447491a6fefe2d96509c45a9))
|
|
144
|
+
- **sharing:** Move revoke action to a secondary button ([83d3738](https://github.com/cozy/cozy-libs/commit/83d3738220e2c02ed749a08a47f92ca08ce9feb7))
|
|
145
|
+
- **sharing:** Remove EditLinkPermissionDialog ([1b8bd56](https://github.com/cozy/cozy-libs/commit/1b8bd560f4e72b885817f1f17a83156b6c1a7d58))
|
|
146
|
+
- **sharing:** Remove useless props ([cc3f816](https://github.com/cozy/cozy-libs/commit/cc3f816b6d35deb619488495bb767e1d76b557de))
|
|
147
|
+
- **sharing:** Replace old sharing link menu with the new modal ([de1a1c2](https://github.com/cozy/cozy-libs/commit/de1a1c27a5747c0b8bf091ed1856994f65cdcdb2))
|
|
148
|
+
- **sharing:** Upgrade packages ([9a1312d](https://github.com/cozy/cozy-libs/commit/9a1312d43cba1dcd521e8d6502865ac2071535cf))
|
|
149
|
+
- **sharing:** Use ShareRestrictionModal when creating share link ([248c3b4](https://github.com/cozy/cozy-libs/commit/248c3b4904649e17e935afdef1bd2a0b87082dc7))
|
|
180
150
|
|
|
181
151
|
### BREAKING CHANGES
|
|
182
152
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
153
|
+
- **sharing:** You muse have `cozy-client >= 52.1.0` and `cozy-ui >= 116.0.0`
|
|
188
154
|
|
|
189
155
|
# [18.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@17.0.0...cozy-sharing@18.0.0) (2024-12-23)
|
|
190
156
|
|
|
191
|
-
|
|
192
157
|
### Features
|
|
193
158
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
159
|
+
- **cozy-sharing:** Remove Enzyme tests ([0c678a1](https://github.com/cozy/cozy-libs/commit/0c678a1a096966db9baf5311b99964fc458ce8dc))
|
|
160
|
+
- **cozy-sharing:** Replace jsdom-sixteen package ([b75bc51](https://github.com/cozy/cozy-libs/commit/b75bc51a8d2cbfa0300e5c9fc5f0d839dea24ef2))
|
|
161
|
+
- **cozy-sharing:** Upgrade cozy-ui to 115.0.2 ([f25a351](https://github.com/cozy/cozy-libs/commit/f25a351df58ed0517f35ec4fef7c9044ceac6d56))
|
|
198
162
|
|
|
199
163
|
### BREAKING CHANGES
|
|
200
164
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
165
|
+
- **cozy-sharing:** You must have `cozy-ui >= 115.0.2` & `cozy-client >= 51.6.1`
|
|
206
166
|
|
|
207
167
|
# [17.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.17.0...cozy-sharing@17.0.0) (2024-12-18)
|
|
208
168
|
|
|
209
|
-
|
|
210
169
|
### Features
|
|
211
170
|
|
|
212
|
-
|
|
213
|
-
|
|
171
|
+
- Add NativeFileSharingProvider and shareNative action ([71ba4e1](https://github.com/cozy/cozy-libs/commit/71ba4e120a5518534867cd1f1541502652f9b979))
|
|
214
172
|
|
|
215
173
|
### BREAKING CHANGES
|
|
216
174
|
|
|
217
|
-
|
|
218
|
-
and cozy-device-helper >= 3.7.1 with cozy-sharing
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
175
|
+
- you now need cozy-intent >=2.29.1
|
|
176
|
+
and cozy-device-helper >= 3.7.1 with cozy-sharing
|
|
223
177
|
|
|
224
178
|
# [16.17.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.16.0...cozy-sharing@16.17.0) (2024-12-12)
|
|
225
179
|
|
|
226
|
-
|
|
227
180
|
### Features
|
|
228
181
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
182
|
+
- **cozy-sharing:** Add isShortLabel prop to OpenSharing's buttons ([1085567](https://github.com/cozy/cozy-libs/commit/108556765800f6972a6b4c801fa09fd7c5d08c65))
|
|
234
183
|
|
|
235
184
|
# [16.16.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.15.1...cozy-sharing@16.16.0) (2024-12-12)
|
|
236
185
|
|
|
237
|
-
|
|
238
186
|
### Features
|
|
239
187
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
188
|
+
- **cozy-sharing:** Add conditionnal prop to openSharingLink action ([ec2a8be](https://github.com/cozy/cozy-libs/commit/ec2a8be595215745e85ae0cc1e9b7493e2c5b8a4))
|
|
245
189
|
|
|
246
190
|
## [16.15.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.15.0...cozy-sharing@16.15.1) (2024-12-11)
|
|
247
191
|
|
|
248
|
-
|
|
249
192
|
### Bug Fixes
|
|
250
193
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
194
|
+
- **cozy-sharing:** Do not display loader in public context ([71ff258](https://github.com/cozy/cozy-libs/commit/71ff25879d4d98dbde49035a6f1be5eb687b1500))
|
|
256
195
|
|
|
257
196
|
# [16.15.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.14.0...cozy-sharing@16.15.0) (2024-12-10)
|
|
258
197
|
|
|
259
|
-
|
|
260
198
|
### Features
|
|
261
199
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
200
|
+
- **cozy-sharing:** Upgrade cozy-ui to 113.9.0 ([a6943b0](https://github.com/cozy/cozy-libs/commit/a6943b096173cad242f16d10e95236ec81ea14b3))
|
|
267
201
|
|
|
268
202
|
# [16.14.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.13.0...cozy-sharing@16.14.0) (2024-12-10)
|
|
269
203
|
|
|
270
|
-
|
|
271
204
|
### Features
|
|
272
205
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
206
|
+
- Remove notes.sharing-cozy-to-cozy flag ([f6fa190](https://github.com/cozy/cozy-libs/commit/f6fa1907ea97c0214c2f0cd3e196e7a1177a03ca))
|
|
278
207
|
|
|
279
208
|
# [16.13.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.12.0...cozy-sharing@16.13.0) (2024-12-06)
|
|
280
209
|
|
|
281
|
-
|
|
282
210
|
### Features
|
|
283
211
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
212
|
+
- Use Sharing locales instead apps ([55265c9](https://github.com/cozy/cozy-libs/commit/55265c9366e8ee98664503a6a62500e4ec986606))
|
|
289
213
|
|
|
290
214
|
# [16.12.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.11.0...cozy-sharing@16.12.0) (2024-12-06)
|
|
291
215
|
|
|
292
|
-
|
|
293
216
|
### Features
|
|
294
217
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
218
|
+
- Add openSharingLink action ([de97967](https://github.com/cozy/cozy-libs/commit/de979676b43ab73e412683895437f108740ab5e2))
|
|
219
|
+
- Add OpenSharingLinkButton & OpenSharingLinkFabButton components ([ffc603c](https://github.com/cozy/cozy-libs/commit/ffc603c798954b5ebffb4a860c82f231765bda8d))
|
|
220
|
+
- Upgrade cozy-ui to 113.5.0 ([9bbd797](https://github.com/cozy/cozy-libs/commit/9bbd797056e085f00d1d867641abb12695fbf52b))
|
|
302
221
|
|
|
303
222
|
# [16.11.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.10.0...cozy-sharing@16.11.0) (2024-12-05)
|
|
304
223
|
|
|
305
|
-
|
|
306
224
|
### Features
|
|
307
225
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
226
|
+
- **Sharing:** Expose new component to show owner recipient ([bcc6302](https://github.com/cozy/cozy-libs/commit/bcc6302abf0190259e86a9d327aa0d46e39b693b))
|
|
313
227
|
|
|
314
228
|
# [16.10.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.9.0...cozy-sharing@16.10.0) (2024-12-05)
|
|
315
229
|
|
|
316
|
-
|
|
317
230
|
### Features
|
|
318
231
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
232
|
+
- **Sharing:** Add isPublic prop to SharingProvider ([d08862d](https://github.com/cozy/cozy-libs/commit/d08862d65fd4caaabfd29f116ade0607528345a9))
|
|
324
233
|
|
|
325
234
|
# [16.9.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.8.0...cozy-sharing@16.9.0) (2024-12-04)
|
|
326
235
|
|
|
327
|
-
|
|
328
236
|
### Features
|
|
329
237
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
238
|
+
- **Sharing:** Change style of PublicBanner wording ([ddc8ce3](https://github.com/cozy/cozy-libs/commit/ddc8ce3cfcb1e3cfbdf17f5a7b8d9c8da997b5b0))
|
|
335
239
|
|
|
336
240
|
# [16.8.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.7.0...cozy-sharing@16.8.0) (2024-12-02)
|
|
337
241
|
|
|
338
|
-
|
|
339
242
|
### Features
|
|
340
243
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
244
|
+
- **Sharing:** Expose too new component to get recipients ([a5836f7](https://github.com/cozy/cozy-libs/commit/a5836f7ea3634de44689b4e6c34eeac9b5fcb731))
|
|
346
245
|
|
|
347
246
|
# [16.7.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.6.1...cozy-sharing@16.7.0) (2024-11-26)
|
|
348
247
|
|
|
349
|
-
|
|
350
248
|
### Features
|
|
351
249
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
250
|
+
- Update text to CozyToCozy public banner ([3bd6ea6](https://github.com/cozy/cozy-libs/commit/3bd6ea61e712a763726c5c379e79bba549012a9c))
|
|
357
251
|
|
|
358
252
|
## 16.6.1 (2024-11-06)
|
|
359
253
|
|
|
360
|
-
|
|
361
254
|
### Bug Fixes
|
|
362
255
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
256
|
+
- Rename cozy-dataproxy to cozy-dataproxy-lib ([635d421](https://github.com/cozy/cozy-libs/commit/635d421045fc0374ca88cd68ec4941c95c40a0dd))
|
|
368
257
|
|
|
369
258
|
# 16.6.0 (2024-11-06)
|
|
370
259
|
|
|
371
|
-
|
|
372
260
|
### Features
|
|
373
261
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
262
|
+
- Upgrade cozy-client and cozy-pouch-link ([67f5241](https://github.com/cozy/cozy-libs/commit/67f5241754e0472a991dad3e5fafd0b1c5edb9c6)), closes [cozy/cozy-client#1553](https://github.com/cozy/cozy-client/issues/1553) [cozy/cozy-client#1556](https://github.com/cozy/cozy-client/issues/1556)
|
|
379
263
|
|
|
380
264
|
# 16.5.0 (2024-11-06)
|
|
381
265
|
|
|
382
|
-
|
|
383
266
|
### Features
|
|
384
267
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
268
|
+
- **cozy-devtools:** Remove logs and use hook to get `client` ([df87cf5](https://github.com/cozy/cozy-libs/commit/df87cf500edacae42c55c4bbf710fa2e55ea8ba3))
|
|
390
269
|
|
|
391
270
|
# 16.4.0 (2024-11-06)
|
|
392
271
|
|
|
393
|
-
|
|
394
272
|
### Features
|
|
395
273
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
274
|
+
- **cozy-devtools:** Add first version to test providers ([5689640](https://github.com/cozy/cozy-libs/commit/568964008bb657dfaf8038ac2d9fa3dca8d3eb1c))
|
|
401
275
|
|
|
402
276
|
## 16.3.1 (2024-11-05)
|
|
403
277
|
|
|
404
278
|
**Note:** Version bump only for package cozy-sharing
|
|
405
279
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
280
|
# 16.3.0 (2024-10-30)
|
|
411
281
|
|
|
412
|
-
|
|
413
282
|
### Features
|
|
414
283
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
284
|
+
- Update deps for cozy-viewer ([b2e103a](https://github.com/cozy/cozy-libs/commit/b2e103a1280182881ae1133860c0a09650271920))
|
|
420
285
|
|
|
421
286
|
# 16.2.0 (2024-10-30)
|
|
422
287
|
|
|
423
|
-
|
|
424
288
|
### Features
|
|
425
289
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
290
|
+
- Download file on mobile viewer on press ([3c38062](https://github.com/cozy/cozy-libs/commit/3c38062e2c83d5b8f7d0065323c18d45b5ce9564))
|
|
431
291
|
|
|
432
292
|
# 16.1.0 (2024-10-25)
|
|
433
293
|
|
|
434
|
-
|
|
435
294
|
### Features
|
|
436
295
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
296
|
+
- **Viewer:** Replace Encrypted provider by cozy-ui one ([aa81d02](https://github.com/cozy/cozy-libs/commit/aa81d02f0a70de8044f704cbd895b1d54c9f38b8))
|
|
442
297
|
|
|
443
298
|
## 16.0.3 (2024-10-23)
|
|
444
299
|
|
|
445
300
|
**Note:** Version bump only for package cozy-sharing
|
|
446
301
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
302
|
## 16.0.2 (2024-10-16)
|
|
452
303
|
|
|
453
304
|
**Note:** Version bump only for package cozy-sharing
|
|
454
305
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
306
|
## [16.0.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.0.0...cozy-sharing@16.0.1) (2024-10-15)
|
|
460
307
|
|
|
461
308
|
**Note:** Version bump only for package cozy-sharing
|
|
462
309
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
310
|
# [16.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@15.0.4...cozy-sharing@16.0.0) (2024-09-23)
|
|
468
311
|
|
|
469
312
|
### Features
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useClient } from 'cozy-client';
|
|
5
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
6
5
|
import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link';
|
|
6
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
7
7
|
import { ExtraAvatar } from './ExtraAvatar';
|
|
8
8
|
import { GroupAvatar } from './GroupAvatar';
|
|
9
9
|
import { MemberAvatar } from './MemberAvatar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import uniqueId from 'lodash/uniqueId';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
4
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
5
5
|
import { SharingTooltip, TooltipRecipientList } from '../Tooltip';
|
|
6
6
|
|
|
7
7
|
var ExtraAvatar = function ExtraAvatar(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
3
2
|
import TeamIcon from 'cozy-ui/transpiled/react/Icons/Team';
|
|
3
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
4
4
|
|
|
5
5
|
var GroupAvatar = function GroupAvatar(_ref) {
|
|
6
6
|
var size = _ref.size,
|
|
@@ -8,20 +8,18 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
8
8
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
9
|
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import
|
|
12
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
13
|
-
import { getDisplayName, getInitials } from '../../models';
|
|
11
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
14
12
|
import logger from '../../logger';
|
|
13
|
+
import { getDisplayName, getInitials } from '../../models';
|
|
15
14
|
|
|
16
15
|
var MemberAvatar = function MemberAvatar(_ref) {
|
|
17
16
|
var recipient = _ref.recipient,
|
|
18
17
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
// There are cases when due to apparent memory leaks, the recipient does not exist
|
|
21
20
|
// This will trigger an unhanded error in the Avatar component and crash the app
|
|
22
21
|
// At the moment, we are not sure where is the root cause of this cascading undefined props
|
|
23
22
|
// Nevertheless, we can prevent the crash by returning null if the recipient is undefined
|
|
24
|
-
|
|
25
23
|
if (!recipient) {
|
|
26
24
|
// eslint-disable-next-line
|
|
27
25
|
logger.warn('RecipientAvatar: recipient is missing, see props:', _objectSpread({
|
|
@@ -31,18 +29,23 @@ var MemberAvatar = function MemberAvatar(_ref) {
|
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
31
|
* avatarPath is always the same for a recipient, but image
|
|
34
|
-
* can be different since the stack generate it on the fly
|
|
32
|
+
* can be different since the stack generate it on the fly
|
|
33
|
+
* because they can be customized by the user.
|
|
35
34
|
* It can be "gray" during the first load depending of the
|
|
36
35
|
* status' sharing, but can become active (from the realtime)
|
|
37
36
|
* so we need a way to "refresh" the image. Passing the
|
|
38
37
|
* status in the url force the refresh of the image when the
|
|
39
38
|
* status changes
|
|
40
39
|
*/
|
|
40
|
+
// we comment this part for now because it's not compliant with Twake theme
|
|
41
|
+
// const image =
|
|
42
|
+
// recipient.avatarPath && recipient.status
|
|
43
|
+
// ? `${client.options.uri}${recipient.avatarPath}?v=${recipient.status}`
|
|
44
|
+
// : null
|
|
41
45
|
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
image: image,
|
|
47
|
+
return /*#__PURE__*/React.createElement(Avatar // image={image}
|
|
48
|
+
, _extends({
|
|
46
49
|
text: getInitials(recipient),
|
|
47
50
|
textId: getDisplayName(recipient),
|
|
48
51
|
disabled: recipient.status === 'pending' || recipient.status === 'mail-not-send'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { models } from 'cozy-client';
|
|
4
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
5
4
|
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
6
5
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
7
6
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
7
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
8
8
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
9
9
|
import { GroupAvatar } from './Avatar/GroupAvatar';
|
|
10
10
|
import { Contact, Group, getDisplayName, getInitials } from '../models';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["instance"];
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
4
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
5
5
|
import Identity from './Identity';
|
|
6
6
|
import { getDisplayName, getInitials } from '../../models';
|
|
7
7
|
var styles = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["url", "size"];
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
4
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
5
5
|
import Identity from './Identity';
|
|
6
6
|
import { getDisplayName, getInitials } from '../../models';
|
|
7
7
|
var styles = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useClient } from 'cozy-client';
|
|
3
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
4
3
|
import List from 'cozy-ui/transpiled/react/List';
|
|
5
4
|
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
6
5
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
7
6
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
8
7
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
8
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
9
9
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
10
10
|
import MemberRecipientStatus from './MemberRecipientStatus';
|
|
11
11
|
import { getInitials, getDisplayName } from '../../models';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
3
2
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
4
3
|
import ForbiddenIcon from 'cozy-ui/transpiled/react/Icons/Forbidden';
|
|
5
4
|
import List from 'cozy-ui/transpiled/react/List';
|
|
@@ -7,6 +6,7 @@ import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
|
7
6
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
8
7
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
9
8
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
9
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
10
10
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
11
11
|
import { DEFAULT_DISPLAY_NAME } from '../../helpers/recipients';
|
|
12
12
|
import { getInitials, getDisplayName } from '../../models';
|
|
@@ -3,9 +3,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useState, useRef } from 'react';
|
|
5
5
|
import Autosuggest from 'react-autosuggest';
|
|
6
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
7
6
|
import Chip from 'cozy-ui/transpiled/react/Chips';
|
|
8
7
|
import { Spinner } from 'cozy-ui/transpiled/react/Spinner';
|
|
8
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar';
|
|
9
9
|
import { GroupAvatar } from './Avatar/GroupAvatar';
|
|
10
10
|
import ContactSuggestion from './ContactSuggestion';
|
|
11
11
|
import { extractEmails, validateEmail } from '../helpers/email';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`SharedStatus component should display the link if there is a link 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="CozyTheme--light-normal u-dc"
|
|
7
|
+
>
|
|
8
|
+
<span
|
|
9
|
+
class="shared-status"
|
|
10
|
+
>
|
|
11
|
+
<svg
|
|
12
|
+
currentItem="false"
|
|
13
|
+
data-for="linkfor1"
|
|
14
|
+
data-tip="true"
|
|
15
|
+
height="16"
|
|
16
|
+
style="fill: var(--iconTextColor);"
|
|
17
|
+
viewBox="0 0 16 16"
|
|
18
|
+
width="16"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
21
|
+
>
|
|
22
|
+
<defs>
|
|
23
|
+
<path
|
|
24
|
+
d="M8.88 3.88a1 1 0 1 1-1.415-1.415L9.053.877A2.998 2.998 0 0 1 13.29.876l1.18 1.18a2.998 2.998 0 0 1-.007 4.24L10.999 9.76c-1.535 1.535-4.07 1.583-5.534.12A1 1 0 1 1 6.88 8.465c.67.67 1.94.646 2.705-.119l3.465-3.464a.998.998 0 0 0 .006-1.413l-1.18-1.18a.998.998 0 0 0-1.408.003L8.88 3.88zm-2.415 7.585A1 1 0 1 1 7.88 12.88l-1.587 1.587a2.998 2.998 0 0 1-4.237.002l-1.18-1.18a2.998 2.998 0 0 1 .007-4.24l3.464-3.464c1.534-1.535 4.07-1.583 5.533-.12A1 1 0 1 1 8.465 6.88c-.67-.67-1.94-.646-2.705.119l-3.464 3.464a.998.998 0 0 0-.006 1.413l1.18 1.18a.998.998 0 0 0 1.407-.003l1.588-1.588z"
|
|
25
|
+
id="link-1-path-1"
|
|
26
|
+
/>
|
|
27
|
+
</defs>
|
|
28
|
+
<use
|
|
29
|
+
fill-rule="nonzero"
|
|
30
|
+
xlink:href="#link-1-path-1"
|
|
31
|
+
/>
|
|
32
|
+
</svg>
|
|
33
|
+
<div
|
|
34
|
+
class="__react_component_tooltip place-bottom type-dark "
|
|
35
|
+
data-id="tooltip"
|
|
36
|
+
id="linkfor1"
|
|
37
|
+
>
|
|
38
|
+
<span>
|
|
39
|
+
Shared by link
|
|
40
|
+
</span>
|
|
41
|
+
</div>
|
|
42
|
+
</span>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`SharedStatus component should have the right display if there is several recipients 1`] = `
|
|
48
|
+
<div>
|
|
49
|
+
<div
|
|
50
|
+
class="CozyTheme--light-normal u-dc"
|
|
51
|
+
>
|
|
52
|
+
<span
|
|
53
|
+
class="shared-status"
|
|
54
|
+
>
|
|
55
|
+
<a
|
|
56
|
+
class="shared-status-label"
|
|
57
|
+
currentitem="false"
|
|
58
|
+
data-for="members1"
|
|
59
|
+
data-tip="true"
|
|
60
|
+
>
|
|
61
|
+
2 members
|
|
62
|
+
</a>
|
|
63
|
+
<div
|
|
64
|
+
class="__react_component_tooltip place-bottom type-dark "
|
|
65
|
+
data-id="tooltip"
|
|
66
|
+
id="members1"
|
|
67
|
+
>
|
|
68
|
+
<ul
|
|
69
|
+
class="shared-tooltip-list"
|
|
70
|
+
>
|
|
71
|
+
<li>
|
|
72
|
+
1
|
|
73
|
+
</li>
|
|
74
|
+
<li>
|
|
75
|
+
2
|
|
76
|
+
</li>
|
|
77
|
+
</ul>
|
|
78
|
+
</div>
|
|
79
|
+
</span>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`SharedStatus component should just render a span if no sharing 1`] = `
|
|
85
|
+
<div>
|
|
86
|
+
<div
|
|
87
|
+
class="CozyTheme--light-normal u-dc"
|
|
88
|
+
>
|
|
89
|
+
<span
|
|
90
|
+
class="shared-status"
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.1.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@cozy/minilog": "^1.0.0",
|
|
32
32
|
"classnames": "^2.2.6",
|
|
33
|
-
"cozy-device-helper": "^3.
|
|
34
|
-
"cozy-doctypes": "^1.97.
|
|
33
|
+
"cozy-device-helper": "^3.8.0",
|
|
34
|
+
"cozy-doctypes": "^1.97.2",
|
|
35
35
|
"date-fns": "2.30.0",
|
|
36
36
|
"lodash": "^4.17.19",
|
|
37
37
|
"react-autosuggest": "^10.1.0",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"snarkdown": "^2.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@babel/cli": "7.16.8",
|
|
42
43
|
"@babel/core": "7.16.12",
|
|
43
44
|
"@storybook/addon-essentials": "7.6.0",
|
|
44
45
|
"@storybook/addon-interactions": "7.6.0",
|
|
@@ -55,9 +56,9 @@
|
|
|
55
56
|
"babel-plugin-inline-react-svg": "1.1.2",
|
|
56
57
|
"cozy-client": "^57.0.0",
|
|
57
58
|
"cozy-device-helper": "^3.7.1",
|
|
58
|
-
"cozy-intent": "^2.
|
|
59
|
-
"cozy-minilog": "^3.
|
|
60
|
-
"cozy-ui": "^
|
|
59
|
+
"cozy-intent": "^2.30.0",
|
|
60
|
+
"cozy-minilog": "^3.10.0",
|
|
61
|
+
"cozy-ui": "^119.0.1",
|
|
61
62
|
"jest": "26.6.3",
|
|
62
63
|
"jest-environment-jsdom": "26.6.2",
|
|
63
64
|
"react": "16.12.0",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"cozy-device-helper": ">=3.7.1",
|
|
71
72
|
"cozy-intent": ">=2.29.1",
|
|
72
73
|
"cozy-minilog": ">=3.9.1",
|
|
73
|
-
"cozy-ui": ">=
|
|
74
|
+
"cozy-ui": ">=119.0.1",
|
|
74
75
|
"prop-types": "^15.7.2",
|
|
75
76
|
"react": "^16.12.0",
|
|
76
77
|
"react-router": "^5.0.1"
|
|
@@ -78,5 +79,5 @@
|
|
|
78
79
|
"sideEffects": [
|
|
79
80
|
"*.css"
|
|
80
81
|
],
|
|
81
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "f83732db828dad35ba70c744c91f8081d26254f2"
|
|
82
83
|
}
|
|
@@ -2,8 +2,8 @@ import cx from 'classnames'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
6
5
|
import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link'
|
|
6
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
7
7
|
|
|
8
8
|
import { ExtraAvatar } from './ExtraAvatar'
|
|
9
9
|
import { GroupAvatar } from './GroupAvatar'
|
|
@@ -2,7 +2,7 @@ import uniqueId from 'lodash/uniqueId'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
5
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
6
6
|
|
|
7
7
|
import { SharingTooltip, TooltipRecipientList } from '../Tooltip'
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
4
3
|
import TeamIcon from 'cozy-ui/transpiled/react/Icons/Team'
|
|
4
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
5
5
|
|
|
6
6
|
const GroupAvatar = ({ size, className }) => {
|
|
7
7
|
return <Avatar icon={TeamIcon} size={size} className={className} />
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
3
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
5
4
|
|
|
6
|
-
import { getDisplayName, getInitials } from '../../models'
|
|
7
5
|
import logger from '../../logger'
|
|
6
|
+
import { getDisplayName, getInitials } from '../../models'
|
|
8
7
|
|
|
9
8
|
const MemberAvatar = ({ recipient, ...rest }) => {
|
|
10
|
-
const client = useClient()
|
|
11
|
-
|
|
12
9
|
// There are cases when due to apparent memory leaks, the recipient does not exist
|
|
13
10
|
// This will trigger an unhanded error in the Avatar component and crash the app
|
|
14
11
|
// At the moment, we are not sure where is the root cause of this cascading undefined props
|
|
@@ -21,21 +18,23 @@ const MemberAvatar = ({ recipient, ...rest }) => {
|
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
20
|
* avatarPath is always the same for a recipient, but image
|
|
24
|
-
* can be different since the stack generate it on the fly
|
|
21
|
+
* can be different since the stack generate it on the fly
|
|
22
|
+
* because they can be customized by the user.
|
|
25
23
|
* It can be "gray" during the first load depending of the
|
|
26
24
|
* status' sharing, but can become active (from the realtime)
|
|
27
25
|
* so we need a way to "refresh" the image. Passing the
|
|
28
26
|
* status in the url force the refresh of the image when the
|
|
29
27
|
* status changes
|
|
30
28
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
// we comment this part for now because it's not compliant with Twake theme
|
|
30
|
+
// const image =
|
|
31
|
+
// recipient.avatarPath && recipient.status
|
|
32
|
+
// ? `${client.options.uri}${recipient.avatarPath}?v=${recipient.status}`
|
|
33
|
+
// : null
|
|
35
34
|
|
|
36
35
|
return (
|
|
37
36
|
<Avatar
|
|
38
|
-
image={image}
|
|
37
|
+
// image={image}
|
|
39
38
|
text={getInitials(recipient)}
|
|
40
39
|
textId={getDisplayName(recipient)}
|
|
41
40
|
disabled={
|
|
@@ -2,10 +2,10 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { models } from 'cozy-client'
|
|
5
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
6
5
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
7
6
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
8
7
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
8
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
9
9
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
10
10
|
|
|
11
11
|
import { GroupAvatar } from './Avatar/GroupAvatar'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import { useClient } from 'cozy-client'
|
|
4
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
5
4
|
import List from 'cozy-ui/transpiled/react/List'
|
|
6
5
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
7
6
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
8
7
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
9
8
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
9
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
10
10
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
11
11
|
|
|
12
12
|
import MemberRecipientStatus from './MemberRecipientStatus'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
4
3
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
5
4
|
import ForbiddenIcon from 'cozy-ui/transpiled/react/Icons/Forbidden'
|
|
6
5
|
import List from 'cozy-ui/transpiled/react/List'
|
|
@@ -8,6 +7,7 @@ import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
|
8
7
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
9
8
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
10
9
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
10
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
11
11
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
12
12
|
|
|
13
13
|
import { DEFAULT_DISPLAY_NAME } from '../../helpers/recipients'
|
|
@@ -2,9 +2,9 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React, { useState, useRef } from 'react'
|
|
3
3
|
import Autosuggest from 'react-autosuggest'
|
|
4
4
|
|
|
5
|
-
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
6
5
|
import Chip from 'cozy-ui/transpiled/react/Chips'
|
|
7
6
|
import { Spinner } from 'cozy-ui/transpiled/react/Spinner'
|
|
7
|
+
import Avatar from 'cozy-ui/transpiled/react/legacy/Avatar'
|
|
8
8
|
|
|
9
9
|
import { GroupAvatar } from './Avatar/GroupAvatar'
|
|
10
10
|
import ContactSuggestion from './ContactSuggestion'
|