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