cozy-viewer 29.0.2 → 29.0.4
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 +8 -0
- package/package.json +4 -4
- package/src/NoViewer/__snapshots__/NoViewer.spec.jsx.snap +2 -2
- package/src/ViewersByFile/__snapshots__/AudioViewer.spec.jsx.snap +1 -1
- package/src/ViewersByFile/__snapshots__/ShortcutViewer.spec.jsx.snap +1 -1
- package/test/__mocks__/twake-icons.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [29.0.4](https://github.com/cozy/cozy-libs/compare/cozy-viewer@29.0.3...cozy-viewer@29.0.4) (2026-06-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-viewer
|
|
9
|
+
|
|
10
|
+
## [29.0.3](https://github.com/cozy/cozy-libs/compare/cozy-viewer@29.0.2...cozy-viewer@29.0.3) (2026-06-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package cozy-viewer
|
|
13
|
+
|
|
6
14
|
## [29.0.2](https://github.com/cozy/cozy-libs/compare/cozy-viewer@29.0.1...cozy-viewer@29.0.2) (2026-06-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package cozy-viewer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-viewer",
|
|
3
|
-
"version": "29.0.
|
|
3
|
+
"version": "29.0.4",
|
|
4
4
|
"description": "Cozy-Viewer provides a component to show files in a viewer.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"babel-preset-cozy-app": "^2.8.4",
|
|
33
33
|
"cozy-client": "^60.20.0",
|
|
34
34
|
"cozy-device-helper": "2.0.0",
|
|
35
|
-
"cozy-harvest-lib": "^38.0.
|
|
35
|
+
"cozy-harvest-lib": "^38.0.3",
|
|
36
36
|
"cozy-intent": "^2.31.1",
|
|
37
37
|
"cozy-logger": "^1.18.1",
|
|
38
|
-
"cozy-sharing": "^34.0.
|
|
38
|
+
"cozy-sharing": "^34.0.1",
|
|
39
39
|
"cozy-ui": "^138.1.0",
|
|
40
40
|
"cozy-ui-plus": "^8.0.1",
|
|
41
41
|
"identity-obj-proxy": "3.0.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"react-router-dom": ">=6.14.2",
|
|
74
74
|
"twake-i18n": ">=0.3.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "72d5bfe2bb685e6731d0f656f59722dcacd75039"
|
|
77
77
|
}
|
|
@@ -6,7 +6,7 @@ exports[`NoViewer should render the viewer 1`] = `
|
|
|
6
6
|
class="viewer-noviewer"
|
|
7
7
|
data-testid="no-viewer"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
9
|
+
<svg
|
|
10
10
|
data-icon="true"
|
|
11
11
|
height="140"
|
|
12
12
|
width="160"
|
|
@@ -36,7 +36,7 @@ exports[`NoViewer should render the viewer with specific extra content 1`] = `
|
|
|
36
36
|
class="viewer-noviewer"
|
|
37
37
|
data-testid="no-viewer"
|
|
38
38
|
>
|
|
39
|
-
<
|
|
39
|
+
<svg
|
|
40
40
|
data-icon="true"
|
|
41
41
|
height="140"
|
|
42
42
|
width="160"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const React = require('react')
|
|
2
2
|
|
|
3
|
-
const Icon = ({ icon, ...props }) =>
|
|
4
|
-
React.createElement('
|
|
3
|
+
const Icon = ({ icon, iconRef, ...props }) =>
|
|
4
|
+
React.createElement('svg', { 'data-icon': true, ...props })
|
|
5
5
|
|
|
6
6
|
const Sprite = () => null
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ const proxyHandler = {
|
|
|
14
14
|
get: function (target, prop) {
|
|
15
15
|
if (prop in target) return target[prop]
|
|
16
16
|
if (prop === 'default') return target.Icon
|
|
17
|
-
return function IconMock(props) {
|
|
17
|
+
return function IconMock({ iconRef, ...props }) {
|
|
18
18
|
return React.createElement('svg', { 'data-mock-icon': prop, ...props })
|
|
19
19
|
}
|
|
20
20
|
}
|