cozy-viewer 30.0.9 → 30.0.10

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,12 @@
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
+ ## [30.0.10](https://github.com/cozy/cozy-libs/compare/cozy-viewer@30.0.9...cozy-viewer@30.0.10) (2026-07-08)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **cozy-viewer:** Ensure ShortcutViewer button renders as anchor ([cf5e226](https://github.com/cozy/cozy-libs/commit/cf5e2268806c6c7a71c35354449607b0aaec7d99))
11
+
6
12
  ## [30.0.9](https://github.com/cozy/cozy-libs/compare/cozy-viewer@30.0.8...cozy-viewer@30.0.9) (2026-07-08)
7
13
 
8
14
  ### Bug Fixes
@@ -41,6 +41,7 @@ var ShortcutViewer = function ShortcutViewer(_ref) {
41
41
  file: file,
42
42
  renderFallbackExtraContent: function renderFallbackExtraContent() {
43
43
  return /*#__PURE__*/_react.default.createElement(_Buttons.default, {
44
+ component: "a",
44
45
  label: "".concat(t('Viewer.goto', {
45
46
  url: (0, _get.default)(url, 'origin', '')
46
47
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-viewer",
3
- "version": "30.0.9",
3
+ "version": "30.0.10",
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,7 +32,7 @@
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": "^39.0.9",
35
+ "cozy-harvest-lib": "^39.0.10",
36
36
  "cozy-intent": "^2.31.1",
37
37
  "cozy-logger": "^1.18.1",
38
38
  "cozy-sharing": "^36.4.1",
@@ -73,5 +73,5 @@
73
73
  "react-router-dom": ">=6.14.2",
74
74
  "twake-i18n": ">=0.3.0"
75
75
  },
76
- "gitHead": "19db35e417d2d10beb37d9be4d87597c095dc5a3"
76
+ "gitHead": "6ec06609cabc663878b8a618bf0ef729c3b21782"
77
77
  }
@@ -21,6 +21,7 @@ const ShortcutViewer = ({ t, file }) => {
21
21
  file={file}
22
22
  renderFallbackExtraContent={() => (
23
23
  <Button
24
+ component="a"
24
25
  label={`${t('Viewer.goto', { url: get(url, 'origin', '') })}`}
25
26
  startIcon={<Openwith />}
26
27
  href={`${get(url, 'origin', '')}`}
@@ -33,12 +33,13 @@ exports[`Shortcutviewer renders the component 1`] = `
33
33
  <p
34
34
  class="viewer-filename"
35
35
  />
36
- <button
36
+ <a
37
+ aria-disabled="false"
37
38
  class="MuiButtonBase-root MuiButton-root MuiButton-contained customColor-primary customSize-default MuiButton-containedPrimary MuiButton-disableElevation"
38
39
  href=""
40
+ role="button"
39
41
  tabindex="0"
40
42
  target="_blank"
41
- type="button"
42
43
  >
43
44
  <span
44
45
  class="MuiButton-label"
@@ -60,7 +61,7 @@ exports[`Shortcutviewer renders the component 1`] = `
60
61
  <span
61
62
  class="MuiTouchRipple-root"
62
63
  />
63
- </button>
64
+ </a>
64
65
  </div>
65
66
  </div>
66
67
  `;