cozy-sharing 34.1.2 → 36.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 +26 -0
- package/jest.config.js +3 -4
- package/package.json +5 -5
- package/jestHelpers/mocks/twake-icons.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
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
|
+
# [36.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@35.0.0...cozy-sharing@36.0.0) (2026-06-25)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Update packages ([e6aa159](https://github.com/cozy/cozy-libs/commit/e6aa159bbffc752791caccc2cc7005a2ced62e33))
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
- You need:
|
|
15
|
+
"@linagora/twake-icons": ">=2.6.6"
|
|
16
|
+
"cozy-client": ">=60.28.0"
|
|
17
|
+
"cozy-flags": ">=4.9.1"
|
|
18
|
+
"cozy-intent": ">=2.31.1"
|
|
19
|
+
"cozy-pouch-link": ">=60.28.0"
|
|
20
|
+
"cozy-ui": ">=140.1.0
|
|
21
|
+
|
|
22
|
+
# [35.0.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@34.1.2...cozy-sharing@35.0.0) (2026-06-25)
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
- Ugrade twake-icons in libs and remove test mock ([46178bc](https://github.com/cozy/cozy-libs/commit/46178bcfff73fb8486b6a5209a14e306b497371b))
|
|
27
|
+
|
|
28
|
+
### BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
- You must have `@linagora/twake-icons >=2.6.6`
|
|
31
|
+
|
|
6
32
|
## [34.1.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@34.1.1...cozy-sharing@34.1.2) (2026-06-25)
|
|
7
33
|
|
|
8
34
|
### Bug Fixes
|
package/jest.config.js
CHANGED
|
@@ -23,11 +23,10 @@ module.exports = {
|
|
|
23
23
|
// identity-obj-proxy module is installed by cozy-scripts
|
|
24
24
|
'.styl$': 'identity-obj-proxy',
|
|
25
25
|
'^cozy-logger$': 'cozy-logger/dist/index.js',
|
|
26
|
-
'^cozy-client$': '<rootDir
|
|
26
|
+
'^cozy-client$': '<rootDir>/../../node_modules/cozy-client/dist/index.js',
|
|
27
27
|
'^cozy-client/dist/types$':
|
|
28
|
-
'<rootDir
|
|
29
|
-
'^twake-i18n$': '<rootDir>/../twake-i18n/dist/index.js'
|
|
30
|
-
'^@linagora/twake-icons$': '<rootDir>/jestHelpers/mocks/twake-icons.js'
|
|
28
|
+
'<rootDir>/../../node_modules/cozy-client/dist/types.js',
|
|
29
|
+
'^twake-i18n$': '<rootDir>/../twake-i18n/dist/index.js'
|
|
31
30
|
},
|
|
32
31
|
transformIgnorePatterns: [
|
|
33
32
|
'<rootDir>/node_modules/(?!(cozy-ui|cozy-harvest-lib|cozy-ui-plus))'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/cli": "7.16.8",
|
|
42
42
|
"@babel/core": "7.16.12",
|
|
43
|
-
"@linagora/twake-icons": "^2.6.
|
|
43
|
+
"@linagora/twake-icons": "^2.6.6",
|
|
44
44
|
"@storybook/addon-essentials": "7.6.0",
|
|
45
45
|
"@storybook/addon-interactions": "7.6.0",
|
|
46
46
|
"@storybook/addon-links": "7.6.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"cozy-intent": "^2.31.1",
|
|
60
60
|
"cozy-minilog": "^3.10.1",
|
|
61
61
|
"cozy-ui": "^139.0.2",
|
|
62
|
-
"cozy-ui-plus": "^
|
|
62
|
+
"cozy-ui-plus": "^10.0.0",
|
|
63
63
|
"jest": "30.3.0",
|
|
64
64
|
"jest-environment-jsdom": "30.3.0",
|
|
65
65
|
"react": "16.12.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"twake-i18n": "^0.4.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@linagora/twake-icons": ">=2.6.
|
|
72
|
+
"@linagora/twake-icons": ">=2.6.6",
|
|
73
73
|
"cozy-client": ">=60.28.0",
|
|
74
74
|
"cozy-device-helper": ">=4.0.0",
|
|
75
75
|
"cozy-flags": ">=4.8.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"sideEffects": [
|
|
86
86
|
"*.css"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "e5dfc25d8fde87c2f285b625bc8763359a8d7467"
|
|
89
89
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const React = require('react')
|
|
2
|
-
|
|
3
|
-
const Icon = ({ icon, iconRef, ...props }) =>
|
|
4
|
-
React.createElement('svg', { 'data-icon': true, ...props })
|
|
5
|
-
|
|
6
|
-
const Sprite = () => null
|
|
7
|
-
|
|
8
|
-
const getFileTypeIcon = () =>
|
|
9
|
-
function FileTypeIcon() {
|
|
10
|
-
return React.createElement('svg', { 'data-filetypeicon': true })
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const proxyHandler = {
|
|
14
|
-
get: function (target, prop) {
|
|
15
|
-
if (prop in target) return target[prop]
|
|
16
|
-
if (prop === 'default') return target.Icon
|
|
17
|
-
return function IconMock({ iconRef, ...props }) {
|
|
18
|
-
return React.createElement('svg', { 'data-mock-icon': prop, ...props })
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
module.exports = new Proxy({ Icon, Sprite, getFileTypeIcon }, proxyHandler)
|