cozy-sharing 28.1.1 → 28.1.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,16 @@
|
|
|
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.3](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.1.2...cozy-sharing@28.1.3) (2026-01-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-sharing
|
|
9
|
+
|
|
10
|
+
## [28.1.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.1.1...cozy-sharing@28.1.2) (2025-12-15)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- Don't show error when user aborts share ([77a6b8d](https://github.com/cozy/cozy-libs/commit/77a6b8d7dc96c32ea00f933bdc176d2a129f6b60))
|
|
15
|
+
|
|
6
16
|
## [28.1.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.1.0...cozy-sharing@28.1.1) (2025-12-12)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
@@ -83,11 +83,15 @@ var ShareByLink = function ShareByLink(_ref) {
|
|
|
83
83
|
case 6:
|
|
84
84
|
_context2.prev = 6;
|
|
85
85
|
_context2.t0 = _context2["catch"](0);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
|
|
87
|
+
// Don't show error when user cancels the share dialog
|
|
88
|
+
if (_context2.t0.name !== 'AbortError') {
|
|
89
|
+
showAlert({
|
|
90
|
+
message: t("".concat(documentType, ".share.error.generic")),
|
|
91
|
+
severity: 'error',
|
|
92
|
+
variant: 'filled'
|
|
93
|
+
});
|
|
94
|
+
}
|
|
91
95
|
|
|
92
96
|
case 9:
|
|
93
97
|
case "end":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.3",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"cozy-intent": "^2.30.1",
|
|
60
60
|
"cozy-minilog": "^3.10.0",
|
|
61
61
|
"cozy-ui": "^135.0.0",
|
|
62
|
-
"cozy-ui-plus": "^4.
|
|
62
|
+
"cozy-ui-plus": "^4.2.0",
|
|
63
63
|
"jest": "26.6.3",
|
|
64
64
|
"jest-environment-jsdom": "26.6.2",
|
|
65
65
|
"react": "16.12.0",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"sideEffects": [
|
|
84
84
|
"*.css"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "1fe28398fc8315ebb5eba401731f8e318c00f05a"
|
|
87
87
|
}
|
|
@@ -40,11 +40,14 @@ const ShareByLink = ({ link, document, documentType }) => {
|
|
|
40
40
|
}
|
|
41
41
|
await navigator.share(shareData)
|
|
42
42
|
} catch (error) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
// Don't show error when user cancels the share dialog
|
|
44
|
+
if (error.name !== 'AbortError') {
|
|
45
|
+
showAlert({
|
|
46
|
+
message: t(`${documentType}.share.error.generic`),
|
|
47
|
+
severity: 'error',
|
|
48
|
+
variant: 'filled'
|
|
49
|
+
})
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|