cozy-sharing 23.2.0 → 24.0.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 +11 -0
- package/dist/components/ShareRestrictionModal/BoxDate.js +2 -1
- package/dist/components/ShareRestrictionModal/BoxPassword.js +2 -1
- package/package.json +4 -4
- package/src/components/ShareRestrictionModal/BoxDate.jsx +2 -1
- package/src/components/ShareRestrictionModal/BoxPassword.jsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [24.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.2.0...cozy-sharing@24.0.0) (2025-03-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **Sharing:** Adjust switch position ([4c72e95](https://github.com/cozy/cozy-libs/commit/4c72e95916a5dc3f3ce24e71196ac50d4c232610))
|
|
11
|
+
- **Sharing:** Upgrade cozy-ui ([9bf395a](https://github.com/cozy/cozy-libs/commit/9bf395a1db38f213a30dc9346578f592a33f7228))
|
|
12
|
+
|
|
13
|
+
### BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
- **Sharing:** You must have `cozy-ui >= 119.2.0`
|
|
16
|
+
|
|
6
17
|
# [23.2.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.1.0...cozy-sharing@23.2.0) (2025-03-12)
|
|
7
18
|
|
|
8
19
|
### Features
|
|
@@ -11,6 +11,7 @@ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
|
|
|
11
11
|
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction';
|
|
12
12
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
13
13
|
import Switch from 'cozy-ui/transpiled/react/Switch';
|
|
14
|
+
import { isTwakeTheme } from 'cozy-ui/transpiled/react/helpers/isTwakeTheme';
|
|
14
15
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
15
16
|
export var BoxDate = function BoxDate(_ref) {
|
|
16
17
|
var onChange = _ref.onChange,
|
|
@@ -48,7 +49,7 @@ export var BoxDate = function BoxDate(_ref) {
|
|
|
48
49
|
})), /*#__PURE__*/React.createElement(ListItemText, {
|
|
49
50
|
primary: t('BoxDate.text')
|
|
50
51
|
}), /*#__PURE__*/React.createElement(ListItemSecondaryAction, null, /*#__PURE__*/React.createElement(Switch, {
|
|
51
|
-
edge:
|
|
52
|
+
edge: isTwakeTheme() ? 'start' : 'end',
|
|
52
53
|
color: "primary",
|
|
53
54
|
checked: toggle,
|
|
54
55
|
onChange: handleDateToggle
|
|
@@ -16,6 +16,7 @@ import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryA
|
|
|
16
16
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
17
17
|
import Switch from 'cozy-ui/transpiled/react/Switch';
|
|
18
18
|
import TextField from 'cozy-ui/transpiled/react/TextField';
|
|
19
|
+
import { isTwakeTheme } from 'cozy-ui/transpiled/react/helpers/isTwakeTheme';
|
|
19
20
|
import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert';
|
|
20
21
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
|
|
21
22
|
import { copyToClipboard } from './helpers';
|
|
@@ -112,7 +113,7 @@ export var BoxPassword = function BoxPassword(_ref) {
|
|
|
112
113
|
})), /*#__PURE__*/React.createElement(ListItemText, {
|
|
113
114
|
primary: t('BoxPassword.text')
|
|
114
115
|
}), /*#__PURE__*/React.createElement(ListItemSecondaryAction, null, /*#__PURE__*/React.createElement(Switch, {
|
|
115
|
-
edge:
|
|
116
|
+
edge: isTwakeTheme() ? 'start' : 'end',
|
|
116
117
|
color: "primary",
|
|
117
118
|
checked: toggle,
|
|
118
119
|
onChange: handlePasswordToggle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"cozy-device-helper": "^3.7.1",
|
|
59
59
|
"cozy-intent": "^2.30.0",
|
|
60
60
|
"cozy-minilog": "^3.10.0",
|
|
61
|
-
"cozy-ui": "^119.0
|
|
61
|
+
"cozy-ui": "^119.2.0",
|
|
62
62
|
"jest": "26.6.3",
|
|
63
63
|
"jest-environment-jsdom": "26.6.2",
|
|
64
64
|
"react": "16.12.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"cozy-device-helper": ">=3.7.1",
|
|
72
72
|
"cozy-intent": ">=2.29.1",
|
|
73
73
|
"cozy-minilog": ">=3.9.1",
|
|
74
|
-
"cozy-ui": ">=119.0
|
|
74
|
+
"cozy-ui": ">=119.2.0",
|
|
75
75
|
"prop-types": "^15.7.2",
|
|
76
76
|
"react": "^16.12.0",
|
|
77
77
|
"react-router": "^5.0.1"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"sideEffects": [
|
|
80
80
|
"*.css"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "57dd9ed354ce3321933b2e2321349f4d90d07cba"
|
|
83
83
|
}
|
|
@@ -12,6 +12,7 @@ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
|
12
12
|
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction'
|
|
13
13
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
14
14
|
import Switch from 'cozy-ui/transpiled/react/Switch'
|
|
15
|
+
import { isTwakeTheme } from 'cozy-ui/transpiled/react/helpers/isTwakeTheme'
|
|
15
16
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
16
17
|
|
|
17
18
|
export const BoxDate = ({ onChange, date, toggle, onToggle }) => {
|
|
@@ -38,7 +39,7 @@ export const BoxDate = ({ onChange, date, toggle, onToggle }) => {
|
|
|
38
39
|
<ListItemText primary={t('BoxDate.text')} />
|
|
39
40
|
<ListItemSecondaryAction>
|
|
40
41
|
<Switch
|
|
41
|
-
edge=
|
|
42
|
+
edge={isTwakeTheme() ? 'start' : 'end'}
|
|
42
43
|
color="primary"
|
|
43
44
|
checked={toggle}
|
|
44
45
|
onChange={handleDateToggle}
|
|
@@ -13,6 +13,7 @@ import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryA
|
|
|
13
13
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
14
14
|
import Switch from 'cozy-ui/transpiled/react/Switch'
|
|
15
15
|
import TextField from 'cozy-ui/transpiled/react/TextField'
|
|
16
|
+
import { isTwakeTheme } from 'cozy-ui/transpiled/react/helpers/isTwakeTheme'
|
|
16
17
|
import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert'
|
|
17
18
|
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
|
|
18
19
|
|
|
@@ -74,7 +75,7 @@ export const BoxPassword = ({
|
|
|
74
75
|
<ListItemText primary={t('BoxPassword.text')} />
|
|
75
76
|
<ListItemSecondaryAction>
|
|
76
77
|
<Switch
|
|
77
|
-
edge=
|
|
78
|
+
edge={isTwakeTheme() ? 'start' : 'end'}
|
|
78
79
|
color="primary"
|
|
79
80
|
checked={toggle}
|
|
80
81
|
onChange={handlePasswordToggle}
|