@manuscripts/style-guide 1.1.16-LEAN-2669-v9 → 1.1.16-LEAN-2669-v10
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.
|
@@ -49,21 +49,13 @@ const InlineFilesSection = ({ handleReplace, handleDownload, handleUpdateInline,
|
|
|
49
49
|
window.location.hash = `#${clearedId}`;
|
|
50
50
|
}
|
|
51
51
|
}, [isEditor]);
|
|
52
|
-
function formatDate(inputDate) {
|
|
53
|
-
const date = new Date(inputDate);
|
|
54
|
-
const formattedDate = `${date.getMonth() + 1}/${date.getDate()}/${date
|
|
55
|
-
.getFullYear()
|
|
56
|
-
.toString()
|
|
57
|
-
.slice(2)}, ${date.getHours()}:${date.getMinutes()}`;
|
|
58
|
-
return formattedDate;
|
|
59
|
-
}
|
|
60
52
|
return (react_1.default.createElement("div", null, inlineFiles.map((file, index) => {
|
|
61
53
|
var _a;
|
|
62
54
|
return (react_1.default.createElement(ElementItem, { className: 'item', key: index, id: file.id, onClick: onElementClick },
|
|
63
55
|
react_1.default.createElement(FileReferences, { className: 'refItems' }, (_a = file.attachments) === null || _a === void 0 ? void 0 : _a.map((attachment) => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
64
56
|
react_1.default.createElement(FileReference, { key: attachment.id, attachment: attachment, handleReplace: handleReplace, handleUpdateInline: handleUpdateInline, handleDetachFile: handleDetachFile, handleDownload: handleDownload, dispatch: dispatch }),
|
|
65
57
|
react_1.default.createElement(exports.FileDateContainer, null,
|
|
66
|
-
react_1.default.createElement(exports.FileDate, null,
|
|
58
|
+
react_1.default.createElement(exports.FileDate, null, attachment.createdDate)))))),
|
|
67
59
|
react_1.default.createElement(Element, { className: 'element' },
|
|
68
60
|
util_1.fileTypesWithIconMap.get(file.type),
|
|
69
61
|
react_1.default.createElement(FileInfo_1.FileInfoContainer, null,
|
|
@@ -20,21 +20,13 @@ export const InlineFilesSection = ({ handleReplace, handleDownload, handleUpdate
|
|
|
20
20
|
window.location.hash = `#${clearedId}`;
|
|
21
21
|
}
|
|
22
22
|
}, [isEditor]);
|
|
23
|
-
function formatDate(inputDate) {
|
|
24
|
-
const date = new Date(inputDate);
|
|
25
|
-
const formattedDate = `${date.getMonth() + 1}/${date.getDate()}/${date
|
|
26
|
-
.getFullYear()
|
|
27
|
-
.toString()
|
|
28
|
-
.slice(2)}, ${date.getHours()}:${date.getMinutes()}`;
|
|
29
|
-
return formattedDate;
|
|
30
|
-
}
|
|
31
23
|
return (React.createElement("div", null, inlineFiles.map((file, index) => {
|
|
32
24
|
var _a;
|
|
33
25
|
return (React.createElement(ElementItem, { className: 'item', key: index, id: file.id, onClick: onElementClick },
|
|
34
26
|
React.createElement(FileReferences, { className: 'refItems' }, (_a = file.attachments) === null || _a === void 0 ? void 0 : _a.map((attachment) => (React.createElement(React.Fragment, null,
|
|
35
27
|
React.createElement(FileReference, { key: attachment.id, attachment: attachment, handleReplace: handleReplace, handleUpdateInline: handleUpdateInline, handleDetachFile: handleDetachFile, handleDownload: handleDownload, dispatch: dispatch }),
|
|
36
28
|
React.createElement(FileDateContainer, null,
|
|
37
|
-
React.createElement(FileDate, null,
|
|
29
|
+
React.createElement(FileDate, null, attachment.createdDate)))))),
|
|
38
30
|
React.createElement(Element, { className: 'element' },
|
|
39
31
|
fileTypesWithIconMap.get(file.type),
|
|
40
32
|
React.createElement(FileInfoContainer, null,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/style-guide",
|
|
3
3
|
"description": "Shared components for Manuscripts applications",
|
|
4
|
-
"version": "1.1.16-LEAN-2669-
|
|
4
|
+
"version": "1.1.16-LEAN-2669-v10",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|