cozy-sharing 23.0.0 → 23.2.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 +82 -250
- package/dist/components/ShareRestrictionModal/BoxDate.js +2 -1
- package/dist/components/ShareRestrictionModal/BoxEditingRights.js +4 -2
- package/dist/components/ShareRestrictionModal/BoxPassword.js +4 -2
- package/dist/components/ShareRestrictionModal/ShareRestrictionModal.js +2 -1
- package/dist/components/__snapshots__/SharedStatus.spec.js.snap +94 -0
- package/package.json +7 -6
- package/src/components/ShareRestrictionModal/BoxDate.jsx +2 -1
- package/src/components/ShareRestrictionModal/BoxEditingRights.jsx +4 -2
- package/src/components/ShareRestrictionModal/BoxPassword.jsx +4 -2
- package/src/components/ShareRestrictionModal/ShareRestrictionModal.jsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,124 +3,97 @@
|
|
|
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
|
-
# [23.
|
|
7
|
-
|
|
6
|
+
# [23.2.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.1.0...cozy-sharing@23.2.0) (2025-03-12)
|
|
8
7
|
|
|
9
8
|
### Features
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
* **Sharing:** Upgrade cozy-ui 116.0.0 to 119.0.1 ([393ce80](https://github.com/cozy/cozy-libs/commit/393ce806fe726355b165c7130653bb33b2c371cc))
|
|
10
|
+
- Replace sprite icons by svgr ([a7f2d16](https://github.com/cozy/cozy-libs/commit/a7f2d16cd1f3471c9aefe18b0403483f74fc26a5))
|
|
13
11
|
|
|
12
|
+
# [23.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.0.0...cozy-sharing@23.1.0) (2025-03-11)
|
|
14
13
|
|
|
15
|
-
###
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- Add @babel/cli in devDep for some packages ([89e3a41](https://github.com/cozy/cozy-libs/commit/89e3a4156ba5867c9c20642d14e63b14bf992217))
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
# [23.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@22.0.0...cozy-sharing@23.0.0) (2025-03-11)
|
|
18
19
|
|
|
20
|
+
### Features
|
|
19
21
|
|
|
22
|
+
- **Sharing:** Remove image avatar from stack ([904efbc](https://github.com/cozy/cozy-libs/commit/904efbca5855fef7d3cd23ffcbefd64810cdec26))
|
|
23
|
+
- **Sharing:** Upgrade cozy-ui 116.0.0 to 119.0.1 ([393ce80](https://github.com/cozy/cozy-libs/commit/393ce806fe726355b165c7130653bb33b2c371cc))
|
|
20
24
|
|
|
25
|
+
### BREAKING CHANGES
|
|
21
26
|
|
|
27
|
+
- **Sharing:** You must have `cozy-ui >= 119.0.1`
|
|
22
28
|
|
|
23
29
|
# [22.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.3.0...cozy-sharing@22.0.0) (2025-02-26)
|
|
24
30
|
|
|
25
|
-
|
|
26
31
|
### Features
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
- Upgrade cozy-client ([ccc4ece](https://github.com/cozy/cozy-libs/commit/ccc4ece2ae51fc6d0f4d207dc7023db0cf4942c1))
|
|
30
34
|
|
|
31
35
|
### BREAKING CHANGES
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
- You must have `cozy-client >=57.0.0`
|
|
38
38
|
|
|
39
39
|
# [21.3.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.2...cozy-sharing@21.3.0) (2025-02-26)
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
### Features
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
- Add a basic new shared drive modal ([a554807](https://github.com/cozy/cozy-libs/commit/a55480749600410871b74e3284f23f5d57d71605))
|
|
44
|
+
- Allow to create a shared drive in the share method ([c5efffe](https://github.com/cozy/cozy-libs/commit/c5efffee257519a4e83d74a4c263395239d5fd02))
|
|
45
|
+
- Allow to customize autosuggest submit label ([6b619df](https://github.com/cozy/cozy-libs/commit/6b619dffc96d020e3bc031a73f3c622afdd77343))
|
|
46
|
+
- Allow to disable notifications on contact selection ([a62e48d](https://github.com/cozy/cozy-libs/commit/a62e48db450620bb42e9d5e568fdc861ee6a0650))
|
|
47
|
+
- Display notification and close modal on shared drive creation ([10bff21](https://github.com/cozy/cozy-libs/commit/10bff21516fa3159ce04e15c332044fe462636cc))
|
|
48
|
+
- Manage changing permissions in NewSharedDriveModal ([9aba037](https://github.com/cozy/cozy-libs/commit/9aba0371d9d3a993523a5d6968eac7c4d9d1ec3f))
|
|
54
49
|
|
|
55
50
|
## [21.2.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.1...cozy-sharing@21.2.2) (2025-02-04)
|
|
56
51
|
|
|
57
|
-
|
|
58
52
|
### Bug Fixes
|
|
59
53
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
- **Sharing:** Show all share recipients in the “who has access” modal ([8669e6b](https://github.com/cozy/cozy-libs/commit/8669e6b8d8650bbd6645a9be94db403121059e70))
|
|
55
|
+
- **Sharing:** Show correct sharing status by user ([55f5a43](https://github.com/cozy/cozy-libs/commit/55f5a43ca5426da991ab76c7f96faa6ccae00a11))
|
|
63
56
|
|
|
64
57
|
### Reverts
|
|
65
58
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
- Revert "fix(Sharing): Show correct sharing status by user" ([547a458](https://github.com/cozy/cozy-libs/commit/547a458b1dc4cb64724345c753eff153f7830a8a))
|
|
71
60
|
|
|
72
61
|
## [21.2.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.2.0...cozy-sharing@21.2.1) (2025-01-28)
|
|
73
62
|
|
|
74
63
|
**Note:** Version bump only for package cozy-sharing
|
|
75
64
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
65
|
# [21.2.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.1.0...cozy-sharing@21.2.0) (2025-01-23)
|
|
81
66
|
|
|
82
|
-
|
|
83
67
|
### Features
|
|
84
68
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
69
|
+
- Remove unused forwardFile ([dbc6aa8](https://github.com/cozy/cozy-libs/commit/dbc6aa8b5e642cdc0b7b626ff9ec91713ffdc7c1))
|
|
90
70
|
|
|
91
71
|
# [21.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.0.0...cozy-sharing@21.1.0) (2025-01-23)
|
|
92
72
|
|
|
93
|
-
|
|
94
73
|
### Bug Fixes
|
|
95
74
|
|
|
96
|
-
|
|
97
|
-
|
|
75
|
+
- **sharing:** Fix SharingBannerCozyToCozy propTypes ([1c28e60](https://github.com/cozy/cozy-libs/commit/1c28e60acc2352f75433b67d23ddb2d25b276183))
|
|
98
76
|
|
|
99
77
|
### Features
|
|
100
78
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
79
|
+
- **sharing:** Rename prop of createCozySharingLink action ([cbfb7c9](https://github.com/cozy/cozy-libs/commit/cbfb7c9f179f7396841257f5ad09be7f61ad725d))
|
|
106
80
|
|
|
107
81
|
# [21.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@20.0.0...cozy-sharing@21.0.0) (2025-01-23)
|
|
108
82
|
|
|
109
|
-
|
|
110
83
|
### Features
|
|
111
84
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
85
|
+
- **sharing:** Add new links to `useSharingInfos` ([e9e51f7](https://github.com/cozy/cozy-libs/commit/e9e51f773698ea72af5aca218c65b597c4f918c7))
|
|
86
|
+
- **sharing:** Replace `openSharingLink` with 3 new actions ([9150b33](https://github.com/cozy/cozy-libs/commit/9150b33f7ef3cd55b986dffedd768f00408674dd))
|
|
87
|
+
- **sharing:** Update PublicBanner with new addSharingLink ([3be70fe](https://github.com/cozy/cozy-libs/commit/3be70fef1780806584cba1f07daaf0ebcd9596c7))
|
|
116
88
|
|
|
117
89
|
### BREAKING CHANGES
|
|
118
90
|
|
|
119
|
-
|
|
120
|
-
Replace the `openSharingLink` action with the desired
|
|
121
|
-
action with its link option
|
|
91
|
+
- **sharing:** We now need 3 separate actions to Cozy to Cozy sharing.
|
|
92
|
+
Replace the `openSharingLink` action with the desired
|
|
93
|
+
action with its link option
|
|
122
94
|
|
|
123
95
|
Example:
|
|
96
|
+
|
|
124
97
|
```
|
|
125
98
|
import {
|
|
126
99
|
addToCozySharingLink,
|
|
@@ -142,345 +115,204 @@ const actions = makeActions(
|
|
|
142
115
|
)
|
|
143
116
|
```
|
|
144
117
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
118
|
# [20.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@19.0.0...cozy-sharing@20.0.0) (2025-01-22)
|
|
150
119
|
|
|
151
|
-
|
|
152
120
|
### Bug Fixes
|
|
153
121
|
|
|
154
|
-
|
|
155
|
-
|
|
122
|
+
- **sharing:** Dispatch correct value ([4f2d17c](https://github.com/cozy/cozy-libs/commit/4f2d17cec7ce51fae97c825e3bb605c204dff330))
|
|
156
123
|
|
|
157
124
|
### Features
|
|
158
125
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
126
|
+
- **sharing:** Auto focus password input ([614da3c](https://github.com/cozy/cozy-libs/commit/614da3cceae6f207ced87ae0bc81886224c83a24))
|
|
127
|
+
- **sharing:** Change ShareRestrictionModal validity ([00fb730](https://github.com/cozy/cozy-libs/commit/00fb730160e7f80ea57f6ebf7f47afadff9c0945))
|
|
128
|
+
- **sharing:** Improve BoxPassword ([7e39d7f](https://github.com/cozy/cozy-libs/commit/7e39d7fe16c021c9902a905f7dbdba92b2787eaf))
|
|
129
|
+
- **sharing:** Improve ShareDialogOnlyByLink UX ([4287e74](https://github.com/cozy/cozy-libs/commit/4287e74dc32aa7541e861939c4405a20426640e6))
|
|
130
|
+
- **sharing:** Rework logic of ShareRestrictionModal ([e33df9f](https://github.com/cozy/cozy-libs/commit/e33df9f5bb737dab6db738b435d2d0492698c8e9))
|
|
131
|
+
- **sharing:** Upgrade cozy-client to 53.0.0 ([fd6294f](https://github.com/cozy/cozy-libs/commit/fd6294f0870499a928795a73f099f3885e090a0a))
|
|
166
132
|
|
|
167
133
|
### BREAKING CHANGES
|
|
168
134
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
135
|
+
- **sharing:** You must have `cozy-client >= 53.0.0`
|
|
174
136
|
|
|
175
137
|
# [19.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@18.0.0...cozy-sharing@19.0.0) (2025-01-08)
|
|
176
138
|
|
|
177
|
-
|
|
178
139
|
### Bug Fixes
|
|
179
140
|
|
|
180
|
-
|
|
181
|
-
|
|
141
|
+
- **sharing:** Update propTypes ([0474d9c](https://github.com/cozy/cozy-libs/commit/0474d9c46344b1f7abf65fc6e419a25aef33d2ed))
|
|
182
142
|
|
|
183
143
|
### Features
|
|
184
144
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
145
|
+
- **sharing:** Add 3 actions to use the new action menu ([1af8fa7](https://github.com/cozy/cozy-libs/commit/1af8fa7dbffad63d117149d14e09399e9d71a8a6))
|
|
146
|
+
- **sharing:** Add missing devDeps ([5221b40](https://github.com/cozy/cozy-libs/commit/5221b40397935538e95dcec82c939fb22196c991))
|
|
147
|
+
- **sharing:** Add needed packages ([36a2b67](https://github.com/cozy/cozy-libs/commit/36a2b6771275a35b3ab484b22a18b6d9c7b61496))
|
|
148
|
+
- **sharing:** Add ShareRestrictionModal component ([df5ed28](https://github.com/cozy/cozy-libs/commit/df5ed28c7c7f5dbb339bf26d563e8ffd825a686f))
|
|
149
|
+
- **sharing:** Add the 3 boxes of the new link-sharing modal ([a297d20](https://github.com/cozy/cozy-libs/commit/a297d20c46966c82447491a6fefe2d96509c45a9))
|
|
150
|
+
- **sharing:** Move revoke action to a secondary button ([83d3738](https://github.com/cozy/cozy-libs/commit/83d3738220e2c02ed749a08a47f92ca08ce9feb7))
|
|
151
|
+
- **sharing:** Remove EditLinkPermissionDialog ([1b8bd56](https://github.com/cozy/cozy-libs/commit/1b8bd560f4e72b885817f1f17a83156b6c1a7d58))
|
|
152
|
+
- **sharing:** Remove useless props ([cc3f816](https://github.com/cozy/cozy-libs/commit/cc3f816b6d35deb619488495bb767e1d76b557de))
|
|
153
|
+
- **sharing:** Replace old sharing link menu with the new modal ([de1a1c2](https://github.com/cozy/cozy-libs/commit/de1a1c27a5747c0b8bf091ed1856994f65cdcdb2))
|
|
154
|
+
- **sharing:** Upgrade packages ([9a1312d](https://github.com/cozy/cozy-libs/commit/9a1312d43cba1dcd521e8d6502865ac2071535cf))
|
|
155
|
+
- **sharing:** Use ShareRestrictionModal when creating share link ([248c3b4](https://github.com/cozy/cozy-libs/commit/248c3b4904649e17e935afdef1bd2a0b87082dc7))
|
|
197
156
|
|
|
198
157
|
### BREAKING CHANGES
|
|
199
158
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
159
|
+
- **sharing:** You muse have `cozy-client >= 52.1.0` and `cozy-ui >= 116.0.0`
|
|
205
160
|
|
|
206
161
|
# [18.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@17.0.0...cozy-sharing@18.0.0) (2024-12-23)
|
|
207
162
|
|
|
208
|
-
|
|
209
163
|
### Features
|
|
210
164
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
165
|
+
- **cozy-sharing:** Remove Enzyme tests ([0c678a1](https://github.com/cozy/cozy-libs/commit/0c678a1a096966db9baf5311b99964fc458ce8dc))
|
|
166
|
+
- **cozy-sharing:** Replace jsdom-sixteen package ([b75bc51](https://github.com/cozy/cozy-libs/commit/b75bc51a8d2cbfa0300e5c9fc5f0d839dea24ef2))
|
|
167
|
+
- **cozy-sharing:** Upgrade cozy-ui to 115.0.2 ([f25a351](https://github.com/cozy/cozy-libs/commit/f25a351df58ed0517f35ec4fef7c9044ceac6d56))
|
|
215
168
|
|
|
216
169
|
### BREAKING CHANGES
|
|
217
170
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
171
|
+
- **cozy-sharing:** You must have `cozy-ui >= 115.0.2` & `cozy-client >= 51.6.1`
|
|
223
172
|
|
|
224
173
|
# [17.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.17.0...cozy-sharing@17.0.0) (2024-12-18)
|
|
225
174
|
|
|
226
|
-
|
|
227
175
|
### Features
|
|
228
176
|
|
|
229
|
-
|
|
230
|
-
|
|
177
|
+
- Add NativeFileSharingProvider and shareNative action ([71ba4e1](https://github.com/cozy/cozy-libs/commit/71ba4e120a5518534867cd1f1541502652f9b979))
|
|
231
178
|
|
|
232
179
|
### BREAKING CHANGES
|
|
233
180
|
|
|
234
|
-
|
|
235
|
-
and cozy-device-helper >= 3.7.1 with cozy-sharing
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
181
|
+
- you now need cozy-intent >=2.29.1
|
|
182
|
+
and cozy-device-helper >= 3.7.1 with cozy-sharing
|
|
240
183
|
|
|
241
184
|
# [16.17.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.16.0...cozy-sharing@16.17.0) (2024-12-12)
|
|
242
185
|
|
|
243
|
-
|
|
244
186
|
### Features
|
|
245
187
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
188
|
+
- **cozy-sharing:** Add isShortLabel prop to OpenSharing's buttons ([1085567](https://github.com/cozy/cozy-libs/commit/108556765800f6972a6b4c801fa09fd7c5d08c65))
|
|
251
189
|
|
|
252
190
|
# [16.16.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.15.1...cozy-sharing@16.16.0) (2024-12-12)
|
|
253
191
|
|
|
254
|
-
|
|
255
192
|
### Features
|
|
256
193
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
194
|
+
- **cozy-sharing:** Add conditionnal prop to openSharingLink action ([ec2a8be](https://github.com/cozy/cozy-libs/commit/ec2a8be595215745e85ae0cc1e9b7493e2c5b8a4))
|
|
262
195
|
|
|
263
196
|
## [16.15.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.15.0...cozy-sharing@16.15.1) (2024-12-11)
|
|
264
197
|
|
|
265
|
-
|
|
266
198
|
### Bug Fixes
|
|
267
199
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
200
|
+
- **cozy-sharing:** Do not display loader in public context ([71ff258](https://github.com/cozy/cozy-libs/commit/71ff25879d4d98dbde49035a6f1be5eb687b1500))
|
|
273
201
|
|
|
274
202
|
# [16.15.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.14.0...cozy-sharing@16.15.0) (2024-12-10)
|
|
275
203
|
|
|
276
|
-
|
|
277
204
|
### Features
|
|
278
205
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
206
|
+
- **cozy-sharing:** Upgrade cozy-ui to 113.9.0 ([a6943b0](https://github.com/cozy/cozy-libs/commit/a6943b096173cad242f16d10e95236ec81ea14b3))
|
|
284
207
|
|
|
285
208
|
# [16.14.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.13.0...cozy-sharing@16.14.0) (2024-12-10)
|
|
286
209
|
|
|
287
|
-
|
|
288
210
|
### Features
|
|
289
211
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
212
|
+
- Remove notes.sharing-cozy-to-cozy flag ([f6fa190](https://github.com/cozy/cozy-libs/commit/f6fa1907ea97c0214c2f0cd3e196e7a1177a03ca))
|
|
295
213
|
|
|
296
214
|
# [16.13.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.12.0...cozy-sharing@16.13.0) (2024-12-06)
|
|
297
215
|
|
|
298
|
-
|
|
299
216
|
### Features
|
|
300
217
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
218
|
+
- Use Sharing locales instead apps ([55265c9](https://github.com/cozy/cozy-libs/commit/55265c9366e8ee98664503a6a62500e4ec986606))
|
|
306
219
|
|
|
307
220
|
# [16.12.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.11.0...cozy-sharing@16.12.0) (2024-12-06)
|
|
308
221
|
|
|
309
|
-
|
|
310
222
|
### Features
|
|
311
223
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
224
|
+
- Add openSharingLink action ([de97967](https://github.com/cozy/cozy-libs/commit/de979676b43ab73e412683895437f108740ab5e2))
|
|
225
|
+
- Add OpenSharingLinkButton & OpenSharingLinkFabButton components ([ffc603c](https://github.com/cozy/cozy-libs/commit/ffc603c798954b5ebffb4a860c82f231765bda8d))
|
|
226
|
+
- Upgrade cozy-ui to 113.5.0 ([9bbd797](https://github.com/cozy/cozy-libs/commit/9bbd797056e085f00d1d867641abb12695fbf52b))
|
|
319
227
|
|
|
320
228
|
# [16.11.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.10.0...cozy-sharing@16.11.0) (2024-12-05)
|
|
321
229
|
|
|
322
|
-
|
|
323
230
|
### Features
|
|
324
231
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
232
|
+
- **Sharing:** Expose new component to show owner recipient ([bcc6302](https://github.com/cozy/cozy-libs/commit/bcc6302abf0190259e86a9d327aa0d46e39b693b))
|
|
330
233
|
|
|
331
234
|
# [16.10.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.9.0...cozy-sharing@16.10.0) (2024-12-05)
|
|
332
235
|
|
|
333
|
-
|
|
334
236
|
### Features
|
|
335
237
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
238
|
+
- **Sharing:** Add isPublic prop to SharingProvider ([d08862d](https://github.com/cozy/cozy-libs/commit/d08862d65fd4caaabfd29f116ade0607528345a9))
|
|
341
239
|
|
|
342
240
|
# [16.9.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.8.0...cozy-sharing@16.9.0) (2024-12-04)
|
|
343
241
|
|
|
344
|
-
|
|
345
242
|
### Features
|
|
346
243
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
244
|
+
- **Sharing:** Change style of PublicBanner wording ([ddc8ce3](https://github.com/cozy/cozy-libs/commit/ddc8ce3cfcb1e3cfbdf17f5a7b8d9c8da997b5b0))
|
|
352
245
|
|
|
353
246
|
# [16.8.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.7.0...cozy-sharing@16.8.0) (2024-12-02)
|
|
354
247
|
|
|
355
|
-
|
|
356
248
|
### Features
|
|
357
249
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
250
|
+
- **Sharing:** Expose too new component to get recipients ([a5836f7](https://github.com/cozy/cozy-libs/commit/a5836f7ea3634de44689b4e6c34eeac9b5fcb731))
|
|
363
251
|
|
|
364
252
|
# [16.7.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.6.1...cozy-sharing@16.7.0) (2024-11-26)
|
|
365
253
|
|
|
366
|
-
|
|
367
254
|
### Features
|
|
368
255
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
256
|
+
- Update text to CozyToCozy public banner ([3bd6ea6](https://github.com/cozy/cozy-libs/commit/3bd6ea61e712a763726c5c379e79bba549012a9c))
|
|
374
257
|
|
|
375
258
|
## 16.6.1 (2024-11-06)
|
|
376
259
|
|
|
377
|
-
|
|
378
260
|
### Bug Fixes
|
|
379
261
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
262
|
+
- Rename cozy-dataproxy to cozy-dataproxy-lib ([635d421](https://github.com/cozy/cozy-libs/commit/635d421045fc0374ca88cd68ec4941c95c40a0dd))
|
|
385
263
|
|
|
386
264
|
# 16.6.0 (2024-11-06)
|
|
387
265
|
|
|
388
|
-
|
|
389
266
|
### Features
|
|
390
267
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
268
|
+
- 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)
|
|
396
269
|
|
|
397
270
|
# 16.5.0 (2024-11-06)
|
|
398
271
|
|
|
399
|
-
|
|
400
272
|
### Features
|
|
401
273
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
274
|
+
- **cozy-devtools:** Remove logs and use hook to get `client` ([df87cf5](https://github.com/cozy/cozy-libs/commit/df87cf500edacae42c55c4bbf710fa2e55ea8ba3))
|
|
407
275
|
|
|
408
276
|
# 16.4.0 (2024-11-06)
|
|
409
277
|
|
|
410
|
-
|
|
411
278
|
### Features
|
|
412
279
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
280
|
+
- **cozy-devtools:** Add first version to test providers ([5689640](https://github.com/cozy/cozy-libs/commit/568964008bb657dfaf8038ac2d9fa3dca8d3eb1c))
|
|
418
281
|
|
|
419
282
|
## 16.3.1 (2024-11-05)
|
|
420
283
|
|
|
421
284
|
**Note:** Version bump only for package cozy-sharing
|
|
422
285
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
286
|
# 16.3.0 (2024-10-30)
|
|
428
287
|
|
|
429
|
-
|
|
430
288
|
### Features
|
|
431
289
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
290
|
+
- Update deps for cozy-viewer ([b2e103a](https://github.com/cozy/cozy-libs/commit/b2e103a1280182881ae1133860c0a09650271920))
|
|
437
291
|
|
|
438
292
|
# 16.2.0 (2024-10-30)
|
|
439
293
|
|
|
440
|
-
|
|
441
294
|
### Features
|
|
442
295
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
296
|
+
- Download file on mobile viewer on press ([3c38062](https://github.com/cozy/cozy-libs/commit/3c38062e2c83d5b8f7d0065323c18d45b5ce9564))
|
|
448
297
|
|
|
449
298
|
# 16.1.0 (2024-10-25)
|
|
450
299
|
|
|
451
|
-
|
|
452
300
|
### Features
|
|
453
301
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
302
|
+
- **Viewer:** Replace Encrypted provider by cozy-ui one ([aa81d02](https://github.com/cozy/cozy-libs/commit/aa81d02f0a70de8044f704cbd895b1d54c9f38b8))
|
|
459
303
|
|
|
460
304
|
## 16.0.3 (2024-10-23)
|
|
461
305
|
|
|
462
306
|
**Note:** Version bump only for package cozy-sharing
|
|
463
307
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
308
|
## 16.0.2 (2024-10-16)
|
|
469
309
|
|
|
470
310
|
**Note:** Version bump only for package cozy-sharing
|
|
471
311
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
312
|
## [16.0.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@16.0.0...cozy-sharing@16.0.1) (2024-10-15)
|
|
477
313
|
|
|
478
314
|
**Note:** Version bump only for package cozy-sharing
|
|
479
315
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
316
|
# [16.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@15.0.4...cozy-sharing@16.0.0) (2024-09-23)
|
|
485
317
|
|
|
486
318
|
### Features
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import Box from 'cozy-ui/transpiled/react/Box';
|
|
5
5
|
import DatePicker from 'cozy-ui/transpiled/react/DatePicker';
|
|
6
6
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
7
|
+
import CalendarIcon from 'cozy-ui/transpiled/react/Icons/Calendar';
|
|
7
8
|
import List from 'cozy-ui/transpiled/react/List';
|
|
8
9
|
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
9
10
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
@@ -43,7 +44,7 @@ export var BoxDate = function BoxDate(_ref) {
|
|
|
43
44
|
return handleDateToggle(!toggle);
|
|
44
45
|
}
|
|
45
46
|
}, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
|
|
46
|
-
icon:
|
|
47
|
+
icon: CalendarIcon
|
|
47
48
|
})), /*#__PURE__*/React.createElement(ListItemText, {
|
|
48
49
|
primary: t('BoxDate.text')
|
|
49
50
|
}), /*#__PURE__*/React.createElement(ListItemSecondaryAction, null, /*#__PURE__*/React.createElement(Switch, {
|
|
@@ -6,6 +6,8 @@ import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu';
|
|
|
6
6
|
import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions';
|
|
7
7
|
import Box from 'cozy-ui/transpiled/react/Box';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
|
+
import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom';
|
|
10
|
+
import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People';
|
|
9
11
|
import List from 'cozy-ui/transpiled/react/List';
|
|
10
12
|
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
11
13
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
@@ -55,14 +57,14 @@ export var BoxEditingRights = function BoxEditingRights(_ref) {
|
|
|
55
57
|
ellipsis: false,
|
|
56
58
|
onClick: toggleMenuDisplayed
|
|
57
59
|
}, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
|
|
58
|
-
icon:
|
|
60
|
+
icon: PeopleIcon
|
|
59
61
|
})), /*#__PURE__*/React.createElement(ListItemText, {
|
|
60
62
|
primary: t('BoxEditingRights.text'),
|
|
61
63
|
secondary: textSecondary
|
|
62
64
|
}), /*#__PURE__*/React.createElement(ListItemIcon, {
|
|
63
65
|
className: "u-mr-half"
|
|
64
66
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
65
|
-
icon:
|
|
67
|
+
icon: BottomIcon
|
|
66
68
|
}))))), /*#__PURE__*/React.createElement(ActionsMenu, {
|
|
67
69
|
ref: buttonRef,
|
|
68
70
|
open: isMenuDisplayed,
|
|
@@ -7,6 +7,8 @@ import React, { useState } from 'react';
|
|
|
7
7
|
import Box from 'cozy-ui/transpiled/react/Box';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
9
|
import IconButton from 'cozy-ui/transpiled/react/IconButton';
|
|
10
|
+
import CopyIcon from 'cozy-ui/transpiled/react/Icons/Copy';
|
|
11
|
+
import PasswordIcon from 'cozy-ui/transpiled/react/Icons/Password';
|
|
10
12
|
import List from 'cozy-ui/transpiled/react/List';
|
|
11
13
|
import ListItem from 'cozy-ui/transpiled/react/ListItem';
|
|
12
14
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
@@ -106,7 +108,7 @@ export var BoxPassword = function BoxPassword(_ref) {
|
|
|
106
108
|
return handlePasswordToggle(!toggle);
|
|
107
109
|
}
|
|
108
110
|
}, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
|
|
109
|
-
icon:
|
|
111
|
+
icon: PasswordIcon
|
|
110
112
|
})), /*#__PURE__*/React.createElement(ListItemText, {
|
|
111
113
|
primary: t('BoxPassword.text')
|
|
112
114
|
}), /*#__PURE__*/React.createElement(ListItemSecondaryAction, null, /*#__PURE__*/React.createElement(Switch, {
|
|
@@ -139,7 +141,7 @@ export var BoxPassword = function BoxPassword(_ref) {
|
|
|
139
141
|
endAdornment: /*#__PURE__*/React.createElement(IconButton, {
|
|
140
142
|
onClick: handleCopy
|
|
141
143
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
142
|
-
icon:
|
|
144
|
+
icon: CopyIcon
|
|
143
145
|
}))
|
|
144
146
|
},
|
|
145
147
|
inputProps: inputProps
|
|
@@ -8,6 +8,7 @@ import { generateWebLink, useClient } from 'cozy-client';
|
|
|
8
8
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
9
9
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
10
10
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
11
|
+
import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
|
|
11
12
|
import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert';
|
|
12
13
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
13
14
|
import { ShareRestrictionContentModal } from './ShareRestrictionContentModal';
|
|
@@ -238,7 +239,7 @@ export var ShareRestrictionModal = function ShareRestrictionModal(_ref) {
|
|
|
238
239
|
variant: "secondary",
|
|
239
240
|
color: "error",
|
|
240
241
|
startIcon: /*#__PURE__*/React.createElement(Icon, {
|
|
241
|
-
icon:
|
|
242
|
+
icon: TrashIcon
|
|
242
243
|
}),
|
|
243
244
|
onClick: handleRevokeLink,
|
|
244
245
|
busy: loading
|
|
@@ -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": "23.
|
|
3
|
+
"version": "23.2.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,8 +56,8 @@
|
|
|
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.
|
|
59
|
+
"cozy-intent": "^2.30.0",
|
|
60
|
+
"cozy-minilog": "^3.10.0",
|
|
60
61
|
"cozy-ui": "^119.0.1",
|
|
61
62
|
"jest": "26.6.3",
|
|
62
63
|
"jest-environment-jsdom": "26.6.2",
|
|
@@ -78,5 +79,5 @@
|
|
|
78
79
|
"sideEffects": [
|
|
79
80
|
"*.css"
|
|
80
81
|
],
|
|
81
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "5643e4881d740ef129b2875eb6e5e3b7a8666266"
|
|
82
83
|
}
|
|
@@ -5,6 +5,7 @@ import React from 'react'
|
|
|
5
5
|
import Box from 'cozy-ui/transpiled/react/Box'
|
|
6
6
|
import DatePicker from 'cozy-ui/transpiled/react/DatePicker'
|
|
7
7
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
8
|
+
import CalendarIcon from 'cozy-ui/transpiled/react/Icons/Calendar'
|
|
8
9
|
import List from 'cozy-ui/transpiled/react/List'
|
|
9
10
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
10
11
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
@@ -32,7 +33,7 @@ export const BoxDate = ({ onChange, date, toggle, onToggle }) => {
|
|
|
32
33
|
onClick={() => handleDateToggle(!toggle)}
|
|
33
34
|
>
|
|
34
35
|
<ListItemIcon>
|
|
35
|
-
<Icon icon=
|
|
36
|
+
<Icon icon={CalendarIcon} />
|
|
36
37
|
</ListItemIcon>
|
|
37
38
|
<ListItemText primary={t('BoxDate.text')} />
|
|
38
39
|
<ListItemSecondaryAction>
|
|
@@ -6,6 +6,8 @@ import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
|
|
|
6
6
|
import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
|
|
7
7
|
import Box from 'cozy-ui/transpiled/react/Box'
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
9
|
+
import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom'
|
|
10
|
+
import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
|
|
9
11
|
import List from 'cozy-ui/transpiled/react/List'
|
|
10
12
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
11
13
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
@@ -55,14 +57,14 @@ export const BoxEditingRights = ({ file, editingRights, setEditingRights }) => {
|
|
|
55
57
|
onClick={toggleMenuDisplayed}
|
|
56
58
|
>
|
|
57
59
|
<ListItemIcon>
|
|
58
|
-
<Icon icon=
|
|
60
|
+
<Icon icon={PeopleIcon} />
|
|
59
61
|
</ListItemIcon>
|
|
60
62
|
<ListItemText
|
|
61
63
|
primary={t('BoxEditingRights.text')}
|
|
62
64
|
secondary={textSecondary}
|
|
63
65
|
/>
|
|
64
66
|
<ListItemIcon className="u-mr-half">
|
|
65
|
-
<Icon icon=
|
|
67
|
+
<Icon icon={BottomIcon} />
|
|
66
68
|
</ListItemIcon>
|
|
67
69
|
</ListItem>
|
|
68
70
|
</List>
|
|
@@ -4,6 +4,8 @@ import React, { useState } from 'react'
|
|
|
4
4
|
import Box from 'cozy-ui/transpiled/react/Box'
|
|
5
5
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
6
6
|
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
7
|
+
import CopyIcon from 'cozy-ui/transpiled/react/Icons/Copy'
|
|
8
|
+
import PasswordIcon from 'cozy-ui/transpiled/react/Icons/Password'
|
|
7
9
|
import List from 'cozy-ui/transpiled/react/List'
|
|
8
10
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
9
11
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
@@ -67,7 +69,7 @@ export const BoxPassword = ({
|
|
|
67
69
|
onClick={() => handlePasswordToggle(!toggle)}
|
|
68
70
|
>
|
|
69
71
|
<ListItemIcon>
|
|
70
|
-
<Icon icon=
|
|
72
|
+
<Icon icon={PasswordIcon} />
|
|
71
73
|
</ListItemIcon>
|
|
72
74
|
<ListItemText primary={t('BoxPassword.text')} />
|
|
73
75
|
<ListItemSecondaryAction>
|
|
@@ -104,7 +106,7 @@ export const BoxPassword = ({
|
|
|
104
106
|
InputProps={{
|
|
105
107
|
endAdornment: (
|
|
106
108
|
<IconButton onClick={handleCopy}>
|
|
107
|
-
<Icon icon=
|
|
109
|
+
<Icon icon={CopyIcon} />
|
|
108
110
|
</IconButton>
|
|
109
111
|
)
|
|
110
112
|
}}
|
|
@@ -6,6 +6,7 @@ import { generateWebLink, useClient } from 'cozy-client'
|
|
|
6
6
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
7
7
|
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
9
|
+
import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash'
|
|
9
10
|
import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert'
|
|
10
11
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
11
12
|
|
|
@@ -163,7 +164,7 @@ export const ShareRestrictionModal = ({ file, onClose }) => {
|
|
|
163
164
|
label={t('Share.permissionLink.deactivate')}
|
|
164
165
|
variant="secondary"
|
|
165
166
|
color="error"
|
|
166
|
-
startIcon={<Icon icon=
|
|
167
|
+
startIcon={<Icon icon={TrashIcon} />}
|
|
167
168
|
onClick={handleRevokeLink}
|
|
168
169
|
busy={loading}
|
|
169
170
|
/>
|