cozy-viewer 29.0.3 → 29.0.5

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,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.5](https://github.com/cozy/cozy-libs/compare/cozy-viewer@29.0.4...cozy-viewer@29.0.5) (2026-06-24)
7
+
8
+ **Note:** Version bump only for package cozy-viewer
9
+
10
+ ## [29.0.4](https://github.com/cozy/cozy-libs/compare/cozy-viewer@29.0.3...cozy-viewer@29.0.4) (2026-06-24)
11
+
12
+ **Note:** Version bump only for package cozy-viewer
13
+
6
14
  ## [29.0.3](https://github.com/cozy/cozy-libs/compare/cozy-viewer@29.0.2...cozy-viewer@29.0.3) (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",
3
+ "version": "29.0.5",
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,12 +32,12 @@
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.2",
35
+ "cozy-harvest-lib": "^38.0.4",
36
36
  "cozy-intent": "^2.31.1",
37
37
  "cozy-logger": "^1.18.1",
38
- "cozy-sharing": "^34.0.0",
38
+ "cozy-sharing": "^34.0.2",
39
39
  "cozy-ui": "^138.1.0",
40
- "cozy-ui-plus": "^8.0.1",
40
+ "cozy-ui-plus": "^9.0.0",
41
41
  "identity-obj-proxy": "3.0.0",
42
42
  "jest": "30.3.0",
43
43
  "jest-canvas-mock": "2.3.1",
@@ -73,5 +73,5 @@
73
73
  "react-router-dom": ">=6.14.2",
74
74
  "twake-i18n": ">=0.3.0"
75
75
  },
76
- "gitHead": "123d86f901bab40395f82907a287cbba46f9fcec"
76
+ "gitHead": "1526f0d72beb8a728568c4bccdf7e658b5c9e389"
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
- <span
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
- <span
39
+ <svg
40
40
  data-icon="true"
41
41
  height="140"
42
42
  width="160"
@@ -5,7 +5,7 @@ exports[`AudioViewer should render a spinner then the audio viewer 1`] = `
5
5
  <div
6
6
  class="viewer-audioviewer"
7
7
  >
8
- <span
8
+ <svg
9
9
  data-icon="true"
10
10
  height="140"
11
11
  width="160"
@@ -6,7 +6,7 @@ exports[`Shortcutviewer renders the component 1`] = `
6
6
  class="viewer-noviewer"
7
7
  data-testid="no-viewer"
8
8
  >
9
- <span
9
+ <svg
10
10
  data-icon="true"
11
11
  height="140"
12
12
  width="160"
@@ -1,7 +1,7 @@
1
1
  const React = require('react')
2
2
 
3
- const Icon = ({ icon, ...props }) =>
4
- React.createElement('span', { 'data-icon': true, ...props })
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
  }