cozy-viewer 13.3.2 → 14.0.0
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 +28 -0
- package/dist/Footer/BottomSheetContent.d.ts +1 -13
- package/dist/Footer/BottomSheetContent.js +8 -12
- package/dist/Footer/FooterContent.d.ts +1 -7
- package/dist/Footer/FooterContent.js +10 -30
- package/dist/Footer/ForwardButton.js +1 -1
- package/dist/Footer/{Sharing.d.ts → SharingButton.d.ts} +4 -3
- package/dist/Footer/SharingButton.js +59 -0
- package/dist/Panel/ActionMenuWrapper.js +6 -6
- package/dist/Panel/PanelContent.js +11 -13
- package/dist/Panel/Qualification.js +7 -10
- package/dist/Panel/{QualificationListItemContact.js → Qualifications/QualificationListItemContact.js} +2 -2
- package/dist/Panel/{QualificationListItemDate.js → Qualifications/QualificationListItemDate.js} +3 -5
- package/dist/Panel/{QualificationListItemInformation.js → Qualifications/QualificationListItemInformation.js} +1 -1
- package/dist/Panel/{QualificationListItemOther.js → Qualifications/QualificationListItemOther.js} +1 -1
- package/dist/Panel/{QualificationListItemQualification.js → Qualifications/QualificationListItemQualification.js} +1 -1
- package/dist/Panel/{QualificationListItemQualificationEmpty.js → Qualifications/QualificationListItemQualificationEmpty.js} +2 -2
- package/dist/Panel/Sharing.js +8 -39
- package/dist/Panel/Summary.js +1 -1
- package/dist/Panel/getPanelBlocks.d.ts +1 -1
- package/dist/Panel/getPanelBlocks.js +16 -5
- package/dist/Viewer.d.ts +0 -1
- package/dist/Viewer.js +9 -19
- package/dist/ViewerContainer.js +41 -7
- package/dist/ViewerInformationsWrapper.d.ts +1 -7
- package/dist/ViewerInformationsWrapper.js +3 -18
- package/dist/components/ExpirationAlert.js +8 -11
- package/dist/components/ExpirationAnnotation.d.ts +1 -9
- package/dist/components/ExpirationAnnotation.js +6 -9
- package/dist/components/Toolbar.js +36 -46
- package/dist/components/ToolbarFilePath.d.ts +1 -3
- package/dist/components/ToolbarFilePath.js +12 -8
- package/dist/components/ToolbarMoreMenu.d.ts +2 -0
- package/dist/components/{PrintButton.js → ToolbarMoreMenu.js} +86 -67
- package/dist/components/ViewerByFile.js +9 -7
- package/dist/components/ViewerControls.d.ts +1 -7
- package/dist/components/ViewerControls.js +25 -10
- package/dist/components/ViewerSpinner.d.ts +2 -2
- package/dist/components/ViewerSpinner.js +6 -4
- package/dist/components/actions/share.d.ts +14 -0
- package/dist/components/actions/share.js +72 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -10
- package/dist/locales/index.d.ts +1 -0
- package/dist/locales/index.js +12 -1
- package/dist/providers/DemoProvider.d.ts +8 -6
- package/dist/providers/DemoProvider.js +44 -38
- package/dist/providers/ShareModalProvider.d.ts +7 -0
- package/dist/{Footer/Sharing.js → providers/ShareModalProvider.js} +29 -44
- package/dist/providers/ViewerProvider.d.ts +11 -0
- package/dist/providers/ViewerProvider.js +42 -0
- package/package.json +8 -8
- package/src/Footer/BottomSheetContent.jsx +4 -8
- package/src/Footer/FooterContent.jsx +5 -32
- package/src/Footer/ForwardButton.jsx +2 -2
- package/src/Footer/ForwardButton.spec.jsx +6 -6
- package/src/Footer/SharingButton.jsx +41 -0
- package/src/Panel/ActionMenuWrapper.jsx +3 -5
- package/src/Panel/PanelContent.jsx +5 -9
- package/src/Panel/Qualification.jsx +7 -8
- package/src/Panel/{QualificationListItemContact.jsx → Qualifications/QualificationListItemContact.jsx} +2 -2
- package/src/Panel/{QualificationListItemDate.jsx → Qualifications/QualificationListItemDate.jsx} +3 -3
- package/src/Panel/{QualificationListItemInformation.jsx → Qualifications/QualificationListItemInformation.jsx} +1 -1
- package/src/Panel/{QualificationListItemInformation.spec.jsx → Qualifications/QualificationListItemInformation.spec.jsx} +1 -1
- package/src/Panel/{QualificationListItemOther.jsx → Qualifications/QualificationListItemOther.jsx} +1 -1
- package/src/Panel/{QualificationListItemQualification.jsx → Qualifications/QualificationListItemQualification.jsx} +1 -1
- package/src/Panel/{QualificationListItemQualificationEmpty.jsx → Qualifications/QualificationListItemQualificationEmpty.jsx} +2 -2
- package/src/Panel/Sharing.jsx +11 -30
- package/src/Panel/Summary.jsx +1 -1
- package/src/Panel/getPanelBlocks.jsx +7 -6
- package/src/Viewer.jsx +4 -15
- package/src/ViewerContainer.jsx +66 -28
- package/src/ViewerInformationsWrapper.jsx +2 -20
- package/src/ViewersByFile/TextViewer.spec.jsx +27 -5
- package/src/components/ExpirationAlert.jsx +3 -6
- package/src/components/ExpirationAnnotation.jsx +4 -6
- package/src/components/Toolbar.jsx +31 -43
- package/src/components/ToolbarFilePath.jsx +5 -4
- package/src/components/ToolbarMoreMenu.jsx +96 -0
- package/src/components/ViewerByFile.jsx +4 -5
- package/src/components/ViewerControls.jsx +17 -9
- package/src/components/ViewerControls.spec.jsx +20 -18
- package/src/components/ViewerSpinner.jsx +5 -3
- package/src/components/actions/share.jsx +55 -0
- package/src/index.jsx +1 -2
- package/src/locales/en.json +1 -0
- package/src/locales/fr.json +1 -0
- package/src/locales/index.js +4 -0
- package/src/providers/DemoProvider.jsx +37 -15
- package/src/providers/ShareModalProvider.jsx +44 -0
- package/src/providers/ViewerProvider.jsx +35 -0
- package/dist/ViewerWithCustomPanelAndFooter.d.ts +0 -2
- package/dist/ViewerWithCustomPanelAndFooter.js +0 -77
- package/dist/components/PrintButton.d.ts +0 -16
- package/dist/components/PublicToolbarMoreMenu.d.ts +0 -5
- package/dist/components/PublicToolbarMoreMenu.js +0 -66
- package/src/Footer/Sharing.jsx +0 -58
- package/src/ViewerWithCustomPanelAndFooter.jsx +0 -57
- package/src/components/PrintButton.jsx +0 -89
- package/src/components/PublicToolbarMoreMenu.jsx +0 -46
- /package/dist/Panel/{QualificationListItemContact.d.ts → Qualifications/QualificationListItemContact.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemDate.d.ts → Qualifications/QualificationListItemDate.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemInformation.d.ts → Qualifications/QualificationListItemInformation.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemInformation.spec.d.ts → Qualifications/QualificationListItemInformation.spec.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemOther.d.ts → Qualifications/QualificationListItemOther.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemQualification.d.ts → Qualifications/QualificationListItemQualification.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemQualificationEmpty.d.ts → Qualifications/QualificationListItemQualificationEmpty.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemText.d.ts → Qualifications/QualificationListItemText.d.ts} +0 -0
- /package/dist/Panel/{QualificationListItemText.js → Qualifications/QualificationListItemText.js} +0 -0
- /package/src/Panel/{QualificationListItemText.jsx → Qualifications/QualificationListItemText.jsx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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
|
+
# [14.0.0](https://github.com/cozy/cozy-libs/compare/cozy-viewer@13.3.2...cozy-viewer@14.0.0) (2025-01-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **Viewer:** Adjust back button position in toolbar ([0cd2ecf](https://github.com/cozy/cozy-libs/commit/0cd2ecf3705b8d45f7ee0a9ddccf34b38339864e))
|
|
12
|
+
* **Viewer:** Adjust title size for mobile ([68654e0](https://github.com/cozy/cozy-libs/commit/68654e0e0084c03024a3c840e5928f31a87d25e4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Upgrade packages ([3e8ad4d](https://github.com/cozy/cozy-libs/commit/3e8ad4d07ce0312fa3c2df567f952480dbd5cc7d))
|
|
18
|
+
* **Viewer:** Add MoreMenu and move elements inside ([42e369a](https://github.com/cozy/cozy-libs/commit/42e369adbc3d0c1672eed77c26d041b47c390420))
|
|
19
|
+
* **Viewer:** Add props to hide panel blocks ([a64460b](https://github.com/cozy/cozy-libs/commit/a64460b607e5433bf14321d106f3572227d9b3c9))
|
|
20
|
+
* **Viewer:** Add sharingProvider and ShareModalProvider ([002ac22](https://github.com/cozy/cozy-libs/commit/002ac2243fab24043b7e0807ffafc825d86e0991))
|
|
21
|
+
* **Viewer:** Remove ViewerWithCustomPanelAndFooter ([d93ff49](https://github.com/cozy/cozy-libs/commit/d93ff490a61ad54171696ed0f121f70c19eba1d6))
|
|
22
|
+
* **Viewer:** Show Sharing panel again ([7cefd15](https://github.com/cozy/cozy-libs/commit/7cefd15beedc1b840bf1ec525532d4fadcf679f3))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* You must have `cozy-client >= 53.1.0`, `cozy-sharing >= 20.0.0` and `cozy-ui >= 117.1.0`
|
|
28
|
+
* **Viewer:** You must replace `ViewerWithCustomPanelAndFooter` by default import.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
## [13.3.2](https://github.com/cozy/cozy-libs/compare/cozy-viewer@13.3.1...cozy-viewer@13.3.2) (2025-01-22)
|
|
7
35
|
|
|
8
36
|
**Note:** Version bump only for package cozy-viewer
|
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
export default BottomSheetContent;
|
|
2
|
-
declare function BottomSheetContent(
|
|
3
|
-
file: any;
|
|
4
|
-
isPublic: any;
|
|
5
|
-
isReadOnly: any;
|
|
6
|
-
}): JSX.Element[];
|
|
7
|
-
declare namespace BottomSheetContent {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
const file: PropTypes.Validator<object>;
|
|
10
|
-
const isPublic: PropTypes.Requireable<boolean>;
|
|
11
|
-
const isReadOnly: PropTypes.Requireable<boolean>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from "prop-types";
|
|
2
|
+
declare function BottomSheetContent(): JSX.Element[];
|
|
@@ -7,22 +7,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
12
|
var _BottomSheet = require("cozy-ui/transpiled/react/BottomSheet");
|
|
15
13
|
|
|
16
14
|
var _getPanelBlocks = _interopRequireWildcard(require("../Panel/getPanelBlocks"));
|
|
17
15
|
|
|
16
|
+
var _ViewerProvider = require("../providers/ViewerProvider");
|
|
17
|
+
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
|
-
var BottomSheetContent = function BottomSheetContent(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
var BottomSheetContent = function BottomSheetContent() {
|
|
23
|
+
var _useViewer = (0, _ViewerProvider.useViewer)(),
|
|
24
|
+
file = _useViewer.file,
|
|
25
|
+
isPublic = _useViewer.isPublic,
|
|
26
|
+
isReadOnly = _useViewer.isReadOnly;
|
|
27
|
+
|
|
26
28
|
var panelBlocks = (0, _getPanelBlocks.default)({
|
|
27
29
|
panelBlocksSpecs: (0, _getPanelBlocks.getPanelBlocksSpecs)(isPublic),
|
|
28
30
|
file: file
|
|
@@ -40,10 +42,4 @@ var BottomSheetContent = function BottomSheetContent(_ref) {
|
|
|
40
42
|
});
|
|
41
43
|
};
|
|
42
44
|
|
|
43
|
-
BottomSheetContent.propTypes = {
|
|
44
|
-
file: _propTypes.default.object.isRequired,
|
|
45
|
-
isPublic: _propTypes.default.bool,
|
|
46
|
-
isReadOnly: _propTypes.default.bool
|
|
47
|
-
};
|
|
48
|
-
|
|
49
45
|
var _default = exports.default = BottomSheetContent;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
export default FooterContent;
|
|
2
|
-
declare function FooterContent({
|
|
3
|
-
file: any;
|
|
2
|
+
declare function FooterContent({ toolbarRef, children }: {
|
|
4
3
|
toolbarRef: any;
|
|
5
4
|
children: any;
|
|
6
|
-
isPublic: any;
|
|
7
|
-
isReadOnly: any;
|
|
8
5
|
}): JSX.Element;
|
|
9
6
|
declare namespace FooterContent {
|
|
10
7
|
namespace propTypes {
|
|
11
|
-
const file: PropTypes.Validator<object>;
|
|
12
8
|
const toolbarRef: PropTypes.Requireable<object>;
|
|
13
|
-
const isPublic: PropTypes.Requireable<boolean>;
|
|
14
|
-
const isReadOnly: PropTypes.Requireable<boolean>;
|
|
15
9
|
const children: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
16
10
|
}
|
|
17
11
|
}
|
|
@@ -21,24 +21,12 @@ var _BottomSheetContent = _interopRequireDefault(require("./BottomSheetContent")
|
|
|
21
21
|
|
|
22
22
|
var _helpers = require("./helpers");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _ViewerProvider = require("../providers/ViewerProvider");
|
|
25
25
|
|
|
26
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
27
|
|
|
28
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
29
|
|
|
30
|
-
var FooterButtons = function FooterButtons(_ref) {
|
|
31
|
-
var file = _ref.file,
|
|
32
|
-
_ref$FooterActionButt = _ref.FooterActionButtonsWithFile,
|
|
33
|
-
FooterActionButtonsWithFile = _ref$FooterActionButt === void 0 ? {
|
|
34
|
-
FooterActionButtonsWithFile: FooterActionButtonsWithFile
|
|
35
|
-
} : _ref$FooterActionButt;
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, FooterActionButtonsWithFile, /*#__PURE__*/_react.default.createElement(_PrintButton.default, {
|
|
37
|
-
file: file,
|
|
38
|
-
variant: "button"
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
30
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
43
31
|
return {
|
|
44
32
|
footer: {
|
|
@@ -57,13 +45,15 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
57
45
|
};
|
|
58
46
|
});
|
|
59
47
|
|
|
60
|
-
var FooterContent = function FooterContent(
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
children = _ref2.children,
|
|
64
|
-
isPublic = _ref2.isPublic,
|
|
65
|
-
isReadOnly = _ref2.isReadOnly;
|
|
48
|
+
var FooterContent = function FooterContent(_ref) {
|
|
49
|
+
var toolbarRef = _ref.toolbarRef,
|
|
50
|
+
children = _ref.children;
|
|
66
51
|
var styles = useStyles();
|
|
52
|
+
|
|
53
|
+
var _useViewer = (0, _ViewerProvider.useViewer)(),
|
|
54
|
+
file = _useViewer.file,
|
|
55
|
+
isPublic = _useViewer.isPublic;
|
|
56
|
+
|
|
67
57
|
var toolbarProps = (0, _react.useMemo)(function () {
|
|
68
58
|
return {
|
|
69
59
|
ref: toolbarRef
|
|
@@ -86,21 +76,11 @@ var FooterContent = function FooterContent(_ref2) {
|
|
|
86
76
|
settings: bottomSheetSettings
|
|
87
77
|
}, /*#__PURE__*/_react.default.createElement(_BottomSheet.BottomSheetHeader, {
|
|
88
78
|
className: (0, _classnames.default)('u-ph-1 u-pb-1', styles.bottomSheetHeader)
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
90
|
-
file: file,
|
|
91
|
-
FooterActionButtonsWithFile: FooterActionButtonsWithFile
|
|
92
|
-
})), /*#__PURE__*/_react.default.createElement(_BottomSheetContent.default, {
|
|
93
|
-
file: file,
|
|
94
|
-
isPublic: isPublic,
|
|
95
|
-
isReadOnly: isReadOnly
|
|
96
|
-
}));
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(FooterActionButtonsWithFile, null)), /*#__PURE__*/_react.default.createElement(_BottomSheetContent.default, null));
|
|
97
80
|
};
|
|
98
81
|
|
|
99
82
|
FooterContent.propTypes = {
|
|
100
|
-
file: _propTypes.default.object.isRequired,
|
|
101
83
|
toolbarRef: _propTypes.default.object,
|
|
102
|
-
isPublic: _propTypes.default.bool,
|
|
103
|
-
isReadOnly: _propTypes.default.bool,
|
|
104
84
|
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.arrayOf(_propTypes.default.node)])
|
|
105
85
|
};
|
|
106
86
|
|
|
@@ -95,7 +95,7 @@ var ForwardButton = function ForwardButton(_ref) {
|
|
|
95
95
|
case 11:
|
|
96
96
|
_context.prev = 11;
|
|
97
97
|
_context.next = 14;
|
|
98
|
-
return (0, _sharing.
|
|
98
|
+
return (0, _sharing.makeSharingLink)(client, [file.id]);
|
|
99
99
|
|
|
100
100
|
case 14:
|
|
101
101
|
url = _context.sent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare function
|
|
1
|
+
export default SharingButton;
|
|
2
|
+
declare function SharingButton({ className, file, variant }: {
|
|
3
|
+
className: any;
|
|
3
4
|
file: any;
|
|
4
5
|
variant: any;
|
|
5
6
|
}): JSX.Element;
|
|
6
|
-
declare namespace
|
|
7
|
+
declare namespace SharingButton {
|
|
7
8
|
namespace propTypes {
|
|
8
9
|
const file: PropTypes.Requireable<object>;
|
|
9
10
|
const variant: PropTypes.Requireable<string>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _cozySharing = require("cozy-sharing");
|
|
15
|
+
|
|
16
|
+
var _Icon = _interopRequireDefault(require("cozy-ui/transpiled/react/Icon"));
|
|
17
|
+
|
|
18
|
+
var _IconButton = _interopRequireDefault(require("cozy-ui/transpiled/react/IconButton"));
|
|
19
|
+
|
|
20
|
+
var _Share = _interopRequireDefault(require("cozy-ui/transpiled/react/Icons/Share"));
|
|
21
|
+
|
|
22
|
+
var _ShareModalProvider = require("../providers/ShareModalProvider");
|
|
23
|
+
|
|
24
|
+
var SharingButton = function SharingButton(_ref) {
|
|
25
|
+
var className = _ref.className,
|
|
26
|
+
file = _ref.file,
|
|
27
|
+
variant = _ref.variant;
|
|
28
|
+
|
|
29
|
+
var _useShareModal = (0, _ShareModalProvider.useShareModal)(),
|
|
30
|
+
setShowShareModal = _useShareModal.setShowShareModal;
|
|
31
|
+
|
|
32
|
+
if (variant === 'iconButton') return /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
33
|
+
className: "u-white",
|
|
34
|
+
onClick: function onClick() {
|
|
35
|
+
return setShowShareModal(true);
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
38
|
+
icon: _Share.default
|
|
39
|
+
}));
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_cozySharing.ShareButton, {
|
|
41
|
+
className: className,
|
|
42
|
+
fullWidth: true,
|
|
43
|
+
useShortLabel: true,
|
|
44
|
+
docId: file.id,
|
|
45
|
+
onClick: function onClick() {
|
|
46
|
+
return setShowShareModal(true);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
SharingButton.propTypes = {
|
|
52
|
+
file: _propTypes.default.object,
|
|
53
|
+
variant: _propTypes.default.oneOf(['default', 'iconButton'])
|
|
54
|
+
};
|
|
55
|
+
SharingButton.defaultProptypes = {
|
|
56
|
+
variant: 'default'
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var _default = exports.default = SharingButton;
|
|
@@ -27,13 +27,14 @@ var _ActionMenuMobile = _interopRequireDefault(require("./ActionMenuMobile"));
|
|
|
27
27
|
|
|
28
28
|
var _helpers = require("../helpers");
|
|
29
29
|
|
|
30
|
+
var _ViewerProvider = require("../providers/ViewerProvider");
|
|
31
|
+
|
|
30
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
33
|
|
|
32
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
35
|
|
|
34
36
|
var ActionMenuWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
35
|
-
var
|
|
36
|
-
optionFile = _ref.optionFile,
|
|
37
|
+
var optionFile = _ref.optionFile,
|
|
37
38
|
isReadOnly = _ref.isReadOnly,
|
|
38
39
|
onClose = _ref.onClose;
|
|
39
40
|
var name = optionFile.name,
|
|
@@ -42,6 +43,9 @@ var ActionMenuWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
42
43
|
var _useBreakpoints = (0, _Breakpoints.default)(),
|
|
43
44
|
isMobile = _useBreakpoints.isMobile;
|
|
44
45
|
|
|
46
|
+
var _useViewer = (0, _ViewerProvider.useViewer)(),
|
|
47
|
+
file = _useViewer.file;
|
|
48
|
+
|
|
45
49
|
var _useI18n = (0, _I18n.useI18n)(),
|
|
46
50
|
t = _useI18n.t;
|
|
47
51
|
|
|
@@ -97,8 +101,6 @@ var ActionMenuWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
97
101
|
|
|
98
102
|
if (isMobile) {
|
|
99
103
|
return /*#__PURE__*/_react.default.createElement(_ActionMenuMobile.default, {
|
|
100
|
-
file: file,
|
|
101
|
-
optionFile: optionFile,
|
|
102
104
|
actions: {
|
|
103
105
|
copy: {
|
|
104
106
|
onClick: handleCopy
|
|
@@ -114,8 +116,6 @@ var ActionMenuWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
114
116
|
|
|
115
117
|
return /*#__PURE__*/_react.default.createElement(_ActionMenuDesktop.default, {
|
|
116
118
|
ref: ref,
|
|
117
|
-
file: file,
|
|
118
|
-
optionFile: optionFile,
|
|
119
119
|
actions: {
|
|
120
120
|
copy: {
|
|
121
121
|
onClick: handleCopy
|
|
@@ -9,8 +9,6 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
12
|
var _react = _interopRequireDefault(require("react"));
|
|
15
13
|
|
|
16
14
|
var _Paper = _interopRequireDefault(require("cozy-ui/transpiled/react/Paper"));
|
|
@@ -23,17 +21,23 @@ var _getPanelBlocks = _interopRequireWildcard(require("./getPanelBlocks"));
|
|
|
23
21
|
|
|
24
22
|
var _withViewerLocales = require("../hoc/withViewerLocales");
|
|
25
23
|
|
|
24
|
+
var _ViewerProvider = require("../providers/ViewerProvider");
|
|
25
|
+
|
|
26
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
27
|
|
|
28
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
29
|
|
|
30
30
|
var PanelContent = function PanelContent(_ref) {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
var t = _ref.t;
|
|
32
|
+
|
|
33
|
+
var _useViewer = (0, _ViewerProvider.useViewer)(),
|
|
34
|
+
file = _useViewer.file,
|
|
35
|
+
isPublic = _useViewer.isPublic,
|
|
36
|
+
componentsProps = _useViewer.componentsProps,
|
|
37
|
+
isReadOnly = _useViewer.isReadOnly;
|
|
38
|
+
|
|
35
39
|
var panelBlocks = (0, _getPanelBlocks.default)({
|
|
36
|
-
panelBlocksSpecs: (0, _getPanelBlocks.getPanelBlocksSpecs)(isPublic),
|
|
40
|
+
panelBlocksSpecs: (0, _getPanelBlocks.getPanelBlocksSpecs)(isPublic, componentsProps === null || componentsProps === void 0 ? void 0 : componentsProps.panel),
|
|
37
41
|
file: file
|
|
38
42
|
});
|
|
39
43
|
return /*#__PURE__*/_react.default.createElement(_Stack.default, {
|
|
@@ -61,10 +65,4 @@ var PanelContent = function PanelContent(_ref) {
|
|
|
61
65
|
}));
|
|
62
66
|
};
|
|
63
67
|
|
|
64
|
-
PanelContent.propTypes = {
|
|
65
|
-
file: _propTypes.default.object.isRequired,
|
|
66
|
-
isPublic: _propTypes.default.bool,
|
|
67
|
-
isReadOnly: _propTypes.default.bool
|
|
68
|
-
};
|
|
69
|
-
|
|
70
68
|
var _default = exports.default = (0, _withViewerLocales.withViewerLocales)(PanelContent);
|
|
@@ -27,17 +27,17 @@ var _QualificationModal = _interopRequireDefault(require("cozy-ui/transpiled/rea
|
|
|
27
27
|
|
|
28
28
|
var _ActionMenuWrapper = _interopRequireDefault(require("./ActionMenuWrapper"));
|
|
29
29
|
|
|
30
|
-
var _QualificationListItemContact = _interopRequireDefault(require("./QualificationListItemContact"));
|
|
30
|
+
var _QualificationListItemContact = _interopRequireDefault(require("./Qualifications/QualificationListItemContact"));
|
|
31
31
|
|
|
32
|
-
var _QualificationListItemDate = _interopRequireDefault(require("./QualificationListItemDate"));
|
|
32
|
+
var _QualificationListItemDate = _interopRequireDefault(require("./Qualifications/QualificationListItemDate"));
|
|
33
33
|
|
|
34
|
-
var _QualificationListItemInformation = _interopRequireDefault(require("./QualificationListItemInformation"));
|
|
34
|
+
var _QualificationListItemInformation = _interopRequireDefault(require("./Qualifications/QualificationListItemInformation"));
|
|
35
35
|
|
|
36
|
-
var _QualificationListItemOther = _interopRequireDefault(require("./QualificationListItemOther"));
|
|
36
|
+
var _QualificationListItemOther = _interopRequireDefault(require("./Qualifications/QualificationListItemOther"));
|
|
37
37
|
|
|
38
|
-
var _QualificationListItemQualification = _interopRequireDefault(require("./QualificationListItemQualification"));
|
|
38
|
+
var _QualificationListItemQualification = _interopRequireDefault(require("./Qualifications/QualificationListItemQualification"));
|
|
39
39
|
|
|
40
|
-
var _QualificationListItemQualificationEmpty = _interopRequireDefault(require("./QualificationListItemQualificationEmpty"));
|
|
40
|
+
var _QualificationListItemQualificationEmpty = _interopRequireDefault(require("./Qualifications/QualificationListItemQualificationEmpty"));
|
|
41
41
|
|
|
42
42
|
var _helpers = require("./helpers");
|
|
43
43
|
|
|
@@ -111,9 +111,7 @@ var Qualification = function Qualification(_ref) {
|
|
|
111
111
|
return (_actionBtnRef$current = actionBtnRef.current[idx]) !== null && _actionBtnRef$current !== void 0 ? _actionBtnRef$current : /*#__PURE__*/(0, _react.createRef)();
|
|
112
112
|
});
|
|
113
113
|
}, [formattedMetadataQualification]);
|
|
114
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _paper.isExpiringSoon)(file) && !(0, _helpers.isExpirationAlertHidden)(file) && /*#__PURE__*/_react.default.createElement(_ExpirationAlert.default, {
|
|
115
|
-
file: file
|
|
116
|
-
}), (0, _qualification.hasSupportedQualification)(file) ? /*#__PURE__*/_react.default.createElement(_QualificationListItemQualification.default, {
|
|
114
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _paper.isExpiringSoon)(file) && !(0, _helpers.isExpirationAlertHidden)(file) && /*#__PURE__*/_react.default.createElement(_ExpirationAlert.default, null), (0, _qualification.hasSupportedQualification)(file) ? /*#__PURE__*/_react.default.createElement(_QualificationListItemQualification.default, {
|
|
117
115
|
file: file,
|
|
118
116
|
isReadOnly: isReadOnly,
|
|
119
117
|
onClick: function onClick() {
|
|
@@ -151,7 +149,6 @@ var Qualification = function Qualification(_ref) {
|
|
|
151
149
|
}));
|
|
152
150
|
}), optionFile.name && /*#__PURE__*/_react.default.createElement(_ActionMenuWrapper.default, {
|
|
153
151
|
ref: actionBtnRef.current[optionFile.id],
|
|
154
|
-
file: file,
|
|
155
152
|
optionFile: optionFile,
|
|
156
153
|
isReadOnly: isReadOnly,
|
|
157
154
|
onClose: hideActionsMenu
|
|
@@ -33,9 +33,9 @@ var _I18n = require("cozy-ui/transpiled/react/providers/I18n");
|
|
|
33
33
|
|
|
34
34
|
var _QualificationListItemText = _interopRequireDefault(require("./QualificationListItemText"));
|
|
35
35
|
|
|
36
|
-
var _IntentOpener = _interopRequireDefault(require("
|
|
36
|
+
var _IntentOpener = _interopRequireDefault(require("../../components/IntentOpener"));
|
|
37
37
|
|
|
38
|
-
var _useReferencedContactName = _interopRequireDefault(require("
|
|
38
|
+
var _useReferencedContactName = _interopRequireDefault(require("../../hooks/useReferencedContactName"));
|
|
39
39
|
|
|
40
40
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
41
|
|
package/dist/Panel/{QualificationListItemDate.js → Qualifications/QualificationListItemDate.js}
RENAMED
|
@@ -35,9 +35,9 @@ var _I18n = require("cozy-ui/transpiled/react/providers/I18n");
|
|
|
35
35
|
|
|
36
36
|
var _QualificationListItemText = _interopRequireDefault(require("./QualificationListItemText"));
|
|
37
37
|
|
|
38
|
-
var _ExpirationAnnotation = _interopRequireDefault(require("
|
|
38
|
+
var _ExpirationAnnotation = _interopRequireDefault(require("../../components/ExpirationAnnotation"));
|
|
39
39
|
|
|
40
|
-
var _IntentOpener = _interopRequireDefault(require("
|
|
40
|
+
var _IntentOpener = _interopRequireDefault(require("../../components/IntentOpener"));
|
|
41
41
|
|
|
42
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
43
43
|
|
|
@@ -83,9 +83,7 @@ var QualificationListItemDate = /*#__PURE__*/(0, _react.forwardRef)(function (_r
|
|
|
83
83
|
}, formattedDate), isExpirationDate && ((0, _paper.isExpired)(file) || (0, _paper.isExpiringSoon)(file)) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
84
84
|
component: "span",
|
|
85
85
|
variant: "inherit"
|
|
86
|
-
}, ' · '), /*#__PURE__*/_react.default.createElement(_ExpirationAnnotation.default,
|
|
87
|
-
file: file
|
|
88
|
-
}))) : formattedTitle,
|
|
86
|
+
}, ' · '), /*#__PURE__*/_react.default.createElement(_ExpirationAnnotation.default, null))) : formattedTitle,
|
|
89
87
|
disabled: !value
|
|
90
88
|
}), value ? /*#__PURE__*/_react.default.createElement(_ListItemSecondaryAction.default, null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
91
89
|
ref: ref,
|
|
@@ -43,7 +43,7 @@ var _I18n = require("cozy-ui/transpiled/react/providers/I18n");
|
|
|
43
43
|
|
|
44
44
|
var _QualificationListItemText = _interopRequireDefault(require("./QualificationListItemText"));
|
|
45
45
|
|
|
46
|
-
var _IntentOpener = _interopRequireDefault(require("
|
|
46
|
+
var _IntentOpener = _interopRequireDefault(require("../../components/IntentOpener"));
|
|
47
47
|
|
|
48
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
49
49
|
|
package/dist/Panel/{QualificationListItemOther.js → Qualifications/QualificationListItemOther.js}
RENAMED
|
@@ -35,7 +35,7 @@ var _I18n = require("cozy-ui/transpiled/react/providers/I18n");
|
|
|
35
35
|
|
|
36
36
|
var _QualificationListItemText = _interopRequireDefault(require("./QualificationListItemText"));
|
|
37
37
|
|
|
38
|
-
var _IntentOpener = _interopRequireDefault(require("
|
|
38
|
+
var _IntentOpener = _interopRequireDefault(require("../../components/IntentOpener"));
|
|
39
39
|
|
|
40
40
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
41
|
|
|
@@ -29,7 +29,7 @@ var _QualificationIconStack = _interopRequireDefault(require("cozy-ui/transpiled
|
|
|
29
29
|
|
|
30
30
|
var _I18n = require("cozy-ui/transpiled/react/providers/I18n");
|
|
31
31
|
|
|
32
|
-
var _helpers = require("
|
|
32
|
+
var _helpers = require("../helpers");
|
|
33
33
|
|
|
34
34
|
var QualificationListItemQualification = function QualificationListItemQualification(_ref) {
|
|
35
35
|
var file = _ref.file,
|
|
@@ -25,9 +25,9 @@ var _ListItemIcon = _interopRequireDefault(require("cozy-ui/transpiled/react/Lis
|
|
|
25
25
|
|
|
26
26
|
var _ListItemText = _interopRequireDefault(require("cozy-ui/transpiled/react/ListItemText"));
|
|
27
27
|
|
|
28
|
-
var _helpers = require("
|
|
28
|
+
var _helpers = require("../helpers");
|
|
29
29
|
|
|
30
|
-
var _withViewerLocales = require("
|
|
30
|
+
var _withViewerLocales = require("../../hoc/withViewerLocales");
|
|
31
31
|
|
|
32
32
|
var QualificationListItemQualificationEmpty = function QualificationListItemQualificationEmpty(_ref) {
|
|
33
33
|
var file = _ref.file,
|
package/dist/Panel/Sharing.js
CHANGED
|
@@ -7,15 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
14
|
-
var _react =
|
|
15
|
-
|
|
16
|
-
var _cozyClient = require("cozy-client");
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
17
13
|
|
|
18
|
-
var _cozySharing =
|
|
14
|
+
var _cozySharing = require("cozy-sharing");
|
|
19
15
|
|
|
20
16
|
var _Icon = _interopRequireDefault(require("cozy-ui/transpiled/react/Icon"));
|
|
21
17
|
|
|
@@ -33,18 +29,14 @@ var _Spinner = _interopRequireDefault(require("cozy-ui/transpiled/react/Spinner"
|
|
|
33
29
|
|
|
34
30
|
var _withViewerLocales = require("../hoc/withViewerLocales");
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
32
|
+
var _ShareModalProvider = require("../providers/ShareModalProvider");
|
|
39
33
|
|
|
40
34
|
var Sharing = function Sharing(_ref) {
|
|
41
35
|
var file = _ref.file,
|
|
42
36
|
t = _ref.t;
|
|
43
37
|
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
showModal = _useState2[0],
|
|
47
|
-
setShowModal = _useState2[1];
|
|
38
|
+
var _useShareModal = (0, _ShareModalProvider.useShareModal)(),
|
|
39
|
+
setShowShareModal = _useShareModal.setShowShareModal;
|
|
48
40
|
|
|
49
41
|
var _useSharingContext = (0, _cozySharing.useSharingContext)(),
|
|
50
42
|
isOwner = _useSharingContext.isOwner,
|
|
@@ -66,7 +58,7 @@ var Sharing = function Sharing(_ref) {
|
|
|
66
58
|
divider: true,
|
|
67
59
|
button: true,
|
|
68
60
|
onClick: function onClick() {
|
|
69
|
-
return
|
|
61
|
+
return setShowShareModal(true);
|
|
70
62
|
}
|
|
71
63
|
}, /*#__PURE__*/_react.default.createElement(_ListItemText.default, {
|
|
72
64
|
primary: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, t('Viewer.panel.sharing'), !allLoaded && /*#__PURE__*/_react.default.createElement(_Spinner.default, {
|
|
@@ -88,14 +80,7 @@ var Sharing = function Sharing(_ref) {
|
|
|
88
80
|
recipient: recipient,
|
|
89
81
|
isOwner: _isOwner
|
|
90
82
|
});
|
|
91
|
-
}) : /*#__PURE__*/_react.default.createElement(_cozySharing.OwnerRecipientDefaultLite, null))
|
|
92
|
-
document: file,
|
|
93
|
-
documentType: "Files",
|
|
94
|
-
sharingDesc: "",
|
|
95
|
-
onClose: function onClose() {
|
|
96
|
-
return setShowModal(false);
|
|
97
|
-
}
|
|
98
|
-
}));
|
|
83
|
+
}) : /*#__PURE__*/_react.default.createElement(_cozySharing.OwnerRecipientDefaultLite, null)));
|
|
99
84
|
};
|
|
100
85
|
|
|
101
86
|
Sharing.propTypes = {
|
|
@@ -103,20 +88,4 @@ Sharing.propTypes = {
|
|
|
103
88
|
t: _propTypes.default.func
|
|
104
89
|
};
|
|
105
90
|
|
|
106
|
-
var
|
|
107
|
-
var file = _ref2.file,
|
|
108
|
-
t = _ref2.t,
|
|
109
|
-
isPublic = _ref2.isPublic;
|
|
110
|
-
var client = (0, _cozyClient.useClient)();
|
|
111
|
-
return /*#__PURE__*/_react.default.createElement(_cozySharing.default, {
|
|
112
|
-
client: client,
|
|
113
|
-
doctype: "io.cozy.files",
|
|
114
|
-
documentType: "Files",
|
|
115
|
-
isPublic: isPublic
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement(Sharing, {
|
|
117
|
-
file: file,
|
|
118
|
-
t: t
|
|
119
|
-
}));
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
var _default = exports.default = (0, _withViewerLocales.withViewerLocales)(DumbSharing);
|
|
91
|
+
var _default = exports.default = (0, _withViewerLocales.withViewerLocales)(Sharing);
|
package/dist/Panel/Summary.js
CHANGED
|
@@ -45,7 +45,7 @@ var _ListItemText = _interopRequireDefault(require("cozy-ui/transpiled/react/Lis
|
|
|
45
45
|
|
|
46
46
|
var _Alert = require("cozy-ui/transpiled/react/providers/Alert");
|
|
47
47
|
|
|
48
|
-
var _QualificationListItemText = _interopRequireDefault(require("./QualificationListItemText"));
|
|
48
|
+
var _QualificationListItemText = _interopRequireDefault(require("./Qualifications/QualificationListItemText"));
|
|
49
49
|
|
|
50
50
|
var _SummaryDialog = _interopRequireDefault(require("./SummaryDialog"));
|
|
51
51
|
|