cozy-viewer 30.0.7 → 30.0.9
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 +11 -0
- package/dist/Footer/DownloadButton.js +2 -2
- package/dist/Footer/ForwardButton.js +2 -2
- package/dist/Footer/SharingButton.js +2 -2
- package/dist/NoViewer/DownloadButton.js +2 -2
- package/dist/NoViewer/FileIcon.js +2 -2
- package/dist/Panel/AI/AIAssistantPanel.js +2 -2
- package/dist/Panel/ActionMenuDesktop.js +2 -2
- package/dist/Panel/ActionMenuMobile.js +2 -2
- package/dist/Panel/Antivirus.js +2 -2
- package/dist/Panel/Informations.js +2 -2
- package/dist/Panel/PanelContent.js +2 -2
- package/dist/Panel/Qualifications/QualificationListItemContact.js +2 -2
- package/dist/Panel/Qualifications/QualificationListItemDate.js +2 -2
- package/dist/Panel/Qualifications/QualificationListItemInformation.js +2 -2
- package/dist/Panel/Qualifications/QualificationListItemOther.js +2 -2
- package/dist/Panel/Qualifications/QualificationListItemQualification.js +2 -2
- package/dist/Panel/Qualifications/QualificationListItemQualificationEmpty.js +2 -2
- package/dist/Panel/Sharing.js +2 -2
- package/dist/Panel/Summary.js +2 -2
- package/dist/Panel/helpers.js +2 -2
- package/dist/ViewersByFile/AudioViewer.js +2 -2
- package/dist/ViewersByFile/NoNetworkViewer.js +4 -4
- package/dist/ViewersByFile/OnlyOfficeViewer.js +2 -2
- package/dist/ViewersByFile/PdfJsViewer.js +2 -2
- package/dist/ViewersByFile/ShortcutViewer.js +5 -5
- package/dist/actions/makeSummaryLonger.js +2 -2
- package/dist/actions/makeSummaryShorter.js +2 -2
- package/dist/components/Navigation.js +2 -2
- package/dist/components/PdfToolbarButton.js +2 -2
- package/dist/components/SummarizeByAIButton.js +2 -2
- package/dist/components/Toolbar.js +2 -2
- package/package.json +5 -5
- package/src/Footer/DownloadButton.jsx +1 -1
- package/src/Footer/ForwardButton.jsx +1 -1
- package/src/Footer/SharingButton.jsx +1 -1
- package/src/NoViewer/DownloadButton.jsx +1 -1
- package/src/NoViewer/FileIcon.jsx +2 -1
- package/src/NoViewer/__snapshots__/NoViewer.spec.jsx.snap +10 -6
- package/src/Panel/AI/AIAssistantPanel.jsx +5 -5
- package/src/Panel/ActionMenuDesktop.jsx +1 -1
- package/src/Panel/ActionMenuMobile.jsx +1 -1
- package/src/Panel/Antivirus.jsx +1 -1
- package/src/Panel/Informations.jsx +4 -4
- package/src/Panel/PanelContent.jsx +1 -1
- package/src/Panel/Qualifications/QualificationListItemContact.jsx +1 -1
- package/src/Panel/Qualifications/QualificationListItemDate.jsx +1 -1
- package/src/Panel/Qualifications/QualificationListItemInformation.jsx +3 -3
- package/src/Panel/Qualifications/QualificationListItemOther.jsx +1 -1
- package/src/Panel/Qualifications/QualificationListItemQualification.jsx +1 -1
- package/src/Panel/Qualifications/QualificationListItemQualificationEmpty.jsx +1 -1
- package/src/Panel/Sharing.jsx +1 -1
- package/src/Panel/Summary.jsx +1 -1
- package/src/Panel/helpers.js +1 -1
- package/src/ViewersByFile/AudioViewer.jsx +1 -1
- package/src/ViewersByFile/NoNetworkViewer.jsx +2 -2
- package/src/ViewersByFile/OnlyOfficeViewer.jsx +1 -1
- package/src/ViewersByFile/PdfJsViewer.jsx +1 -1
- package/src/ViewersByFile/ShortcutViewer.jsx +4 -4
- package/src/ViewersByFile/__snapshots__/ShortcutViewer.spec.jsx.snap +22 -18
- package/src/actions/makeSummaryLonger.js +1 -1
- package/src/actions/makeSummaryShorter.js +1 -1
- package/src/components/Navigation.jsx +2 -1
- package/src/components/PdfToolbarButton.jsx +1 -1
- package/src/components/SummarizeByAIButton.jsx +1 -1
- package/src/components/Toolbar.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.9](https://github.com/cozy/cozy-libs/compare/cozy-viewer@30.0.8...cozy-viewer@30.0.9) (2026-07-08)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **cozy-viewer:** Lint ([09551ce](https://github.com/cozy/cozy-libs/commit/09551ce63e95b03a70648693d25294d7c1d41ae5))
|
|
11
|
+
- **cozy-viewer:** Migrate deprecated Button to Buttons ([2f46ee1](https://github.com/cozy/cozy-libs/commit/2f46ee1f6a6f4874138248f8b048a459ffcfd4fb))
|
|
12
|
+
|
|
13
|
+
## [30.0.8](https://github.com/cozy/cozy-libs/compare/cozy-viewer@30.0.7...cozy-viewer@30.0.8) (2026-07-08)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package cozy-viewer
|
|
16
|
+
|
|
6
17
|
## [30.0.7](https://github.com/cozy/cozy-libs/compare/cozy-viewer@30.0.6...cozy-viewer@30.0.7) (2026-07-07)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package cozy-viewer
|
|
@@ -11,12 +11,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireDefault(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _cozyClient = require("cozy-client");
|
|
21
21
|
|
|
22
22
|
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
@@ -11,12 +11,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireDefault(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _cozyClient = require("cozy-client");
|
|
21
21
|
|
|
22
22
|
var _sharing = require("cozy-client/dist/models/sharing");
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _cozySharing = require("cozy-sharing");
|
|
17
17
|
|
|
18
18
|
var _IconButton = _interopRequireDefault(require("cozy-ui/transpiled/react/IconButton"));
|
|
@@ -17,7 +17,7 @@ var _file = require("cozy-client/dist/models/file");
|
|
|
17
17
|
|
|
18
18
|
var _cozyIntent = require("cozy-intent");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
21
21
|
|
|
22
22
|
var _proptypes = require("cozy-ui-plus/dist/proptypes");
|
|
23
23
|
|
|
@@ -32,7 +32,7 @@ var DownloadButton = function DownloadButton(_ref) {
|
|
|
32
32
|
t = _useI18n.t;
|
|
33
33
|
|
|
34
34
|
var webviewIntent = (0, _cozyIntent.useWebviewIntent)();
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_Buttons.default, {
|
|
36
36
|
onClick: function onClick() {
|
|
37
37
|
return (0, _file.downloadFile)({
|
|
38
38
|
client: client,
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
12
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
+
|
|
14
14
|
var FileIcon = function FileIcon(_ref) {
|
|
15
15
|
var type = _ref.type;
|
|
16
16
|
var icon;
|
|
@@ -15,8 +15,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
15
15
|
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
|
|
18
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
-
|
|
20
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
19
|
|
|
22
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -25,6 +23,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
25
23
|
|
|
26
24
|
var _reactRouterDom = require("react-router-dom");
|
|
27
25
|
|
|
26
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
27
|
+
|
|
28
28
|
var _cozyClient = require("cozy-client");
|
|
29
29
|
|
|
30
30
|
var _ai = require("cozy-client/dist/models/ai");
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _Typography = _interopRequireDefault(require("cozy-ui/transpiled/react/Typography"));
|
|
17
17
|
|
|
18
18
|
var _ActionMenu = _interopRequireWildcard(require("cozy-ui/transpiled/react/deprecated/ActionMenu"));
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _BottomSheet = _interopRequireWildcard(require("cozy-ui/transpiled/react/BottomSheet"));
|
|
17
17
|
|
|
18
18
|
var _List = _interopRequireDefault(require("cozy-ui/transpiled/react/List"));
|
package/dist/Panel/Antivirus.js
CHANGED
|
@@ -9,12 +9,12 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
|
|
12
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
-
|
|
14
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
13
|
|
|
16
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
15
|
|
|
16
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
+
|
|
18
18
|
var _IconButton = _interopRequireDefault(require("cozy-ui/transpiled/react/IconButton"));
|
|
19
19
|
|
|
20
20
|
var _Link = _interopRequireDefault(require("cozy-ui/transpiled/react/Link"));
|
|
@@ -9,14 +9,14 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
|
|
12
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
-
|
|
14
12
|
var _has = _interopRequireDefault(require("lodash/has"));
|
|
15
13
|
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _cozyClient = require("cozy-client");
|
|
21
21
|
|
|
22
22
|
var _ActionsMenu = _interopRequireDefault(require("cozy-ui/transpiled/react/ActionsMenu"));
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
16
14
|
var _reactRouterDom = require("react-router-dom");
|
|
17
15
|
|
|
16
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
+
|
|
18
18
|
var _cozyFlags = _interopRequireDefault(require("cozy-flags"));
|
|
19
19
|
|
|
20
20
|
var _IconButton = _interopRequireDefault(require("cozy-ui/transpiled/react/IconButton"));
|
|
@@ -11,12 +11,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _paper = require("cozy-client/dist/models/paper");
|
|
21
21
|
|
|
22
22
|
var _Actions = require("cozy-ui/transpiled/react/ActionsMenu/Actions");
|
|
@@ -11,12 +11,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _paper = require("cozy-client/dist/models/paper");
|
|
21
21
|
|
|
22
22
|
var _Actions = require("cozy-ui/transpiled/react/ActionsMenu/Actions");
|
|
@@ -11,12 +11,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _paper = require("cozy-client/dist/models/paper");
|
|
21
21
|
|
|
22
22
|
var _Actions = require("cozy-ui/transpiled/react/ActionsMenu/Actions");
|
|
@@ -11,12 +11,12 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _paper = require("cozy-client/dist/models/paper");
|
|
21
21
|
|
|
22
22
|
var _Actions = require("cozy-ui/transpiled/react/ActionsMenu/Actions");
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _paper = require("cozy-client/dist/models/paper");
|
|
17
17
|
|
|
18
18
|
var _ListItem = _interopRequireDefault(require("cozy-ui/transpiled/react/ListItem"));
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _List = _interopRequireDefault(require("cozy-ui/transpiled/react/List"));
|
|
17
17
|
|
|
18
18
|
var _ListItem = _interopRequireDefault(require("cozy-ui/transpiled/react/ListItem"));
|
package/dist/Panel/Sharing.js
CHANGED
|
@@ -9,12 +9,12 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
-
|
|
14
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
13
|
|
|
16
14
|
var _react = _interopRequireDefault(require("react"));
|
|
17
15
|
|
|
16
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
+
|
|
18
18
|
var _cozyClient = require("cozy-client");
|
|
19
19
|
|
|
20
20
|
var _cozyFlags = _interopRequireDefault(require("cozy-flags"));
|
package/dist/Panel/Summary.js
CHANGED
|
@@ -13,8 +13,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
13
13
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
|
|
16
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
-
|
|
18
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
17
|
|
|
20
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -23,6 +21,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
23
21
|
|
|
24
22
|
var _reactRouterDom = require("react-router-dom");
|
|
25
23
|
|
|
24
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
25
|
+
|
|
26
26
|
var _cozyFlags = _interopRequireDefault(require("cozy-flags"));
|
|
27
27
|
|
|
28
28
|
var _Accordion = _interopRequireDefault(require("cozy-ui/transpiled/react/Accordion"));
|
package/dist/Panel/helpers.js
CHANGED
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.metadataByQualificationLabel = exports.makeSize = exports.makePath = exports.makeHideDivider = exports.makeFormattedMetadataQualification = exports.makeFormat = exports.makeDate = exports.isExpirationAlertHidden = exports.getAntivirusStatus = exports.canEditQualification = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
13
11
|
|
|
12
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
+
|
|
14
14
|
var _file = require("cozy-client/dist/models/file");
|
|
15
15
|
|
|
16
16
|
var _paper = require("cozy-client/dist/models/paper");
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
12
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
+
|
|
14
14
|
var _isTesting = _interopRequireDefault(require("cozy-ui/transpiled/react/helpers/isTesting"));
|
|
15
15
|
|
|
16
16
|
var _withFileUrl = _interopRequireDefault(require("../hoc/withFileUrl"));
|
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
|
-
var
|
|
12
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
+
|
|
14
|
+
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
15
15
|
|
|
16
16
|
var _withViewerLocales = require("../hoc/withViewerLocales");
|
|
17
17
|
|
|
@@ -43,7 +43,7 @@ var NoNetworkViewer = function NoNetworkViewer(_ref) {
|
|
|
43
43
|
icon: _twakeIcons.CloudBroken,
|
|
44
44
|
width: 160,
|
|
45
45
|
height: 140
|
|
46
|
-
}), /*#__PURE__*/_react.default.createElement("h2", null, t('Viewer.error.network')), /*#__PURE__*/_react.default.createElement(
|
|
46
|
+
}), /*#__PURE__*/_react.default.createElement("h2", null, t('Viewer.error.network')), /*#__PURE__*/_react.default.createElement(_Buttons.default, {
|
|
47
47
|
onClick: onReload,
|
|
48
48
|
label: t('Viewer.retry')
|
|
49
49
|
}));
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
15
15
|
|
|
16
16
|
var _proptypes = require("cozy-ui-plus/dist/proptypes");
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@ var OnlyOfficeViewer = function OnlyOfficeViewer(_ref) {
|
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_NoViewer.default, {
|
|
27
27
|
file: file,
|
|
28
28
|
renderFallbackExtraContent: function renderFallbackExtraContent() {
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_Buttons.default, {
|
|
30
30
|
label: t('Viewer.openInOnlyOffice'),
|
|
31
31
|
onClick: function onClick() {
|
|
32
32
|
return onlyOfficeOpener(file);
|
|
@@ -23,8 +23,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
23
23
|
|
|
24
24
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
25
|
|
|
26
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
27
|
-
|
|
28
26
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
29
27
|
|
|
30
28
|
var _flow = _interopRequireDefault(require("lodash/flow"));
|
|
@@ -37,6 +35,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
37
35
|
|
|
38
36
|
var _reactPdf = require("react-pdf");
|
|
39
37
|
|
|
38
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
39
|
+
|
|
40
40
|
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
41
41
|
|
|
42
42
|
var _NoViewer = _interopRequireDefault(require("../NoViewer"));
|
|
@@ -7,15 +7,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _cozyClient = require("cozy-client");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
19
19
|
|
|
20
20
|
var _proptypes = require("cozy-ui-plus/dist/proptypes");
|
|
21
21
|
|
|
@@ -40,11 +40,11 @@ var ShortcutViewer = function ShortcutViewer(_ref) {
|
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement(_NoViewer.default, {
|
|
41
41
|
file: file,
|
|
42
42
|
renderFallbackExtraContent: function renderFallbackExtraContent() {
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_Buttons.default, {
|
|
44
44
|
label: "".concat(t('Viewer.goto', {
|
|
45
45
|
url: (0, _get.default)(url, 'origin', '')
|
|
46
46
|
})),
|
|
47
|
-
|
|
47
|
+
startIcon: /*#__PURE__*/_react.default.createElement(_twakeIcons.Openwith, null),
|
|
48
48
|
href: "".concat((0, _get.default)(url, 'origin', '')),
|
|
49
49
|
target: "_blank"
|
|
50
50
|
});
|
|
@@ -11,10 +11,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
15
|
|
|
16
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
+
|
|
18
18
|
var _ActionsMenuItem = _interopRequireDefault(require("cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem"));
|
|
19
19
|
|
|
20
20
|
var _ListItemIcon = _interopRequireDefault(require("cozy-ui/transpiled/react/ListItemIcon"));
|
|
@@ -11,10 +11,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
-
|
|
16
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
15
|
|
|
16
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
+
|
|
18
18
|
var _ActionsMenuItem = _interopRequireDefault(require("cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem"));
|
|
19
19
|
|
|
20
20
|
var _ListItemIcon = _interopRequireDefault(require("cozy-ui/transpiled/react/ListItemIcon"));
|
|
@@ -9,14 +9,14 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
-
|
|
14
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
13
|
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireDefault(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var styles = {
|
|
21
21
|
"viewer-nav": "styles__viewer-nav___3V03k",
|
|
22
22
|
"viewer-nav--visible": "styles__viewer-nav--visible___4GLTe",
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
14
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
15
|
+
|
|
16
16
|
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
17
17
|
|
|
18
18
|
var PdfToolbarButton = function PdfToolbarButton(_ref) {
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
11
|
-
|
|
12
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
11
|
|
|
14
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
13
|
|
|
16
14
|
var _react = _interopRequireDefault(require("react"));
|
|
17
15
|
|
|
16
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
17
|
+
|
|
18
18
|
var _cozyFlags = _interopRequireDefault(require("cozy-flags"));
|
|
19
19
|
|
|
20
20
|
var _Buttons = _interopRequireDefault(require("cozy-ui/transpiled/react/Buttons"));
|
|
@@ -9,14 +9,14 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var _twakeIcons = require("@linagora/twake-icons");
|
|
13
|
-
|
|
14
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
13
|
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
15
|
|
|
18
16
|
var _react = _interopRequireDefault(require("react"));
|
|
19
17
|
|
|
18
|
+
var _twakeIcons = require("@linagora/twake-icons");
|
|
19
|
+
|
|
20
20
|
var _cozyClient = require("cozy-client");
|
|
21
21
|
|
|
22
22
|
var _file = require("cozy-client/dist/models/file");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-viewer",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.9",
|
|
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": "^39.0.
|
|
35
|
+
"cozy-harvest-lib": "^39.0.9",
|
|
36
36
|
"cozy-intent": "^2.31.1",
|
|
37
37
|
"cozy-logger": "^1.18.1",
|
|
38
|
-
"cozy-sharing": "^36.4.
|
|
38
|
+
"cozy-sharing": "^36.4.1",
|
|
39
39
|
"cozy-ui": "^138.1.0",
|
|
40
|
-
"cozy-ui-plus": "^
|
|
40
|
+
"cozy-ui-plus": "^11.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": "
|
|
76
|
+
"gitHead": "19db35e417d2d10beb37d9be4d87597c095dc5a3"
|
|
77
77
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Download } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Download } from '@linagora/twake-icons'
|
|
5
5
|
import { useClient } from 'cozy-client'
|
|
6
6
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
7
7
|
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Reply, ShareIos } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Reply, ShareIos } from '@linagora/twake-icons'
|
|
5
5
|
import { useClient } from 'cozy-client'
|
|
6
6
|
import { makeSharingLink } from 'cozy-client/dist/models/sharing'
|
|
7
7
|
import { isIOS } from 'cozy-device-helper'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Share } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Share } from '@linagora/twake-icons'
|
|
5
5
|
import { ShareButton } from 'cozy-sharing'
|
|
6
6
|
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
7
7
|
|
|
@@ -4,7 +4,7 @@ import React from 'react'
|
|
|
4
4
|
import { withClient } from 'cozy-client'
|
|
5
5
|
import { downloadFile } from 'cozy-client/dist/models/file'
|
|
6
6
|
import { useWebviewIntent } from 'cozy-intent'
|
|
7
|
-
import Button from 'cozy-ui/transpiled/react/
|
|
7
|
+
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
8
8
|
import { FileDoctype } from 'cozy-ui-plus/dist/proptypes'
|
|
9
9
|
import { useI18n } from 'twake-i18n'
|
|
10
10
|
|
|
@@ -36,14 +36,18 @@ exports[`NoViewer should render the viewer 1`] = `
|
|
|
36
36
|
notSupported.xyz
|
|
37
37
|
</p>
|
|
38
38
|
<button
|
|
39
|
-
class="
|
|
40
|
-
|
|
39
|
+
class="MuiButtonBase-root MuiButton-root MuiButton-contained customColor-primary customSize-default MuiButton-containedPrimary MuiButton-disableElevation"
|
|
40
|
+
tabindex="0"
|
|
41
|
+
type="button"
|
|
41
42
|
>
|
|
42
|
-
<span
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
<span
|
|
44
|
+
class="MuiButton-label"
|
|
45
|
+
>
|
|
46
|
+
Viewer.download
|
|
46
47
|
</span>
|
|
48
|
+
<span
|
|
49
|
+
class="MuiTouchRipple-root"
|
|
50
|
+
/>
|
|
47
51
|
</button>
|
|
48
52
|
</div>
|
|
49
53
|
</div>
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import cx from 'classnames'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React, { useCallback, useState, useEffect, useRef } from 'react'
|
|
4
|
+
import { useLocation, useNavigate } from 'react-router-dom'
|
|
5
|
+
|
|
1
6
|
import {
|
|
2
7
|
Icon,
|
|
3
8
|
Assistant,
|
|
@@ -5,11 +10,6 @@ import {
|
|
|
5
10
|
CrossMedium,
|
|
6
11
|
Refresh
|
|
7
12
|
} from '@linagora/twake-icons'
|
|
8
|
-
import cx from 'classnames'
|
|
9
|
-
import PropTypes from 'prop-types'
|
|
10
|
-
import React, { useCallback, useState, useEffect, useRef } from 'react'
|
|
11
|
-
import { useLocation, useNavigate } from 'react-router-dom'
|
|
12
|
-
|
|
13
13
|
import { useClient } from 'cozy-client'
|
|
14
14
|
import { extractText, chatCompletion } from 'cozy-client/dist/models/ai'
|
|
15
15
|
import { fetchBlobFileById } from 'cozy-client/dist/models/file'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Copy, Rename } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React, { forwardRef } from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Copy, Rename } from '@linagora/twake-icons'
|
|
5
5
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
6
6
|
import ActionMenu, {
|
|
7
7
|
ActionMenuItem
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Copy, Rename } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Copy, Rename } from '@linagora/twake-icons'
|
|
5
5
|
import BottomSheet, {
|
|
6
6
|
BottomSheetItem
|
|
7
7
|
} from 'cozy-ui/transpiled/react/BottomSheet'
|
package/src/Panel/Antivirus.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, InfoOutlined, Shield } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React, { useState } from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, InfoOutlined, Shield } from '@linagora/twake-icons'
|
|
5
5
|
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
6
6
|
import Link from 'cozy-ui/transpiled/react/Link'
|
|
7
7
|
import List from 'cozy-ui/transpiled/react/List'
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import has from 'lodash/has'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React, { useRef, useState } from 'react'
|
|
4
|
+
|
|
1
5
|
import {
|
|
2
6
|
Icon,
|
|
3
7
|
Calendar,
|
|
@@ -8,10 +12,6 @@ import {
|
|
|
8
12
|
Safe,
|
|
9
13
|
Server
|
|
10
14
|
} from '@linagora/twake-icons'
|
|
11
|
-
import has from 'lodash/has'
|
|
12
|
-
import PropTypes from 'prop-types'
|
|
13
|
-
import React, { useRef, useState } from 'react'
|
|
14
|
-
|
|
15
15
|
import { useClient } from 'cozy-client'
|
|
16
16
|
import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
|
|
17
17
|
import {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon, CrossMedium } from '@linagora/twake-icons'
|
|
2
1
|
import cx from 'classnames'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
import { useNavigate } from 'react-router-dom'
|
|
5
4
|
|
|
5
|
+
import { Icon, CrossMedium } from '@linagora/twake-icons'
|
|
6
6
|
import flag from 'cozy-flags'
|
|
7
7
|
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
8
8
|
import Paper from 'cozy-ui/transpiled/react/Paper'
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import PropTypes from 'prop-types'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
|
|
1
4
|
import {
|
|
2
5
|
Icon,
|
|
3
6
|
Bell,
|
|
@@ -9,9 +12,6 @@ import {
|
|
|
9
12
|
Number,
|
|
10
13
|
Right
|
|
11
14
|
} from '@linagora/twake-icons'
|
|
12
|
-
import PropTypes from 'prop-types'
|
|
13
|
-
import React, { forwardRef } from 'react'
|
|
14
|
-
|
|
15
15
|
import {
|
|
16
16
|
getTranslatedNameForInformationMetadata,
|
|
17
17
|
formatInformationMetadataValue,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Dots, File, Right } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React, { forwardRef } from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Dots, File, Right } from '@linagora/twake-icons'
|
|
5
5
|
import {
|
|
6
6
|
getTranslatedNameForOtherMetadata,
|
|
7
7
|
formatOtherMetadataValue
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Right } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Right } from '@linagora/twake-icons'
|
|
5
5
|
import { formatOtherMetadataValue } from 'cozy-client/dist/models/paper'
|
|
6
6
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
7
7
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, LabelOutlined, Right } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, LabelOutlined, Right } from '@linagora/twake-icons'
|
|
5
5
|
import List from 'cozy-ui/transpiled/react/List'
|
|
6
6
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
7
7
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
package/src/Panel/Sharing.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, Right } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon, Right } from '@linagora/twake-icons'
|
|
5
5
|
import { useClient, useQuery } from 'cozy-client'
|
|
6
6
|
import flag from 'cozy-flags'
|
|
7
7
|
import {
|
package/src/Panel/Summary.jsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Icon, Bottom, Dots, Right, Text } from '@linagora/twake-icons'
|
|
2
1
|
import cx from 'classnames'
|
|
3
2
|
import PropTypes from 'prop-types'
|
|
4
3
|
import React, { useState, useRef } from 'react'
|
|
5
4
|
import { useLocation, useNavigate } from 'react-router-dom'
|
|
6
5
|
|
|
6
|
+
import { Icon, Bottom, Dots, Right, Text } from '@linagora/twake-icons'
|
|
7
7
|
import flag from 'cozy-flags'
|
|
8
8
|
import Accordion from 'cozy-ui/transpiled/react/Accordion'
|
|
9
9
|
import AccordionDetails from 'cozy-ui/transpiled/react/AccordionDetails'
|
package/src/Panel/helpers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ShieldClean, ShieldInfected, Spinner } from '@linagora/twake-icons'
|
|
2
1
|
import get from 'lodash/get'
|
|
3
2
|
|
|
3
|
+
import { ShieldClean, ShieldInfected, Spinner } from '@linagora/twake-icons'
|
|
4
4
|
import { splitFilename, isFromKonnector } from 'cozy-client/dist/models/file'
|
|
5
5
|
import { KNOWN_BILLS_ATTRIBUTES_NAMES } from 'cozy-client/dist/models/paper'
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon, CloudBroken } from '@linagora/twake-icons'
|
|
2
1
|
import React from 'react'
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import { Icon, CloudBroken } from '@linagora/twake-icons'
|
|
4
|
+
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
5
5
|
|
|
6
6
|
import styles from './styles.styl'
|
|
7
7
|
import { withViewerLocales } from '../hoc/withViewerLocales'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
import Button from 'cozy-ui/transpiled/react/
|
|
4
|
+
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
5
5
|
import { FileDoctype } from 'cozy-ui-plus/dist/proptypes'
|
|
6
6
|
|
|
7
7
|
import NoViewer from '../NoViewer'
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Icon, Pen } from '@linagora/twake-icons'
|
|
2
1
|
import cx from 'classnames'
|
|
3
2
|
import flow from 'lodash/flow'
|
|
4
3
|
import throttle from 'lodash/throttle'
|
|
@@ -6,6 +5,7 @@ import PropTypes from 'prop-types'
|
|
|
6
5
|
import React, { Component } from 'react'
|
|
7
6
|
import { Document, Page } from 'react-pdf'
|
|
8
7
|
|
|
8
|
+
import { Icon, Pen } from '@linagora/twake-icons'
|
|
9
9
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
10
10
|
|
|
11
11
|
import styles from './styles.styl'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Openwith } from '@linagora/twake-icons'
|
|
2
1
|
import get from 'lodash/get'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Openwith } from '@linagora/twake-icons'
|
|
5
5
|
import { useClient, useFetchShortcut } from 'cozy-client'
|
|
6
|
-
import
|
|
6
|
+
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
7
7
|
import { FileDoctype } from 'cozy-ui-plus/dist/proptypes'
|
|
8
8
|
|
|
9
9
|
import NoViewer from '../NoViewer'
|
|
@@ -20,9 +20,9 @@ const ShortcutViewer = ({ t, file }) => {
|
|
|
20
20
|
<NoViewer
|
|
21
21
|
file={file}
|
|
22
22
|
renderFallbackExtraContent={() => (
|
|
23
|
-
<
|
|
23
|
+
<Button
|
|
24
24
|
label={`${t('Viewer.goto', { url: get(url, 'origin', '') })}`}
|
|
25
|
-
|
|
25
|
+
startIcon={<Openwith />}
|
|
26
26
|
href={`${get(url, 'origin', '')}`}
|
|
27
27
|
target="_blank"
|
|
28
28
|
/>
|
|
@@ -33,30 +33,34 @@ exports[`Shortcutviewer renders the component 1`] = `
|
|
|
33
33
|
<p
|
|
34
34
|
class="viewer-filename"
|
|
35
35
|
/>
|
|
36
|
-
<
|
|
37
|
-
class="
|
|
36
|
+
<button
|
|
37
|
+
class="MuiButtonBase-root MuiButton-root MuiButton-contained customColor-primary customSize-default MuiButton-containedPrimary MuiButton-disableElevation"
|
|
38
38
|
href=""
|
|
39
|
+
tabindex="0"
|
|
39
40
|
target="_blank"
|
|
41
|
+
type="button"
|
|
40
42
|
>
|
|
41
|
-
<span
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
height="16"
|
|
47
|
-
viewBox="0 0 16 16"
|
|
48
|
-
width="16"
|
|
49
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
43
|
+
<span
|
|
44
|
+
class="MuiButton-label"
|
|
45
|
+
>
|
|
46
|
+
<span
|
|
47
|
+
class="MuiButton-startIcon MuiButton-iconSizeMedium"
|
|
50
48
|
>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
<svg
|
|
50
|
+
viewBox="0 0 16 16"
|
|
51
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
52
|
+
>
|
|
53
|
+
<path
|
|
54
|
+
d="M14.222 14.222H1.778V1.778H8V0H1.778C.79 0 0 .8 0 1.778v12.444C0 15.2.791 16 1.778 16h12.444C15.2 16 16 15.2 16 14.222V8h-1.778zM9.778 0v1.778h3.19l-8.737 8.738 1.253 1.253 8.738-8.738v3.191H16V0z"
|
|
55
|
+
/>
|
|
56
|
+
</svg>
|
|
57
57
|
</span>
|
|
58
|
+
Viewer.goto
|
|
58
59
|
</span>
|
|
59
|
-
|
|
60
|
+
<span
|
|
61
|
+
class="MuiTouchRipple-root"
|
|
62
|
+
/>
|
|
63
|
+
</button>
|
|
60
64
|
</div>
|
|
61
65
|
</div>
|
|
62
66
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon, Expand } from '@linagora/twake-icons'
|
|
2
1
|
import React, { forwardRef } from 'react'
|
|
3
2
|
|
|
3
|
+
import { Icon, Expand } from '@linagora/twake-icons'
|
|
4
4
|
import ActionsMenuItem from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem'
|
|
5
5
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
6
6
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon, Narrow } from '@linagora/twake-icons'
|
|
2
1
|
import React, { forwardRef } from 'react'
|
|
3
2
|
|
|
3
|
+
import { Icon, Narrow } from '@linagora/twake-icons'
|
|
4
4
|
import ActionsMenuItem from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem'
|
|
5
5
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
6
6
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Icon, DropdownClose } from '@linagora/twake-icons'
|
|
2
1
|
import cx from 'classnames'
|
|
3
2
|
import PropTypes from 'prop-types'
|
|
4
3
|
import React from 'react'
|
|
5
4
|
|
|
5
|
+
import { Icon, DropdownClose } from '@linagora/twake-icons'
|
|
6
|
+
|
|
6
7
|
import styles from './styles.styl'
|
|
7
8
|
|
|
8
9
|
const Navigation = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon } from '@linagora/twake-icons'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
|
|
4
|
+
import { Icon } from '@linagora/twake-icons'
|
|
5
5
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
6
6
|
|
|
7
7
|
const PdfToolbarButton = ({ icon, onClick, disabled, label }) => (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon, Article } from '@linagora/twake-icons'
|
|
2
1
|
import cx from 'classnames'
|
|
3
2
|
import PropTypes from 'prop-types'
|
|
4
3
|
import React from 'react'
|
|
5
4
|
|
|
5
|
+
import { Icon, Article } from '@linagora/twake-icons'
|
|
6
6
|
import flag from 'cozy-flags'
|
|
7
7
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
8
8
|
import { useI18n } from 'twake-i18n'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon, Download, Previous } from '@linagora/twake-icons'
|
|
2
1
|
import cx from 'classnames'
|
|
3
2
|
import PropTypes from 'prop-types'
|
|
4
3
|
import React from 'react'
|
|
5
4
|
|
|
5
|
+
import { Icon, Download, Previous } from '@linagora/twake-icons'
|
|
6
6
|
import { useClient } from 'cozy-client'
|
|
7
7
|
import { downloadFile } from 'cozy-client/dist/models/file'
|
|
8
8
|
import { useWebviewIntent } from 'cozy-intent'
|