cozy-sharing 28.0.3 → 28.1.1

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,18 @@
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
+ ## [28.1.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.1.0...cozy-sharing@28.1.1) (2025-12-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Do not disable save button when name is unchanged ([4fcff36](https://github.com/cozy/cozy-libs/commit/4fcff366987fea025a9cf2df447e265221406487))
11
+
12
+ # [28.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.0.3...cozy-sharing@28.1.0) (2025-12-11)
13
+
14
+ ### Features
15
+
16
+ - Change add button color ([d6bad5e](https://github.com/cozy/cozy-libs/commit/d6bad5edc25a3a3a123350e602b87315e521f3af))
17
+
6
18
  ## [28.0.3](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.0.2...cozy-sharing@28.0.3) (2025-12-10)
7
19
 
8
20
  **Note:** Version bump only for package cozy-sharing
@@ -20,8 +20,7 @@ export var DumbSharedDriveModal = withLocales(function (_ref) {
20
20
  onCreate = _ref.onCreate,
21
21
  onClose = _ref.onClose,
22
22
  onShare = _ref.onShare,
23
- onRename = _ref.onRename,
24
- originalSharedDriveName = _ref.originalSharedDriveName;
23
+ onRename = _ref.onRename;
25
24
 
26
25
  var _useI18n = useI18n(),
27
26
  t = _useI18n.t;
@@ -79,7 +78,6 @@ export var DumbSharedDriveModal = withLocales(function (_ref) {
79
78
  label: t('SharedDrive.sharedDriveModal.create'),
80
79
  onClick: onCreate
81
80
  })), onRename && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
82
- disabled: originalSharedDriveName === sharedDriveName,
83
81
  variant: "primary",
84
82
  label: t('SharedDrive.sharedDriveModal.save'),
85
83
  onClick: function onClick() {
@@ -100,6 +98,5 @@ DumbSharedDriveModal.propTypes = {
100
98
  onCreate: PropTypes.func.isRequired,
101
99
  onClose: PropTypes.func.isRequired,
102
100
  onShare: PropTypes.func.isRequired,
103
- onRename: PropTypes.func.isRequired,
104
- originalSharedDriveName: PropTypes.string.isRequired
101
+ onRename: PropTypes.func.isRequired
105
102
  };
@@ -91,8 +91,7 @@ export var SharedDriveEditModal = withLocales(function (_ref) {
91
91
  onShare: onShare,
92
92
  sharedDriveName: name,
93
93
  handleSharedDriveNameChange: handleNameChange,
94
- onRename: onRename,
95
- originalSharedDriveName: sharing === null || sharing === void 0 ? void 0 : sharing.description
94
+ onRename: onRename
96
95
  });
97
96
  });
98
97
  SharedDriveEditModal.propTypes = {
@@ -10,7 +10,8 @@ var ShareSubmit = function ShareSubmit(props) {
10
10
  size: "large",
11
11
  busy: props.loading,
12
12
  label: props.label,
13
- disabled: props.disabled
13
+ disabled: props.disabled,
14
+ variant: "ghost"
14
15
  });
15
16
  };
16
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "28.0.3",
3
+ "version": "28.1.1",
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": "463474b57578fbca2e4fa04165e94abb82627d03"
86
+ "gitHead": "47ff1f9d71e58f22aafb44c29dc68dd9658f5206"
87
87
  }
@@ -24,8 +24,7 @@ export const DumbSharedDriveModal = withLocales(
24
24
  onCreate,
25
25
  onClose,
26
26
  onShare,
27
- onRename,
28
- originalSharedDriveName
27
+ onRename
29
28
  }) => {
30
29
  const { t } = useI18n()
31
30
 
@@ -97,7 +96,6 @@ export const DumbSharedDriveModal = withLocales(
97
96
  {onRename && (
98
97
  <>
99
98
  <Button
100
- disabled={originalSharedDriveName === sharedDriveName}
101
99
  variant="primary"
102
100
  label={t('SharedDrive.sharedDriveModal.save')}
103
101
  onClick={() => onRename(sharedDriveName)}
@@ -123,6 +121,5 @@ DumbSharedDriveModal.propTypes = {
123
121
  onCreate: PropTypes.func.isRequired,
124
122
  onClose: PropTypes.func.isRequired,
125
123
  onShare: PropTypes.func.isRequired,
126
- onRename: PropTypes.func.isRequired,
127
- originalSharedDriveName: PropTypes.string.isRequired
124
+ onRename: PropTypes.func.isRequired
128
125
  }
@@ -51,7 +51,6 @@ export const SharedDriveEditModal = withLocales(
51
51
  sharedDriveName={name}
52
52
  handleSharedDriveNameChange={handleNameChange}
53
53
  onRename={onRename}
54
- originalSharedDriveName={sharing?.description}
55
54
  />
56
55
  )
57
56
  }
@@ -12,6 +12,7 @@ const ShareSubmit = props => (
12
12
  busy={props.loading}
13
13
  label={props.label}
14
14
  disabled={props.disabled}
15
+ variant="ghost"
15
16
  />
16
17
  )
17
18