cozy-sharing 33.3.2 → 33.3.3

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,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [33.3.3](https://github.com/cozy/cozy-libs/compare/cozy-sharing@33.3.2...cozy-sharing@33.3.3) (2026-06-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **cozy-sharing:** Scroll members list in federated share dialogs ([a3b8a64](https://github.com/cozy/cozy-libs/commit/a3b8a6460efa0b6228cdbf825eca7b950300b2f9))
11
+
6
12
  ## [33.3.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@33.3.1...cozy-sharing@33.3.2) (2026-06-11)
7
13
 
8
14
  ### Bug Fixes
@@ -26,6 +26,9 @@ var styles = {
26
26
  "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
27
27
  "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
28
28
  "error": "share__error___pwqPO",
29
+ "share-dialog-scrollable-content": "share__share-dialog-scrollable-content___2Xyoq",
30
+ "share-dialog-scrollable-body": "share__share-dialog-scrollable-body___2O5UT",
31
+ "share-dialog-members": "share__share-dialog-members___CNHKJ",
29
32
  "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
30
33
  "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
31
34
  "share-details-created": "share__share-details-created___z3nvO",
@@ -221,10 +224,12 @@ var FederatedFolderModalContent = function FederatedFolderModalContent(_ref) {
221
224
  },
222
225
  componentsProps: {
223
226
  dialogContent: {
224
- className: 'u-ov-visible'
227
+ className: styles['share-dialog-scrollable-content']
225
228
  }
226
229
  },
227
- content: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
230
+ content: /*#__PURE__*/React.createElement("div", {
231
+ className: styles['share-dialog-scrollable-body']
232
+ }, /*#__PURE__*/React.createElement("div", {
228
233
  className: "u-ph-2"
229
234
  }, /*#__PURE__*/React.createElement(AntivirusAlert, {
230
235
  document: isSending ? frozenDoc : existingDocument
@@ -250,7 +255,7 @@ var FederatedFolderModalContent = function FederatedFolderModalContent(_ref) {
250
255
  recipients: isSending ? frozenRecipients : existingRecipients,
251
256
  document: isSending ? frozenDoc : existingDocument,
252
257
  documentType: "Files",
253
- className: "u-w-100",
258
+ className: styles['share-dialog-members'],
254
259
  onRevoke: revoke,
255
260
  link: displayedLink
256
261
  })),
@@ -14,6 +14,9 @@ var modalStyles = {
14
14
  "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
15
15
  "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
16
16
  "error": "share__error___pwqPO",
17
+ "share-dialog-scrollable-content": "share__share-dialog-scrollable-content___2Xyoq",
18
+ "share-dialog-scrollable-body": "share__share-dialog-scrollable-body___2O5UT",
19
+ "share-dialog-members": "share__share-dialog-members___CNHKJ",
17
20
  "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
18
21
  "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
19
22
  "share-details-created": "share__share-details-created___z3nvO",
@@ -19,6 +19,9 @@ var styles = {
19
19
  "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
20
20
  "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
21
21
  "error": "share__error___pwqPO",
22
+ "share-dialog-scrollable-content": "share__share-dialog-scrollable-content___2Xyoq",
23
+ "share-dialog-scrollable-body": "share__share-dialog-scrollable-body___2O5UT",
24
+ "share-dialog-members": "share__share-dialog-members___CNHKJ",
22
25
  "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
23
26
  "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
24
27
  "share-details-created": "share__share-details-created___z3nvO",
@@ -37,6 +37,9 @@ var styles = {
37
37
  "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
38
38
  "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
39
39
  "error": "share__error___pwqPO",
40
+ "share-dialog-scrollable-content": "share__share-dialog-scrollable-content___2Xyoq",
41
+ "share-dialog-scrollable-body": "share__share-dialog-scrollable-body___2O5UT",
42
+ "share-dialog-members": "share__share-dialog-members___CNHKJ",
40
43
  "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
41
44
  "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
42
45
  "share-details-created": "share__share-details-created___z3nvO",
@@ -18,6 +18,9 @@ var styles = {
18
18
  "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
19
19
  "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
20
20
  "error": "share__error___pwqPO",
21
+ "share-dialog-scrollable-content": "share__share-dialog-scrollable-content___2Xyoq",
22
+ "share-dialog-scrollable-body": "share__share-dialog-scrollable-body___2O5UT",
23
+ "share-dialog-members": "share__share-dialog-members___CNHKJ",
21
24
  "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
22
25
  "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
23
26
  "share-details-created": "share__share-details-created___z3nvO",
@@ -21,6 +21,27 @@ import { getOrCreateFromArray } from '../../helpers/contacts';
21
21
  import withLocales from '../../hoc/withLocales';
22
22
  import { usePendingRecipients } from '../../hooks/usePendingRecipients';
23
23
  import { useSharingContext } from '../../hooks/useSharingContext';
24
+ var styles = {
25
+ "share-modal-content": "share__share-modal-content___1iqEq",
26
+ "coz-form": "share__coz-form___1ICST",
27
+ "coz-form-group": "share__coz-form-group___VsQp7",
28
+ "coz-form-desc": "share__coz-form-desc___2mYN4",
29
+ "coz-form-label": "share__coz-form-label___bogBw",
30
+ "coz-form-label--error": "share__coz-form-label--error___3YPkf",
31
+ "coz-form-errors": "share__coz-form-errors___2xYRz",
32
+ "coz-form-controls": "share__coz-form-controls___H8kGc",
33
+ "coz-form-controls--full": "share__coz-form-controls--full___1oQXF",
34
+ "coz-form-controls--dispatch": "share__coz-form-controls--dispatch___1zIxt",
35
+ "error": "share__error___pwqPO",
36
+ "share-dialog-scrollable-content": "share__share-dialog-scrollable-content___2Xyoq",
37
+ "share-dialog-scrollable-body": "share__share-dialog-scrollable-body___2O5UT",
38
+ "share-dialog-members": "share__share-dialog-members___CNHKJ",
39
+ "share-byemail-onlybylink": "share__share-byemail-onlybylink___29W-t",
40
+ "aligned-dropdown-button": "share__aligned-dropdown-button___3crgG",
41
+ "share-details-created": "share__share-details-created___z3nvO",
42
+ "share-details-perm": "share__share-details-perm___3HjxK",
43
+ "share-details-perm-desc": "share__share-details-perm-desc___3HyHu"
44
+ };
24
45
  import { default as DumbShareByEmail } from '../ShareByEmail';
25
46
  import WhoHasAccess from '../WhoHasAccess';
26
47
  export var EditSharedDriveModal = withLocales(function (_ref) {
@@ -109,10 +130,12 @@ export var EditSharedDriveModal = withLocales(function (_ref) {
109
130
  },
110
131
  componentsProps: {
111
132
  dialogContent: {
112
- className: 'u-ov-visible'
133
+ className: styles['share-dialog-scrollable-content']
113
134
  }
114
135
  },
115
- content: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
136
+ content: /*#__PURE__*/React.createElement("div", {
137
+ className: styles['share-dialog-scrollable-body']
138
+ }, /*#__PURE__*/React.createElement("div", {
116
139
  className: "u-ph-2 u-pt-2"
117
140
  }, /*#__PURE__*/React.createElement(SharedDriveHeader, {
118
141
  title: t('SharedDrive.editSharedDriveModal.title')
@@ -143,7 +166,7 @@ export var EditSharedDriveModal = withLocales(function (_ref) {
143
166
  recipients: existingRecipients,
144
167
  document: document,
145
168
  documentType: "Files",
146
- className: "u-w-100",
169
+ className: styles['share-dialog-members'],
147
170
  onRevoke: revoke
148
171
  }), /*#__PURE__*/React.createElement("div", {
149
172
  className: "u-flex u-ph-2 u-pv-1"
@@ -2,6 +2,39 @@
2
2
  @require 'components/popover.styl'
3
3
  @require 'settings/breakpoints.styl'
4
4
 
5
+ // The federated share dialogs keep overflow visible so the contact
6
+ // suggestions dropdown can pop over the dialog, which disables the dialog's
7
+ // native scrolling. These classes pass the height constraint down through
8
+ // the flex chain so only the members list scrolls.
9
+ .share-dialog-scrollable-content
10
+ display flex
11
+ flex-direction column
12
+ min-height 0
13
+ // keep the contact suggestions dropdown visible over the dialog;
14
+ // !important to win over MUI's DialogContent overflow-y auto
15
+ overflow visible !important // @stylint ignore
16
+
17
+ // cozy-ui dialogs expose no componentsProps hook for their
18
+ // .dialogContentInner wrapper, but the classname is a stable contract:
19
+ // cozy-ui's own MUI theme overrides style it by name
20
+ > :global(.dialogContentInner) // @stylint ignore Naming imposed by cozy-ui
21
+ display flex
22
+ flex-direction column
23
+ flex 1 1 auto
24
+ min-height 0
25
+
26
+ .share-dialog-scrollable-body
27
+ display flex
28
+ flex-direction column
29
+ flex 1 1 auto
30
+ min-height 0
31
+
32
+ .share-dialog-members
33
+ flex 1 1 auto
34
+ min-height 0
35
+ overflow-y auto
36
+ width 100%
37
+
5
38
  .share-byemail-onlybylink
6
39
  background var(--defaultBackgroundColor)
7
40
  padding 1rem 2rem
@@ -277,6 +277,30 @@
277
277
  }
278
278
  @media (max-width: 48rem) {
279
279
  }
280
+ .share__share-dialog-scrollable-content___2Xyoq {
281
+ display: flex;
282
+ flex-direction: column;
283
+ min-height: 0;
284
+ overflow: visible !important;
285
+ }
286
+ .share__share-dialog-scrollable-content___2Xyoq > .dialogContentInner {
287
+ display: flex;
288
+ flex-direction: column;
289
+ flex: 1 1 auto;
290
+ min-height: 0;
291
+ }
292
+ .share__share-dialog-scrollable-body___2O5UT {
293
+ display: flex;
294
+ flex-direction: column;
295
+ flex: 1 1 auto;
296
+ min-height: 0;
297
+ }
298
+ .share__share-dialog-members___CNHKJ {
299
+ flex: 1 1 auto;
300
+ min-height: 0;
301
+ overflow-y: auto;
302
+ width: 100%;
303
+ }
280
304
  .share__share-byemail-onlybylink___29W-t {
281
305
  background: var(--defaultBackgroundColor);
282
306
  padding: 1rem 2rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "33.3.2",
3
+ "version": "33.3.3",
4
4
  "description": "Provides sharing login for React applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -83,5 +83,5 @@
83
83
  "sideEffects": [
84
84
  "*.css"
85
85
  ],
86
- "gitHead": "08272a4e1b47e169b6f4af662e30a40e4e9a4124"
86
+ "gitHead": "2f0b77b413399e9bc3daa40a0829a08891d677c1"
87
87
  }
@@ -186,10 +186,12 @@ const FederatedFolderModalContent = ({
186
186
  title={modalTitle}
187
187
  classes={{ paper: 'u-ov-visible' }}
188
188
  componentsProps={{
189
- dialogContent: { className: 'u-ov-visible' }
189
+ dialogContent: {
190
+ className: styles['share-dialog-scrollable-content']
191
+ }
190
192
  }}
191
193
  content={
192
- <div>
194
+ <div className={styles['share-dialog-scrollable-body']}>
193
195
  <div className="u-ph-2">
194
196
  <AntivirusAlert
195
197
  document={isSending ? frozenDoc : existingDocument}
@@ -240,7 +242,7 @@ const FederatedFolderModalContent = ({
240
242
  recipients={isSending ? frozenRecipients : existingRecipients}
241
243
  document={isSending ? frozenDoc : existingDocument}
242
244
  documentType="Files"
243
- className="u-w-100"
245
+ className={styles['share-dialog-members']}
244
246
  onRevoke={revoke}
245
247
  link={displayedLink}
246
248
  />
@@ -14,6 +14,7 @@ import { getOrCreateFromArray } from '../../helpers/contacts'
14
14
  import withLocales from '../../hoc/withLocales'
15
15
  import { usePendingRecipients } from '../../hooks/usePendingRecipients'
16
16
  import { useSharingContext } from '../../hooks/useSharingContext'
17
+ import styles from '../../styles/share.styl'
17
18
  import { default as DumbShareByEmail } from '../ShareByEmail'
18
19
  import WhoHasAccess from '../WhoHasAccess'
19
20
 
@@ -68,10 +69,12 @@ export const EditSharedDriveModal = withLocales(({ onClose, document }) => {
68
69
  onClose={onClose}
69
70
  classes={{ paper: 'u-ov-visible' }}
70
71
  componentsProps={{
71
- dialogContent: { className: 'u-ov-visible' }
72
+ dialogContent: {
73
+ className: styles['share-dialog-scrollable-content']
74
+ }
72
75
  }}
73
76
  content={
74
- <div>
77
+ <div className={styles['share-dialog-scrollable-body']}>
75
78
  <div className="u-ph-2 u-pt-2">
76
79
  <SharedDriveHeader
77
80
  title={t('SharedDrive.editSharedDriveModal.title')}
@@ -104,7 +107,7 @@ export const EditSharedDriveModal = withLocales(({ onClose, document }) => {
104
107
  recipients={existingRecipients}
105
108
  document={document}
106
109
  documentType="Files"
107
- className="u-w-100"
110
+ className={styles['share-dialog-members']}
108
111
  onRevoke={revoke}
109
112
  />
110
113
  <div className="u-flex u-ph-2 u-pv-1">
@@ -2,6 +2,39 @@
2
2
  @require 'components/popover.styl'
3
3
  @require 'settings/breakpoints.styl'
4
4
 
5
+ // The federated share dialogs keep overflow visible so the contact
6
+ // suggestions dropdown can pop over the dialog, which disables the dialog's
7
+ // native scrolling. These classes pass the height constraint down through
8
+ // the flex chain so only the members list scrolls.
9
+ .share-dialog-scrollable-content
10
+ display flex
11
+ flex-direction column
12
+ min-height 0
13
+ // keep the contact suggestions dropdown visible over the dialog;
14
+ // !important to win over MUI's DialogContent overflow-y auto
15
+ overflow visible !important // @stylint ignore
16
+
17
+ // cozy-ui dialogs expose no componentsProps hook for their
18
+ // .dialogContentInner wrapper, but the classname is a stable contract:
19
+ // cozy-ui's own MUI theme overrides style it by name
20
+ > :global(.dialogContentInner) // @stylint ignore Naming imposed by cozy-ui
21
+ display flex
22
+ flex-direction column
23
+ flex 1 1 auto
24
+ min-height 0
25
+
26
+ .share-dialog-scrollable-body
27
+ display flex
28
+ flex-direction column
29
+ flex 1 1 auto
30
+ min-height 0
31
+
32
+ .share-dialog-members
33
+ flex 1 1 auto
34
+ min-height 0
35
+ overflow-y auto
36
+ width 100%
37
+
5
38
  .share-byemail-onlybylink
6
39
  background var(--defaultBackgroundColor)
7
40
  padding 1rem 2rem