cozy-viewer 26.0.0 → 26.0.1

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
+ ## [26.0.1](https://github.com/cozy/cozy-libs/compare/cozy-viewer@26.0.0...cozy-viewer@26.0.1) (2025-12-08)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Fix usage of twake-i18n :bug: ([5620f15](https://github.com/cozy/cozy-libs/commit/5620f156f1891a671393a41bf1d1f28c9ec06bda))
11
+
6
12
  # [26.0.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@25.0.1...cozy-viewer@26.0.0) (2025-12-08)
7
13
 
8
14
  ### Features
@@ -1,24 +1,2 @@
1
- export default ViewerContainerWrapper;
2
- declare function ViewerContainerWrapper({ disableModal, ...props }: {
3
- [x: string]: any;
4
- disableModal: any;
5
- }): JSX.Element;
6
- declare namespace ViewerContainerWrapper {
7
- namespace defaultProps {
8
- namespace componentsProps {
9
- namespace modalProps {
10
- let open: boolean;
11
- let fullScreen: boolean;
12
- let fullWidth: boolean;
13
- }
14
- }
15
- }
16
- namespace propTypes {
17
- export let disableModal: PropTypes.Requireable<boolean>;
18
- let componentsProps_1: PropTypes.Requireable<PropTypes.InferProps<{
19
- modalProps: PropTypes.Requireable<object>;
20
- }>>;
21
- export { componentsProps_1 as componentsProps };
22
- }
23
- }
24
- import PropTypes from 'prop-types';
1
+ declare const _default: any;
2
+ export default _default;
@@ -47,6 +47,8 @@ var _Viewer = _interopRequireDefault(require("./Viewer"));
47
47
 
48
48
  var _ViewerInformationsWrapper = _interopRequireDefault(require("./ViewerInformationsWrapper"));
49
49
 
50
+ var _withViewerLocales = require("./hoc/withViewerLocales");
51
+
50
52
  var _locales = require("./locales");
51
53
 
52
54
  var _proptypes2 = require("./proptypes");
@@ -303,5 +305,7 @@ ViewerContainerWrapper.propTypes = {
303
305
  modalProps: _propTypes.default.object
304
306
  })
305
307
  };
306
- var _default = ViewerContainerWrapper;
308
+
309
+ var _default = (0, _withViewerLocales.withViewerLocales)(ViewerContainerWrapper);
310
+
307
311
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-viewer",
3
- "version": "26.0.0",
3
+ "version": "26.0.1",
4
4
  "description": "Cozy-Viewer provides a component to show files in a viewer.",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "babel-preset-cozy-app": "^2.8.2",
32
32
  "cozy-client": "^60.20.0",
33
33
  "cozy-device-helper": "2.0.0",
34
- "cozy-harvest-lib": "^36.0.2",
34
+ "cozy-harvest-lib": "^36.0.3",
35
35
  "cozy-intent": "^2.30.1",
36
36
  "cozy-logger": "^1.17.0",
37
37
  "cozy-sharing": "^28.0.1",
@@ -70,5 +70,5 @@
70
70
  "react-router-dom": ">=6.14.2",
71
71
  "twake-i18n": ">=0.3.0"
72
72
  },
73
- "gitHead": "b3ba2c8a61fba1e8e28681ad0d5038d35f3becdf"
73
+ "gitHead": "2dcfc29fc545477066774e5b1c67c26a6727c34a"
74
74
  }
@@ -15,6 +15,7 @@ import { FileDoctype } from 'cozy-ui-plus/dist/proptypes'
15
15
 
16
16
  import Viewer from './Viewer'
17
17
  import ViewerInformationsWrapper from './ViewerInformationsWrapper'
18
+ import { withViewerLocales } from './hoc/withViewerLocales'
18
19
  import { locales } from './locales'
19
20
  import { toolbarPropsPropType } from './proptypes'
20
21
  import ShareModalProvider from './providers/ShareModalProvider'
@@ -231,4 +232,4 @@ ViewerContainerWrapper.propTypes = {
231
232
  })
232
233
  }
233
234
 
234
- export default ViewerContainerWrapper
235
+ export default withViewerLocales(ViewerContainerWrapper)