@manuscripts/article-editor 4.9.12 → 4.9.14
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.
|
@@ -8,7 +8,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const files_1 = require("../../lib/files");
|
|
10
10
|
const FileTypeIcon_1 = require("./FileTypeIcon");
|
|
11
|
-
const FileName = ({ file, label, icon: Icon, maxBaseNameLength =
|
|
11
|
+
const FileName = ({ file, label, icon: Icon, maxBaseNameLength = 20 }) => {
|
|
12
12
|
const trimmedFilename = (0, files_1.trimFilename)(file.name, maxBaseNameLength);
|
|
13
13
|
return (react_1.default.createElement(FileNameContainer, { "data-tooltip-content": file.name },
|
|
14
14
|
(Icon && react_1.default.createElement(Icon, { className: "file-icon" })) || react_1.default.createElement(FileTypeIcon_1.FileTypeIcon, { file: file }),
|
|
@@ -218,7 +218,7 @@ const InlineFilesSection = ({ elements, }) => {
|
|
|
218
218
|
} },
|
|
219
219
|
fileAttachment.file && (react_1.default.createElement(FileTypeIcon_1.FileTypeIcon, { file: fileAttachment.file })),
|
|
220
220
|
react_1.default.createElement(FileName_1.FileNameText, { "data-cy": "filename" }, fileAttachment.file?.name
|
|
221
|
-
? (0, files_1.trimFilename)(fileAttachment.file.name,
|
|
221
|
+
? (0, files_1.trimFilename)(fileAttachment.file.name, 20)
|
|
222
222
|
: 'Unknown file'),
|
|
223
223
|
fileAttachment.file && (react_1.default.createElement(FileCreatedDate_1.FileCreatedDate, { file: fileAttachment.file, className: "show-on-hover" })),
|
|
224
224
|
react_1.default.createElement(FileActions_1.FileActions, { sectionType: FileManager_1.FileSectionType.Inline, onReplace: async (f) => await handleReplace(fileAttachment.node, fileAttachment.pos, f), onDetach: () => handleDetach(fileAttachment.node, fileAttachment.pos), onDownload: () => fileAttachment.file &&
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { trimFilename } from '../../lib/files';
|
|
4
4
|
import { FileTypeIcon } from './FileTypeIcon';
|
|
5
|
-
export const FileName = ({ file, label, icon: Icon, maxBaseNameLength =
|
|
5
|
+
export const FileName = ({ file, label, icon: Icon, maxBaseNameLength = 20 }) => {
|
|
6
6
|
const trimmedFilename = trimFilename(file.name, maxBaseNameLength);
|
|
7
7
|
return (React.createElement(FileNameContainer, { "data-tooltip-content": file.name },
|
|
8
8
|
(Icon && React.createElement(Icon, { className: "file-icon" })) || React.createElement(FileTypeIcon, { file: file }),
|
|
@@ -182,7 +182,7 @@ export const InlineFilesSection = ({ elements, }) => {
|
|
|
182
182
|
} },
|
|
183
183
|
fileAttachment.file && (React.createElement(FileTypeIcon, { file: fileAttachment.file })),
|
|
184
184
|
React.createElement(FileNameText, { "data-cy": "filename" }, fileAttachment.file?.name
|
|
185
|
-
? trimFilename(fileAttachment.file.name,
|
|
185
|
+
? trimFilename(fileAttachment.file.name, 20)
|
|
186
186
|
: 'Unknown file'),
|
|
187
187
|
fileAttachment.file && (React.createElement(FileCreatedDate, { file: fileAttachment.file, className: "show-on-hover" })),
|
|
188
188
|
React.createElement(FileActions, { sectionType: FileSectionType.Inline, onReplace: async (f) => await handleReplace(fileAttachment.node, fileAttachment.pos, f), onDetach: () => handleDetach(fileAttachment.node, fileAttachment.pos), onDownload: () => fileAttachment.file &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/article-editor",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.14",
|
|
4
4
|
"license": "CPAL-1.0",
|
|
5
5
|
"description": "React components for editing and viewing manuscripts",
|
|
6
6
|
"repository": "github:Atypon-OpenSource/manuscripts-article-editor",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@fontsource/pt-sans": "5.2.5",
|
|
33
33
|
"@fontsource/pt-serif": "5.2.5",
|
|
34
34
|
"@headlessui/react": "2.2.3",
|
|
35
|
-
"@manuscripts/body-editor": "3.9.
|
|
35
|
+
"@manuscripts/body-editor": "3.9.14",
|
|
36
36
|
"@manuscripts/json-schema": "2.2.12",
|
|
37
37
|
"@manuscripts/style-guide": "3.4.7",
|
|
38
|
-
"@manuscripts/track-changes-plugin": "2.2.
|
|
39
|
-
"@manuscripts/transform": "4.3.
|
|
38
|
+
"@manuscripts/track-changes-plugin": "2.2.10",
|
|
39
|
+
"@manuscripts/transform": "4.3.22",
|
|
40
40
|
"@popperjs/core": "2.11.8",
|
|
41
41
|
"axios": "1.11.0",
|
|
42
42
|
"date-fns": "4.1.0",
|