cozy-sharing 21.0.0 → 21.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,6 +3,22 @@
|
|
|
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
|
+
# [21.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@21.0.0...cozy-sharing@21.1.0) (2025-01-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **sharing:** Fix SharingBannerCozyToCozy propTypes ([1c28e60](https://github.com/cozy/cozy-libs/commit/1c28e60acc2352f75433b67d23ddb2d25b276183))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **sharing:** Rename prop of createCozySharingLink action ([cbfb7c9](https://github.com/cozy/cozy-libs/commit/cbfb7c9f179f7396841257f5ad09be7f61ad725d))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [21.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@20.0.0...cozy-sharing@21.0.0) (2025-01-23)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -27,7 +27,7 @@ export var createCozySharingLink = function createCozySharingLink(_ref) {
|
|
|
27
27
|
openSharingLinkDisplayed = _ref$openSharingLinkD === void 0 ? true : _ref$openSharingLinkD,
|
|
28
28
|
_ref$isShortLabel = _ref.isShortLabel,
|
|
29
29
|
isShortLabel = _ref$isShortLabel === void 0 ? false : _ref$isShortLabel,
|
|
30
|
-
|
|
30
|
+
createCozyLink = _ref.createCozyLink;
|
|
31
31
|
|
|
32
32
|
var _getActionsI18n = getActionsI18n(),
|
|
33
33
|
t = _getActionsI18n.t;
|
|
@@ -44,7 +44,7 @@ export var createCozySharingLink = function createCozySharingLink(_ref) {
|
|
|
44
44
|
return openSharingLinkDisplayed;
|
|
45
45
|
},
|
|
46
46
|
action: function action() {
|
|
47
|
-
openExternalLink(
|
|
47
|
+
openExternalLink(createCozyLink);
|
|
48
48
|
},
|
|
49
49
|
Component: makeComponent(label, icon)
|
|
50
50
|
};
|
|
@@ -146,7 +146,7 @@ var SharingBannerByLink = function SharingBannerByLink(_ref3) {
|
|
|
146
146
|
SharingBannerCozyToCozy.propTypes = {
|
|
147
147
|
sharing: PropTypes.object.isRequired,
|
|
148
148
|
isSharingShortcutCreated: PropTypes.bool.isRequired,
|
|
149
|
-
|
|
149
|
+
addSharingLink: PropTypes.string.isRequired,
|
|
150
150
|
onClose: PropTypes.func.isRequired
|
|
151
151
|
};
|
|
152
152
|
export { SharingBannerCozyToCozy, SharingBannerByLink };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.1.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"sideEffects": [
|
|
79
79
|
"*.css"
|
|
80
80
|
],
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "19590cbf95929995b0a626d3623983ec8c83a93a"
|
|
82
82
|
}
|
|
@@ -28,7 +28,7 @@ const makeComponent = (label, icon) => {
|
|
|
28
28
|
export const createCozySharingLink = ({
|
|
29
29
|
openSharingLinkDisplayed = true,
|
|
30
30
|
isShortLabel = false,
|
|
31
|
-
|
|
31
|
+
createCozyLink
|
|
32
32
|
}) => {
|
|
33
33
|
const { t } = getActionsI18n()
|
|
34
34
|
const label = t('Share.create-cozy', { smart_count: isShortLabel ? 1 : 2 })
|
|
@@ -40,7 +40,7 @@ export const createCozySharingLink = ({
|
|
|
40
40
|
icon,
|
|
41
41
|
displayCondition: () => openSharingLinkDisplayed,
|
|
42
42
|
action: () => {
|
|
43
|
-
openExternalLink(
|
|
43
|
+
openExternalLink(createCozyLink)
|
|
44
44
|
},
|
|
45
45
|
Component: makeComponent(label, icon)
|
|
46
46
|
}
|
|
@@ -139,7 +139,7 @@ const SharingBannerByLink = ({ onClose }) => {
|
|
|
139
139
|
SharingBannerCozyToCozy.propTypes = {
|
|
140
140
|
sharing: PropTypes.object.isRequired,
|
|
141
141
|
isSharingShortcutCreated: PropTypes.bool.isRequired,
|
|
142
|
-
|
|
142
|
+
addSharingLink: PropTypes.string.isRequired,
|
|
143
143
|
onClose: PropTypes.func.isRequired
|
|
144
144
|
}
|
|
145
145
|
export { SharingBannerCozyToCozy, SharingBannerByLink }
|